Class: WMI::Win32_DiskQuota

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

Overview

Win32_DiskQuota association クラスにより、NTFS ボリュームのディスク領域の使用量が追跡されます。システム管理者は、指定されたディスク領域の制限を超えた場合に、ディスク領域のそれ以上の使用を防いでイベントをログに記録するように Windows を構成できます。また、指定されたディスク領域の警告レベルを超えた場合、イベントをログに記録できます。ディスク クォータは、管理者アカウント自身には設定できないことに注意してください。

Instance Attribute Summary (collapse)

Method Summary

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

- (uint64) DiskSpaceUsed (readonly)

DiskSpaceUsed プロパティにより、この特定のユーザーまたはグループ現在使用されている現在のバイト数が示されます。

Returns:

  • (uint64)

    DiskSpaceUsed



7
8
9
# File 'lib/Win32_DiskQuota.rb', line 7

def DiskSpaceUsed
  @DiskSpaceUsed
end

- (uint64) Limit

Limit プロパティにより、この特定のユーザーまたはグループの制限の設定が示されます。

Returns:

  • (uint64)

    Limit



12
13
14
# File 'lib/Win32_DiskQuota.rb', line 12

def Limit
  @Limit
end

- (ref:Win32_LogicalDisk) QuotaVolume (readonly)

QuotaVolume リファレンスにより、ディスク クォータのあるディスク ボリュームが表されます。

Returns:

  • (ref:Win32_LogicalDisk)

    QuotaVolume



17
18
19
# File 'lib/Win32_DiskQuota.rb', line 17

def QuotaVolume
  @QuotaVolume
end

- (uint32) Status (readonly)

Status プロパティにより、ディスク クォータの現在の状態が示されます。

Returns:

  • (uint32)

    Status



22
23
24
# File 'lib/Win32_DiskQuota.rb', line 22

def Status
  @Status
end

- (ref:Win32_Account) User (readonly)

User リファレンスにより、ディスク クォータと関連付けされたユーザー アカウントが表されます。

Returns:

  • (ref:Win32_Account)

    User



27
28
29
# File 'lib/Win32_DiskQuota.rb', line 27

def User
  @User
end

- (uint64) WarningLimit

WarningLimit プロパティにより、この特定のユーザーまたはグループの警告制限の設定が示されます。

Returns:

  • (uint64)

    WarningLimit



32
33
34
# File 'lib/Win32_DiskQuota.rb', line 32

def WarningLimit
  @WarningLimit
end