{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/google-cloud-compute-engine/json-schema/google-cloud-compute-engine-preview-feature-schema.json",
  "title": "PreviewFeature",
  "description": "Represents a single Google Compute Engine preview feature.",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/google-cloud-compute-engine-preview-features-api-openapi.yml#/components/schemas/PreviewFeature",
  "properties": {
    "status": {
      "$ref": "#/$defs/PreviewFeatureStatus",
      "description": "Output only. [Output only] Status of the feature."
    },
    "kind": {
      "readOnly": true,
      "description": "Output only. [Output only] The type of the feature. Always \"compute#previewFeature\" for\npreview features.",
      "type": "string",
      "default": "compute#previewFeature"
    },
    "id": {
      "description": "Output only. [Output Only] The unique identifier for the resource. This identifier is\ndefined by the server.",
      "type": "string",
      "format": "uint64",
      "readOnly": true
    },
    "activationStatus": {
      "description": "Specifies whether the feature is enabled or disabled.",
      "type": "string",
      "enum": [
        "ACTIVATION_STATE_UNSPECIFIED",
        "DISABLED",
        "ENABLED"
      ]
    },
    "rolloutOperation": {
      "$ref": "#/$defs/PreviewFeatureRolloutOperation",
      "description": "Rollout operation of the feature."
    },
    "name": {
      "type": "string",
      "description": "Name of the feature."
    },
    "selfLink": {
      "readOnly": true,
      "type": "string",
      "description": "Output only. [Output Only] Server-defined URL for the resource."
    },
    "description": {
      "description": "Output only. [Output Only] Description of the feature.",
      "readOnly": true,
      "type": "string"
    },
    "creationTimestamp": {
      "type": "string",
      "description": "Output only. [Output Only] Creation timestamp inRFC3339\ntext format.",
      "readOnly": true
    }
  },
  "type": "object",
  "$defs": {
    "Date": {
      "properties": {
        "month": {
          "description": "Month of a year. Must be from 1 to 12, or 0 to specify a year without a\nmonth and day.",
          "format": "int32",
          "type": "integer"
        },
        "day": {
          "type": "integer",
          "format": "int32",
          "description": "Day of a month. Must be from 1 to 31 and valid for the year and month, or 0\nto specify a year by itself or a year and month where the day isn't\nsignificant."
        },
        "year": {
          "type": "integer",
          "description": "Year of the date. Must be from 1 to 9999, or 0 to specify a date without\na year.",
          "format": "int32"
        }
      },
      "type": "object",
      "description": "Represents a whole or partial calendar date, such as a birthday. The time of\nday and time zone are either specified elsewhere or are insignificant. The\ndate is relative to the Gregorian Calendar. This can represent one of the\nfollowing:\n\n* A full date, with non-zero year, month, and day values.\n* A month and day, with a zero year (for example, an anniversary).\n* A year on its own, with a zero month and a zero day.\n* A year and month, with a zero day (for example, a credit card expiration\n  date).\n\nRelated types:\n\n* google.type.TimeOfDay\n* google.type.DateTime\n* google.protobuf.Timestamp"
    },
    "PreviewFeatureRolloutOperation": {
      "description": "Represents the rollout operation",
      "type": "object",
      "properties": {
        "rolloutInput": {
          "$ref": "#/$defs/PreviewFeatureRolloutOperationRolloutInput",
          "description": "Input only. The input for the rollout operation."
        }
      }
    },
    "PreviewFeatureRolloutOperationRolloutInput": {
      "properties": {
        "name": {
          "description": "The name of the rollout plan\nEx.\norganizations//locations/global/rolloutPlans/\nEx.\nfolders//locations/global/rolloutPlans/\nEx.\nprojects//locations/global/rolloutPlans/.",
          "type": "string"
        },
        "predefinedRolloutPlan": {
          "type": "string",
          "enum": [
            "ROLLOUT_PLAN_FAST_ROLLOUT",
            "ROLLOUT_PLAN_TWO_DAY_ROLLOUT",
            "ROLLOUT_PLAN_UNSPECIFIED"
          ],
          "description": "Predefined rollout plan."
        }
      },
      "description": "Represents the input for the rollout operation.",
      "type": "object"
    },
    "PreviewFeatureStatus": {
      "description": "[Output Only] The status of the feature.",
      "properties": {
        "releaseStatus": {
          "$ref": "#/$defs/PreviewFeatureStatusReleaseStatus"
        },
        "description": {
          "description": "Output only. [Output Only] The description of the feature.",
          "readOnly": true,
          "type": "string"
        },
        "helpLink": {
          "readOnly": true,
          "type": "string",
          "description": "Output only. [Output Only] Link to the public documentation for the feature."
        }
      },
      "type": "object"
    },
    "PreviewFeatureStatusReleaseStatus": {
      "description": "[Output Only] The release status of the feature.",
      "type": "object",
      "properties": {
        "stage": {
          "readOnly": true,
          "enum": [
            "DEPRECATED",
            "GA",
            "PREVIEW",
            "STAGE_UNSPECIFIED"
          ],
          "type": "string",
          "description": "Output only. [Output Only] The stage of the feature."
        },
        "updateDate": {
          "$ref": "#/$defs/Date",
          "description": "Output only. The last date when a feature transitioned between ReleaseStatuses."
        }
      }
    }
  }
}