Class: TencentCloud::Cls::V20201016::CreateMachineGroupRequest

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

Overview

CreateMachineGroup请求参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(groupname = nil, machinegrouptype = nil, tags = nil, autoupdate = nil, updatestarttime = nil, updateendtime = nil, servicelogging = nil, delaycleanuptime = nil, metatags = nil, ostype = nil) ⇒ CreateMachineGroupRequest

Returns a new instance of CreateMachineGroupRequest.



4133
4134
4135
4136
4137
4138
4139
4140
4141
4142
4143
4144
# File 'lib/v20201016/models.rb', line 4133

def initialize(groupname=nil, machinegrouptype=nil, tags=nil, autoupdate=nil, updatestarttime=nil, updateendtime=nil, servicelogging=nil, delaycleanuptime=nil, metatags=nil, ostype=nil)
  @GroupName = groupname
  @MachineGroupType = machinegrouptype
  @Tags = tags
  @AutoUpdate = autoupdate
  @UpdateStartTime = updatestarttime
  @UpdateEndTime = updateendtime
  @ServiceLogging = servicelogging
  @DelayCleanupTime = delaycleanuptime
  @MetaTags = metatags
  @OSType = ostype
end

Instance Attribute Details

#AutoUpdate ⇒ Object

  • 大于0时生效。
  • 0:Linux (默认值)
  • 1:Windows

Parameters:

  • MetaTags: —

    机器组元数据信息列表

  • OSType: —

    系统类型,取值如下:



4131
4132
4133
# File 'lib/v20201016/models.rb', line 4131

def AutoUpdate
  @AutoUpdate
end

#DelayCleanupTime ⇒ Object

  • 大于0时生效。
  • 0:Linux (默认值)
  • 1:Windows

Parameters:

  • MetaTags: —

    机器组元数据信息列表

  • OSType: —

    系统类型,取值如下:



4131
4132
4133
# File 'lib/v20201016/models.rb', line 4131

def DelayCleanupTime
  @DelayCleanupTime
end

#GroupName ⇒ Object

  • 大于0时生效。
  • 0:Linux (默认值)
  • 1:Windows

Parameters:

  • MetaTags: —

    机器组元数据信息列表

  • OSType: —

    系统类型,取值如下:



4131
4132
4133
# File 'lib/v20201016/models.rb', line 4131

def GroupName
  @GroupName
end

#MachineGroupType ⇒ Object

  • 大于0时生效。
  • 0:Linux (默认值)
  • 1:Windows

Parameters:

  • MetaTags: —

    机器组元数据信息列表

  • OSType: —

    系统类型,取值如下:



4131
4132
4133
# File 'lib/v20201016/models.rb', line 4131

def MachineGroupType
  @MachineGroupType
end

#MetaTags ⇒ Object

  • 大于0时生效。
  • 0:Linux (默认值)
  • 1:Windows

Parameters:

  • MetaTags: —

    机器组元数据信息列表

  • OSType: —

    系统类型,取值如下:



4131
4132
4133
# File 'lib/v20201016/models.rb', line 4131

def MetaTags
  @MetaTags
end

#OSType ⇒ Object

  • 大于0时生效。
  • 0:Linux (默认值)
  • 1:Windows

Parameters:

  • MetaTags: —

    机器组元数据信息列表

  • OSType: —

    系统类型,取值如下:



4131
4132
4133
# File 'lib/v20201016/models.rb', line 4131

def OSType
  @OSType
end

#ServiceLogging ⇒ Object

  • 大于0时生效。
  • 0:Linux (默认值)
  • 1:Windows

Parameters:

  • MetaTags: —

    机器组元数据信息列表

  • OSType: —

    系统类型,取值如下:



4131
4132
4133
# File 'lib/v20201016/models.rb', line 4131

def ServiceLogging
  @ServiceLogging
end

#Tags ⇒ Object

  • 大于0时生效。
  • 0:Linux (默认值)
  • 1:Windows

Parameters:

  • MetaTags: —

    机器组元数据信息列表

  • OSType: —

    系统类型,取值如下:



4131
4132
4133
# File 'lib/v20201016/models.rb', line 4131

def Tags
  @Tags
end

#UpdateEndTime ⇒ Object

  • 大于0时生效。
  • 0:Linux (默认值)
  • 1:Windows

Parameters:

  • MetaTags: —

    机器组元数据信息列表

  • OSType: —

    系统类型,取值如下:



4131
4132
4133
# File 'lib/v20201016/models.rb', line 4131

def UpdateEndTime
  @UpdateEndTime
end

#UpdateStartTime ⇒ Object

  • 大于0时生效。
  • 0:Linux (默认值)
  • 1:Windows

Parameters:

  • MetaTags: —

    机器组元数据信息列表

  • OSType: —

    系统类型,取值如下:



4131
4132
4133
# File 'lib/v20201016/models.rb', line 4131

def UpdateStartTime
  @UpdateStartTime
end

Instance Method Details

#deserialize(params) ⇒ Object



4146
4147
4148
4149
4150
4151
4152
4153
4154
4155
4156
4157
4158
4159
4160
4161
4162
4163
4164
4165
4166
4167
4168
4169
4170
4171
4172
4173
4174
# File 'lib/v20201016/models.rb', line 4146

def deserialize(params)
  @GroupName = params['GroupName']
  unless params['MachineGroupType'].nil?
    @MachineGroupType = MachineGroupTypeInfo.new
    @MachineGroupType.deserialize(params['MachineGroupType'])
  end
  unless params['Tags'].nil?
    @Tags = []
    params['Tags'].each do |i|
      tag_tmp = Tag.new
      tag_tmp.deserialize(i)
      @Tags << tag_tmp
    end
  end
  @AutoUpdate = params['AutoUpdate']
  @UpdateStartTime = params['UpdateStartTime']
  @UpdateEndTime = params['UpdateEndTime']
  @ServiceLogging = params['ServiceLogging']
  @DelayCleanupTime = params['DelayCleanupTime']
  unless params['MetaTags'].nil?
    @MetaTags = []
    params['MetaTags'].each do |i|
      metataginfo_tmp = MetaTagInfo.new
      metataginfo_tmp.deserialize(i)
      @MetaTags << metataginfo_tmp
    end
  end
  @OSType = params['OSType']
end