Class: TencentCloud::Iecp::V20210914::ApplicationBasicConfig
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Iecp::V20210914::ApplicationBasicConfig
- Defined in:
- lib/v20210914/models.rb
Overview
应用基本配置
Instance Attribute Summary collapse
-
#AvailableReplicas ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。.
-
#EnableServiceLinks ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。.
-
#GridUniqKey ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。.
-
#Labels ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。.
-
#Name ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。.
-
#Namespace ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。.
-
#NodeSelector ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。.
-
#Replicas ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。.
-
#WorkflowKind ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。.
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(name = nil, namespace = nil, workflowkind = nil, labels = nil, griduniqkey = nil, nodeselector = nil, replicas = nil, availablereplicas = nil, enableservicelinks = nil) ⇒ ApplicationBasicConfig
constructor
A new instance of ApplicationBasicConfig.
Constructor Details
#initialize(name = nil, namespace = nil, workflowkind = nil, labels = nil, griduniqkey = nil, nodeselector = nil, replicas = nil, availablereplicas = nil, enableservicelinks = nil) ⇒ ApplicationBasicConfig
Returns a new instance of ApplicationBasicConfig.
44 45 46 47 48 49 50 51 52 53 54 |
# File 'lib/v20210914/models.rb', line 44 def initialize(name=nil, namespace=nil, workflowkind=nil, labels=nil, griduniqkey=nil, nodeselector=nil, replicas=nil, availablereplicas=nil, enableservicelinks=nil) @Name = name @Namespace = namespace @WorkflowKind = workflowkind @Labels = labels @GridUniqKey = griduniqkey @NodeSelector = nodeselector @Replicas = replicas @AvailableReplicas = availablereplicas @EnableServiceLinks = enableservicelinks end |
Instance Attribute Details
#AvailableReplicas ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。
42 43 44 |
# File 'lib/v20210914/models.rb', line 42 def AvailableReplicas @AvailableReplicas end |
#EnableServiceLinks ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。
42 43 44 |
# File 'lib/v20210914/models.rb', line 42 def EnableServiceLinks @EnableServiceLinks end |
#GridUniqKey ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。
42 43 44 |
# File 'lib/v20210914/models.rb', line 42 def GridUniqKey @GridUniqKey end |
#Labels ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。
42 43 44 |
# File 'lib/v20210914/models.rb', line 42 def Labels @Labels end |
#Name ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。
42 43 44 |
# File 'lib/v20210914/models.rb', line 42 def Name @Name end |
#Namespace ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。
42 43 44 |
# File 'lib/v20210914/models.rb', line 42 def Namespace @Namespace end |
#NodeSelector ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。
42 43 44 |
# File 'lib/v20210914/models.rb', line 42 def NodeSelector @NodeSelector end |
#Replicas ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。
42 43 44 |
# File 'lib/v20210914/models.rb', line 42 def Replicas @Replicas end |
#WorkflowKind ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。
42 43 44 |
# File 'lib/v20210914/models.rb', line 42 def WorkflowKind @WorkflowKind end |
Instance Method Details
#deserialize(params) ⇒ Object
56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 |
# File 'lib/v20210914/models.rb', line 56 def deserialize(params) @Name = params['Name'] @Namespace = params['Namespace'] @WorkflowKind = params['WorkflowKind'] unless params['Labels'].nil? @Labels = [] params['Labels'].each do |i| label_tmp = Label.new label_tmp.deserialize(i) @Labels << label_tmp end end @GridUniqKey = params['GridUniqKey'] unless params['NodeSelector'].nil? @NodeSelector = [] params['NodeSelector'].each do |i| label_tmp = Label.new label_tmp.deserialize(i) @NodeSelector << label_tmp end end @Replicas = params['Replicas'] @AvailableReplicas = params['AvailableReplicas'] @EnableServiceLinks = params['EnableServiceLinks'] end |