Class: TencentCloud::Ssm::V20190923::UpdateSecretRequest

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

Overview

UpdateSecret请求参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(secretname = nil, versionid = nil, secretbinary = nil, secretstring = nil) ⇒ UpdateSecretRequest

Returns a new instance of UpdateSecretRequest.



1567
1568
1569
1570
1571
1572
# File 'lib/v20190923/models.rb', line 1567

def initialize(secretname=nil, versionid=nil, secretbinary=nil, secretstring=nil)
  @SecretName = secretname
  @VersionId = versionid
  @SecretBinary = secretbinary
  @SecretString = secretstring
end

Instance Attribute Details

#SecretBinaryObject

SecretBinary 和 SecretString 只能一个不为空。

Parameters:

  • SecretName:

    指定需要更新凭据内容的名称。

  • VersionId:

    指定需要更新凭据内容的版本号。

  • SecretBinary:

    新的凭据内容为二进制的场景使用该字段,并使用base64进行编码。

  • SecretString:

    新的凭据内容为文本的场景使用该字段,不需要base64编码SecretBinary 和 SecretString 只能一个不为空。



1565
1566
1567
# File 'lib/v20190923/models.rb', line 1565

def SecretBinary
  @SecretBinary
end

#SecretNameObject

SecretBinary 和 SecretString 只能一个不为空。

Parameters:

  • SecretName:

    指定需要更新凭据内容的名称。

  • VersionId:

    指定需要更新凭据内容的版本号。

  • SecretBinary:

    新的凭据内容为二进制的场景使用该字段,并使用base64进行编码。

  • SecretString:

    新的凭据内容为文本的场景使用该字段,不需要base64编码SecretBinary 和 SecretString 只能一个不为空。



1565
1566
1567
# File 'lib/v20190923/models.rb', line 1565

def SecretName
  @SecretName
end

#SecretStringObject

SecretBinary 和 SecretString 只能一个不为空。

Parameters:

  • SecretName:

    指定需要更新凭据内容的名称。

  • VersionId:

    指定需要更新凭据内容的版本号。

  • SecretBinary:

    新的凭据内容为二进制的场景使用该字段,并使用base64进行编码。

  • SecretString:

    新的凭据内容为文本的场景使用该字段,不需要base64编码SecretBinary 和 SecretString 只能一个不为空。



1565
1566
1567
# File 'lib/v20190923/models.rb', line 1565

def SecretString
  @SecretString
end

#VersionIdObject

SecretBinary 和 SecretString 只能一个不为空。

Parameters:

  • SecretName:

    指定需要更新凭据内容的名称。

  • VersionId:

    指定需要更新凭据内容的版本号。

  • SecretBinary:

    新的凭据内容为二进制的场景使用该字段,并使用base64进行编码。

  • SecretString:

    新的凭据内容为文本的场景使用该字段,不需要base64编码SecretBinary 和 SecretString 只能一个不为空。



1565
1566
1567
# File 'lib/v20190923/models.rb', line 1565

def VersionId
  @VersionId
end

Instance Method Details

#deserialize(params) ⇒ Object



1574
1575
1576
1577
1578
1579
# File 'lib/v20190923/models.rb', line 1574

def deserialize(params)
  @SecretName = params['SecretName']
  @VersionId = params['VersionId']
  @SecretBinary = params['SecretBinary']
  @SecretString = params['SecretString']
end