Class: TencentCloud::Wedata::V20250806::CreateCodeFileRequest

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

Overview

CreateCodeFile请求参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(projectid = nil, codefilename = nil, parentfolderpath = nil, codefileconfig = nil, codefilecontent = nil) ⇒ CreateCodeFileRequest

Returns a new instance of CreateCodeFileRequest.



712
713
714
715
716
717
718
# File 'lib/v20250806/models.rb', line 712

def initialize(projectid=nil, codefilename=nil, parentfolderpath=nil, codefileconfig=nil, codefilecontent=nil)
  @ProjectId = projectid
  @CodeFileName = codefilename
  @ParentFolderPath = parentfolderpath
  @CodeFileConfig = codefileconfig
  @CodeFileContent = codefilecontent
end

Instance Attribute Details

#CodeFileConfigObject

Parameters:

  • ProjectId:

    项目ID

  • CodeFileName:

    代码文件名称

  • ParentFolderPath:

    父文件夹path,例如/aaa/bbb/ccc,路径头需带斜杠,根目录传/

  • CodeFileConfig:

    代码文件配置

  • CodeFileContent:

    代码文件内容



710
711
712
# File 'lib/v20250806/models.rb', line 710

def CodeFileConfig
  @CodeFileConfig
end

#CodeFileContentObject

Parameters:

  • ProjectId:

    项目ID

  • CodeFileName:

    代码文件名称

  • ParentFolderPath:

    父文件夹path,例如/aaa/bbb/ccc,路径头需带斜杠,根目录传/

  • CodeFileConfig:

    代码文件配置

  • CodeFileContent:

    代码文件内容



710
711
712
# File 'lib/v20250806/models.rb', line 710

def CodeFileContent
  @CodeFileContent
end

#CodeFileNameObject

Parameters:

  • ProjectId:

    项目ID

  • CodeFileName:

    代码文件名称

  • ParentFolderPath:

    父文件夹path,例如/aaa/bbb/ccc,路径头需带斜杠,根目录传/

  • CodeFileConfig:

    代码文件配置

  • CodeFileContent:

    代码文件内容



710
711
712
# File 'lib/v20250806/models.rb', line 710

def CodeFileName
  @CodeFileName
end

#ParentFolderPathObject

Parameters:

  • ProjectId:

    项目ID

  • CodeFileName:

    代码文件名称

  • ParentFolderPath:

    父文件夹path,例如/aaa/bbb/ccc,路径头需带斜杠,根目录传/

  • CodeFileConfig:

    代码文件配置

  • CodeFileContent:

    代码文件内容



710
711
712
# File 'lib/v20250806/models.rb', line 710

def ParentFolderPath
  @ParentFolderPath
end

#ProjectIdObject

Parameters:

  • ProjectId:

    项目ID

  • CodeFileName:

    代码文件名称

  • ParentFolderPath:

    父文件夹path,例如/aaa/bbb/ccc,路径头需带斜杠,根目录传/

  • CodeFileConfig:

    代码文件配置

  • CodeFileContent:

    代码文件内容



710
711
712
# File 'lib/v20250806/models.rb', line 710

def ProjectId
  @ProjectId
end

Instance Method Details

#deserialize(params) ⇒ Object



720
721
722
723
724
725
726
727
728
729
# File 'lib/v20250806/models.rb', line 720

def deserialize(params)
  @ProjectId = params['ProjectId']
  @CodeFileName = params['CodeFileName']
  @ParentFolderPath = params['ParentFolderPath']
  unless params['CodeFileConfig'].nil?
    @CodeFileConfig = CodeFileConfig.new
    @CodeFileConfig.deserialize(params['CodeFileConfig'])
  end
  @CodeFileContent = params['CodeFileContent']
end