Class: TencentCloud::Ssm::V20190923::CreateSSHKeyPairSecretRequest

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

Overview

CreateSSHKeyPairSecret请求参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(secretname = nil, projectid = nil, description = nil, kmskeyid = nil, tags = nil, sshkeyname = nil, kmshsmclusterid = nil) ⇒ CreateSSHKeyPairSecretRequest



163
164
165
166
167
168
169
170
171
# File 'lib/v20190923/models.rb', line 163

def initialize(secretname=nil, projectid=nil, description=nil, kmskeyid=nil, tags=nil, sshkeyname=nil, kmshsmclusterid=nil)
  @SecretName = secretname
  @ProjectId = projectid
  @Description = description
  @KmsKeyId = kmskeyid
  @Tags = tags
  @SSHKeyName = sshkeyname
  @KmsHsmClusterId = kmshsmclusterid
end

Instance Attribute Details

#DescriptionObject

如果为空则表示使用Secrets Manager为您默认创建的CMK进行加密。您也可以指定在同region 下自行创建的KMS CMK进行加密。



161
162
163
# File 'lib/v20190923/models.rb', line 161

def Description
  @Description
end

#KmsHsmClusterIdObject

如果为空则表示使用Secrets Manager为您默认创建的CMK进行加密。您也可以指定在同region 下自行创建的KMS CMK进行加密。



161
162
163
# File 'lib/v20190923/models.rb', line 161

def KmsHsmClusterId
  @KmsHsmClusterId
end

#KmsKeyIdObject

如果为空则表示使用Secrets Manager为您默认创建的CMK进行加密。您也可以指定在同region 下自行创建的KMS CMK进行加密。



161
162
163
# File 'lib/v20190923/models.rb', line 161

def KmsKeyId
  @KmsKeyId
end

#ProjectIdObject

如果为空则表示使用Secrets Manager为您默认创建的CMK进行加密。您也可以指定在同region 下自行创建的KMS CMK进行加密。



161
162
163
# File 'lib/v20190923/models.rb', line 161

def ProjectId
  @ProjectId
end

#SecretNameObject

如果为空则表示使用Secrets Manager为您默认创建的CMK进行加密。您也可以指定在同region 下自行创建的KMS CMK进行加密。



161
162
163
# File 'lib/v20190923/models.rb', line 161

def SecretName
  @SecretName
end

#SSHKeyNameObject

如果为空则表示使用Secrets Manager为您默认创建的CMK进行加密。您也可以指定在同region 下自行创建的KMS CMK进行加密。



161
162
163
# File 'lib/v20190923/models.rb', line 161

def SSHKeyName
  @SSHKeyName
end

#TagsObject

如果为空则表示使用Secrets Manager为您默认创建的CMK进行加密。您也可以指定在同region 下自行创建的KMS CMK进行加密。



161
162
163
# File 'lib/v20190923/models.rb', line 161

def Tags
  @Tags
end

Instance Method Details

#deserialize(params) ⇒ Object



173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
# File 'lib/v20190923/models.rb', line 173

def deserialize(params)
  @SecretName = params['SecretName']
  @ProjectId = params['ProjectId']
  @Description = params['Description']
  @KmsKeyId = params['KmsKeyId']
  unless params['Tags'].nil?
    @Tags = []
    params['Tags'].each do |i|
      tag_tmp = Tag.new
      tag_tmp.deserialize(i)
      @Tags << tag_tmp
    end
  end
  @SSHKeyName = params['SSHKeyName']
  @KmsHsmClusterId = params['KmsHsmClusterId']
end