Class: Jamf::OAPISchemas::ComputerPartition

Inherits:
Jamf::OAPIObject show all
Defined in:
lib/jamf/api/jamf_pro/oapi_schemas/computer_partition.rb

Overview

OAPI Object Model and Enums for: ComputerPartition

This class was automatically genereated from the api/schema URL path on a Jamf Pro server version 10.46.0-t1681398190

This class may be used directly, e.g instances of other classes may use instances of this class as one of their own properties/attributes.

It may also be used as a superclass when implementing Jamf Pro API Resources in ruby-jss. The subclasses include appropriate mixins, and should expand on the basic functionality provided here.

Container Objects: Other object models that use this model as the value in one of their attributes.

- Jamf::OAPISchemas::ComputerDisk

Sub Objects: Other object models used by this model’s attributes.

- Jamf::OAPISchemas::ComputerPartitionFileVault2State

Endpoints and Privileges: API endpoints and HTTP operations that use this object model, and the Jamf Pro privileges needed to access them.

Constant Summary collapse

PARTITION_TYPE_OPTIONS =

Enums used by this class or others

[
  'BOOT',
  'RECOVERY',
  'OTHER'
]
OAPI_PROPERTIES =
{

  # @!attribute [r] name
  #   @return [String]
  name: {
    class: :string,
    readonly: true
  },

  # Partition Size in MB.
  # @!attribute [r] sizeMegabytes
  #   @return [Integer]
  sizeMegabytes: {
    class: :integer,
    format: 'int64',
    readonly: true
  },

  # Available space in MB.
  # @!attribute [r] availableMegabytes
  #   @return [Integer]
  availableMegabytes: {
    class: :integer,
    format: 'int64',
    readonly: true
  },

  # @!attribute [r] partitionType
  #   @return [String]
  partitionType: {
    class: :string,
    readonly: true,
    enum: PARTITION_TYPE_OPTIONS
  },

  # Percentage of space used.
  # @!attribute [r] percentUsed
  #   @return [Integer]
  percentUsed: {
    class: :integer,
    readonly: true,
    minimum: 0,
    maximum: 100
  },

  # @!attribute fileVault2State
  #   @return [Jamf::OAPISchemas::ComputerPartitionFileVault2State]
  fileVault2State: {
    class: Jamf::OAPISchemas::ComputerPartitionFileVault2State
  },

  # Percentage progress of current FileVault 2 operation.
  # @!attribute fileVault2ProgressPercent
  #   @return [Integer]
  fileVault2ProgressPercent: {
    class: :integer,
    nil_ok: true
  },

  # @!attribute [r] lvmManaged
  #   @return [Boolean]
  lvmManaged: {
    class: :boolean,
    readonly: true
  }

}

Instance Attribute Summary collapse

Constructor Details

This class inherits a constructor from Jamf::OAPIObject

Instance Attribute Details

#availableMegabytesInteger (readonly)

Returns:

  • (Integer)


# File 'lib/jamf/api/jamf_pro/oapi_schemas/computer_partition.rb', line 91

#fileVault2ProgressPercentInteger

Returns:

  • (Integer)


# File 'lib/jamf/api/jamf_pro/oapi_schemas/computer_partition.rb', line 124

#fileVault2StateJamf::OAPISchemas::ComputerPartitionFileVault2State



# File 'lib/jamf/api/jamf_pro/oapi_schemas/computer_partition.rb', line 118

#lvmManagedBoolean (readonly)

Returns:

  • (Boolean)


# File 'lib/jamf/api/jamf_pro/oapi_schemas/computer_partition.rb', line 132

#nameString (readonly)

Returns:



# File 'lib/jamf/api/jamf_pro/oapi_schemas/computer_partition.rb', line 75

#partitionTypeString (readonly)

Returns:



# File 'lib/jamf/api/jamf_pro/oapi_schemas/computer_partition.rb', line 100

#percentUsedInteger (readonly)

Returns:

  • (Integer)


# File 'lib/jamf/api/jamf_pro/oapi_schemas/computer_partition.rb', line 108

#sizeMegabytesInteger (readonly)

Returns:

  • (Integer)


# File 'lib/jamf/api/jamf_pro/oapi_schemas/computer_partition.rb', line 82