{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/google-cloud-vmware-engine/json-schema/google-cloud-vmware-engine-private-cloud-schema.json",
  "title": "PrivateCloud",
  "description": "Represents a private cloud resource. Private clouds of type `STANDARD` and `TIME_LIMITED` are zonal resources, `STRETCHED` private clouds are regional.",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/google-cloud-vmware-engine-projects-api-openapi.yml#/components/schemas/PrivateCloud",
  "properties": {
    "managementCluster": {
      "$ref": "#/$defs/ManagementCluster",
      "description": "Required. Input only. The management cluster for this private cloud. This field is required during creation of the private cloud to provide details for the default cluster. The following fields can't be changed after private cloud creation: `ManagementCluster.clusterId`, `ManagementCluster.nodeTypeId`."
    },
    "deleteTime": {
      "type": "string",
      "description": "Output only. Time when the resource was scheduled for deletion.",
      "readOnly": true,
      "format": "google-datetime"
    },
    "encryptionConfig": {
      "$ref": "#/$defs/EncryptionConfig",
      "description": "Optional. Encryption configuration for the private cloud. If this field is left unspecified, Google default encryption is used."
    },
    "createTime": {
      "readOnly": true,
      "description": "Output only. Creation time of this resource.",
      "type": "string",
      "format": "google-datetime"
    },
    "type": {
      "type": "string",
      "description": "Optional. Type of the private cloud. Defaults to STANDARD.",
      "enum": [
        "STANDARD",
        "TIME_LIMITED",
        "STRETCHED"
      ]
    },
    "state": {
      "description": "Output only. State of the resource. New values may be added to this enum when appropriate.",
      "enum": [
        "STATE_UNSPECIFIED",
        "ACTIVE",
        "CREATING",
        "UPDATING",
        "FAILED",
        "DELETED",
        "PURGING"
      ],
      "readOnly": true,
      "type": "string"
    },
    "updateTime": {
      "type": "string",
      "format": "google-datetime",
      "readOnly": true,
      "description": "Output only. Last update time of this resource."
    },
    "vcenter": {
      "$ref": "#/$defs/Vcenter",
      "description": "Output only. Vcenter appliance."
    },
    "name": {
      "readOnly": true,
      "description": "Output only. Identifier. The resource name of this private cloud. Resource names are schemeless URIs that follow the conventions in https://cloud.google.com/apis/design/resource_names. For example: `projects/my-project/locations/us-central1-a/privateClouds/my-cloud`",
      "type": "string"
    },
    "expireTime": {
      "description": "Output only. Time when the resource will be irreversibly deleted.",
      "format": "google-datetime",
      "readOnly": true,
      "type": "string"
    },
    "uid": {
      "type": "string",
      "readOnly": true,
      "description": "Output only. System-generated unique identifier for the resource."
    },
    "nsx": {
      "$ref": "#/$defs/Nsx",
      "description": "Output only. NSX appliance."
    },
    "description": {
      "description": "User-provided description for this private cloud.",
      "type": "string"
    },
    "networkConfig": {
      "$ref": "#/$defs/NetworkConfig",
      "description": "Required. Network configuration of the private cloud."
    },
    "hcx": {
      "$ref": "#/$defs/Hcx",
      "description": "Output only. HCX appliance."
    }
  },
  "type": "object",
  "$defs": {
    "EncryptionConfig": {
      "type": "object",
      "description": "Encryption configuration for a private cloud.",
      "properties": {
        "cryptoKeyName": {
          "type": "string",
          "description": "Optional. The resource name of the Cloud KMS key to be used for CMEK encryption. The format of this field is `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`. The key must be in the same region as the private cloud. This key is used for wrapping the key-encrypting key of vSAN clusters. This field must be provided when `type` is `CMEK` or `LEGACY_CMEK`, and must not be set when `type` is `OTHER`."
        },
        "type": {
          "type": "string",
          "description": "Required. The encryption type of the private cloud.",
          "enum": [
            "TYPE_UNSPECIFIED",
            "CMEK",
            "LEGACY_CMEK",
            "OTHER"
          ]
        }
      }
    },
    "Hcx": {
      "properties": {
        "state": {
          "type": "string",
          "readOnly": true,
          "description": "Output only. The state of the appliance.",
          "enum": [
            "STATE_UNSPECIFIED",
            "ACTIVE",
            "CREATING",
            "ACTIVATING"
          ]
        },
        "version": {
          "type": "string",
          "description": "Version of the appliance."
        },
        "fqdn": {
          "description": "Fully qualified domain name of the appliance.",
          "type": "string"
        },
        "internalIp": {
          "type": "string",
          "description": "Internal IP address of the appliance."
        }
      },
      "description": "Details about a HCX Cloud Manager appliance.",
      "type": "object"
    },
    "ManagementCluster": {
      "description": "Management cluster configuration.",
      "type": "object",
      "properties": {
        "nodeTypeConfigs": {
          "additionalProperties": {
            "$ref": "#/$defs/NodeTypeConfig"
          },
          "type": "object",
          "description": "Required. The map of cluster node types in this cluster, where the key is canonical identifier of the node type (corresponds to the `NodeType`)."
        },
        "stretchedClusterConfig": {
          "$ref": "#/$defs/StretchedClusterConfig",
          "description": "Optional. Configuration of a stretched cluster. Required for STRETCHED private clouds."
        },
        "clusterId": {
          "description": "Required. The user-provided identifier of the new `Cluster`. The identifier must meet the following requirements: * Only contains 1-63 alphanumeric characters and hyphens * Begins with an alphabetical character * Ends with a non-hyphen character * Not formatted as a UUID * Complies with [RFC 1034](https://datatracker.ietf.org/doc/html/rfc1034) (section 3.5)",
          "type": "string"
        },
        "placementGroup": {
          "description": "Optional. The identifier of the placement group for management cluster nodes. A placement group is an internal Google identifier for a group of resources that are physically located within the same fault domain. If provided, nodes for this cluster are placed within the specified placement group. If this field is omitted, the system selects an appropriate placement group.",
          "type": "string"
        }
      }
    },
    "NetworkConfig": {
      "type": "object",
      "properties": {
        "managementIpAddressLayoutVersion": {
          "format": "int32",
          "readOnly": true,
          "type": "integer",
          "description": "Output only. The IP address layout version of the management IP address range. Possible versions include: * `managementIpAddressLayoutVersion=1`: Indicates the legacy IP address layout used by some existing private clouds. This is no longer supported for new private clouds as it does not support all features. * `managementIpAddressLayoutVersion=2`: Indicates the latest IP address layout used by all newly created private clouds. This version supports all current features."
        },
        "vmwareEngineNetwork": {
          "type": "string",
          "description": "Optional. The relative resource name of the VMware Engine network attached to the private cloud. Specify the name in the following form: `projects/{project}/locations/{location}/vmwareEngineNetworks/{vmware_engine_network_id}` where `{project}` can either be a project number or a project ID."
        },
        "managementCidr": {
          "type": "string",
          "description": "Required. Management CIDR used by VMware management appliances."
        },
        "vmwareEngineNetworkCanonical": {
          "readOnly": true,
          "description": "Output only. The canonical name of the VMware Engine network in the form: `projects/{project_number}/locations/{location}/vmwareEngineNetworks/{vmware_engine_network_id}`",
          "type": "string"
        },
        "dnsServerIp": {
          "readOnly": true,
          "type": "string",
          "description": "Output only. DNS Server IP of the Private Cloud. All DNS queries can be forwarded to this address for name resolution of Private Cloud's management entities like vCenter, NSX-T Manager and ESXi hosts."
        }
      },
      "description": "Network configuration in the consumer project with which the peering has to be done."
    },
    "NodeTypeConfig": {
      "description": "Information about the type and number of nodes associated with the cluster.",
      "properties": {
        "customCoreCount": {
          "description": "Optional. Customized number of cores available to each node of the type. This number must always be one of `nodeType.availableCustomCoreCounts`. If zero is provided max value from `nodeType.availableCustomCoreCounts` will be used.",
          "format": "int32",
          "type": "integer"
        },
        "nodeCount": {
          "description": "Required. The number of nodes of this type in the cluster",
          "format": "int32",
          "type": "integer"
        }
      },
      "type": "object"
    },
    "Nsx": {
      "type": "object",
      "description": "Details about a NSX Manager appliance.",
      "properties": {
        "internalIp": {
          "description": "Internal IP address of the appliance.",
          "type": "string"
        },
        "fqdn": {
          "type": "string",
          "description": "Fully qualified domain name of the appliance."
        },
        "version": {
          "type": "string",
          "description": "Version of the appliance."
        },
        "state": {
          "description": "Output only. The state of the appliance.",
          "enum": [
            "STATE_UNSPECIFIED",
            "ACTIVE",
            "CREATING"
          ],
          "readOnly": true,
          "type": "string"
        }
      }
    },
    "StretchedClusterConfig": {
      "properties": {
        "secondaryLocationPlacementGroup": {
          "description": "Optional. The identifier of the placement group for secondary location cluster nodes. A placement group is an internal Google identifier for a group of resources that are physically located within the same fault domain. If provided, nodes for this cluster are placed within the specified placement group. If this field is omitted, the system selects an appropriate placement group.",
          "type": "string"
        },
        "preferredLocationPlacementGroup": {
          "type": "string",
          "description": "Optional. The identifier of the placement group for preferred location cluster nodes. A placement group is an internal Google identifier for a group of resources that are physically located within the same fault domain. If provided, nodes for this cluster are placed within the specified placement group. If this field is omitted, the system selects an appropriate placement group."
        },
        "secondaryLocation": {
          "type": "string",
          "description": "Required. Additional zone for a higher level of availability and load balancing. Specify the resource name or ID of a zone that belongs to the region of the private cloud. For example: `projects/{project}/locations/europe-west3-b` or `europe-west3-b`, where `{project}` can either be a project number or a project ID."
        },
        "preferredLocation": {
          "description": "Required. Zone that will remain operational when connection between the two zones is lost. Specify the resource name or ID of a zone that belongs to the region of the private cloud. For example: `projects/{project}/locations/europe-west3-a` or `europe-west3-a`, where `{project}` can either be a project number or a project ID.",
          "type": "string"
        }
      },
      "description": "Configuration of a stretched cluster.",
      "type": "object"
    },
    "Vcenter": {
      "description": "Details about a vCenter Server management appliance.",
      "type": "object",
      "properties": {
        "state": {
          "enum": [
            "STATE_UNSPECIFIED",
            "ACTIVE",
            "CREATING"
          ],
          "readOnly": true,
          "description": "Output only. The state of the appliance.",
          "type": "string"
        },
        "fqdn": {
          "type": "string",
          "description": "Fully qualified domain name of the appliance."
        },
        "version": {
          "description": "Version of the appliance.",
          "type": "string"
        },
        "internalIp": {
          "type": "string",
          "description": "Internal IP address of the appliance."
        }
      }
    }
  }
}