Class: Jamf::OAPISchemas::ComputerPurchase

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

Overview

OAPI Object Model and Enums for: ComputerPurchase

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::ComputerInventory
- Jamf::OAPISchemas::ComputerInventoryUpdateRequest

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

- Jamf::OAPISchemas::ComputerExtensionAttribute

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

OAPI_PROPERTIES =
{

  # @!attribute leased
  #   @return [Boolean]
  leased: {
    class: :boolean
  },

  # @!attribute purchased
  #   @return [Boolean]
  purchased: {
    class: :boolean
  },

  # @!attribute poNumber
  #   @return [String]
  poNumber: {
    class: :string
  },

  # @!attribute poDate
  #   @return [String]
  poDate: {
    class: :string,
    format: 'date'
  },

  # @!attribute vendor
  #   @return [String]
  vendor: {
    class: :string
  },

  # @!attribute warrantyDate
  #   @return [String]
  warrantyDate: {
    class: :string,
    format: 'date'
  },

  # @!attribute appleCareId
  #   @return [String]
  appleCareId: {
    class: :string
  },

  # @!attribute leaseDate
  #   @return [String]
  leaseDate: {
    class: :string,
    format: 'date'
  },

  # @!attribute purchasePrice
  #   @return [String]
  purchasePrice: {
    class: :string
  },

  # @!attribute lifeExpectancy
  #   @return [Integer]
  lifeExpectancy: {
    class: :integer
  },

  # @!attribute purchasingAccount
  #   @return [String]
  purchasingAccount: {
    class: :string
  },

  # @!attribute purchasingContact
  #   @return [String]
  purchasingContact: {
    class: :string
  },

  # @!attribute extensionAttributes
  #   @return [Array<Jamf::OAPISchemas::ComputerExtensionAttribute>]
  extensionAttributes: {
    class: Jamf::OAPISchemas::ComputerExtensionAttribute,
    multi: true
  }

}

Instance Attribute Summary collapse

Constructor Details

This class inherits a constructor from Jamf::OAPIObject

Instance Attribute Details

#appleCareIdString

Returns:



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

#extensionAttributesArray<Jamf::OAPISchemas::ComputerExtensionAttribute>



# File 'lib/jamf/api/jamf_pro/oapi_schemas/computer_purchase.rb', line 145

#leasedBoolean

Returns:

  • (Boolean)


# File 'lib/jamf/api/jamf_pro/oapi_schemas/computer_purchase.rb', line 70

#leaseDateString

Returns:



# File 'lib/jamf/api/jamf_pro/oapi_schemas/computer_purchase.rb', line 114

#lifeExpectancyInteger

Returns:

  • (Integer)


# File 'lib/jamf/api/jamf_pro/oapi_schemas/computer_purchase.rb', line 127

#poDateString

Returns:



# File 'lib/jamf/api/jamf_pro/oapi_schemas/computer_purchase.rb', line 88

#poNumberString

Returns:



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

#purchasedBoolean

Returns:

  • (Boolean)


# File 'lib/jamf/api/jamf_pro/oapi_schemas/computer_purchase.rb', line 76

#purchasePriceString

Returns:



# File 'lib/jamf/api/jamf_pro/oapi_schemas/computer_purchase.rb', line 121

#purchasingAccountString

Returns:



# File 'lib/jamf/api/jamf_pro/oapi_schemas/computer_purchase.rb', line 133

#purchasingContactString

Returns:



# File 'lib/jamf/api/jamf_pro/oapi_schemas/computer_purchase.rb', line 139

#vendorString

Returns:



# File 'lib/jamf/api/jamf_pro/oapi_schemas/computer_purchase.rb', line 95

#warrantyDateString

Returns:



# File 'lib/jamf/api/jamf_pro/oapi_schemas/computer_purchase.rb', line 101