Class: TencentCloud::Cbs::V20170312::CreateDisksRequest

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

Overview

CreateDisks请求参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(placement = nil, diskchargetype = nil, disktype = nil, diskname = nil, tags = nil, snapshotid = nil, diskcount = nil, throughputperformance = nil, kmskeyid = nil, disksize = nil, shareable = nil, clienttoken = nil, encrypt = nil, diskchargeprepaid = nil, deletesnapshot = nil, automountconfiguration = nil, diskbackupquota = nil, burstperformance = nil, encrypttype = nil) ⇒ CreateDisksRequest

Returns a new instance of CreateDisksRequest.



722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
# File 'lib/v20170312/models.rb', line 722

def initialize(placement=nil, diskchargetype=nil, disktype=nil, diskname=nil, tags=nil, snapshotid=nil, diskcount=nil, throughputperformance=nil, kmskeyid=nil, disksize=nil, shareable=nil, clienttoken=nil, encrypt=nil, diskchargeprepaid=nil, deletesnapshot=nil, automountconfiguration=nil, diskbackupquota=nil, burstperformance=nil, encrypttype=nil)
  @Placement = placement
  @DiskChargeType = diskchargetype
  @DiskType = disktype
  @DiskName = diskname
  @Tags = tags
  @SnapshotId = snapshotid
  @DiskCount = diskcount
  @ThroughputPerformance = throughputperformance
  @KmsKeyId = kmskeyid
  @DiskSize = disksize
  @Shareable = shareable
  @ClientToken = clienttoken
  @Encrypt = encrypt
  @DiskChargePrepaid = diskchargeprepaid
  @DeleteSnapshot = deletesnapshot
  @AutoMountConfiguration = automountconfiguration
  @DiskBackupQuota = diskbackupquota
  @BurstPerformance = burstperformance
  @EncryptType = encrypttype
end

Instance Attribute Details

#AutoMountConfigurationObject

Parameters:



720
721
722
# File 'lib/v20170312/models.rb', line 720

def AutoMountConfiguration
  @AutoMountConfiguration
end

#BurstPerformanceObject

Parameters:



720
721
722
# File 'lib/v20170312/models.rb', line 720

def BurstPerformance
  @BurstPerformance
end

#ClientTokenObject

Parameters:



720
721
722
# File 'lib/v20170312/models.rb', line 720

def ClientToken
  @ClientToken
end

#DeleteSnapshotObject

Parameters:



720
721
722
# File 'lib/v20170312/models.rb', line 720

def DeleteSnapshot
  @DeleteSnapshot
end

#DiskBackupQuotaObject

Parameters:



720
721
722
# File 'lib/v20170312/models.rb', line 720

def DiskBackupQuota
  @DiskBackupQuota
end

#DiskChargePrepaidObject

Parameters:



720
721
722
# File 'lib/v20170312/models.rb', line 720

def DiskChargePrepaid
  @DiskChargePrepaid
end

#DiskChargeTypeObject

Parameters:



720
721
722
# File 'lib/v20170312/models.rb', line 720

def DiskChargeType
  @DiskChargeType
end

#DiskCountObject

Parameters:



720
721
722
# File 'lib/v20170312/models.rb', line 720

def DiskCount
  @DiskCount
end

#DiskNameObject

Parameters:



720
721
722
# File 'lib/v20170312/models.rb', line 720

def DiskName
  @DiskName
end

#DiskSizeObject

Parameters:



720
721
722
# File 'lib/v20170312/models.rb', line 720

def DiskSize
  @DiskSize
end

#DiskTypeObject

Parameters:



720
721
722
# File 'lib/v20170312/models.rb', line 720

def DiskType
  @DiskType
end

#EncryptObject

Parameters:



720
721
722
# File 'lib/v20170312/models.rb', line 720

def Encrypt
  @Encrypt
end

#EncryptTypeObject

Parameters:



720
721
722
# File 'lib/v20170312/models.rb', line 720

def EncryptType
  @EncryptType
end

#KmsKeyIdObject

Parameters:



720
721
722
# File 'lib/v20170312/models.rb', line 720

def KmsKeyId
  @KmsKeyId
end

#PlacementObject

Parameters:



720
721
722
# File 'lib/v20170312/models.rb', line 720

def Placement
  @Placement
end

#ShareableObject

Parameters:



720
721
722
# File 'lib/v20170312/models.rb', line 720

def Shareable
  @Shareable
end

#SnapshotIdObject

Parameters:



720
721
722
# File 'lib/v20170312/models.rb', line 720

def SnapshotId
  @SnapshotId
end

#TagsObject

Parameters:



720
721
722
# File 'lib/v20170312/models.rb', line 720

def Tags
  @Tags
end

#ThroughputPerformanceObject

Parameters:



720
721
722
# File 'lib/v20170312/models.rb', line 720

def ThroughputPerformance
  @ThroughputPerformance
end

Instance Method Details

#deserialize(params) ⇒ Object



744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
# File 'lib/v20170312/models.rb', line 744

def deserialize(params)
  unless params['Placement'].nil?
    @Placement = Placement.new
    @Placement.deserialize(params['Placement'])
  end
  @DiskChargeType = params['DiskChargeType']
  @DiskType = params['DiskType']
  @DiskName = params['DiskName']
  unless params['Tags'].nil?
    @Tags = []
    params['Tags'].each do |i|
      tag_tmp = Tag.new
      tag_tmp.deserialize(i)
      @Tags << tag_tmp
    end
  end
  @SnapshotId = params['SnapshotId']
  @DiskCount = params['DiskCount']
  @ThroughputPerformance = params['ThroughputPerformance']
  @KmsKeyId = params['KmsKeyId']
  @DiskSize = params['DiskSize']
  @Shareable = params['Shareable']
  @ClientToken = params['ClientToken']
  @Encrypt = params['Encrypt']
  unless params['DiskChargePrepaid'].nil?
    @DiskChargePrepaid = DiskChargePrepaid.new
    @DiskChargePrepaid.deserialize(params['DiskChargePrepaid'])
  end
  @DeleteSnapshot = params['DeleteSnapshot']
  unless params['AutoMountConfiguration'].nil?
    @AutoMountConfiguration = AutoMountConfiguration.new
    @AutoMountConfiguration.deserialize(params['AutoMountConfiguration'])
  end
  @DiskBackupQuota = params['DiskBackupQuota']
  @BurstPerformance = params['BurstPerformance']
  @EncryptType = params['EncryptType']
end