{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/financekey/json-schema/financekey-finance-key-entity-cloud-pkg-cloud-resource-schema.json",
  "title": "FinanceKey.Entity.CloudPkg.CloudResource",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/financekey-clouds-api-openapi.yml#/components/schemas/FinanceKey.Entity.CloudPkg.CloudResource",
  "type": "object",
  "properties": {
    "createdById": {
      "type": [
        "integer",
        "null"
      ],
      "description": "The identity of the account that created the initial record.",
      "format": "int32",
      "readOnly": true
    },
    "createdOn": {
      "type": "string",
      "description": "The date and time the record was initially created.",
      "format": "date-time",
      "readOnly": true
    },
    "updatedById": {
      "type": [
        "integer",
        "null"
      ],
      "description": "The identity of the account that last modified the record.",
      "format": "int32",
      "readOnly": true
    },
    "updateOn": {
      "type": "string",
      "description": "The date and time the record was last modified.",
      "format": "date-time",
      "readOnly": true
    },
    "closedById": {
      "type": [
        "integer",
        "null"
      ],
      "description": "The identity of the account that deactivated and closed the record.",
      "format": "int32",
      "readOnly": true
    },
    "closedOn": {
      "type": "string",
      "description": "The date and time the record is to be considered as inactive and closed.",
      "format": "date-time",
      "readOnly": true
    },
    "active": {
      "type": "boolean",
      "description": "A flag that shows if the record is currently active. This values is calculated based on the current date and the record closed date.",
      "readOnly": true
    },
    "rowVersion": {
      "type": [
        "string",
        "null"
      ],
      "description": "A unique version stamp of the record.",
      "format": "byte",
      "readOnly": true
    },
    "sessionId": {
      "type": [
        "string",
        "null"
      ],
      "description": "The identity of the session that last modified the record.",
      "readOnly": true
    },
    "cloudResourceId": {
      "type": "integer",
      "description": "CloudResourceId is an integer data type field value which uniquely identifies each CloudResource in the table. It is used to access and identify each individual CloudResource in the database.",
      "format": "int32"
    },
    "name": {
      "maxLength": 64,
      "type": [
        "string",
        "null"
      ],
      "description": "The CloudResource table contains a field called Name of data type nvarchar with a maximum length of 64. This field can store up to 64 characters of data such as [Name, address, or other user defined data] in an Unicode format that supports various language sets."
    },
    "description": {
      "maxLength": 256,
      "type": [
        "string",
        "null"
      ],
      "description": "Description: CloudResource.Description a data type of nvarchar, with a maximum character/string length of 256, containing a text description of the CloudResource table."
    },
    "cloudResourceTypeId": {
      "maxLength": 64,
      "type": [
        "string",
        "null"
      ],
      "description": "CloudResourceTypeId of nvarchar data type with a maximum length of 64 is a foreign key in the CloudResource table which references the primary key of CloudResourceType table which stores information (e.g., name, description) about each type of cloud resource."
    },
    "cloudResourceStateId": {
      "maxLength": 16,
      "type": [
        "string",
        "null"
      ],
      "description": "CloudResourceStateId is an nvarchar field with a maximum length of 16 characters in the CloudResource table. It stores the state or condition of the associated cloud resource to indicate whether it is in a “Pending”, “Running”, “Suspended”, or “Deleted” state. It is used to track the status of the cloud resource as it is interacted with and manipulated within the cloud environment."
    }
  },
  "additionalProperties": false
}