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_infoin 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.
764 765 766 |
# File 'lib/google/apis/trafficdirector_v3/classes.rb', line 764 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
714 715 716 |
# File 'lib/google/apis/trafficdirector_v3/classes.rb', line 714 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
720 721 722 |
# File 'lib/google/apis/trafficdirector_v3/classes.rb', line 720 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
728 729 730 |
# File 'lib/google/apis/trafficdirector_v3/classes.rb', line 728 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
734 735 736 |
# File 'lib/google/apis/trafficdirector_v3/classes.rb', line 734 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
740 741 742 |
# File 'lib/google/apis/trafficdirector_v3/classes.rb', line 740 def last_updated @last_updated end |
#name ⇒ String
Name of the xDS resource
Corresponds to the JSON property name
745 746 747 |
# File 'lib/google/apis/trafficdirector_v3/classes.rb', line 745 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
751 752 753 |
# File 'lib/google/apis/trafficdirector_v3/classes.rb', line 751 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
757 758 759 |
# File 'lib/google/apis/trafficdirector_v3/classes.rb', line 757 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
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 |