Estructura del Archivo .yaml de Entorno (comando apply)

apiVersion: api-management.sensedia.com/v1
kind: Environment
metadata:
  # Descripción de texto libre que sólo incluye valores de ejemplo
  type: production
  owner: engineering
spec:
  # Campos de identificación
  name: Production
  # Otros campos
  description: <string>
  deploymentPermission:
    type: Me | Team | Organization
    teamRef:
      name: <string>
  tracePermission:
    type: Me | Team | Organization
    teamRef:
      name: <string>
  gatewayPoolRef:
    name: <string>
  inboundURL:
    inboundAddressRef:
      name: <string>
    path: <string>

Schema de Entorno (comando apply)

{
  "$schema": "https://json-schema.org/draft/2019-09/schema",
  "$id": "https://sensedia.com/cli/api-management/environment",
  "comment": "Environment Schema",
  "type": "object",
  "properties": {
    "apiVersion": {
      "type": "string",
      "enum": [
        "api-management.sensedia.com/v1"
      ]
    },
    "kind": {
      "type": "string",
      "enum": [
        "Environment"
      ]
    },
    "metadata": {
      "type": "object",
      "additionalProperties": {
        "type": "string"
      }
    },
    "spec": {
      "additionalProperties": false,
      "type": "object",
      "required": [
        "name",
        "description",
        "inboundURL"
      ],
      "properties": {
        "name": {
          "type": "string"
        },
        "description": {
          "type": "string"
        },
        "deploymentPermission": {
          "$ref": "#/$defs/permission"
        },
        "tracePermission": {
          "$ref": "#/$defs/permission"
        },
        "gatewayPoolRef": {
          "$ref": "#/$defs/optionalNamedRef",
          "default": {
            "name": "default"
          }
        },
        "inboundURL": {
          "type": "object",
          "properties": {
            "inboundAddressRef": {
              "$ref": "#/$defs/namedRef"
            },
            "path": {
              "type": "string"
            }
          },
          "required": [
            "inboundAddressRef",
            "path"
          ]
        }
      }
    }
  },
  "required": [
    "apiVersion",
    "kind",
    "spec"
  ],
  "$defs": {
    "namedRef": {
      "additionalProperties": false,
      "type": "object",
      "properties": {
        "name": {
          "type": "string"
        }
      },
      "required": [
        "name"
      ]
    },
    "optionalNamedRef": {
      "additionalProperties": false,
      "type": "object",
      "properties": {
        "name": {
          "type": "string"
        }
      }
    },
    "permission": {
      "additionalProperties": false,
      "type": "object",
      "default": {
        "type": "Organization"
      },
      "properties": {
        "type": {
          "type": "string",
          "enum": [
            "Team",
            "Organization",
            "Me"
          ],
          "default": "Organization"
        },
        "teamRef": {
          "$ref": "#/$defs/namedRef"
        }
      }
    }
  }
}
Thanks for your feedback!
EDIT

Share your suggestions with us!
Click here and then [+ Submit idea]