Class: TencentCloud::Tcr::V20190924::CreateInstanceTokenRequest

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

Overview

CreateInstanceToken请求参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(registryid = nil, tokentype = nil, desc = nil) ⇒ CreateInstanceTokenRequest

Returns a new instance of CreateInstanceTokenRequest.



609
610
611
612
613
# File 'lib/v20190924/models.rb', line 609

def initialize(registryid=nil, tokentype=nil, desc=nil)
  @RegistryId = registryid
  @TokenType = tokentype
  @Desc = desc
end

Instance Attribute Details

#Desc ⇒ Object

Parameters:

  • RegistryId: —

    实例Id

  • TokenType: —

    访问凭证类型,longterm 为长期访问凭证,temp 为临时访问凭证,默认是临时访问凭证,有效期1小时

  • Desc: —

    长期访问凭证描述信息



607
608
609
# File 'lib/v20190924/models.rb', line 607

def Desc
  @Desc
end

#RegistryId ⇒ Object

Parameters:

  • RegistryId: —

    实例Id

  • TokenType: —

    访问凭证类型,longterm 为长期访问凭证,temp 为临时访问凭证,默认是临时访问凭证,有效期1小时

  • Desc: —

    长期访问凭证描述信息



607
608
609
# File 'lib/v20190924/models.rb', line 607

def RegistryId
  @RegistryId
end

#TokenType ⇒ Object

Parameters:

  • RegistryId: —

    实例Id

  • TokenType: —

    访问凭证类型,longterm 为长期访问凭证,temp 为临时访问凭证,默认是临时访问凭证,有效期1小时

  • Desc: —

    长期访问凭证描述信息



607
608
609
# File 'lib/v20190924/models.rb', line 607

def TokenType
  @TokenType
end

Instance Method Details

#deserialize(params) ⇒ Object



615
616
617
618
619
# File 'lib/v20190924/models.rb', line 615

def deserialize(params)
  @RegistryId = params['RegistryId']
  @TokenType = params['TokenType']
  @Desc = params['Desc']
end