Class: TencentCloud::Tat::V20201028::CommandDocument

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

Overview

命令执行详情。

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(content = nil, commandtype = nil, timeout = nil, workingdirectory = nil, username = nil, outputcosbucketurl = nil, outputcoskeyprefix = nil) ⇒ CommandDocument

Returns a new instance of CommandDocument.



221
222
223
224
225
226
227
228
229
# File 'lib/v20201028/models.rb', line 221

def initialize(content=nil, commandtype=nil, timeout=nil, workingdirectory=nil, username=nil, outputcosbucketurl=nil, outputcoskeyprefix=nil)
  @Content = content
  @CommandType = commandtype
  @Timeout = timeout
  @WorkingDirectory = workingdirectory
  @Username = username
  @OutputCOSBucketUrl = outputcosbucketurl
  @OutputCOSKeyPrefix = outputcoskeyprefix
end

Instance Attribute Details

#CommandTypeObject

Parameters:

  • Content:

    Base64 编码后的执行命令。

  • CommandType:

    命令类型。取值为 SHELL、POWERSHELL、BAT 之一。

  • Timeout:

    超时时间。单位:秒。

  • WorkingDirectory:

    执行路径。

  • Username:

    执行用户。

  • OutputCOSBucketUrl:

    保存输出的 COS Bucket 链接。

  • OutputCOSKeyPrefix:

    保存输出的文件名称前缀。



219
220
221
# File 'lib/v20201028/models.rb', line 219

def CommandType
  @CommandType
end

#ContentObject

Parameters:

  • Content:

    Base64 编码后的执行命令。

  • CommandType:

    命令类型。取值为 SHELL、POWERSHELL、BAT 之一。

  • Timeout:

    超时时间。单位:秒。

  • WorkingDirectory:

    执行路径。

  • Username:

    执行用户。

  • OutputCOSBucketUrl:

    保存输出的 COS Bucket 链接。

  • OutputCOSKeyPrefix:

    保存输出的文件名称前缀。



219
220
221
# File 'lib/v20201028/models.rb', line 219

def Content
  @Content
end

#OutputCOSBucketUrlObject

Parameters:

  • Content:

    Base64 编码后的执行命令。

  • CommandType:

    命令类型。取值为 SHELL、POWERSHELL、BAT 之一。

  • Timeout:

    超时时间。单位:秒。

  • WorkingDirectory:

    执行路径。

  • Username:

    执行用户。

  • OutputCOSBucketUrl:

    保存输出的 COS Bucket 链接。

  • OutputCOSKeyPrefix:

    保存输出的文件名称前缀。



219
220
221
# File 'lib/v20201028/models.rb', line 219

def OutputCOSBucketUrl
  @OutputCOSBucketUrl
end

#OutputCOSKeyPrefixObject

Parameters:

  • Content:

    Base64 编码后的执行命令。

  • CommandType:

    命令类型。取值为 SHELL、POWERSHELL、BAT 之一。

  • Timeout:

    超时时间。单位:秒。

  • WorkingDirectory:

    执行路径。

  • Username:

    执行用户。

  • OutputCOSBucketUrl:

    保存输出的 COS Bucket 链接。

  • OutputCOSKeyPrefix:

    保存输出的文件名称前缀。



219
220
221
# File 'lib/v20201028/models.rb', line 219

def OutputCOSKeyPrefix
  @OutputCOSKeyPrefix
end

#TimeoutObject

Parameters:

  • Content:

    Base64 编码后的执行命令。

  • CommandType:

    命令类型。取值为 SHELL、POWERSHELL、BAT 之一。

  • Timeout:

    超时时间。单位:秒。

  • WorkingDirectory:

    执行路径。

  • Username:

    执行用户。

  • OutputCOSBucketUrl:

    保存输出的 COS Bucket 链接。

  • OutputCOSKeyPrefix:

    保存输出的文件名称前缀。



219
220
221
# File 'lib/v20201028/models.rb', line 219

def Timeout
  @Timeout
end

#UsernameObject

Parameters:

  • Content:

    Base64 编码后的执行命令。

  • CommandType:

    命令类型。取值为 SHELL、POWERSHELL、BAT 之一。

  • Timeout:

    超时时间。单位:秒。

  • WorkingDirectory:

    执行路径。

  • Username:

    执行用户。

  • OutputCOSBucketUrl:

    保存输出的 COS Bucket 链接。

  • OutputCOSKeyPrefix:

    保存输出的文件名称前缀。



219
220
221
# File 'lib/v20201028/models.rb', line 219

def Username
  @Username
end

#WorkingDirectoryObject

Parameters:

  • Content:

    Base64 编码后的执行命令。

  • CommandType:

    命令类型。取值为 SHELL、POWERSHELL、BAT 之一。

  • Timeout:

    超时时间。单位:秒。

  • WorkingDirectory:

    执行路径。

  • Username:

    执行用户。

  • OutputCOSBucketUrl:

    保存输出的 COS Bucket 链接。

  • OutputCOSKeyPrefix:

    保存输出的文件名称前缀。



219
220
221
# File 'lib/v20201028/models.rb', line 219

def WorkingDirectory
  @WorkingDirectory
end

Instance Method Details

#deserialize(params) ⇒ Object



231
232
233
234
235
236
237
238
239
# File 'lib/v20201028/models.rb', line 231

def deserialize(params)
  @Content = params['Content']
  @CommandType = params['CommandType']
  @Timeout = params['Timeout']
  @WorkingDirectory = params['WorkingDirectory']
  @Username = params['Username']
  @OutputCOSBucketUrl = params['OutputCOSBucketUrl']
  @OutputCOSKeyPrefix = params['OutputCOSKeyPrefix']
end