Class: TencentCloud::Ecm::V20190719::ResetInstancesPasswordRequest

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

Overview

ResetInstancesPassword请求参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(instanceidset = nil, password = nil, forcestop = nil, username = nil) ⇒ ResetInstancesPasswordRequest

Returns a new instance of ResetInstancesPasswordRequest.



9721
9722
9723
9724
9725
9726
# File 'lib/v20190719/models.rb', line 9721

def initialize(instanceidset=nil, password=nil, forcestop=nil, username=nil)
  @InstanceIdSet = instanceidset
  @Password = password
  @ForceStop = forcestop
  @UserName = username
end

Instance Attribute Details

#ForceStopObject

Windows实例密码必须12到16位,至少包括三项,[A-Z],和[( ) ~ ~ ! @ # $ % ^ & * - + = _ | { } [ ] : ; ‘ < > , . ? /]中的符号。密码不允许以/符号开头。如果实例即包含Linux实例又包含Windows实例,则密码复杂度限制按照Windows实例的限制。

Parameters:

  • InstanceIdSet:

    待重置密码的实例ID列表。在单次请求的过程中,单个region下的请求实例数上限为100。

  • Password:

    新密码,Linux实例密码必须8到16位,至少包括两项、[0-9]和[( ) ~ ~ ! @ # $ % ^ & * - + = _ | { } [ ] : ; ‘ < > , . ? /]中的符号。密码不允许以/符号开头。

  • ForceStop:

    是否强制关机,默认为false。

  • UserName:

    待重置密码的实例的用户名,不得超过64个字符。若未指定用户名,则对于Linux而言,默认重置root用户的密码,对于Windows而言,默认重置administrator的密码。



9719
9720
9721
# File 'lib/v20190719/models.rb', line 9719

def ForceStop
  @ForceStop
end

#InstanceIdSetObject

Windows实例密码必须12到16位,至少包括三项,[A-Z],和[( ) ~ ~ ! @ # $ % ^ & * - + = _ | { } [ ] : ; ‘ < > , . ? /]中的符号。密码不允许以/符号开头。如果实例即包含Linux实例又包含Windows实例,则密码复杂度限制按照Windows实例的限制。

Parameters:

  • InstanceIdSet:

    待重置密码的实例ID列表。在单次请求的过程中,单个region下的请求实例数上限为100。

  • Password:

    新密码,Linux实例密码必须8到16位,至少包括两项、[0-9]和[( ) ~ ~ ! @ # $ % ^ & * - + = _ | { } [ ] : ; ‘ < > , . ? /]中的符号。密码不允许以/符号开头。

  • ForceStop:

    是否强制关机,默认为false。

  • UserName:

    待重置密码的实例的用户名,不得超过64个字符。若未指定用户名,则对于Linux而言,默认重置root用户的密码,对于Windows而言,默认重置administrator的密码。



9719
9720
9721
# File 'lib/v20190719/models.rb', line 9719

def InstanceIdSet
  @InstanceIdSet
end

#PasswordObject

Windows实例密码必须12到16位,至少包括三项,[A-Z],和[( ) ~ ~ ! @ # $ % ^ & * - + = _ | { } [ ] : ; ‘ < > , . ? /]中的符号。密码不允许以/符号开头。如果实例即包含Linux实例又包含Windows实例,则密码复杂度限制按照Windows实例的限制。

Parameters:

  • InstanceIdSet:

    待重置密码的实例ID列表。在单次请求的过程中,单个region下的请求实例数上限为100。

  • Password:

    新密码,Linux实例密码必须8到16位,至少包括两项、[0-9]和[( ) ~ ~ ! @ # $ % ^ & * - + = _ | { } [ ] : ; ‘ < > , . ? /]中的符号。密码不允许以/符号开头。

  • ForceStop:

    是否强制关机,默认为false。

  • UserName:

    待重置密码的实例的用户名,不得超过64个字符。若未指定用户名,则对于Linux而言,默认重置root用户的密码,对于Windows而言,默认重置administrator的密码。



9719
9720
9721
# File 'lib/v20190719/models.rb', line 9719

def Password
  @Password
end

#UserNameObject

Windows实例密码必须12到16位,至少包括三项,[A-Z],和[( ) ~ ~ ! @ # $ % ^ & * - + = _ | { } [ ] : ; ‘ < > , . ? /]中的符号。密码不允许以/符号开头。如果实例即包含Linux实例又包含Windows实例,则密码复杂度限制按照Windows实例的限制。

Parameters:

  • InstanceIdSet:

    待重置密码的实例ID列表。在单次请求的过程中,单个region下的请求实例数上限为100。

  • Password:

    新密码,Linux实例密码必须8到16位,至少包括两项、[0-9]和[( ) ~ ~ ! @ # $ % ^ & * - + = _ | { } [ ] : ; ‘ < > , . ? /]中的符号。密码不允许以/符号开头。

  • ForceStop:

    是否强制关机,默认为false。

  • UserName:

    待重置密码的实例的用户名,不得超过64个字符。若未指定用户名,则对于Linux而言,默认重置root用户的密码,对于Windows而言,默认重置administrator的密码。



9719
9720
9721
# File 'lib/v20190719/models.rb', line 9719

def UserName
  @UserName
end

Instance Method Details

#deserialize(params) ⇒ Object



9728
9729
9730
9731
9732
9733
# File 'lib/v20190719/models.rb', line 9728

def deserialize(params)
  @InstanceIdSet = params['InstanceIdSet']
  @Password = params['Password']
  @ForceStop = params['ForceStop']
  @UserName = params['UserName']
end