{
  "description": "OrgPolicyCustomConstraint is the Schema for the OrgPolicyCustomConstraint 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": "OrgPolicyCustomConstraintSpec defines the desired state of OrgPolicyCustomConstraint",
      "properties": {
        "actionType": {
          "description": "Allow or deny type.",
          "type": "string"
        },
        "condition": {
          "description": "Org policy condition/expression. For example:\n `resource.instanceName.matches(\"[production|test]_.*_(\\d)+\")` or,\n `resource.management.auto_upgrade == true`\n\n The max length of the condition is 1000 characters.",
          "type": "string"
        },
        "description": {
          "description": "Detailed information about this custom policy constraint. The max length of the description is 2000 characters.",
          "type": "string"
        },
        "displayName": {
          "description": "One line display name for the UI. The max length of the display_name is 200 characters.",
          "type": "string"
        },
        "methodTypes": {
          "description": "All the operations being applied for this constraint.",
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "organizationRef": {
          "description": "The Organization that this resource belongs to.",
          "properties": {
            "external": {
              "description": "The 'name' field of an organization, when not managed by Config Connector.",
              "type": "string"
            }
          },
          "required": [
            "external"
          ],
          "type": "object",
          "additionalProperties": false
        },
        "resourceID": {
          "description": "The OrgPolicyCustomConstraint name. If not given, the metadata.name will be used.",
          "type": "string"
        },
        "resourceTypes": {
          "description": "Immutable. The resource instance type on which this policy applies. Format\n will be of the form : `<canonical service name>/<type>` Example:\n\n  * `compute.googleapis.com/Instance`.",
          "items": {
            "type": "string"
          },
          "type": "array"
        }
      },
      "required": [
        "organizationRef"
      ],
      "type": "object",
      "additionalProperties": false
    },
    "status": {
      "description": "OrgPolicyCustomConstraintStatus defines the config connector machine state of OrgPolicyCustomConstraint",
      "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"
        },
        "externalRef": {
          "description": "A unique specifier for the OrgPolicyCustomConstraint resource in GCP.",
          "type": "string"
        },
        "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"
        },
        "observedState": {
          "description": "ObservedState is the state of the resource as most recently observed in GCP.",
          "properties": {
            "updateTime": {
              "description": "Output only. The last time this custom constraint was updated. This represents the last time that the `CreateCustomConstraint` or `UpdateCustomConstraint` RPC was called",
              "type": "string"
            }
          },
          "type": "object",
          "additionalProperties": false
        }
      },
      "type": "object",
      "additionalProperties": false
    }
  },
  "required": [
    "spec"
  ],
  "type": "object"
}
