{
  "description": "GenerateRequest is a request to process generate rule.",
  "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": "Spec is the information to identify the generate request.",
      "properties": {
        "context": {
          "description": "Context ...",
          "properties": {
            "userInfo": {
              "description": "RequestInfo contains permission info carried in an admission request.",
              "properties": {
                "clusterRoles": {
                  "description": "ClusterRoles is a list of possible clusterRoles send the request.",
                  "items": {
                    "type": "string"
                  },
                  "nullable": true,
                  "type": "array"
                },
                "roles": {
                  "description": "Roles is a list of possible role send the request.",
                  "items": {
                    "type": "string"
                  },
                  "nullable": true,
                  "type": "array"
                },
                "userInfo": {
                  "description": "UserInfo is the userInfo carried in the admission request.",
                  "properties": {
                    "extra": {
                      "additionalProperties": {
                        "description": "ExtraValue masks the value so protobuf can generate",
                        "items": {
                          "type": "string"
                        },
                        "type": "array"
                      },
                      "description": "Any additional information provided by the authenticator.",
                      "type": "object"
                    },
                    "groups": {
                      "description": "The names of groups this user is a part of.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    },
                    "uid": {
                      "description": "A unique value that identifies this user across time. If this user is deleted and another user by the same name is added, they will have different UIDs.",
                      "type": "string"
                    },
                    "username": {
                      "description": "The name that uniquely identifies this user among all active users.",
                      "type": "string"
                    }
                  },
                  "type": "object",
                  "additionalProperties": false
                }
              },
              "type": "object",
              "additionalProperties": false
            }
          },
          "type": "object",
          "additionalProperties": false
        },
        "policy": {
          "description": "Specifies the name of the policy.",
          "type": "string"
        },
        "resource": {
          "description": "ResourceSpec is the information to identify the generate request.",
          "properties": {
            "apiVersion": {
              "description": "APIVersion specifies resource apiVersion.",
              "type": "string"
            },
            "kind": {
              "description": "Kind specifies resource kind.",
              "type": "string"
            },
            "name": {
              "description": "Name specifies the resource name.",
              "type": "string"
            },
            "namespace": {
              "description": "Namespace specifies resource namespace.",
              "type": "string"
            }
          },
          "type": "object",
          "additionalProperties": false
        }
      },
      "required": [
        "context",
        "policy",
        "resource"
      ],
      "type": "object",
      "additionalProperties": false
    },
    "status": {
      "description": "Status contains statistics related to generate request.",
      "properties": {
        "generatedResources": {
          "description": "This will track the resources that are generated by the generate Policy. Will be used during clean up resources.",
          "items": {
            "description": "ResourceSpec contains information to identify a resource.",
            "properties": {
              "apiVersion": {
                "description": "APIVersion specifies resource apiVersion.",
                "type": "string"
              },
              "kind": {
                "description": "Kind specifies resource kind.",
                "type": "string"
              },
              "name": {
                "description": "Name specifies the resource name.",
                "type": "string"
              },
              "namespace": {
                "description": "Namespace specifies resource namespace.",
                "type": "string"
              }
            },
            "type": "object",
            "additionalProperties": false
          },
          "type": "array"
        },
        "message": {
          "description": "Specifies request status message.",
          "type": "string"
        },
        "state": {
          "description": "State represents state of the generate request.",
          "type": "string"
        }
      },
      "required": [
        "state"
      ],
      "type": "object",
      "additionalProperties": false
    }
  },
  "required": [
    "spec"
  ],
  "type": "object"
}
