Class: TencentCloud::Tcr::V20190924::CreateServiceAccountRequest

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

Overview

CreateServiceAccount请求参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(registryid = nil, name = nil, permissions = nil, description = nil, duration = nil, expiresat = nil, disable = nil) ⇒ CreateServiceAccountRequest

Returns a new instance of CreateServiceAccountRequest.



1058
1059
1060
1061
1062
1063
1064
1065
1066
# File 'lib/v20190924/models.rb', line 1058

def initialize(registryid=nil, name=nil, permissions=nil, description=nil, duration=nil, expiresat=nil, disable=nil)
  @RegistryId = registryid
  @Name = name
  @Permissions = permissions
  @Description = description
  @Duration = duration
  @ExpiresAt = expiresat
  @Disable = disable
end

Instance Attribute Details

#Description ⇒ Object

Parameters:

  • RegistryId: —

    实例Id

  • Name: —

    服务级账号名

  • Permissions: —

    策略列表

  • Description: —

    服务级账号描述

  • Duration: —

    有效期(单位:天),从当前时间开始计算,优先级高于ExpiresAt

  • ExpiresAt: —

    过期时间(时间戳,单位:毫秒)

  • Disable: —

    是否禁用服务级账号



1056
1057
1058
# File 'lib/v20190924/models.rb', line 1056

def Description
  @Description
end

#Disable ⇒ Object

Parameters:

  • RegistryId: —

    实例Id

  • Name: —

    服务级账号名

  • Permissions: —

    策略列表

  • Description: —

    服务级账号描述

  • Duration: —

    有效期(单位:天),从当前时间开始计算,优先级高于ExpiresAt

  • ExpiresAt: —

    过期时间(时间戳,单位:毫秒)

  • Disable: —

    是否禁用服务级账号



1056
1057
1058
# File 'lib/v20190924/models.rb', line 1056

def Disable
  @Disable
end

#Duration ⇒ Object

Parameters:

  • RegistryId: —

    实例Id

  • Name: —

    服务级账号名

  • Permissions: —

    策略列表

  • Description: —

    服务级账号描述

  • Duration: —

    有效期(单位:天),从当前时间开始计算,优先级高于ExpiresAt

  • ExpiresAt: —

    过期时间(时间戳,单位:毫秒)

  • Disable: —

    是否禁用服务级账号



1056
1057
1058
# File 'lib/v20190924/models.rb', line 1056

def Duration
  @Duration
end

#ExpiresAt ⇒ Object

Parameters:

  • RegistryId: —

    实例Id

  • Name: —

    服务级账号名

  • Permissions: —

    策略列表

  • Description: —

    服务级账号描述

  • Duration: —

    有效期(单位:天),从当前时间开始计算,优先级高于ExpiresAt

  • ExpiresAt: —

    过期时间(时间戳,单位:毫秒)

  • Disable: —

    是否禁用服务级账号



1056
1057
1058
# File 'lib/v20190924/models.rb', line 1056

def ExpiresAt
  @ExpiresAt
end

#Name ⇒ Object

Parameters:

  • RegistryId: —

    实例Id

  • Name: —

    服务级账号名

  • Permissions: —

    策略列表

  • Description: —

    服务级账号描述

  • Duration: —

    有效期(单位:天),从当前时间开始计算,优先级高于ExpiresAt

  • ExpiresAt: —

    过期时间(时间戳,单位:毫秒)

  • Disable: —

    是否禁用服务级账号



1056
1057
1058
# File 'lib/v20190924/models.rb', line 1056

def Name
  @Name
end

#Permissions ⇒ Object

Parameters:

  • RegistryId: —

    实例Id

  • Name: —

    服务级账号名

  • Permissions: —

    策略列表

  • Description: —

    服务级账号描述

  • Duration: —

    有效期(单位:天),从当前时间开始计算,优先级高于ExpiresAt

  • ExpiresAt: —

    过期时间(时间戳,单位:毫秒)

  • Disable: —

    是否禁用服务级账号



1056
1057
1058
# File 'lib/v20190924/models.rb', line 1056

def Permissions
  @Permissions
end

#RegistryId ⇒ Object

Parameters:

  • RegistryId: —

    实例Id

  • Name: —

    服务级账号名

  • Permissions: —

    策略列表

  • Description: —

    服务级账号描述

  • Duration: —

    有效期(单位:天),从当前时间开始计算,优先级高于ExpiresAt

  • ExpiresAt: —

    过期时间(时间戳,单位:毫秒)

  • Disable: —

    是否禁用服务级账号



1056
1057
1058
# File 'lib/v20190924/models.rb', line 1056

def RegistryId
  @RegistryId
end

Instance Method Details

#deserialize(params) ⇒ Object



1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
# File 'lib/v20190924/models.rb', line 1068

def deserialize(params)
  @RegistryId = params['RegistryId']
  @Name = params['Name']
  unless params['Permissions'].nil?
    @Permissions = []
    params['Permissions'].each do |i|
      permission_tmp = Permission.new
      permission_tmp.deserialize(i)
      @Permissions << permission_tmp
    end
  end
  @Description = params['Description']
  @Duration = params['Duration']
  @ExpiresAt = params['ExpiresAt']
  @Disable = params['Disable']
end