Class: TencentCloud::Tse::V20201207::GovernanceServiceContract
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Tse::V20201207::GovernanceServiceContract
- Defined in:
- lib/v20201207/models.rb
Overview
服务契约定义
Instance Attribute Summary collapse
-
#Content ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。.
-
#CreateTime ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。.
-
#ID ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。.
-
#Interfaces ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。.
-
#Metadatas ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。.
-
#ModifyTime ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。.
-
#Name ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。.
-
#Namespace ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。.
-
#Protocol ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。.
-
#Revision ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。.
-
#Service ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。.
-
#Version ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。.
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(name = nil, namespace = nil, protocol = nil, id = nil, service = nil, version = nil, revision = nil, content = nil, createtime = nil, modifytime = nil, interfaces = nil, metadatas = nil) ⇒ GovernanceServiceContract
constructor
A new instance of GovernanceServiceContract.
Constructor Details
#initialize(name = nil, namespace = nil, protocol = nil, id = nil, service = nil, version = nil, revision = nil, content = nil, createtime = nil, modifytime = nil, interfaces = nil, metadatas = nil) ⇒ GovernanceServiceContract
Returns a new instance of GovernanceServiceContract.
8337 8338 8339 8340 8341 8342 8343 8344 8345 8346 8347 8348 8349 8350 |
# File 'lib/v20201207/models.rb', line 8337 def initialize(name=nil, namespace=nil, protocol=nil, id=nil, service=nil, version=nil, revision=nil, content=nil, createtime=nil, modifytime=nil, interfaces=nil, =nil) @Name = name @Namespace = namespace @Protocol = protocol @ID = id @Service = service @Version = version @Revision = revision @Content = content @CreateTime = createtime @ModifyTime = modifytime @Interfaces = interfaces @Metadatas = end |
Instance Attribute Details
#Content ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。
8335 8336 8337 |
# File 'lib/v20201207/models.rb', line 8335 def Content @Content end |
#CreateTime ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。
8335 8336 8337 |
# File 'lib/v20201207/models.rb', line 8335 def CreateTime @CreateTime end |
#ID ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。
8335 8336 8337 |
# File 'lib/v20201207/models.rb', line 8335 def ID @ID end |
#Interfaces ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。
8335 8336 8337 |
# File 'lib/v20201207/models.rb', line 8335 def Interfaces @Interfaces end |
#Metadatas ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。
8335 8336 8337 |
# File 'lib/v20201207/models.rb', line 8335 def Metadatas @Metadatas end |
#ModifyTime ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。
8335 8336 8337 |
# File 'lib/v20201207/models.rb', line 8335 def ModifyTime @ModifyTime end |
#Name ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。
8335 8336 8337 |
# File 'lib/v20201207/models.rb', line 8335 def Name @Name end |
#Namespace ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。
8335 8336 8337 |
# File 'lib/v20201207/models.rb', line 8335 def Namespace @Namespace end |
#Protocol ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。
8335 8336 8337 |
# File 'lib/v20201207/models.rb', line 8335 def Protocol @Protocol end |
#Revision ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。
8335 8336 8337 |
# File 'lib/v20201207/models.rb', line 8335 def Revision @Revision end |
#Service ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。
8335 8336 8337 |
# File 'lib/v20201207/models.rb', line 8335 def Service @Service end |
#Version ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。
8335 8336 8337 |
# File 'lib/v20201207/models.rb', line 8335 def Version @Version end |
Instance Method Details
#deserialize(params) ⇒ Object
8352 8353 8354 8355 8356 8357 8358 8359 8360 8361 8362 8363 8364 8365 8366 8367 8368 8369 8370 8371 8372 8373 8374 8375 8376 8377 8378 8379 |
# File 'lib/v20201207/models.rb', line 8352 def deserialize(params) @Name = params['Name'] @Namespace = params['Namespace'] @Protocol = params['Protocol'] @ID = params['ID'] @Service = params['Service'] @Version = params['Version'] @Revision = params['Revision'] @Content = params['Content'] @CreateTime = params['CreateTime'] @ModifyTime = params['ModifyTime'] unless params['Interfaces'].nil? @Interfaces = [] params['Interfaces'].each do |i| governanceinterfacedescription_tmp = GovernanceInterfaceDescription.new governanceinterfacedescription_tmp.deserialize(i) @Interfaces << governanceinterfacedescription_tmp end end unless params['Metadatas'].nil? @Metadatas = [] params['Metadatas'].each do |i| = Metadata.new .deserialize(i) @Metadatas << end end end |