{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/google-cloud-compute-engine/json-schema/google-cloud-compute-engine-vm-extension-policy-aggregated-list-response-schema.json",
  "title": "VmExtensionPolicyAggregatedListResponse",
  "description": "Response for the aggregated list of VM extension policies.",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/google-cloud-compute-engine-global-vm-extension-policies-api-openapi.yml#/components/schemas/VmExtensionPolicyAggregatedListResponse",
  "type": "object",
  "properties": {
    "items": {
      "type": "object",
      "additionalProperties": {
        "$ref": "#/$defs/VmExtensionPoliciesScopedList",
        "description": "Name of the scope containing this set of VmExtensionPolicies."
      },
      "description": "A list of VmExtensionPoliciesScopedList resources."
    },
    "warning": {
      "properties": {
        "message": {
          "description": "[Output Only] A human-readable description of the warning code.",
          "type": "string"
        },
        "data": {
          "items": {
            "properties": {
              "key": {
                "description": "[Output Only] A key that provides more detail on the warning being\nreturned. For example, for warnings where there are no results in a list\nrequest for a particular zone, this key might be scope and\nthe key value might be the zone name. Other examples might be a key\nindicating a deprecated resource and a suggested replacement, or a\nwarning about invalid network settings (for example, if an instance\nattempts to perform IP forwarding but is not enabled for IP forwarding).",
                "type": "string"
              },
              "value": {
                "type": "string",
                "description": "[Output Only] A warning data value corresponding to the key."
              }
            },
            "type": "object"
          },
          "type": "array",
          "description": "[Output Only] Metadata about this warning in key:\nvalue format. For example:\n\n\"data\": [\n  {\n   \"key\": \"scope\",\n   \"value\": \"zones/us-east1-d\"\n  }]"
        },
        "code": {
          "type": "string",
          "description": "[Output Only] A warning code, if applicable. For example, Compute\nEngine returns NO_RESULTS_ON_PAGE if there\nare no results in the response.",
          "enum": [
            "CLEANUP_FAILED",
            "DEPRECATED_RESOURCE_USED",
            "DEPRECATED_TYPE_USED",
            "DISK_SIZE_LARGER_THAN_IMAGE_SIZE",
            "EXPERIMENTAL_TYPE_USED",
            "EXTERNAL_API_WARNING",
            "FIELD_VALUE_OVERRIDEN",
            "INJECTED_KERNELS_DEPRECATED",
            "INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB",
            "LARGE_DEPLOYMENT_WARNING",
            "LIST_OVERHEAD_QUOTA_EXCEED",
            "MISSING_TYPE_DEPENDENCY",
            "NEXT_HOP_ADDRESS_NOT_ASSIGNED",
            "NEXT_HOP_CANNOT_IP_FORWARD",
            "NEXT_HOP_INSTANCE_HAS_NO_IPV6_INTERFACE",
            "NEXT_HOP_INSTANCE_NOT_FOUND",
            "NEXT_HOP_INSTANCE_NOT_ON_NETWORK",
            "NEXT_HOP_NOT_RUNNING",
            "NOT_CRITICAL_ERROR",
            "NO_RESULTS_ON_PAGE",
            "PARTIAL_SUCCESS",
            "QUOTA_INFO_UNAVAILABLE",
            "REQUIRED_TOS_AGREEMENT",
            "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING",
            "RESOURCE_NOT_DELETED",
            "SCHEMA_VALIDATION_IGNORED",
            "SINGLE_INSTANCE_PROPERTY_TEMPLATE",
            "UNDECLARED_PROPERTIES",
            "UNREACHABLE"
          ]
        }
      },
      "type": "object",
      "description": "[Output Only] Informational warning message."
    },
    "selfLink": {
      "type": "string",
      "description": "Output only. [Output Only] Server-defined URL for this resource.",
      "readOnly": true
    },
    "nextPageToken": {
      "description": "[Output Only] This token allows you to get the next page of results for\nlist requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value for\nthe query parameter pageToken in the next list request.\nSubsequent list requests will have their own nextPageToken to\ncontinue paging through the results.",
      "type": "string"
    },
    "id": {
      "description": "[Output Only] Unique identifier for the resource; defined by the server.",
      "type": "string"
    },
    "unreachables": {
      "description": "Output only. [Output Only] Unreachable resources.",
      "items": {
        "type": "string"
      },
      "readOnly": true,
      "type": "array"
    },
    "kind": {
      "description": "Output only. [Output Only] Type of resource. Alwayscompute#VmExtensionPolicyAggregatedList for lists of\nVmExtensionPolicies.",
      "default": "compute#VmExtensionPolicyAggregatedList",
      "readOnly": true,
      "type": "string"
    },
    "etag": {
      "type": "string"
    }
  },
  "$defs": {
    "VmExtensionPoliciesScopedList": {
      "type": "object",
      "properties": {
        "vmExtensionPolicies": {
          "description": "List of VmExtensionPolicy resources contained in this scope.",
          "items": {
            "$ref": "#/$defs/VmExtensionPolicy"
          },
          "type": "array"
        },
        "warning": {
          "description": "Informational warning which replaces the list of\nbackend services when the list is empty.",
          "type": "object",
          "properties": {
            "data": {
              "description": "[Output Only] Metadata about this warning in key:\nvalue format. For example:\n\n\"data\": [\n  {\n   \"key\": \"scope\",\n   \"value\": \"zones/us-east1-d\"\n  }]",
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "key": {
                    "type": "string",
                    "description": "[Output Only] A key that provides more detail on the warning being\nreturned. For example, for warnings where there are no results in a list\nrequest for a particular zone, this key might be scope and\nthe key value might be the zone name. Other examples might be a key\nindicating a deprecated resource and a suggested replacement, or a\nwarning about invalid network settings (for example, if an instance\nattempts to perform IP forwarding but is not enabled for IP forwarding)."
                  },
                  "value": {
                    "type": "string",
                    "description": "[Output Only] A warning data value corresponding to the key."
                  }
                }
              }
            },
            "message": {
              "description": "[Output Only] A human-readable description of the warning code.",
              "type": "string"
            },
            "code": {
              "type": "string",
              "description": "[Output Only] A warning code, if applicable. For example, Compute\nEngine returns NO_RESULTS_ON_PAGE if there\nare no results in the response.",
              "enum": [
                "CLEANUP_FAILED",
                "DEPRECATED_RESOURCE_USED",
                "DEPRECATED_TYPE_USED",
                "DISK_SIZE_LARGER_THAN_IMAGE_SIZE",
                "EXPERIMENTAL_TYPE_USED",
                "EXTERNAL_API_WARNING",
                "FIELD_VALUE_OVERRIDEN",
                "INJECTED_KERNELS_DEPRECATED",
                "INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB",
                "LARGE_DEPLOYMENT_WARNING",
                "LIST_OVERHEAD_QUOTA_EXCEED",
                "MISSING_TYPE_DEPENDENCY",
                "NEXT_HOP_ADDRESS_NOT_ASSIGNED",
                "NEXT_HOP_CANNOT_IP_FORWARD",
                "NEXT_HOP_INSTANCE_HAS_NO_IPV6_INTERFACE",
                "NEXT_HOP_INSTANCE_NOT_FOUND",
                "NEXT_HOP_INSTANCE_NOT_ON_NETWORK",
                "NEXT_HOP_NOT_RUNNING",
                "NOT_CRITICAL_ERROR",
                "NO_RESULTS_ON_PAGE",
                "PARTIAL_SUCCESS",
                "QUOTA_INFO_UNAVAILABLE",
                "REQUIRED_TOS_AGREEMENT",
                "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING",
                "RESOURCE_NOT_DELETED",
                "SCHEMA_VALIDATION_IGNORED",
                "SINGLE_INSTANCE_PROPERTY_TEMPLATE",
                "UNDECLARED_PROPERTIES",
                "UNREACHABLE"
              ]
            }
          }
        }
      }
    },
    "VmExtensionPolicy": {
      "description": "Represents a VM extension policy.",
      "properties": {
        "extensionPolicies": {
          "description": "Required. A map of extension names (for example, \"ops-agent\") to their corresponding\npolicy configurations.",
          "additionalProperties": {
            "$ref": "#/$defs/VmExtensionPolicyExtensionPolicy"
          },
          "type": "object"
        },
        "creationTimestamp": {
          "readOnly": true,
          "type": "string",
          "description": "Output only. [Output Only] Creation timestamp inRFC3339\ntext format."
        },
        "managedByGlobal": {
          "type": "boolean",
          "description": "Optional. Output only. [Output Only] Indicates if this policy is managed by a global policy.",
          "readOnly": true
        },
        "name": {
          "type": "string",
          "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?",
          "description": "Name of the resource. Provided by the client when the resource is created.\nThe name must be 1-63 characters long, and comply withRFC1035.\nSpecifically, the name must be 1-63 characters long and match the regular\nexpression `[a-z]([-a-z0-9]*[a-z0-9])?`\nwhich means the first character must be a lowercase letter, and all\nfollowing characters must be a dash, lowercase letter, or digit, except\nthe last character, which cannot be a dash."
        },
        "description": {
          "description": "An optional description of this resource.",
          "type": "string"
        },
        "instanceSelectors": {
          "description": "Optional. Selectors to target VMs for this policy. VMs are selected if they match\n*any* of the provided selectors (logical OR). If this list is empty, the\npolicy applies to all VMs.",
          "type": "array",
          "items": {
            "$ref": "#/$defs/VmExtensionPolicyInstanceSelector"
          }
        },
        "updateTimestamp": {
          "description": "Output only. [Output Only] Update timestamp inRFC3339\ntext format.",
          "readOnly": true,
          "type": "string"
        },
        "kind": {
          "readOnly": true,
          "description": "Output only. [Output Only] Type of the resource. Alwayscompute#vmExtensionPolicy.",
          "default": "compute#vmExtensionPolicy",
          "type": "string"
        },
        "id": {
          "description": "Output only. [Output Only] The unique identifier for the resource. This identifier is\ndefined by the server.",
          "readOnly": true,
          "type": "string",
          "format": "uint64"
        },
        "selfLinkWithId": {
          "type": "string",
          "readOnly": true,
          "description": "Output only. [Output Only] Server-defined URL for this resource's resource id."
        },
        "priority": {
          "type": "integer",
          "description": "Optional. Priority of this policy. Used to resolve conflicts when multiple policies\napply to the same extension.\nThe policy priority is an integer from 0 to 65535, inclusive. Lower\nintegers indicate higher priorities. If you do not specify a priority when\ncreating a rule, it is assigned a priority of 1000. If priorities are\nequal, the policy with the most recent creation timestamp takes precedence.",
          "format": "int32"
        },
        "state": {
          "type": "string",
          "description": "Optional. Output only. [Output Only] Current state of the policy: ACTIVE or DELETING.",
          "enum": [
            "ACTIVE",
            "DELETING",
            "STATE_UNSPECIFIED"
          ],
          "readOnly": true
        },
        "selfLink": {
          "type": "string",
          "description": "Output only. [Output Only] Server-defined fully-qualified URL for this resource.",
          "readOnly": true
        },
        "globalResourceLink": {
          "description": "Optional. Output only. [Output Only] Link to the global policy that manages this zone policy, if\napplicable.",
          "readOnly": true,
          "type": "string"
        }
      },
      "type": "object"
    },
    "VmExtensionPolicyExtensionPolicy": {
      "properties": {
        "pinnedVersion": {
          "description": "Optional. The specific version of the extension to install. If not set, the latest\nversion is used.",
          "type": "string"
        },
        "stringConfig": {
          "description": "Optional. String-based configuration data for the extension.",
          "type": "string"
        }
      },
      "type": "object",
      "description": "Configuration for a specific VM extension."
    },
    "VmExtensionPolicyInstanceSelector": {
      "type": "object",
      "properties": {
        "labelSelector": {
          "$ref": "#/$defs/VmExtensionPolicyLabelSelector",
          "description": "Optional. LabelSelector selects VMs based on their labels."
        }
      },
      "description": "Defines how to select VMs to apply a zone VM extension policy."
    },
    "VmExtensionPolicyLabelSelector": {
      "type": "object",
      "properties": {
        "inclusionLabels": {
          "type": "object",
          "description": "Optional. A map of key-value pairs representing VM labels.\nVMs must have all of the labels specified in this map to be selected\n(logical AND).\n\ne.g. If the `inclusion_labels` are {(\"key1\", \"value1\"), (\"key2\",\n\"value2\")}, the VM labels must contain both (\"key1\", \"value1\") and\n(\"key2\", \"value2\") to be selected. If the VM labels are (\"key1\",\n\"value1\") and (\"something\", \"else\"), it will not be selected.\n\nIf the map is empty, it's considered a match.",
          "additionalProperties": {
            "type": "string"
          }
        }
      },
      "description": "A LabelSelector is applied to a VM only if it matches all the specified\nlabels."
    }
  }
}