Class: TencentCloud::Cloudstudio::V20230508::CreateWorkspaceRequest
- Inherits:
-
TencentCloud::Common::AbstractModel
- Object
- TencentCloud::Common::AbstractModel
- TencentCloud::Cloudstudio::V20230508::CreateWorkspaceRequest
- Defined in:
- lib/v20230508/models.rb
Overview
CreateWorkspace请求参数结构体
Instance Attribute Summary collapse
- #Description ⇒ Object
- #Envs ⇒ Object
- #Extensions ⇒ Object
- #Image ⇒ Object
- #Lifecycle ⇒ Object
- #Name ⇒ Object
- #Region ⇒ Object
- #Repository ⇒ Object
- #Specs ⇒ Object
- #TenantAppId ⇒ Object
- #TenantSubnetId ⇒ Object
- #TenantUin ⇒ Object
- #TenantUniqVpcId ⇒ Object
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#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
constructor
A new instance of CreateWorkspaceRequest.
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
#Description ⇒ Object
49 50 51 |
# File 'lib/v20230508/models.rb', line 49 def Description @Description end |
#Envs ⇒ Object
49 50 51 |
# File 'lib/v20230508/models.rb', line 49 def Envs @Envs end |
#Extensions ⇒ Object
49 50 51 |
# File 'lib/v20230508/models.rb', line 49 def Extensions @Extensions end |
#Image ⇒ Object
49 50 51 |
# File 'lib/v20230508/models.rb', line 49 def Image @Image end |
#Lifecycle ⇒ Object
49 50 51 |
# File 'lib/v20230508/models.rb', line 49 def Lifecycle @Lifecycle end |
#Name ⇒ Object
49 50 51 |
# File 'lib/v20230508/models.rb', line 49 def Name @Name end |
#Region ⇒ Object
49 50 51 |
# File 'lib/v20230508/models.rb', line 49 def Region @Region end |
#Repository ⇒ Object
49 50 51 |
# File 'lib/v20230508/models.rb', line 49 def Repository @Repository end |
#Specs ⇒ Object
49 50 51 |
# File 'lib/v20230508/models.rb', line 49 def Specs @Specs end |
#TenantAppId ⇒ Object
49 50 51 |
# File 'lib/v20230508/models.rb', line 49 def TenantAppId @TenantAppId end |
#TenantSubnetId ⇒ Object
49 50 51 |
# File 'lib/v20230508/models.rb', line 49 def TenantSubnetId @TenantSubnetId end |
#TenantUin ⇒ Object
49 50 51 |
# File 'lib/v20230508/models.rb', line 49 def TenantUin @TenantUin end |
#TenantUniqVpcId ⇒ Object
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 |