Class: TencentCloud::Tse::V20201207::GovernanceInstance
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Tse::V20201207::GovernanceInstance
- Defined in:
- lib/v20201207/models.rb
Overview
治理中心实例信息。
Instance Attribute Summary collapse
- #Comment ⇒ Object
- #CreateTime ⇒ Object
- #EnableHealthCheck ⇒ Object
- #HealthStatus ⇒ Object
- #Healthy ⇒ Object
- #Host ⇒ Object
- #Id ⇒ Object
- #InstanceVersion ⇒ Object
- #Isolate ⇒ Object
- #Metadatas ⇒ Object
- #ModifyTime ⇒ Object
- #Namespace ⇒ Object
- #Port ⇒ Object
- #Protocol ⇒ Object
- #Service ⇒ Object
- #Ttl ⇒ Object
- #Version ⇒ Object
- #Weight ⇒ Object
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(id = nil, service = nil, namespace = nil, host = nil, port = nil, protocol = nil, version = nil, weight = nil, enablehealthcheck = nil, healthy = nil, isolate = nil, createtime = nil, modifytime = nil, metadatas = nil, ttl = nil, instanceversion = nil, healthstatus = nil, comment = nil) ⇒ GovernanceInstance
constructor
A new instance of GovernanceInstance.
Constructor Details
#initialize(id = nil, service = nil, namespace = nil, host = nil, port = nil, protocol = nil, version = nil, weight = nil, enablehealthcheck = nil, healthy = nil, isolate = nil, createtime = nil, modifytime = nil, metadatas = nil, ttl = nil, instanceversion = nil, healthstatus = nil, comment = nil) ⇒ GovernanceInstance
7848 7849 7850 7851 7852 7853 7854 7855 7856 7857 7858 7859 7860 7861 7862 7863 7864 7865 7866 7867 |
# File 'lib/v20201207/models.rb', line 7848 def initialize(id=nil, service=nil, namespace=nil, host=nil, port=nil, protocol=nil, version=nil, weight=nil, enablehealthcheck=nil, healthy=nil, isolate=nil, createtime=nil, modifytime=nil, =nil, ttl=nil, instanceversion=nil, healthstatus=nil, comment=nil) @Id = id @Service = service @Namespace = namespace @Host = host @Port = port @Protocol = protocol @Version = version @Weight = weight @EnableHealthCheck = enablehealthcheck @Healthy = healthy @Isolate = isolate @CreateTime = createtime @ModifyTime = modifytime @Metadatas = @Ttl = ttl @InstanceVersion = instanceversion @HealthStatus = healthstatus @Comment = comment end |
Instance Attribute Details
#Comment ⇒ Object
7846 7847 7848 |
# File 'lib/v20201207/models.rb', line 7846 def Comment @Comment end |
#CreateTime ⇒ Object
7846 7847 7848 |
# File 'lib/v20201207/models.rb', line 7846 def CreateTime @CreateTime end |
#EnableHealthCheck ⇒ Object
7846 7847 7848 |
# File 'lib/v20201207/models.rb', line 7846 def EnableHealthCheck @EnableHealthCheck end |
#HealthStatus ⇒ Object
7846 7847 7848 |
# File 'lib/v20201207/models.rb', line 7846 def HealthStatus @HealthStatus end |
#Healthy ⇒ Object
7846 7847 7848 |
# File 'lib/v20201207/models.rb', line 7846 def Healthy @Healthy end |
#Host ⇒ Object
7846 7847 7848 |
# File 'lib/v20201207/models.rb', line 7846 def Host @Host end |
#Id ⇒ Object
7846 7847 7848 |
# File 'lib/v20201207/models.rb', line 7846 def Id @Id end |
#InstanceVersion ⇒ Object
7846 7847 7848 |
# File 'lib/v20201207/models.rb', line 7846 def InstanceVersion @InstanceVersion end |
#Isolate ⇒ Object
7846 7847 7848 |
# File 'lib/v20201207/models.rb', line 7846 def Isolate @Isolate end |
#Metadatas ⇒ Object
7846 7847 7848 |
# File 'lib/v20201207/models.rb', line 7846 def Metadatas @Metadatas end |
#ModifyTime ⇒ Object
7846 7847 7848 |
# File 'lib/v20201207/models.rb', line 7846 def ModifyTime @ModifyTime end |
#Namespace ⇒ Object
7846 7847 7848 |
# File 'lib/v20201207/models.rb', line 7846 def Namespace @Namespace end |
#Port ⇒ Object
7846 7847 7848 |
# File 'lib/v20201207/models.rb', line 7846 def Port @Port end |
#Protocol ⇒ Object
7846 7847 7848 |
# File 'lib/v20201207/models.rb', line 7846 def Protocol @Protocol end |
#Service ⇒ Object
7846 7847 7848 |
# File 'lib/v20201207/models.rb', line 7846 def Service @Service end |
#Ttl ⇒ Object
7846 7847 7848 |
# File 'lib/v20201207/models.rb', line 7846 def Ttl @Ttl end |
#Version ⇒ Object
7846 7847 7848 |
# File 'lib/v20201207/models.rb', line 7846 def Version @Version end |
#Weight ⇒ Object
7846 7847 7848 |
# File 'lib/v20201207/models.rb', line 7846 def Weight @Weight end |
Instance Method Details
#deserialize(params) ⇒ Object
7869 7870 7871 7872 7873 7874 7875 7876 7877 7878 7879 7880 7881 7882 7883 7884 7885 7886 7887 7888 7889 7890 7891 7892 7893 7894 7895 |
# File 'lib/v20201207/models.rb', line 7869 def deserialize(params) @Id = params['Id'] @Service = params['Service'] @Namespace = params['Namespace'] @Host = params['Host'] @Port = params['Port'] @Protocol = params['Protocol'] @Version = params['Version'] @Weight = params['Weight'] @EnableHealthCheck = params['EnableHealthCheck'] @Healthy = params['Healthy'] @Isolate = params['Isolate'] @CreateTime = params['CreateTime'] @ModifyTime = params['ModifyTime'] unless params['Metadatas'].nil? @Metadatas = [] params['Metadatas'].each do |i| = Metadata.new .deserialize(i) @Metadatas << end end @Ttl = params['Ttl'] @InstanceVersion = params['InstanceVersion'] @HealthStatus = params['HealthStatus'] @Comment = params['Comment'] end |