Class: Google::Apis::TrafficdirectorV3::GenericXdsConfig
- Inherits:
-
Object
- Object
- Google::Apis::TrafficdirectorV3::GenericXdsConfig
- 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
-
#client_status ⇒ String
Per xDS resource status from the view of a xDS client Corresponds to the JSON property
clientStatus
. -
#config_status ⇒ String
Per xDS resource config status.
-
#error_state ⇒ Google::Apis::TrafficdirectorV3::UpdateFailureState
Set if the last update failed, cleared after the next successful update.
-
#is_static_resource ⇒ Boolean
(also: #is_static_resource?)
Is static resource is true if it is specified in the config supplied through the file at the startup.
-
#last_updated ⇒ String
Timestamp when the xDS resource was last updated Corresponds to the JSON property
lastUpdated
. -
#name ⇒ String
Name of the xDS resource Corresponds to the JSON property
name
. -
#type_url ⇒ String
Type_url represents the fully qualified name of xDS resource type like envoy.
-
#version_info ⇒ String
This is the :ref:
version_info
in the last processed xDS discovery response. -
#xds_config ⇒ Hash<String,Object>
The xDS resource config.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GenericXdsConfig
constructor
A new instance of GenericXdsConfig.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GenericXdsConfig
Returns a new instance of GenericXdsConfig.
772 773 774 |
# File 'lib/google/apis/trafficdirector_v3/classes.rb', line 772 def initialize(**args) update!(**args) end |
Instance Attribute Details
#client_status ⇒ String
Per xDS resource status from the view of a xDS client
Corresponds to the JSON property clientStatus
722 723 724 |
# File 'lib/google/apis/trafficdirector_v3/classes.rb', line 722 def client_status @client_status end |
#config_status ⇒ String
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
728 729 730 |
# File 'lib/google/apis/trafficdirector_v3/classes.rb', line 728 def config_status @config_status end |
#error_state ⇒ Google::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
736 737 738 |
# File 'lib/google/apis/trafficdirector_v3/classes.rb', line 736 def error_state @error_state end |
#is_static_resource ⇒ Boolean 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
742 743 744 |
# File 'lib/google/apis/trafficdirector_v3/classes.rb', line 742 def is_static_resource @is_static_resource end |
#last_updated ⇒ String
Timestamp when the xDS resource was last updated
Corresponds to the JSON property lastUpdated
748 749 750 |
# File 'lib/google/apis/trafficdirector_v3/classes.rb', line 748 def last_updated @last_updated end |
#name ⇒ String
Name of the xDS resource
Corresponds to the JSON property name
753 754 755 |
# File 'lib/google/apis/trafficdirector_v3/classes.rb', line 753 def name @name end |
#type_url ⇒ String
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
759 760 761 |
# File 'lib/google/apis/trafficdirector_v3/classes.rb', line 759 def type_url @type_url end |
#version_info ⇒ String
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
765 766 767 |
# File 'lib/google/apis/trafficdirector_v3/classes.rb', line 765 def version_info @version_info end |
#xds_config ⇒ Hash<String,Object>
The xDS resource config. Actual content depends on the type
Corresponds to the JSON property xdsConfig
770 771 772 |
# File 'lib/google/apis/trafficdirector_v3/classes.rb', line 770 def xds_config @xds_config end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
777 778 779 780 781 782 783 784 785 786 787 |
# File 'lib/google/apis/trafficdirector_v3/classes.rb', line 777 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 |