{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/google-chrome/json-schema/google-chrome-google-chrome-management-versions-v1-certificate-provisioning-process-schema.json",
  "title": "GoogleChromeManagementVersionsV1CertificateProvisioningProcess",
  "description": "A certificate provisioning process.",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/google-chrome-chromemanagement-customers-api-openapi.yml#/components/schemas/GoogleChromeManagementVersionsV1CertificateProvisioningProcess",
  "properties": {
    "signData": {
      "readOnly": true,
      "format": "byte",
      "description": "Output only. The data that the client was asked to sign. This field is only present after the `SignData` operation has been initiated.",
      "type": "string"
    },
    "chromeOsUserSession": {
      "$ref": "#/$defs/GoogleChromeManagementVersionsV1ChromeOsUserSession",
      "description": "Output only. The client certificate is being provisioned for a ChromeOS user. This contains information about the current user session."
    },
    "startTime": {
      "type": "string",
      "description": "Output only. Server-generated timestamp of when the certificate provisioning process has been created.",
      "readOnly": true,
      "format": "google-datetime"
    },
    "genericProfile": {
      "$ref": "#/$defs/GoogleChromeManagementVersionsV1GenericProfile",
      "description": "Output only. The profile is a generic certificate provisioning profile."
    },
    "name": {
      "description": "Identifier. Resource name of the `CertificateProvisioningProcess`. The name pattern is given as `customers/{customer}/certificateProvisioningProcesses/{certificate_provisioning_process}` with `{customer}` being the obfuscated customer id and `{certificate_provisioning_process}` being the certificate provisioning process id.",
      "type": "string"
    },
    "failureMessage": {
      "readOnly": true,
      "description": "Output only. A message describing why this `CertificateProvisioningProcess` has failed. Presence of this field indicates that the `CertificateProvisioningProcess` has failed.",
      "type": "string"
    },
    "subjectPublicKeyInfo": {
      "type": "string",
      "format": "byte",
      "readOnly": true,
      "description": "Output only. The public key for which a certificate should be provisioned. Represented as a DER-encoded X.509 SubjectPublicKeyInfo."
    },
    "issuedCertificate": {
      "description": "Output only. The issued certificate for this `CertificateProvisioningProcess` in PEM format.",
      "readOnly": true,
      "type": "string"
    },
    "signature": {
      "type": "string",
      "readOnly": true,
      "format": "byte",
      "description": "Output only. The signature of `signature_algorithm`, generated using the client's private key using `signature_algorithm`. This field is only present after the `SignData` operation has finished."
    },
    "provisioningProfileId": {
      "type": "string",
      "readOnly": true,
      "description": "Output only. The ID of the certificate provisioning profile."
    },
    "scepProfile": {
      "$ref": "#/$defs/GoogleChromeManagementVersionsV1ScepProfile",
      "description": "Output only. The profile is a SCEP certificate provisioning profile."
    },
    "genericCaConnection": {
      "$ref": "#/$defs/GoogleChromeManagementVersionsV1GenericCaConnection",
      "description": "Output only. The CA connection is a generic CA connection."
    },
    "scepCaConnection": {
      "$ref": "#/$defs/GoogleChromeManagementVersionsV1ScepCaConnection",
      "description": "Output only. The CA connection is a SCEP CA connection."
    },
    "chromeOsDevice": {
      "$ref": "#/$defs/GoogleChromeManagementVersionsV1ChromeOsDevice",
      "description": "Output only. The client certificate is being provisioned for a ChromeOS device. This contains information about the device."
    },
    "signatureAlgorithm": {
      "description": "Output only. The signature algorithm that the client and backend components use when processing `sign_data`. If the `profile_type` is a `GenericProfile`, this field will only be present after the `SignData` operation was initiated. If the `profile_type` is a `ScepProfile`, the field will always be present.",
      "enum": [
        "SIGNATURE_ALGORITHM_UNSPECIFIED",
        "SIGNATURE_ALGORITHM_RSA_PKCS1_V1_5_SHA256",
        "SIGNATURE_ALGORITHM_ECDSA_SHA256"
      ],
      "readOnly": true,
      "type": "string"
    }
  },
  "type": "object",
  "$defs": {
    "GoogleChromeManagementVersionsV1ChromeOsDevice": {
      "description": "Describes the ChromeOS device that a `CertificateProvisioningProcess` belongs to.",
      "type": "object",
      "properties": {
        "serialNumber": {
          "readOnly": true,
          "type": "string",
          "description": "Output only. Device serial number. This value is the same as the Admin Console's Serial Number in the ChromeOS Devices tab."
        },
        "deviceDirectoryApiId": {
          "type": "string",
          "description": "Output only. The unique Directory API ID of the device. This value is the same as the Admin Console's Directory API ID in the ChromeOS Devices tab.",
          "readOnly": true
        }
      }
    },
    "GoogleChromeManagementVersionsV1ChromeOsUserSession": {
      "properties": {
        "userPrimaryEmail": {
          "readOnly": true,
          "type": "string",
          "description": "Output only. The primary e-mail address of the user."
        },
        "chromeOsDevice": {
          "$ref": "#/$defs/GoogleChromeManagementVersionsV1ChromeOsDevice",
          "description": "Output only. This field contains information about the ChromeOS device that the user session is running on. It is only set if the user is affiliated, i.e., if the user is managed by the same organization that manages the ChromeOS device."
        },
        "userDirectoryApiId": {
          "readOnly": true,
          "description": "Output only. The unique Directory API ID of the user.",
          "type": "string"
        }
      },
      "type": "object",
      "description": "Describes the ChromeOS user session that a `CertificateProvisioningProcess` belongs to."
    },
    "GoogleChromeManagementVersionsV1GenericCaConnection": {
      "properties": {
        "caConnectionAdapterConfigReference": {
          "type": "string",
          "description": "Output only. A string that references the administrator-provided configuration for the certification authority service.",
          "readOnly": true
        }
      },
      "type": "object",
      "description": "Describes a generic Certificate Authority Connection."
    },
    "GoogleChromeManagementVersionsV1GenericProfile": {
      "description": "Describes a generic certificate provisioning profile.",
      "type": "object",
      "properties": {
        "profileAdapterConfigReference": {
          "readOnly": true,
          "description": "Output only. A string that references the administrator-provided configuration for the certificate provisioning profile.",
          "type": "string"
        }
      }
    },
    "GoogleChromeManagementVersionsV1ScepCaConnection": {
      "description": "Describes a SCEP Certificate Authority Connection.",
      "type": "object",
      "properties": {
        "caConnectionAdapterConfigReference": {
          "description": "Output only. A string that references the administrator-provided configuration for the certification authority service.",
          "readOnly": true,
          "type": "string"
        }
      }
    },
    "GoogleChromeManagementVersionsV1ScepProfile": {
      "type": "object",
      "description": "Describes a SCEP certificate provisioning profile.",
      "properties": {
        "state": {
          "description": "Output only. The state of the subject.",
          "readOnly": true,
          "type": "string"
        },
        "organization": {
          "readOnly": true,
          "type": "string",
          "description": "Output only. The name of the organization the subject belongs to."
        },
        "subjectAltNames": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/GoogleChromeManagementVersionsV1SubjectAltName"
          },
          "readOnly": true,
          "description": "Output only. The subject alternative names."
        },
        "locality": {
          "type": "string",
          "readOnly": true,
          "description": "Output only. The locality of the subject."
        },
        "keyUsages": {
          "readOnly": true,
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "KEY_USAGE_UNSPECIFIED",
              "KEY_USAGE_SIGNING",
              "KEY_USAGE_KEY_ENCIPHERMENT"
            ]
          },
          "description": "Output only. The allowed key usages for certificate's key."
        },
        "subjectCommonName": {
          "description": "Output only. The common name of the subject.",
          "type": "string",
          "readOnly": true
        },
        "certificateTemplateName": {
          "type": "string",
          "description": "Output only. The certificate template name as defined by the admin on their on-prem infrastructure. The Certificate Authority uses this name to identify the certificate template.",
          "readOnly": true
        },
        "country": {
          "readOnly": true,
          "description": "Output only. The country of the subject.",
          "type": "string"
        },
        "organizationalUnits": {
          "description": "Output only. The organizational units of the subject.",
          "readOnly": true,
          "items": {
            "type": "string"
          },
          "type": "array"
        }
      }
    },
    "GoogleChromeManagementVersionsV1SubjectAltName": {
      "description": "Describes a subject alternative name.",
      "type": "object",
      "properties": {
        "value": {
          "type": "string",
          "description": "Output only. The value of the subject alternative name with respect to the `type`.",
          "readOnly": true
        },
        "type": {
          "description": "Output only. The type of the SubjectAltName extension.",
          "readOnly": true,
          "type": "string",
          "enum": [
            "SUBJECT_ALT_NAME_TYPE_UNSPECIFIED",
            "RFC822_NAME",
            "DNS_NAME",
            "OTHER_NAME_USER_PRINCIPAL_NAME",
            "UNIFORM_RESOURCE_IDENTIFIER"
          ]
        }
      }
    }
  }
}