Class: Google::Apis::TrafficdirectorV3::GenericXdsConfig

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

GenericXdsConfig is used to specify the config status and the dump of any xDS resource identified by their type URL. It is the generalized version of the now deprecated ListenersConfigDump, ClustersConfigDump etc [#next-free-field: 10]

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GenericXdsConfig

Returns a new instance of GenericXdsConfig.



764
765
766
# File 'lib/google/apis/trafficdirector_v3/classes.rb', line 764

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

Instance Attribute Details

#client_statusString

Per xDS resource status from the view of a xDS client Corresponds to the JSON property clientStatus

Returns:

  • (String)


714
715
716
# File 'lib/google/apis/trafficdirector_v3/classes.rb', line 714

def client_status
  @client_status
end

#config_statusString

Per xDS resource config status. It is generated by management servers. It will not be present if the CSDS server is an xDS client. Corresponds to the JSON property configStatus

Returns:

  • (String)


720
721
722
# File 'lib/google/apis/trafficdirector_v3/classes.rb', line 720

def config_status
  @config_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



728
729
730
# File 'lib/google/apis/trafficdirector_v3/classes.rb', line 728

def error_state
  @error_state
end

#is_static_resourceBoolean Also known as: is_static_resource?

Is static resource is true if it is specified in the config supplied through the file at the startup. Corresponds to the JSON property isStaticResource

Returns:

  • (Boolean)


734
735
736
# File 'lib/google/apis/trafficdirector_v3/classes.rb', line 734

def is_static_resource
  @is_static_resource
end

#last_updatedString

Timestamp when the xDS resource was last updated Corresponds to the JSON property lastUpdated

Returns:

  • (String)


740
741
742
# File 'lib/google/apis/trafficdirector_v3/classes.rb', line 740

def last_updated
  @last_updated
end

#nameString

Name of the xDS resource Corresponds to the JSON property name

Returns:

  • (String)


745
746
747
# File 'lib/google/apis/trafficdirector_v3/classes.rb', line 745

def name
  @name
end

#type_urlString

Type_url represents the fully qualified name of xDS resource type like envoy. v3.Cluster, envoy.v3.ClusterLoadAssignment etc. Corresponds to the JSON property typeUrl

Returns:

  • (String)


751
752
753
# File 'lib/google/apis/trafficdirector_v3/classes.rb', line 751

def type_url
  @type_url
end

#version_infoString

This is the :ref:version_info in the last processed xDS discovery response. If there are only static bootstrap listeners, this field will be "" Corresponds to the JSON property versionInfo

Returns:

  • (String)


757
758
759
# File 'lib/google/apis/trafficdirector_v3/classes.rb', line 757

def version_info
  @version_info
end

#xds_configHash<String,Object>

The xDS resource config. Actual content depends on the type Corresponds to the JSON property xdsConfig

Returns:

  • (Hash<String,Object>)


762
763
764
# File 'lib/google/apis/trafficdirector_v3/classes.rb', line 762

def xds_config
  @xds_config
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



769
770
771
772
773
774
775
776
777
778
779
# File 'lib/google/apis/trafficdirector_v3/classes.rb', line 769

def update!(**args)
  @client_status = args[:client_status] if args.key?(:client_status)
  @config_status = args[:config_status] if args.key?(:config_status)
  @error_state = args[:error_state] if args.key?(:error_state)
  @is_static_resource = args[:is_static_resource] if args.key?(:is_static_resource)
  @last_updated = args[:last_updated] if args.key?(:last_updated)
  @name = args[:name] if args.key?(:name)
  @type_url = args[:type_url] if args.key?(:type_url)
  @version_info = args[:version_info] if args.key?(:version_info)
  @xds_config = args[:xds_config] if args.key?(:xds_config)
end