{
  "description": "GCPClusterTemplate is the Schema for the gcpclustertemplates API.",
  "properties": {
    "apiVersion": {
      "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources",
      "type": "string"
    },
    "kind": {
      "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds",
      "type": "string"
    },
    "metadata": {
      "type": "object"
    },
    "spec": {
      "description": "GCPClusterTemplateSpec defines the desired state of GCPClusterTemplate.",
      "properties": {
        "template": {
          "description": "GCPClusterTemplateResource contains spec for GCPClusterSpec.",
          "properties": {
            "spec": {
              "description": "GCPClusterSpec defines the desired state of GCPCluster.",
              "properties": {
                "additionalLabels": {
                  "additionalProperties": {
                    "type": "string"
                  },
                  "description": "AdditionalLabels is an optional set of tags to add to GCP resources managed by the GCP provider, in addition to the ones added by default.",
                  "type": "object"
                },
                "controlPlaneEndpoint": {
                  "description": "ControlPlaneEndpoint represents the endpoint used to communicate with the control plane.",
                  "properties": {
                    "host": {
                      "description": "The hostname on which the API server is serving.",
                      "type": "string"
                    },
                    "port": {
                      "description": "The port on which the API server is serving.",
                      "format": "int32",
                      "type": "integer"
                    }
                  },
                  "required": [
                    "host",
                    "port"
                  ],
                  "type": "object",
                  "additionalProperties": false
                },
                "failureDomains": {
                  "description": "FailureDomains is an optional field which is used to assign selected availability zones to a cluster FailureDomains if empty, defaults to all the zones in the selected region and if specified would override the default zones.",
                  "items": {
                    "type": "string"
                  },
                  "type": "array"
                },
                "network": {
                  "description": "NetworkSpec encapsulates all things related to GCP network.",
                  "properties": {
                    "autoCreateSubnetworks": {
                      "description": "AutoCreateSubnetworks: When set to true, the VPC network is created in \"auto\" mode. When set to false, the VPC network is created in \"custom\" mode. \n An auto mode VPC network starts with one subnet per region. Each subnet has a predetermined range as described in Auto mode VPC network IP ranges. \n Defaults to true.",
                      "type": "boolean"
                    },
                    "loadBalancerBackendPort": {
                      "description": "Allow for configuration of load balancer backend (useful for changing apiserver port)",
                      "format": "int32",
                      "type": "integer"
                    },
                    "name": {
                      "description": "Name is the name of the network to be used.",
                      "type": "string"
                    },
                    "subnets": {
                      "description": "Subnets configuration.",
                      "items": {
                        "description": "SubnetSpec configures an GCP Subnet.",
                        "properties": {
                          "cidrBlock": {
                            "description": "CidrBlock is the range of internal addresses that are owned by this subnetwork. Provide this property when you create the subnetwork. For example, 10.0.0.0/8 or 192.168.0.0/16. Ranges must be unique and non-overlapping within a network. Only IPv4 is supported. This field can be set only at resource creation time.",
                            "type": "string"
                          },
                          "description": {
                            "description": "Description is an optional description associated with the resource.",
                            "type": "string"
                          },
                          "name": {
                            "description": "Name defines a unique identifier to reference this resource.",
                            "type": "string"
                          },
                          "privateGoogleAccess": {
                            "description": "PrivateGoogleAccess defines whether VMs in this subnet can access Google services without assigning external IP addresses",
                            "type": "boolean"
                          },
                          "region": {
                            "description": "Region is the name of the region where the Subnetwork resides.",
                            "type": "string"
                          },
                          "routeTableId": {
                            "description": "EnableFlowLogs: Whether to enable flow logging for this subnetwork. If this field is not explicitly set, it will not appear in get listings. If not set the default behavior is to disable flow logging.",
                            "type": "boolean"
                          },
                          "secondaryCidrBlocks": {
                            "additionalProperties": {
                              "type": "string"
                            },
                            "description": "SecondaryCidrBlocks defines secondary CIDR ranges, from which secondary IP ranges of a VM may be allocated",
                            "type": "object"
                          }
                        },
                        "type": "object",
                        "additionalProperties": false
                      },
                      "type": "array"
                    }
                  },
                  "type": "object",
                  "additionalProperties": false
                },
                "project": {
                  "description": "Project is the name of the project to deploy the cluster to.",
                  "type": "string"
                },
                "region": {
                  "description": "The GCP Region the cluster lives in.",
                  "type": "string"
                }
              },
              "required": [
                "project",
                "region"
              ],
              "type": "object",
              "additionalProperties": false
            }
          },
          "required": [
            "spec"
          ],
          "type": "object",
          "additionalProperties": false
        }
      },
      "required": [
        "template"
      ],
      "type": "object",
      "additionalProperties": false
    }
  },
  "type": "object"
}
