Class: WMI::Win32_MappedLogicalDisk

Inherits:
Base
  • Object
show all
Defined in:
lib/Win32_MappedLogicalDisk.rb

Overview

Win32_MappedLogicalDisk クラスはコンピュータ システムに論理ディスクとしてマップされているネットワーク記憶装置を表します。このクラスに返されたインスタンスは次の通りです。

 

Instance Attribute Summary (collapse)

Instance Method Summary (collapse)

Methods inherited from Base

#AddRef, #AssociatorsAsync_, #Associators_, #Clone_, #CompareTo_, #DeleteAsync_, #Delete_, #Derivation_, #ExecMethodAsync_, #ExecMethod_, #GetIDsOfNames, #GetObjectText_, #GetText_, #GetTypeInfo, #GetTypeInfoCount, #InstancesAsync_, #Instances_, #Invoke, #Methods_, #Path_, #Properties_, #PutAsync_, #Put_, #Qualifiers_, #QueryInterface, #ReferencesAsync_, #References_, #Refresh_, #Release, #Security_, #SetFromText_, #SpawnDerivedClass_, #SpawnInstance_, #SubclassesAsync_, #Subclasses_, #SystemProperties_

Instance Attribute Details

- (uint16) Access (readonly)

Access はメディアが読み取り可能 (値 = 1) かどうか、書き込み可能 (値 = 2) かどうか、またはその両方 (値 = 3) かどうかを説明します。

 "不明" (0) 

Returns:

  • (uint16)

    Access



33
34
35
# File 'lib/Win32_MappedLogicalDisk.rb', line 33

def Access
  @Access
end

- (uint16) Availability (readonly)

デバイスの利用可能性と状態です。

 

Returns:

  • (uint16)

    Availability



43
44
45
# File 'lib/Win32_MappedLogicalDisk.rb', line 43

def Availability
  @Availability
end

- (uint64) BlockSize (readonly)

この StorageExtent を形成するブロックのサイズ (バイト) です。

 

Returns:

  • (uint64)

    BlockSize



50
51
52
# File 'lib/Win32_MappedLogicalDisk.rb', line 50

def BlockSize
  @BlockSize
end

- (string) Caption (readonly)

Caption プロパティは、オブジェクトについての簡単な説明 (1 行分の文字列) です。

Returns:

  • (string)

    Caption



55
56
57
# File 'lib/Win32_MappedLogicalDisk.rb', line 55

def Caption
  @Caption
end

- (boolean) Compressed (readonly)

Compressed プロパティは、論理ボリュームが DoubleSpace ボリュームのように単一の圧縮エンティティとして存在するかどうかを表します。

   

Returns:

  • (boolean)

    Compressed



61
62
63
# File 'lib/Win32_MappedLogicalDisk.rb', line 61

def Compressed
  @Compressed
end

- (uint32) ConfigManagerErrorCode (readonly)

Win32 構成マネージャのエラー コードを示します。

 

Returns:

  • (uint32)

    ConfigManagerErrorCode



134
135
136
# File 'lib/Win32_MappedLogicalDisk.rb', line 134

def ConfigManagerErrorCode
  @ConfigManagerErrorCode
end

- (boolean) ConfigManagerUserConfig (readonly)

デバイスがユーザー定義の構成を使用しているかどうかを示します。

Returns:

  • (boolean)

    ConfigManagerUserConfig



139
140
141
# File 'lib/Win32_MappedLogicalDisk.rb', line 139

def ConfigManagerUserConfig
  @ConfigManagerUserConfig
end

- (string) CreationClassName (readonly)

CreationClassName は、インスタンスの作成で使用されるクラス名、またはサブクラス名を示します。

 

Returns:

  • (string)

    CreationClassName



145
146
147
# File 'lib/Win32_MappedLogicalDisk.rb', line 145

def CreationClassName
  @CreationClassName
end

- (string) Description (readonly)

Description プロパティでオブジェクトの説明が提供されます。

Returns:

  • (string)

    Description



151
152
153
# File 'lib/Win32_MappedLogicalDisk.rb', line 151

def Description
  @Description
end

- (string) DeviceID (readonly)

DeviceID は論理デバイスを一意に名前付けするためのアドレス、またはほかの識別情報です。

Returns:

  • (string)

    DeviceID



156
157
158
# File 'lib/Win32_MappedLogicalDisk.rb', line 156

def DeviceID
  @DeviceID
end

- (boolean) ErrorCleared (readonly)

ErrorCleared は LastErrorCode プロパティで報告されたエラーが現在は消去されていることを示すブール値のプロパティです。

Returns:

  • (boolean)

    ErrorCleared



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

def ErrorCleared
  @ErrorCleared
end

- (string) ErrorDescription (readonly)

ErrorDescription は LastErrorCode プロパティで記録されたエラーに関する情報および実行される可能性がある修正の情報を提供する自由形式の文字列です。

Returns:

  • (string)

    ErrorDescription



166
167
168
# File 'lib/Win32_MappedLogicalDisk.rb', line 166

def ErrorDescription
  @ErrorDescription
end

- (string) ErrorMethodology (readonly)

ErrorMethodology は、この拡張記憶域でサポートされているエラー検出およびエラー修正の種類を説明する自由形式の文字列です。

Returns:

  • (string)

    ErrorMethodology



171
172
173
# File 'lib/Win32_MappedLogicalDisk.rb', line 171

def ErrorMethodology
  @ErrorMethodology
end

- (string) FileSystem (readonly)

FileSystem プロパティは、論理ディスク上のファイル システムを示します。

 

Returns:

  • (string)

    FileSystem



178
179
180
# File 'lib/Win32_MappedLogicalDisk.rb', line 178

def FileSystem
  @FileSystem
end

- (uint64) FreeSpace (readonly)

FreeSpace プロパティによって、論理ディスクにいくらの利用可能な空領域があるかバイト数で示されます。

Returns:

  • (uint64)

    FreeSpace



183
184
185
# File 'lib/Win32_MappedLogicalDisk.rb', line 183

def FreeSpace
  @FreeSpace
end

- (datetime) InstallDate (readonly)

InstallDate プロパティは、オブジェクトがインストールされた日時を示す値です。

 

Returns:

  • (datetime)

    InstallDate



189
190
191
# File 'lib/Win32_MappedLogicalDisk.rb', line 189

def InstallDate
  @InstallDate
end

- (uint32) LastErrorCode (readonly)

論理デバイスで報告されたエラー コードが LastErrorCode によってキャプチャされます。

Returns:

  • (uint32)

    LastErrorCode



194
195
196
# File 'lib/Win32_MappedLogicalDisk.rb', line 194

def LastErrorCode
  @LastErrorCode
end

- (uint32) MaximumComponentLength (readonly)

MaximumComponentLength プロパティには、Win32 ドライブによってサポートされるコンポーネントの最長ファイル名の制限が含まれています。

 

Returns:

  • (uint32)

    MaximumComponentLength



206
207
208
# File 'lib/Win32_MappedLogicalDisk.rb', line 206

def MaximumComponentLength
  @MaximumComponentLength
end

- (string) Name (readonly)

Name プロパティで、オブジェクトを認識するラベルを定義します。

 

Returns:

  • (string)

    Name



212
213
214
# File 'lib/Win32_MappedLogicalDisk.rb', line 212

def Name
  @Name
end

- (string) PNPDeviceID (readonly)

論理デバイスの Win32 プラグ アンド プレイ デバイス ID を示します。

 

Returns:

  • (string)

    PNPDeviceID



225
226
227
# File 'lib/Win32_MappedLogicalDisk.rb', line 225

def PNPDeviceID
  @PNPDeviceID
end

- (uint16) PowerManagementCapabilities (readonly)

論理デバイスの特定の電源関連機能を示します。

 0="不明"

Returns:

  • (uint16)

    PowerManagementCapabilities



236
237
238
# File 'lib/Win32_MappedLogicalDisk.rb', line 236

def PowerManagementCapabilities
  @PowerManagementCapabilities
end

- (boolean) PowerManagementSupported (readonly)

デバイスを電源管理できることを示すブール値です - 例、省電力状態にする。

 

Returns:

  • (boolean)

    PowerManagementSupported



244
245
246
# File 'lib/Win32_MappedLogicalDisk.rb', line 244

def PowerManagementSupported
  @PowerManagementSupported
end

- (string) Purpose (readonly)

メディアおよび (または) その使用を説明する自由形式の文字列です。

Returns:

  • (string)

    Purpose



254
255
256
# File 'lib/Win32_MappedLogicalDisk.rb', line 254

def Purpose
  @Purpose
end

- (boolean) QuotasDisabled

QuotasDisabled プロパティにより、このボリュームでクォータ管理が有効ではないことが示されます。

Returns:

  • (boolean)

    QuotasDisabled



259
260
261
# File 'lib/Win32_MappedLogicalDisk.rb', line 259

def QuotasDisabled
  @QuotasDisabled
end

- (boolean) QuotasIncomplete (readonly)

QuotasIncomplete プロパティにより、クォータ管理が使用されたが無効になっていることが示されます。

 

Returns:

  • (boolean)

    QuotasIncomplete



265
266
267
# File 'lib/Win32_MappedLogicalDisk.rb', line 265

def QuotasIncomplete
  @QuotasIncomplete
end

- (boolean) QuotasRebuilding (readonly)

QuotasRebuilding プロパティにより、アクティブ状態がファイル システムが情報のコンパイルを実行して、クォータ管理のディスクを設定していることを意味していることが示されます。

Returns:

  • (boolean)

    QuotasRebuilding



270
271
272
# File 'lib/Win32_MappedLogicalDisk.rb', line 270

def QuotasRebuilding
  @QuotasRebuilding
end

- (uint64) Size (readonly)

Size プロパティは論理ドライブのサイズを示します (バイト)。

Returns:

  • (uint64)

    Size



281
282
283
# File 'lib/Win32_MappedLogicalDisk.rb', line 281

def Size
  @Size
end

- (string) Status (readonly)

Status プロパティはオブジェクトの現在の状態を示す文字列です。

 

Returns:

  • (string)

    Status



294
295
296
# File 'lib/Win32_MappedLogicalDisk.rb', line 294

def Status
  @Status
end

- (uint16) StatusInfo (readonly)

StatusInfo は、論理デバイスが有効 (値 = 3)、無効 (値 = 4) またはその他 (1) または不明 (2) 状態であるかどうかを示す文字列です。

 

Returns:

  • (uint16)

    StatusInfo



300
301
302
# File 'lib/Win32_MappedLogicalDisk.rb', line 300

def StatusInfo
  @StatusInfo
end

- (boolean) SupportsDiskQuotas (readonly)

SupportsDiskQuotas プロパティにより、このボリュームがディスク クォータをサポートするかどうか示されます

Returns:

  • (boolean)

    SupportsDiskQuotas



305
306
307
# File 'lib/Win32_MappedLogicalDisk.rb', line 305

def SupportsDiskQuotas
  @SupportsDiskQuotas
end

- (boolean) SupportsFileBasedCompression (readonly)

SupportsFileBasedCompression プロパティは、論理ディスク パーティションが NTFS のようなファイル ベースの圧縮をサポートするかどうかを示します。

 

Returns:

  • (boolean)

    SupportsFileBasedCompression



314
315
316
# File 'lib/Win32_MappedLogicalDisk.rb', line 314

def SupportsFileBasedCompression
  @SupportsFileBasedCompression
end

- (string) SystemCreationClassName (readonly)

スコーピング システムの CreationClassName です。

Returns:

  • (string)

    SystemCreationClassName



320
321
322
# File 'lib/Win32_MappedLogicalDisk.rb', line 320

def SystemCreationClassName
  @SystemCreationClassName
end

- (string) SystemName (readonly)

スコーピング システムの名前です。

Returns:

  • (string)

    SystemName



325
326
327
# File 'lib/Win32_MappedLogicalDisk.rb', line 325

def SystemName
  @SystemName
end

- (string) VolumeName

VolumeName プロパティは、論理ディスクのボリューム名を示します。

 

Returns:

  • (string)

    VolumeName



332
333
334
# File 'lib/Win32_MappedLogicalDisk.rb', line 332

def VolumeName
  @VolumeName
end

- (string) VolumeSerialNumber (readonly)

VolumeSerialNumber プロパティは、論理ディスクのボリューム シリアル番号を示します。

 

Returns:

  • (string)

    VolumeSerialNumber



340
341
342
# File 'lib/Win32_MappedLogicalDisk.rb', line 340

def VolumeSerialNumber
  @VolumeSerialNumber
end

Instance Method Details

- (uint32) Reset

論理デバイスのリセットを要求します。 要求が正常に実行された場合、返される値は 0 で、要求がサポートされない場合は 1 です。 また、エラーが発生した場合は、ほかの値となります。

Returns:

  • (uint32)


26
27
# File 'lib/Win32_MappedLogicalDisk.rb', line 26

def Reset 
end

- (uint32) SetPowerState(PowerState, Time)

SetPowerState により、論理デバイスの電源状態およびデバイスがいつその状態に入るかが定義されます。 電源状態は、PowerState パラメータを次の整数値の 1 つに設定することによって指定されます: 1="通常の電力"、2="省電力- 低電力モード"、3="省電力 - スタンバイ"、4="省電力 - その他"、5="電源サイクル" または 6="電源オフ"。 時間パラメータ (5 の "Power Cycle" を除くすべての状態の変更用) は、通常の日付値または間隔値 (メソッド実行の受信時に間隔が開始される) のどちらかにいつ電源状態が設定される必要があるかを示します。 PowerState パラメータが 5 ("Power Cycle") であるとき、時間パラメータはいつデバイスが再度電源オンになるかを示します。 直ちに電源をオフにします。 成功の場合、SetPowerState は 0 を返し、指定された PowerState および要求時間がサポートされていない場合は、1 を返し、ほかのエラーが発生する場合はほかの値が返されます。 サブクラスでは、可能な返信コードのセットはメソッド上の ValueMap 修飾子を使って指定することも可能です。

 ValueMap 

値の配置修飾子としてサブクラスで指定される場合もあります。

Parameters:

  • (uint16, #read) PowerState
  • (datetime, #read) Time

Returns:

  • (uint32)


18
19
# File 'lib/Win32_MappedLogicalDisk.rb', line 18

def SetPowerState PowerState, Time
end