Class: TencentCloud::Cls::V20201016::CreateLogsetRequest

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

Overview

CreateLogset请求参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(logsetname = nil, tags = nil, logsetid = nil) ⇒ CreateLogsetRequest

Returns a new instance of CreateLogsetRequest.



3459
3460
3461
3462
3463
# File 'lib/v20201016/models.rb', line 3459

def initialize(logsetname=nil, tags=nil, logsetid=nil)
  @LogsetName = logsetname
  @Tags = tags
  @LogsetId = logsetid
end

Instance Attribute Details

#LogsetIdObject

  • 用户自定义部分仅支持小写字母、数字和-,且不能以-开头和结尾,长度为3至40字符。

  • 尾部需要使用-拼接用户APPID,APPID可在console.cloud.tencent.com/developer页面查询。

  • 如果指定该字段,需保证全地域唯一



3457
3458
3459
# File 'lib/v20201016/models.rb', line 3457

def LogsetId
  @LogsetId
end

#LogsetNameObject

  • 用户自定义部分仅支持小写字母、数字和-,且不能以-开头和结尾,长度为3至40字符。

  • 尾部需要使用-拼接用户APPID,APPID可在console.cloud.tencent.com/developer页面查询。

  • 如果指定该字段,需保证全地域唯一



3457
3458
3459
# File 'lib/v20201016/models.rb', line 3457

def LogsetName
  @LogsetName
end

#TagsObject

  • 用户自定义部分仅支持小写字母、数字和-,且不能以-开头和结尾,长度为3至40字符。

  • 尾部需要使用-拼接用户APPID,APPID可在console.cloud.tencent.com/developer页面查询。

  • 如果指定该字段,需保证全地域唯一



3457
3458
3459
# File 'lib/v20201016/models.rb', line 3457

def Tags
  @Tags
end

Instance Method Details

#deserialize(params) ⇒ Object



3465
3466
3467
3468
3469
3470
3471
3472
3473
3474
3475
3476
# File 'lib/v20201016/models.rb', line 3465

def deserialize(params)
  @LogsetName = params['LogsetName']
  unless params['Tags'].nil?
    @Tags = []
    params['Tags'].each do |i|
      tag_tmp = Tag.new
      tag_tmp.deserialize(i)
      @Tags << tag_tmp
    end
  end
  @LogsetId = params['LogsetId']
end