Class: TencentCloud::Tse::V20201207::GovernanceInstanceUpdate
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Tse::V20201207::GovernanceInstanceUpdate
- Defined in:
- lib/v20201207/models.rb
Overview
实例信息
Instance Attribute Summary collapse
- #EnableHealthCheck ⇒ Object
- #Healthy ⇒ Object
- #Host ⇒ Object
- #Id ⇒ Object
- #InstanceVersion ⇒ Object
- #Isolate ⇒ Object
- #Metadatas ⇒ Object
- #Namespace ⇒ Object
- #Port ⇒ Object
- #Protocol ⇒ Object
- #Service ⇒ Object
- #Ttl ⇒ Object
- #Weight ⇒ Object
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(service = nil, namespace = nil, weight = nil, healthy = nil, isolate = nil, host = nil, port = nil, protocol = nil, instanceversion = nil, enablehealthcheck = nil, ttl = nil, id = nil, metadatas = nil) ⇒ GovernanceInstanceUpdate
constructor
A new instance of GovernanceInstanceUpdate.
Constructor Details
#initialize(service = nil, namespace = nil, weight = nil, healthy = nil, isolate = nil, host = nil, port = nil, protocol = nil, instanceversion = nil, enablehealthcheck = nil, ttl = nil, id = nil, metadatas = nil) ⇒ GovernanceInstanceUpdate
Returns a new instance of GovernanceInstanceUpdate.
7985 7986 7987 7988 7989 7990 7991 7992 7993 7994 7995 7996 7997 7998 7999 |
# File 'lib/v20201207/models.rb', line 7985 def initialize(service=nil, namespace=nil, weight=nil, healthy=nil, isolate=nil, host=nil, port=nil, protocol=nil, instanceversion=nil, enablehealthcheck=nil, ttl=nil, id=nil, =nil) @Service = service @Namespace = namespace @Weight = weight @Healthy = healthy @Isolate = isolate @Host = host @Port = port @Protocol = protocol @InstanceVersion = instanceversion @EnableHealthCheck = enablehealthcheck @Ttl = ttl @Id = id @Metadatas = end |
Instance Attribute Details
#EnableHealthCheck ⇒ Object
7983 7984 7985 |
# File 'lib/v20201207/models.rb', line 7983 def EnableHealthCheck @EnableHealthCheck end |
#Healthy ⇒ Object
7983 7984 7985 |
# File 'lib/v20201207/models.rb', line 7983 def Healthy @Healthy end |
#Host ⇒ Object
7983 7984 7985 |
# File 'lib/v20201207/models.rb', line 7983 def Host @Host end |
#Id ⇒ Object
7983 7984 7985 |
# File 'lib/v20201207/models.rb', line 7983 def Id @Id end |
#InstanceVersion ⇒ Object
7983 7984 7985 |
# File 'lib/v20201207/models.rb', line 7983 def InstanceVersion @InstanceVersion end |
#Isolate ⇒ Object
7983 7984 7985 |
# File 'lib/v20201207/models.rb', line 7983 def Isolate @Isolate end |
#Metadatas ⇒ Object
7983 7984 7985 |
# File 'lib/v20201207/models.rb', line 7983 def Metadatas @Metadatas end |
#Namespace ⇒ Object
7983 7984 7985 |
# File 'lib/v20201207/models.rb', line 7983 def Namespace @Namespace end |
#Port ⇒ Object
7983 7984 7985 |
# File 'lib/v20201207/models.rb', line 7983 def Port @Port end |
#Protocol ⇒ Object
7983 7984 7985 |
# File 'lib/v20201207/models.rb', line 7983 def Protocol @Protocol end |
#Service ⇒ Object
7983 7984 7985 |
# File 'lib/v20201207/models.rb', line 7983 def Service @Service end |
#Ttl ⇒ Object
7983 7984 7985 |
# File 'lib/v20201207/models.rb', line 7983 def Ttl @Ttl end |
#Weight ⇒ Object
7983 7984 7985 |
# File 'lib/v20201207/models.rb', line 7983 def Weight @Weight end |
Instance Method Details
#deserialize(params) ⇒ Object
8001 8002 8003 8004 8005 8006 8007 8008 8009 8010 8011 8012 8013 8014 8015 8016 8017 8018 8019 8020 8021 8022 |
# File 'lib/v20201207/models.rb', line 8001 def deserialize(params) @Service = params['Service'] @Namespace = params['Namespace'] @Weight = params['Weight'] @Healthy = params['Healthy'] @Isolate = params['Isolate'] @Host = params['Host'] @Port = params['Port'] @Protocol = params['Protocol'] @InstanceVersion = params['InstanceVersion'] @EnableHealthCheck = params['EnableHealthCheck'] @Ttl = params['Ttl'] @Id = params['Id'] unless params['Metadatas'].nil? @Metadatas = [] params['Metadatas'].each do |i| = Metadata.new .deserialize(i) @Metadatas << end end end |