Class: TencentCloud::Tem::V20201221::CreateResourceRequest

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

Overview

CreateResource请求参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(namespaceid = nil, resourcetype = nil, resourceid = nil, sourcechannel = nil) ⇒ CreateResourceRequest

Returns a new instance of CreateResourceRequest.



254
255
256
257
258
259
# File 'lib/v20201221/models.rb', line 254

def initialize(namespaceid=nil, resourcetype=nil, resourceid=nil, sourcechannel=nil)
  @NamespaceId = namespaceid
  @ResourceType = resourcetype
  @ResourceId = resourceid
  @SourceChannel = sourcechannel
end

Instance Attribute Details

#NamespaceIdObject

Parameters:

  • NamespaceId:

    命名空间 Id

  • ResourceType:

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

  • ResourceId:

    资源 Id

  • SourceChannel:

    来源渠道



252
253
254
# File 'lib/v20201221/models.rb', line 252

def NamespaceId
  @NamespaceId
end

#ResourceIdObject

Parameters:

  • NamespaceId:

    命名空间 Id

  • ResourceType:

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

  • ResourceId:

    资源 Id

  • SourceChannel:

    来源渠道



252
253
254
# File 'lib/v20201221/models.rb', line 252

def ResourceId
  @ResourceId
end

#ResourceTypeObject

Parameters:

  • NamespaceId:

    命名空间 Id

  • ResourceType:

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

  • ResourceId:

    资源 Id

  • SourceChannel:

    来源渠道



252
253
254
# File 'lib/v20201221/models.rb', line 252

def ResourceType
  @ResourceType
end

#SourceChannelObject

Parameters:

  • NamespaceId:

    命名空间 Id

  • ResourceType:

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

  • ResourceId:

    资源 Id

  • SourceChannel:

    来源渠道



252
253
254
# File 'lib/v20201221/models.rb', line 252

def SourceChannel
  @SourceChannel
end

Instance Method Details

#deserialize(params) ⇒ Object



261
262
263
264
265
266
# File 'lib/v20201221/models.rb', line 261

def deserialize(params)
  @NamespaceId = params['NamespaceId']
  @ResourceType = params['ResourceType']
  @ResourceId = params['ResourceId']
  @SourceChannel = params['SourceChannel']
end