Structure
Project
public struct Project: Decodable, Equatable
Represents a project within an Organization
.
Functions relevant for Project
s are implemented on the Disruptive
struct:
Relationships
Conforms To
Decodable
Equatable
Initializers
init(identifier:displayName:isInventory:organizationID:organizationDisplayName:sensorCount:cloudConnectorCount:)
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.
isInventory
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.
organizationID
public let organizationID: String
The identifier of the organization the project is in.
organizationDisplayName
public let organizationDisplayName: String
The display name of the organization the project is in.
cloudConnectorCount
public let cloudConnectorCount: Int
The number of Cloud Connectors currently in the project.