Class: TencentCloud::Tat::V20201028::CreateInvokerRequest

Inherits:
Common::AbstractModel
  • Object
show all
Defined in:
lib/v20201028/models.rb

Overview

CreateInvoker请求参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name = nil, type = nil, commandid = nil, instanceids = nil, username = nil, parameters = nil, schedulesettings = nil, tags = nil) ⇒ CreateInvokerRequest

Returns a new instance of CreateInvokerRequest.



391
392
393
394
395
396
397
398
399
400
# File 'lib/v20201028/models.rb', line 391

def initialize(name=nil, type=nil, commandid=nil, instanceids=nil, username=nil, parameters=nil, schedulesettings=nil, tags=nil)
  @Name = name
  @Type = type
  @CommandId = commandid
  @InstanceIds = instanceids
  @Username = username
  @Parameters = parameters
  @ScheduleSettings = schedulesettings
  @Tags = tags
end

Instance Attribute Details

#CommandIdObject

当执行器类型为 SCHEDULE 时,必须指定此参数。

Parameters:

  • Tags:

    为命令关联的标签,列表长度不超过10



389
390
391
# File 'lib/v20201028/models.rb', line 389

def CommandId
  @CommandId
end

#InstanceIdsObject

当执行器类型为 SCHEDULE 时,必须指定此参数。

Parameters:

  • Tags:

    为命令关联的标签,列表长度不超过10



389
390
391
# File 'lib/v20201028/models.rb', line 389

def InstanceIds
  @InstanceIds
end

#NameObject

当执行器类型为 SCHEDULE 时,必须指定此参数。

Parameters:

  • Tags:

    为命令关联的标签,列表长度不超过10



389
390
391
# File 'lib/v20201028/models.rb', line 389

def Name
  @Name
end

#ParametersObject

当执行器类型为 SCHEDULE 时,必须指定此参数。

Parameters:

  • Tags:

    为命令关联的标签,列表长度不超过10



389
390
391
# File 'lib/v20201028/models.rb', line 389

def Parameters
  @Parameters
end

#ScheduleSettingsObject

当执行器类型为 SCHEDULE 时,必须指定此参数。

Parameters:

  • Tags:

    为命令关联的标签,列表长度不超过10



389
390
391
# File 'lib/v20201028/models.rb', line 389

def ScheduleSettings
  @ScheduleSettings
end

#TagsObject

当执行器类型为 SCHEDULE 时,必须指定此参数。

Parameters:

  • Tags:

    为命令关联的标签,列表长度不超过10



389
390
391
# File 'lib/v20201028/models.rb', line 389

def Tags
  @Tags
end

#TypeObject

当执行器类型为 SCHEDULE 时,必须指定此参数。

Parameters:

  • Tags:

    为命令关联的标签,列表长度不超过10



389
390
391
# File 'lib/v20201028/models.rb', line 389

def Type
  @Type
end

#UsernameObject

当执行器类型为 SCHEDULE 时,必须指定此参数。

Parameters:

  • Tags:

    为命令关联的标签,列表长度不超过10



389
390
391
# File 'lib/v20201028/models.rb', line 389

def Username
  @Username
end

Instance Method Details

#deserialize(params) ⇒ Object



402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
# File 'lib/v20201028/models.rb', line 402

def deserialize(params)
  @Name = params['Name']
  @Type = params['Type']
  @CommandId = params['CommandId']
  @InstanceIds = params['InstanceIds']
  @Username = params['Username']
  @Parameters = params['Parameters']
  unless params['ScheduleSettings'].nil?
    @ScheduleSettings = ScheduleSettings.new
    @ScheduleSettings.deserialize(params['ScheduleSettings'])
  end
  unless params['Tags'].nil?
    @Tags = []
    params['Tags'].each do |i|
      tag_tmp = Tag.new
      tag_tmp.deserialize(i)
      @Tags << tag_tmp
    end
  end
end