{
  "description": "PrivateCACAPool is the Schema for the PrivateCACAPool 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": "PrivateCACAPoolSpec defines the desired state of PrivateCACAPool",
      "properties": {
        "issuancePolicy": {
          "description": "Optional. The IssuancePolicy to control how Certificates will be issued from this CaPool.",
          "properties": {
            "allowedIssuanceModes": {
              "description": "Optional. If specified, then only methods allowed in the [IssuanceModes][google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes] may be used to issue [Certificates][google.cloud.security.privateca.v1.Certificate].",
              "properties": {
                "allowConfigBasedIssuance": {
                  "description": "Optional. When true, allows callers to create [Certificates][google.cloud.security.privateca.v1.Certificate] by specifying a [CertificateConfig][google.cloud.security.privateca.v1.CertificateConfig].",
                  "type": "boolean"
                },
                "allowCsrBasedIssuance": {
                  "description": "Optional. When true, allows callers to create [Certificates][google.cloud.security.privateca.v1.Certificate] by specifying a CSR.",
                  "type": "boolean"
                }
              },
              "type": "object",
              "additionalProperties": false
            },
            "allowedKeyTypes": {
              "description": "Optional. If any [AllowedKeyType][google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType] is specified, then the certificate request's public key must match one of the key types listed here. Otherwise, any key may be used.",
              "items": {
                "properties": {
                  "ellipticCurve": {
                    "description": "Represents an allowed Elliptic Curve key type.",
                    "properties": {
                      "signatureAlgorithm": {
                        "description": "Optional. A signature algorithm that must be used. If this is omitted, any EC-based signature algorithm will be allowed.",
                        "type": "string"
                      }
                    },
                    "type": "object",
                    "additionalProperties": false
                  },
                  "rsa": {
                    "description": "Represents an allowed RSA key type.",
                    "properties": {
                      "maxModulusSize": {
                        "description": "Optional. The maximum allowed RSA modulus size (inclusive), in bits. If this is not set, or if set to zero, the service will not enforce an explicit upper bound on RSA modulus sizes.",
                        "format": "int64",
                        "type": "integer"
                      },
                      "minModulusSize": {
                        "description": "Optional. The minimum allowed RSA modulus size (inclusive), in bits. If this is not set, or if set to zero, the service-level min RSA modulus size will continue to apply.",
                        "format": "int64",
                        "type": "integer"
                      }
                    },
                    "type": "object",
                    "additionalProperties": false
                  }
                },
                "type": "object",
                "additionalProperties": false
              },
              "type": "array"
            },
            "baselineValues": {
              "description": "Optional. A set of X.509 values that will be applied to all certificates issued through this [CaPool][google.cloud.security.privateca.v1.CaPool]. If a certificate request includes conflicting values for the same properties, they will be overwritten by the values defined here. If a certificate request uses a [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] that defines conflicting [predefined_values][google.cloud.security.privateca.v1.CertificateTemplate.predefined_values] for the same properties, the certificate issuance request will fail.",
              "properties": {
                "additionalExtensions": {
                  "description": "Optional. Describes custom X.509 extensions.",
                  "items": {
                    "description": "X509Extension",
                    "properties": {
                      "critical": {
                        "description": "Optional. Indicates whether or not this extension is critical (i.e., if the client does not know how to handle this extension, the client should consider this to be an error).",
                        "type": "boolean"
                      },
                      "objectId": {
                        "description": "Required. The OID for this X.509 extension.",
                        "properties": {
                          "objectIdPath": {
                            "description": "Required. The parts of an OID path. The most significant parts of the path come first.",
                            "items": {
                              "format": "int32",
                              "type": "integer"
                            },
                            "type": "array"
                          }
                        },
                        "type": "object",
                        "additionalProperties": false
                      },
                      "value": {
                        "description": "Required. The value of this X.509 extension.",
                        "format": "byte",
                        "type": "string"
                      }
                    },
                    "type": "object",
                    "additionalProperties": false
                  },
                  "type": "array"
                },
                "aiaOcspServers": {
                  "description": "Optional. Describes Online Certificate Status Protocol (OCSP) endpoint addresses that appear in the \"Authority Information Access\" extension in the certificate.",
                  "items": {
                    "type": "string"
                  },
                  "type": "array"
                },
                "caOptions": {
                  "description": "Optional. Describes options in this [X509Parameters][google.cloud.security.privateca.v1.X509Parameters] that are relevant in a CA certificate. If not specified, a default basic constraints extension with `is_ca=false` will be added for leaf certificates.",
                  "properties": {
                    "isCa": {
                      "description": "Optional. Refers to the \"CA\" boolean field in the X.509 extension. When this value is missing, the basic constraints extension will be omitted from the certificate.",
                      "type": "boolean"
                    },
                    "maxIssuerPathLength": {
                      "description": "Optional. Refers to the path length constraint field in the X.509 extension. For a CA certificate, this value describes the depth of subordinate CA certificates that are allowed. If this value is less than 0, the request will fail. If this value is missing, the max path length will be omitted from the certificate.",
                      "format": "int32",
                      "type": "integer"
                    },
                    "zeroMaxIssuerPathLength": {
                      "description": "Optional. When true, the \"path length constraint\" in Basic Constraints extension will be set to 0. if both max_issuer_path_length and zero_max_issuer_path_length are unset, the max path length will be omitted from the CA certificate.",
                      "type": "boolean"
                    }
                  },
                  "type": "object",
                  "additionalProperties": false
                },
                "keyUsage": {
                  "description": "Optional. Indicates the intended use for keys that correspond to a certificate.",
                  "properties": {
                    "baseKeyUsage": {
                      "description": "Describes high-level ways in which a key may be used.",
                      "properties": {
                        "certSign": {
                          "description": "The key may be used to sign certificates.",
                          "type": "boolean"
                        },
                        "contentCommitment": {
                          "description": "The key may be used for cryptographic commitments. Note that this may also be referred to as \"non-repudiation\".",
                          "type": "boolean"
                        },
                        "crlSign": {
                          "description": "The key may be used sign certificate revocation lists.",
                          "type": "boolean"
                        },
                        "dataEncipherment": {
                          "description": "The key may be used to encipher data.",
                          "type": "boolean"
                        },
                        "decipherOnly": {
                          "description": "The key may be used to decipher only.",
                          "type": "boolean"
                        },
                        "digitalSignature": {
                          "description": "The key may be used for digital signatures.",
                          "type": "boolean"
                        },
                        "encipherOnly": {
                          "description": "The key may be used to encipher only.",
                          "type": "boolean"
                        },
                        "keyAgreement": {
                          "description": "The key may be used in a key agreement protocol.",
                          "type": "boolean"
                        },
                        "keyEncipherment": {
                          "description": "The key may be used to encipher other keys.",
                          "type": "boolean"
                        }
                      },
                      "type": "object",
                      "additionalProperties": false
                    },
                    "extendedKeyUsage": {
                      "description": "Detailed scenarios in which a key may be used.",
                      "properties": {
                        "clientAuth": {
                          "description": "Corresponds to OID 1.3.6.1.5.5.7.3.2. Officially described as \"TLS WWW client authentication\", though regularly used for non-WWW TLS.",
                          "type": "boolean"
                        },
                        "codeSigning": {
                          "description": "Corresponds to OID 1.3.6.1.5.5.7.3.3. Officially described as \"Signing of downloadable executable code client authentication\".",
                          "type": "boolean"
                        },
                        "emailProtection": {
                          "description": "Corresponds to OID 1.3.6.1.5.5.7.3.4. Officially described as \"Email protection\".",
                          "type": "boolean"
                        },
                        "ocspSigning": {
                          "description": "Corresponds to OID 1.3.6.1.5.5.7.3.9. Officially described as \"Signing OCSP responses\".",
                          "type": "boolean"
                        },
                        "serverAuth": {
                          "description": "Corresponds to OID 1.3.6.1.5.5.7.3.1. Officially described as \"TLS WWW server authentication\", though regularly used for non-WWW TLS.",
                          "type": "boolean"
                        },
                        "timeStamping": {
                          "description": "Corresponds to OID 1.3.6.1.5.5.7.3.8. Officially described as \"Binding the hash of an object to a time\".",
                          "type": "boolean"
                        }
                      },
                      "type": "object",
                      "additionalProperties": false
                    },
                    "unknownExtendedKeyUsages": {
                      "description": "Used to describe extended key usages that are not listed in the [KeyUsage.ExtendedKeyUsageOptions][google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions] message.",
                      "items": {
                        "properties": {
                          "objectIdPath": {
                            "description": "Required. The parts of an OID path. The most significant parts of the path come first.",
                            "items": {
                              "format": "int32",
                              "type": "integer"
                            },
                            "type": "array"
                          }
                        },
                        "type": "object",
                        "additionalProperties": false
                      },
                      "type": "array"
                    }
                  },
                  "type": "object",
                  "additionalProperties": false
                },
                "policyIds": {
                  "description": "Optional. Describes the X.509 certificate policy object identifiers, per https://tools.ietf.org/html/rfc5280#section-4.2.1.4.",
                  "items": {
                    "properties": {
                      "objectIdPath": {
                        "description": "Required. The parts of an OID path. The most significant parts of the path come first.",
                        "items": {
                          "format": "int32",
                          "type": "integer"
                        },
                        "type": "array"
                      }
                    },
                    "type": "object",
                    "additionalProperties": false
                  },
                  "type": "array"
                }
              },
              "type": "object",
              "additionalProperties": false
            },
            "identityConstraints": {
              "description": "Optional. Describes constraints on identities that may appear in [Certificates][google.cloud.security.privateca.v1.Certificate] issued through this [CaPool][google.cloud.security.privateca.v1.CaPool]. If this is omitted, then this [CaPool][google.cloud.security.privateca.v1.CaPool] will not add restrictions on a certificate's identity.",
              "properties": {
                "allowSubjectAltNamesPassthrough": {
                  "description": "Required. If this is true, the [SubjectAltNames][google.cloud.security.privateca.v1.SubjectAltNames] extension may be copied from a certificate request into the signed certificate. Otherwise, the requested [SubjectAltNames][google.cloud.security.privateca.v1.SubjectAltNames] will be discarded.",
                  "type": "boolean"
                },
                "allowSubjectPassthrough": {
                  "description": "Required. If this is true, the [Subject][google.cloud.security.privateca.v1.Subject] field may be copied from a certificate request into the signed certificate. Otherwise, the requested [Subject][google.cloud.security.privateca.v1.Subject] will be discarded.",
                  "type": "boolean"
                },
                "celExpression": {
                  "description": "Optional. A CEL expression that may be used to validate the resolved X.509 Subject and/or Subject Alternative Name before a certificate is signed. To see the full allowed syntax and some examples, see https://cloud.google.com/certificate-authority-service/docs/using-cel",
                  "properties": {
                    "description": {
                      "description": "Optional. Description of the expression. This is a longer text which describes the expression, e.g. when hovered over it in a UI.",
                      "type": "string"
                    },
                    "expression": {
                      "description": "Textual representation of an expression in Common Expression Language syntax.",
                      "type": "string"
                    },
                    "location": {
                      "description": "Optional. String indicating the location of the expression for error reporting, e.g. a file name and a position in the file.",
                      "type": "string"
                    },
                    "title": {
                      "description": "Optional. Title for the expression, i.e. a short string describing its purpose. This can be used e.g. in UIs which allow to enter the expression.",
                      "type": "string"
                    }
                  },
                  "type": "object",
                  "additionalProperties": false
                }
              },
              "type": "object",
              "additionalProperties": false
            },
            "maximumLifetime": {
              "description": "Optional. The maximum lifetime allowed for issued [Certificates][google.cloud.security.privateca.v1.Certificate]. Note that if the issuing [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] expires before a [Certificate][google.cloud.security.privateca.v1.Certificate] resource's requested maximum_lifetime, the effective lifetime will be explicitly truncated to match it.",
              "type": "string"
            },
            "passthroughExtensions": {
              "description": "Optional. Describes the set of X.509 extensions that may appear in a [Certificate][google.cloud.security.privateca.v1.Certificate] issued through this [CaPool][google.cloud.security.privateca.v1.CaPool]. If a certificate request sets extensions that don't appear in the [passthrough_extensions][google.cloud.security.privateca.v1.CaPool.IssuancePolicy.passthrough_extensions], those extensions will be dropped. If a certificate request uses a [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] with [predefined_values][google.cloud.security.privateca.v1.CertificateTemplate.predefined_values] that don't appear here, the certificate issuance request will fail. If this is omitted, then this [CaPool][google.cloud.security.privateca.v1.CaPool] will not add restrictions on a certificate's X.509 extensions. These constraints do not apply to X.509 extensions set in this [CaPool][google.cloud.security.privateca.v1.CaPool]'s [baseline_values][google.cloud.security.privateca.v1.CaPool.IssuancePolicy.baseline_values].",
              "properties": {
                "additionalExtensions": {
                  "description": "Optional. A set of [ObjectIds][google.cloud.security.privateca.v1.ObjectId] identifying custom X.509 extensions. Will be combined with [known_extensions][google.cloud.security.privateca.v1.CertificateExtensionConstraints.known_extensions] to determine the full set of X.509 extensions.",
                  "items": {
                    "properties": {
                      "objectIdPath": {
                        "description": "Required. The parts of an OID path. The most significant parts of the path come first.",
                        "items": {
                          "format": "int32",
                          "type": "integer"
                        },
                        "type": "array"
                      }
                    },
                    "type": "object",
                    "additionalProperties": false
                  },
                  "type": "array"
                },
                "knownExtensions": {
                  "description": "Optional. A set of named X.509 extensions. Will be combined with [additional_extensions][google.cloud.security.privateca.v1.CertificateExtensionConstraints.additional_extensions] to determine the full set of X.509 extensions.",
                  "items": {
                    "type": "string"
                  },
                  "type": "array"
                }
              },
              "type": "object",
              "additionalProperties": false
            }
          },
          "type": "object",
          "additionalProperties": false
        },
        "location": {
          "description": "The location of this resource.",
          "type": "string"
        },
        "projectRef": {
          "description": "The project that this resource belongs to.",
          "oneOf": [
            {
              "not": {
                "required": [
                  "external"
                ]
              },
              "required": [
                "name"
              ]
            },
            {
              "not": {
                "anyOf": [
                  {
                    "required": [
                      "name"
                    ]
                  },
                  {
                    "required": [
                      "namespace"
                    ]
                  }
                ]
              },
              "required": [
                "external"
              ]
            }
          ],
          "properties": {
            "external": {
              "description": "The `projectID` field of a project, when not managed by Config Connector.",
              "type": "string"
            },
            "kind": {
              "description": "The kind of the Project resource; optional but must be `Project` if provided.",
              "type": "string"
            },
            "name": {
              "description": "The `name` field of a `Project` resource.",
              "type": "string"
            },
            "namespace": {
              "description": "The `namespace` field of a `Project` resource.",
              "type": "string"
            }
          },
          "type": "object",
          "additionalProperties": false
        },
        "publishingOptions": {
          "description": "Optional. The PublishingOptions to follow when issuing Certificates from any CertificateAuthority in this CaPool.",
          "properties": {
            "publishCaCert": {
              "description": "Optional. When true, publishes each [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]'s CA certificate and includes its URL in the \"Authority Information Access\" X.509 extension in all issued [Certificates][google.cloud.security.privateca.v1.Certificate]. If this is false, the CA certificate will not be published and the corresponding X.509 extension will not be written in issued certificates.",
              "type": "boolean"
            },
            "publishCrl": {
              "description": "Optional. When true, publishes each [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]'s CRL and includes its URL in the \"CRL Distribution Points\" X.509 extension in all issued [Certificates][google.cloud.security.privateca.v1.Certificate]. If this is false, CRLs will not be published and the corresponding X.509 extension will not be written in issued certificates. CRLs will expire 7 days from their creation. However, we will rebuild daily. CRLs are also rebuilt shortly after a certificate is revoked.",
              "type": "boolean"
            }
          },
          "type": "object",
          "additionalProperties": false
        },
        "resourceID": {
          "description": "The PrivateCACAPool name. If not given, the metadata.name will be used.",
          "type": "string"
        },
        "tier": {
          "description": "Required. Immutable. The Tier of this CaPool. Possible values: TIER_UNSPECIFIED, ENTERPRISE, DEVOPS",
          "type": "string"
        }
      },
      "required": [
        "location",
        "projectRef"
      ],
      "type": "object",
      "additionalProperties": false
    },
    "status": {
      "description": "PrivateCACAPoolStatus defines the config connector machine state of PrivateCACAPool",
      "properties": {
        "conditions": {
          "description": "Conditions represent the latest available observations of the object's current state.",
          "items": {
            "properties": {
              "lastTransitionTime": {
                "description": "Last time the condition transitioned from one status to another.",
                "type": "string"
              },
              "message": {
                "description": "Human-readable message indicating details about last transition.",
                "type": "string"
              },
              "reason": {
                "description": "Unique, one-word, CamelCase reason for the condition's last transition.",
                "type": "string"
              },
              "status": {
                "description": "Status is the status of the condition. Can be True, False, Unknown.",
                "type": "string"
              },
              "type": {
                "description": "Type is the type of the condition.",
                "type": "string"
              }
            },
            "type": "object",
            "additionalProperties": false
          },
          "type": "array"
        },
        "observedGeneration": {
          "description": "ObservedGeneration is the generation of the resource that was most recently observed by the Config Connector controller. If this is equal to metadata.generation, then that means that the current reported status reflects the most recent desired state of the resource.",
          "format": "int64",
          "type": "integer"
        }
      },
      "type": "object",
      "additionalProperties": false
    }
  },
  "required": [
    "spec"
  ],
  "type": "object"
}
