Class: TencentCloud::Cloudstudio::V20230508::CreateWorkspaceRequest

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

Overview

CreateWorkspace请求参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name = nil, description = nil, specs = nil, image = nil, repository = nil, envs = nil, extensions = nil, lifecycle = nil, tenantappid = nil, tenantuin = nil, tenantuniqvpcid = nil, tenantsubnetid = nil, region = nil) ⇒ CreateWorkspaceRequest

Returns a new instance of CreateWorkspaceRequest.



51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
# File 'lib/v20230508/models.rb', line 51

def initialize(name=nil, description=nil, specs=nil, image=nil, repository=nil, envs=nil, extensions=nil, lifecycle=nil, tenantappid=nil, tenantuin=nil, tenantuniqvpcid=nil, tenantsubnetid=nil, region=nil)
  @Name = name
  @Description = description
  @Specs = specs
  @Image = image
  @Repository = repository
  @Envs = envs
  @Extensions = extensions
  @Lifecycle = lifecycle
  @TenantAppId = tenantappid
  @TenantUin = tenantuin
  @TenantUniqVpcId = tenantuniqvpcid
  @TenantSubnetId = tenantsubnetid
  @Region = region
end

Instance Attribute Details

#DescriptionObject

Parameters:

  • Name:

    工作空间名称, 长度限制 2~64

  • Description:

    工作空间描述, 长度限制 0~255

  • Specs:

    工作空间规格。Standard: 2C4G, Calculation: 4C8G, Profession: 8C16G. 默认是 Standard。

  • Image:

    工作空间基础镜像名称, 默认会使用 All In One 镜像, 长度限制 1~255

  • Repository:

    Git 仓库. 工作空间启动时会自动克隆该仓库

  • Envs:

    环境变量. 会被注入到工作空间中

  • Extensions:

    预装插件. 工作空间启动时, 会自动安装这些插件。长度限制: 0~10

  • Lifecycle:

    工作空间生命周期钩子. 分为三个阶段 init, start, destroy. 分别表示工作空间数据初始化阶段, 工作空间启动阶段, 工作空间关闭阶段. 用户可以自定义 shell 命令.

  • TenantAppId:

    应用名称

  • TenantUin:

    用户UIN

  • TenantUniqVpcId:

    VPCID

  • TenantSubnetId:

    子网ID

  • Region:

    地域



49
50
51
# File 'lib/v20230508/models.rb', line 49

def Description
  @Description
end

#EnvsObject

Parameters:

  • Name:

    工作空间名称, 长度限制 2~64

  • Description:

    工作空间描述, 长度限制 0~255

  • Specs:

    工作空间规格。Standard: 2C4G, Calculation: 4C8G, Profession: 8C16G. 默认是 Standard。

  • Image:

    工作空间基础镜像名称, 默认会使用 All In One 镜像, 长度限制 1~255

  • Repository:

    Git 仓库. 工作空间启动时会自动克隆该仓库

  • Envs:

    环境变量. 会被注入到工作空间中

  • Extensions:

    预装插件. 工作空间启动时, 会自动安装这些插件。长度限制: 0~10

  • Lifecycle:

    工作空间生命周期钩子. 分为三个阶段 init, start, destroy. 分别表示工作空间数据初始化阶段, 工作空间启动阶段, 工作空间关闭阶段. 用户可以自定义 shell 命令.

  • TenantAppId:

    应用名称

  • TenantUin:

    用户UIN

  • TenantUniqVpcId:

    VPCID

  • TenantSubnetId:

    子网ID

  • Region:

    地域



49
50
51
# File 'lib/v20230508/models.rb', line 49

def Envs
  @Envs
end

#ExtensionsObject

Parameters:

  • Name:

    工作空间名称, 长度限制 2~64

  • Description:

    工作空间描述, 长度限制 0~255

  • Specs:

    工作空间规格。Standard: 2C4G, Calculation: 4C8G, Profession: 8C16G. 默认是 Standard。

  • Image:

    工作空间基础镜像名称, 默认会使用 All In One 镜像, 长度限制 1~255

  • Repository:

    Git 仓库. 工作空间启动时会自动克隆该仓库

  • Envs:

    环境变量. 会被注入到工作空间中

  • Extensions:

    预装插件. 工作空间启动时, 会自动安装这些插件。长度限制: 0~10

  • Lifecycle:

    工作空间生命周期钩子. 分为三个阶段 init, start, destroy. 分别表示工作空间数据初始化阶段, 工作空间启动阶段, 工作空间关闭阶段. 用户可以自定义 shell 命令.

  • TenantAppId:

    应用名称

  • TenantUin:

    用户UIN

  • TenantUniqVpcId:

    VPCID

  • TenantSubnetId:

    子网ID

  • Region:

    地域



49
50
51
# File 'lib/v20230508/models.rb', line 49

def Extensions
  @Extensions
end

#ImageObject

Parameters:

  • Name:

    工作空间名称, 长度限制 2~64

  • Description:

    工作空间描述, 长度限制 0~255

  • Specs:

    工作空间规格。Standard: 2C4G, Calculation: 4C8G, Profession: 8C16G. 默认是 Standard。

  • Image:

    工作空间基础镜像名称, 默认会使用 All In One 镜像, 长度限制 1~255

  • Repository:

    Git 仓库. 工作空间启动时会自动克隆该仓库

  • Envs:

    环境变量. 会被注入到工作空间中

  • Extensions:

    预装插件. 工作空间启动时, 会自动安装这些插件。长度限制: 0~10

  • Lifecycle:

    工作空间生命周期钩子. 分为三个阶段 init, start, destroy. 分别表示工作空间数据初始化阶段, 工作空间启动阶段, 工作空间关闭阶段. 用户可以自定义 shell 命令.

  • TenantAppId:

    应用名称

  • TenantUin:

    用户UIN

  • TenantUniqVpcId:

    VPCID

  • TenantSubnetId:

    子网ID

  • Region:

    地域



49
50
51
# File 'lib/v20230508/models.rb', line 49

def Image
  @Image
end

#LifecycleObject

Parameters:

  • Name:

    工作空间名称, 长度限制 2~64

  • Description:

    工作空间描述, 长度限制 0~255

  • Specs:

    工作空间规格。Standard: 2C4G, Calculation: 4C8G, Profession: 8C16G. 默认是 Standard。

  • Image:

    工作空间基础镜像名称, 默认会使用 All In One 镜像, 长度限制 1~255

  • Repository:

    Git 仓库. 工作空间启动时会自动克隆该仓库

  • Envs:

    环境变量. 会被注入到工作空间中

  • Extensions:

    预装插件. 工作空间启动时, 会自动安装这些插件。长度限制: 0~10

  • Lifecycle:

    工作空间生命周期钩子. 分为三个阶段 init, start, destroy. 分别表示工作空间数据初始化阶段, 工作空间启动阶段, 工作空间关闭阶段. 用户可以自定义 shell 命令.

  • TenantAppId:

    应用名称

  • TenantUin:

    用户UIN

  • TenantUniqVpcId:

    VPCID

  • TenantSubnetId:

    子网ID

  • Region:

    地域



49
50
51
# File 'lib/v20230508/models.rb', line 49

def Lifecycle
  @Lifecycle
end

#NameObject

Parameters:

  • Name:

    工作空间名称, 长度限制 2~64

  • Description:

    工作空间描述, 长度限制 0~255

  • Specs:

    工作空间规格。Standard: 2C4G, Calculation: 4C8G, Profession: 8C16G. 默认是 Standard。

  • Image:

    工作空间基础镜像名称, 默认会使用 All In One 镜像, 长度限制 1~255

  • Repository:

    Git 仓库. 工作空间启动时会自动克隆该仓库

  • Envs:

    环境变量. 会被注入到工作空间中

  • Extensions:

    预装插件. 工作空间启动时, 会自动安装这些插件。长度限制: 0~10

  • Lifecycle:

    工作空间生命周期钩子. 分为三个阶段 init, start, destroy. 分别表示工作空间数据初始化阶段, 工作空间启动阶段, 工作空间关闭阶段. 用户可以自定义 shell 命令.

  • TenantAppId:

    应用名称

  • TenantUin:

    用户UIN

  • TenantUniqVpcId:

    VPCID

  • TenantSubnetId:

    子网ID

  • Region:

    地域



49
50
51
# File 'lib/v20230508/models.rb', line 49

def Name
  @Name
end

#RegionObject

Parameters:

  • Name:

    工作空间名称, 长度限制 2~64

  • Description:

    工作空间描述, 长度限制 0~255

  • Specs:

    工作空间规格。Standard: 2C4G, Calculation: 4C8G, Profession: 8C16G. 默认是 Standard。

  • Image:

    工作空间基础镜像名称, 默认会使用 All In One 镜像, 长度限制 1~255

  • Repository:

    Git 仓库. 工作空间启动时会自动克隆该仓库

  • Envs:

    环境变量. 会被注入到工作空间中

  • Extensions:

    预装插件. 工作空间启动时, 会自动安装这些插件。长度限制: 0~10

  • Lifecycle:

    工作空间生命周期钩子. 分为三个阶段 init, start, destroy. 分别表示工作空间数据初始化阶段, 工作空间启动阶段, 工作空间关闭阶段. 用户可以自定义 shell 命令.

  • TenantAppId:

    应用名称

  • TenantUin:

    用户UIN

  • TenantUniqVpcId:

    VPCID

  • TenantSubnetId:

    子网ID

  • Region:

    地域



49
50
51
# File 'lib/v20230508/models.rb', line 49

def Region
  @Region
end

#RepositoryObject

Parameters:

  • Name:

    工作空间名称, 长度限制 2~64

  • Description:

    工作空间描述, 长度限制 0~255

  • Specs:

    工作空间规格。Standard: 2C4G, Calculation: 4C8G, Profession: 8C16G. 默认是 Standard。

  • Image:

    工作空间基础镜像名称, 默认会使用 All In One 镜像, 长度限制 1~255

  • Repository:

    Git 仓库. 工作空间启动时会自动克隆该仓库

  • Envs:

    环境变量. 会被注入到工作空间中

  • Extensions:

    预装插件. 工作空间启动时, 会自动安装这些插件。长度限制: 0~10

  • Lifecycle:

    工作空间生命周期钩子. 分为三个阶段 init, start, destroy. 分别表示工作空间数据初始化阶段, 工作空间启动阶段, 工作空间关闭阶段. 用户可以自定义 shell 命令.

  • TenantAppId:

    应用名称

  • TenantUin:

    用户UIN

  • TenantUniqVpcId:

    VPCID

  • TenantSubnetId:

    子网ID

  • Region:

    地域



49
50
51
# File 'lib/v20230508/models.rb', line 49

def Repository
  @Repository
end

#SpecsObject

Parameters:

  • Name:

    工作空间名称, 长度限制 2~64

  • Description:

    工作空间描述, 长度限制 0~255

  • Specs:

    工作空间规格。Standard: 2C4G, Calculation: 4C8G, Profession: 8C16G. 默认是 Standard。

  • Image:

    工作空间基础镜像名称, 默认会使用 All In One 镜像, 长度限制 1~255

  • Repository:

    Git 仓库. 工作空间启动时会自动克隆该仓库

  • Envs:

    环境变量. 会被注入到工作空间中

  • Extensions:

    预装插件. 工作空间启动时, 会自动安装这些插件。长度限制: 0~10

  • Lifecycle:

    工作空间生命周期钩子. 分为三个阶段 init, start, destroy. 分别表示工作空间数据初始化阶段, 工作空间启动阶段, 工作空间关闭阶段. 用户可以自定义 shell 命令.

  • TenantAppId:

    应用名称

  • TenantUin:

    用户UIN

  • TenantUniqVpcId:

    VPCID

  • TenantSubnetId:

    子网ID

  • Region:

    地域



49
50
51
# File 'lib/v20230508/models.rb', line 49

def Specs
  @Specs
end

#TenantAppIdObject

Parameters:

  • Name:

    工作空间名称, 长度限制 2~64

  • Description:

    工作空间描述, 长度限制 0~255

  • Specs:

    工作空间规格。Standard: 2C4G, Calculation: 4C8G, Profession: 8C16G. 默认是 Standard。

  • Image:

    工作空间基础镜像名称, 默认会使用 All In One 镜像, 长度限制 1~255

  • Repository:

    Git 仓库. 工作空间启动时会自动克隆该仓库

  • Envs:

    环境变量. 会被注入到工作空间中

  • Extensions:

    预装插件. 工作空间启动时, 会自动安装这些插件。长度限制: 0~10

  • Lifecycle:

    工作空间生命周期钩子. 分为三个阶段 init, start, destroy. 分别表示工作空间数据初始化阶段, 工作空间启动阶段, 工作空间关闭阶段. 用户可以自定义 shell 命令.

  • TenantAppId:

    应用名称

  • TenantUin:

    用户UIN

  • TenantUniqVpcId:

    VPCID

  • TenantSubnetId:

    子网ID

  • Region:

    地域



49
50
51
# File 'lib/v20230508/models.rb', line 49

def TenantAppId
  @TenantAppId
end

#TenantSubnetIdObject

Parameters:

  • Name:

    工作空间名称, 长度限制 2~64

  • Description:

    工作空间描述, 长度限制 0~255

  • Specs:

    工作空间规格。Standard: 2C4G, Calculation: 4C8G, Profession: 8C16G. 默认是 Standard。

  • Image:

    工作空间基础镜像名称, 默认会使用 All In One 镜像, 长度限制 1~255

  • Repository:

    Git 仓库. 工作空间启动时会自动克隆该仓库

  • Envs:

    环境变量. 会被注入到工作空间中

  • Extensions:

    预装插件. 工作空间启动时, 会自动安装这些插件。长度限制: 0~10

  • Lifecycle:

    工作空间生命周期钩子. 分为三个阶段 init, start, destroy. 分别表示工作空间数据初始化阶段, 工作空间启动阶段, 工作空间关闭阶段. 用户可以自定义 shell 命令.

  • TenantAppId:

    应用名称

  • TenantUin:

    用户UIN

  • TenantUniqVpcId:

    VPCID

  • TenantSubnetId:

    子网ID

  • Region:

    地域



49
50
51
# File 'lib/v20230508/models.rb', line 49

def TenantSubnetId
  @TenantSubnetId
end

#TenantUinObject

Parameters:

  • Name:

    工作空间名称, 长度限制 2~64

  • Description:

    工作空间描述, 长度限制 0~255

  • Specs:

    工作空间规格。Standard: 2C4G, Calculation: 4C8G, Profession: 8C16G. 默认是 Standard。

  • Image:

    工作空间基础镜像名称, 默认会使用 All In One 镜像, 长度限制 1~255

  • Repository:

    Git 仓库. 工作空间启动时会自动克隆该仓库

  • Envs:

    环境变量. 会被注入到工作空间中

  • Extensions:

    预装插件. 工作空间启动时, 会自动安装这些插件。长度限制: 0~10

  • Lifecycle:

    工作空间生命周期钩子. 分为三个阶段 init, start, destroy. 分别表示工作空间数据初始化阶段, 工作空间启动阶段, 工作空间关闭阶段. 用户可以自定义 shell 命令.

  • TenantAppId:

    应用名称

  • TenantUin:

    用户UIN

  • TenantUniqVpcId:

    VPCID

  • TenantSubnetId:

    子网ID

  • Region:

    地域



49
50
51
# File 'lib/v20230508/models.rb', line 49

def TenantUin
  @TenantUin
end

#TenantUniqVpcIdObject

Parameters:

  • Name:

    工作空间名称, 长度限制 2~64

  • Description:

    工作空间描述, 长度限制 0~255

  • Specs:

    工作空间规格。Standard: 2C4G, Calculation: 4C8G, Profession: 8C16G. 默认是 Standard。

  • Image:

    工作空间基础镜像名称, 默认会使用 All In One 镜像, 长度限制 1~255

  • Repository:

    Git 仓库. 工作空间启动时会自动克隆该仓库

  • Envs:

    环境变量. 会被注入到工作空间中

  • Extensions:

    预装插件. 工作空间启动时, 会自动安装这些插件。长度限制: 0~10

  • Lifecycle:

    工作空间生命周期钩子. 分为三个阶段 init, start, destroy. 分别表示工作空间数据初始化阶段, 工作空间启动阶段, 工作空间关闭阶段. 用户可以自定义 shell 命令.

  • TenantAppId:

    应用名称

  • TenantUin:

    用户UIN

  • TenantUniqVpcId:

    VPCID

  • TenantSubnetId:

    子网ID

  • Region:

    地域



49
50
51
# File 'lib/v20230508/models.rb', line 49

def TenantUniqVpcId
  @TenantUniqVpcId
end

Instance Method Details

#deserialize(params) ⇒ Object



67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
# File 'lib/v20230508/models.rb', line 67

def deserialize(params)
  @Name = params['Name']
  @Description = params['Description']
  @Specs = params['Specs']
  @Image = params['Image']
  unless params['Repository'].nil?
    @Repository = GitRepository.new
    @Repository.deserialize(params['Repository'])
  end
  unless params['Envs'].nil?
    @Envs = []
    params['Envs'].each do |i|
      env_tmp = Env.new
      env_tmp.deserialize(i)
      @Envs << env_tmp
    end
  end
  @Extensions = params['Extensions']
  unless params['Lifecycle'].nil?
    @Lifecycle = LifeCycle.new
    @Lifecycle.deserialize(params['Lifecycle'])
  end
  @TenantAppId = params['TenantAppId']
  @TenantUin = params['TenantUin']
  @TenantUniqVpcId = params['TenantUniqVpcId']
  @TenantSubnetId = params['TenantSubnetId']
  @Region = params['Region']
end