Disruptive Documentation

Structure Project

public struct Project: Decodable, Equatable  

Represents a project within an Organization.

Functions relevant for Projects are implemented on the Disruptive struct:

%87 Project Project Decodable Decodable Project->Decodable Equatable Equatable Project->Equatable

Conforms To

Decodable
Equatable

Initializers

init(identifier:​display​Name:​is​Inventory:​organization​ID:​organization​Display​Name:​sensor​Count:​cloud​Connector​Count:​)

public init(identifier: String, displayName: String, isInventory: Bool, organizationID: String, organizationDisplayName: String, sensorCount: Int, cloudConnectorCount: Int)  

Creates a new Project. Creating a new project can be useful for testing purposes.

init(from:​)

public init(from decoder: Decoder) throws  

Properties

identifier

public let identifier: String

The unique identifier of the project. This will be different from the name field in the REST API in that it is just the identifier without the projects/ prefix.

display​Name

public var displayName: String

The display name of the project.

is​Inventory

public let isInventory: Bool

Specifies whether or not the project is the inventory project. The inventory project in an organization is the project where newly purchased devices will be placed.

organization​ID

public let organizationID: String

The identifier of the organization the project is in.

organization​Display​Name

public let organizationDisplayName: String

The display name of the organization the project is in.

sensor​Count

public let sensorCount: Int

The number of Sensors currently in the project.

cloud​Connector​Count

public let cloudConnectorCount: Int

The number of Cloud Connectors currently in the project.