Class: TencentCloud::Cvm::V20170312::ModifyImageSharePermissionRequest

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

Overview

ModifyImageSharePermission请求参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(imageid = nil, accountids = nil, permission = nil) ⇒ ModifyImageSharePermissionRequest

Returns a new instance of ModifyImageSharePermissionRequest.



6594
6595
6596
6597
6598
# File 'lib/v20170312/models.rb', line 6594

def initialize(imageid=nil, accountids=nil, permission=nil)
  @ImageId = imageid
  @AccountIds = accountids
  @Permission = permission
end

Instance Attribute Details

#AccountIds ⇒ Object

Parameters:

  • ImageId: —

    镜像ID,形如img-gvbnzy6f。镜像Id可以通过如下方式获取:

  • 通过DescribeImages接口返回的ImageId获取。

  • 通过镜像控制台获取。

  • 镜像ID必须指定为状态为NORMAL的镜像。镜像状态请参考镜像数据表。

  • AccountIds: —

    接收共享镜像的主账号ID列表,array型参数的格式可以参考API简介。账号ID不同于QQ号,查询用户主账号ID请查看账号信息中的账号ID栏。

  • Permission: —

    操作,包括 SHARE,CANCEL。其中SHARE代表共享操作,CANCEL代表取消共享操作。

  • 
    
    6592
    6593
    6594
    # File 'lib/v20170312/models.rb', line 6592
    
    def AccountIds
      @AccountIds
    end
    

    #ImageId ⇒ Object

    Parameters:

    • ImageId: —

      镜像ID,形如img-gvbnzy6f。镜像Id可以通过如下方式获取:

    • 通过DescribeImages接口返回的ImageId获取。

    • 通过镜像控制台获取。

    • 镜像ID必须指定为状态为NORMAL的镜像。镜像状态请参考镜像数据表。

  • AccountIds: —

    接收共享镜像的主账号ID列表,array型参数的格式可以参考API简介。账号ID不同于QQ号,查询用户主账号ID请查看账号信息中的账号ID栏。

  • Permission: —

    操作,包括 SHARE,CANCEL。其中SHARE代表共享操作,CANCEL代表取消共享操作。

  • 
    
    6592
    6593
    6594
    # File 'lib/v20170312/models.rb', line 6592
    
    def ImageId
      @ImageId
    end
    

    #Permission ⇒ Object

    Parameters:

    • ImageId: —

      镜像ID,形如img-gvbnzy6f。镜像Id可以通过如下方式获取:

    • 通过DescribeImages接口返回的ImageId获取。

    • 通过镜像控制台获取。

    • 镜像ID必须指定为状态为NORMAL的镜像。镜像状态请参考镜像数据表。

  • AccountIds: —

    接收共享镜像的主账号ID列表,array型参数的格式可以参考API简介。账号ID不同于QQ号,查询用户主账号ID请查看账号信息中的账号ID栏。

  • Permission: —

    操作,包括 SHARE,CANCEL。其中SHARE代表共享操作,CANCEL代表取消共享操作。

  • 
    
    6592
    6593
    6594
    # File 'lib/v20170312/models.rb', line 6592
    
    def Permission
      @Permission
    end
    

    Instance Method Details

    #deserialize(params) ⇒ Object

    
    
    6600
    6601
    6602
    6603
    6604
    # File 'lib/v20170312/models.rb', line 6600
    
    def deserialize(params)
      @ImageId = params['ImageId']
      @AccountIds = params['AccountIds']
      @Permission = params['Permission']
    end