Class: TencentCloud::Tem::V20210701::CreateResourceRequest

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

Overview

CreateResource请求参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(environmentid = nil, resourcetype = nil, resourceid = nil, sourcechannel = nil, resourcefrom = nil, resourceconfig = nil) ⇒ CreateResourceRequest

Returns a new instance of CreateResourceRequest.



687
688
689
690
691
692
693
694
# File 'lib/v20210701/models.rb', line 687

def initialize(environmentid=nil, resourcetype=nil, resourceid=nil, sourcechannel=nil, resourcefrom=nil, resourceconfig=nil)
  @EnvironmentId = environmentid
  @ResourceType = resourcetype
  @ResourceId = resourceid
  @SourceChannel = sourcechannel
  @ResourceFrom = resourcefrom
  @ResourceConfig = resourceconfig
end

Instance Attribute Details

#EnvironmentIdObject

Parameters:

  • EnvironmentId:

    环境 Id

  • ResourceType:

    资源类型,目前支持文件系统:CFS;注册中心:TSE_SRE

  • ResourceId:

    资源 Id

  • SourceChannel:

    来源渠道

  • ResourceFrom:

    资源来源,目前支持:existing,已有资源;creating,自动创建

  • ResourceConfig:

    设置 resource 的额外配置



685
686
687
# File 'lib/v20210701/models.rb', line 685

def EnvironmentId
  @EnvironmentId
end

#ResourceConfigObject

Parameters:

  • EnvironmentId:

    环境 Id

  • ResourceType:

    资源类型,目前支持文件系统:CFS;注册中心:TSE_SRE

  • ResourceId:

    资源 Id

  • SourceChannel:

    来源渠道

  • ResourceFrom:

    资源来源,目前支持:existing,已有资源;creating,自动创建

  • ResourceConfig:

    设置 resource 的额外配置



685
686
687
# File 'lib/v20210701/models.rb', line 685

def ResourceConfig
  @ResourceConfig
end

#ResourceFromObject

Parameters:

  • EnvironmentId:

    环境 Id

  • ResourceType:

    资源类型,目前支持文件系统:CFS;注册中心:TSE_SRE

  • ResourceId:

    资源 Id

  • SourceChannel:

    来源渠道

  • ResourceFrom:

    资源来源,目前支持:existing,已有资源;creating,自动创建

  • ResourceConfig:

    设置 resource 的额外配置



685
686
687
# File 'lib/v20210701/models.rb', line 685

def ResourceFrom
  @ResourceFrom
end

#ResourceIdObject

Parameters:

  • EnvironmentId:

    环境 Id

  • ResourceType:

    资源类型,目前支持文件系统:CFS;注册中心:TSE_SRE

  • ResourceId:

    资源 Id

  • SourceChannel:

    来源渠道

  • ResourceFrom:

    资源来源,目前支持:existing,已有资源;creating,自动创建

  • ResourceConfig:

    设置 resource 的额外配置



685
686
687
# File 'lib/v20210701/models.rb', line 685

def ResourceId
  @ResourceId
end

#ResourceTypeObject

Parameters:

  • EnvironmentId:

    环境 Id

  • ResourceType:

    资源类型,目前支持文件系统:CFS;注册中心:TSE_SRE

  • ResourceId:

    资源 Id

  • SourceChannel:

    来源渠道

  • ResourceFrom:

    资源来源,目前支持:existing,已有资源;creating,自动创建

  • ResourceConfig:

    设置 resource 的额外配置



685
686
687
# File 'lib/v20210701/models.rb', line 685

def ResourceType
  @ResourceType
end

#SourceChannelObject

Parameters:

  • EnvironmentId:

    环境 Id

  • ResourceType:

    资源类型,目前支持文件系统:CFS;注册中心:TSE_SRE

  • ResourceId:

    资源 Id

  • SourceChannel:

    来源渠道

  • ResourceFrom:

    资源来源,目前支持:existing,已有资源;creating,自动创建

  • ResourceConfig:

    设置 resource 的额外配置



685
686
687
# File 'lib/v20210701/models.rb', line 685

def SourceChannel
  @SourceChannel
end

Instance Method Details

#deserialize(params) ⇒ Object



696
697
698
699
700
701
702
703
# File 'lib/v20210701/models.rb', line 696

def deserialize(params)
  @EnvironmentId = params['EnvironmentId']
  @ResourceType = params['ResourceType']
  @ResourceId = params['ResourceId']
  @SourceChannel = params['SourceChannel']
  @ResourceFrom = params['ResourceFrom']
  @ResourceConfig = params['ResourceConfig']
end