Class: TencentCloud::Oceanus::V20190422::CreateJobRequest
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Oceanus::V20190422::CreateJobRequest
- Defined in:
- lib/v20190422/models.rb
Overview
CreateJob请求参数结构体
Instance Attribute Summary collapse
- #ClusterId ⇒ Object
- #ClusterType ⇒ Object
- #CuMem ⇒ Object
- #Description ⇒ Object
- #FlinkVersion ⇒ Object
- #FolderId ⇒ Object
- #JobType ⇒ Object
- #Name ⇒ Object
- #OpenJobDefaultAlarm ⇒ Object
- #Remark ⇒ Object
- #Tags ⇒ Object
- #WorkSpaceId ⇒ Object
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(name = nil, jobtype = nil, clustertype = nil, clusterid = nil, cumem = nil, remark = nil, folderid = nil, flinkversion = nil, workspaceid = nil, tags = nil, description = nil, openjobdefaultalarm = nil) ⇒ CreateJobRequest
constructor
A new instance of CreateJobRequest.
Constructor Details
#initialize(name = nil, jobtype = nil, clustertype = nil, clusterid = nil, cumem = nil, remark = nil, folderid = nil, flinkversion = nil, workspaceid = nil, tags = nil, description = nil, openjobdefaultalarm = nil) ⇒ CreateJobRequest
Returns a new instance of CreateJobRequest.
1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 |
# File 'lib/v20190422/models.rb', line 1272 def initialize(name=nil, jobtype=nil, clustertype=nil, clusterid=nil, cumem=nil, remark=nil, folderid=nil, flinkversion=nil, workspaceid=nil, =nil, description=nil, openjobdefaultalarm=nil) @Name = name @JobType = jobtype @ClusterType = clustertype @ClusterId = clusterid @CuMem = cumem @Remark = remark @FolderId = folderid @FlinkVersion = flinkversion @WorkSpaceId = workspaceid @Tags = @Description = description @OpenJobDefaultAlarm = openjobdefaultalarm end |
Instance Attribute Details
#ClusterId ⇒ Object
1270 1271 1272 |
# File 'lib/v20190422/models.rb', line 1270 def ClusterId @ClusterId end |
#ClusterType ⇒ Object
1270 1271 1272 |
# File 'lib/v20190422/models.rb', line 1270 def ClusterType @ClusterType end |
#CuMem ⇒ Object
1270 1271 1272 |
# File 'lib/v20190422/models.rb', line 1270 def CuMem @CuMem end |
#Description ⇒ Object
1270 1271 1272 |
# File 'lib/v20190422/models.rb', line 1270 def Description @Description end |
#FlinkVersion ⇒ Object
1270 1271 1272 |
# File 'lib/v20190422/models.rb', line 1270 def FlinkVersion @FlinkVersion end |
#FolderId ⇒ Object
1270 1271 1272 |
# File 'lib/v20190422/models.rb', line 1270 def FolderId @FolderId end |
#JobType ⇒ Object
1270 1271 1272 |
# File 'lib/v20190422/models.rb', line 1270 def JobType @JobType end |
#Name ⇒ Object
1270 1271 1272 |
# File 'lib/v20190422/models.rb', line 1270 def Name @Name end |
#OpenJobDefaultAlarm ⇒ Object
1270 1271 1272 |
# File 'lib/v20190422/models.rb', line 1270 def OpenJobDefaultAlarm @OpenJobDefaultAlarm end |
#Remark ⇒ Object
1270 1271 1272 |
# File 'lib/v20190422/models.rb', line 1270 def Remark @Remark end |
#Tags ⇒ Object
1270 1271 1272 |
# File 'lib/v20190422/models.rb', line 1270 def Tags @Tags end |
#WorkSpaceId ⇒ Object
1270 1271 1272 |
# File 'lib/v20190422/models.rb', line 1270 def WorkSpaceId @WorkSpaceId end |
Instance Method Details
#deserialize(params) ⇒ Object
1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 |
# File 'lib/v20190422/models.rb', line 1287 def deserialize(params) @Name = params['Name'] @JobType = params['JobType'] @ClusterType = params['ClusterType'] @ClusterId = params['ClusterId'] @CuMem = params['CuMem'] @Remark = params['Remark'] @FolderId = params['FolderId'] @FlinkVersion = params['FlinkVersion'] @WorkSpaceId = params['WorkSpaceId'] unless params['Tags'].nil? @Tags = [] params['Tags'].each do |i| tag_tmp = Tag.new tag_tmp.deserialize(i) @Tags << tag_tmp end end @Description = params['Description'] @OpenJobDefaultAlarm = params['OpenJobDefaultAlarm'] end |