{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/google-dataplex/json-schema/google-dataplex-google-cloud-dataplex-v1-data-product-schema.json",
  "title": "GoogleCloudDataplexV1DataProduct",
  "description": "A data product is a curated collection of data assets, packaged to address specific use cases. It's a way to manage and share data in a more organized, product-like manner.",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/google-dataplex-projects-api-openapi.yml#/components/schemas/GoogleCloudDataplexV1DataProduct",
  "properties": {
    "createTime": {
      "description": "Output only. The time at which the data product was created.",
      "format": "google-datetime",
      "readOnly": true,
      "type": "string"
    },
    "ownerEmails": {
      "type": "array",
      "description": "Required. Emails of the data product owners.",
      "items": {
        "type": "string"
      }
    },
    "displayName": {
      "type": "string",
      "description": "Required. User-friendly display name of the data product."
    },
    "accessApprovalConfig": {
      "$ref": "#/$defs/GoogleCloudDataplexV1DataProductAccessApprovalConfig",
      "description": "Optional. Configuration for access approval for the data product."
    },
    "uid": {
      "readOnly": true,
      "type": "string",
      "description": "Output only. System generated unique ID for the data product. This ID will be different if the data product is deleted and re-created with the same name."
    },
    "updateTime": {
      "format": "google-datetime",
      "description": "Output only. The time at which the data product was last updated.",
      "type": "string",
      "readOnly": true
    },
    "labels": {
      "type": "object",
      "description": "Optional. User-defined labels for the data product.Example: { \"environment\": \"production\", \"billing\": \"marketing-department\" } ",
      "additionalProperties": {
        "type": "string"
      }
    },
    "accessGroups": {
      "type": "object",
      "description": "Optional. Data product access groups by access group id as key. If data product is used only for packaging data assets, then access groups may be empty. However, if a data product is used for sharing data assets, then at least one access group must be specified.Example: { \"analyst\": { \"id\": \"analyst\", \"displayName\": \"Analyst\", \"description\": \"Access group for analysts\", \"principal\": { \"googleGroup\": \"analysts@example.com\" } } } ",
      "additionalProperties": {
        "$ref": "#/$defs/GoogleCloudDataplexV1DataProductAccessGroup"
      }
    },
    "icon": {
      "type": "string",
      "format": "byte",
      "description": "Optional. Base64 encoded image representing the data product. Max Size: 3.0MiB Expected image dimensions are 512x512 pixels, however the API only performs validation on size of the encoded data. Note: For byte fields, the content of the fields are base64-encoded (which increases the size of the data by 33-36%) when using JSON on the wire."
    },
    "assetCount": {
      "readOnly": true,
      "format": "int32",
      "description": "Output only. Number of data assets associated with this data product.",
      "type": "integer"
    },
    "description": {
      "type": "string",
      "description": "Optional. Description of the data product."
    },
    "etag": {
      "description": "Optional. This checksum is computed by the server based on the value of other fields, and may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding.",
      "type": "string"
    },
    "name": {
      "type": "string",
      "description": "Identifier. Resource name of the data product. Format: projects/{project_id_or_number}/locations/{location_id}/dataProducts/{data_product_id}."
    }
  },
  "type": "object",
  "$defs": {
    "GoogleCloudDataplexV1DataProductAccessApprovalConfig": {
      "type": "object",
      "properties": {
        "approverEmails": {
          "type": "array",
          "description": "Optional. Specifies the email addresses of users who are potential approvers and are notified when an access request is made for the data product. The maximum number of emails allowed is 10.",
          "items": {
            "type": "string"
          }
        }
      },
      "description": "Configuration for access approval for the data product."
    },
    "GoogleCloudDataplexV1DataProductAccessGroup": {
      "description": "Custom user defined access groups at the data product level. These are used for granting different levels of access (IAM roles) on the individual data product's data assets.",
      "type": "object",
      "properties": {
        "defaultIamRoleConfig": {
          "$ref": "#/$defs/GoogleCloudDataplexV1DataProductAccessGroupDefaultIamRoleConfig",
          "description": "Optional. Default IAM role configuration to be applied on the data assets associated with this data product, for this access group."
        },
        "displayName": {
          "type": "string",
          "description": "Required. User friendly display name of the access group. Eg. \"Analyst\", \"Developer\", etc."
        },
        "description": {
          "description": "Optional. Description of the access group.",
          "type": "string"
        },
        "principal": {
          "$ref": "#/$defs/GoogleCloudDataplexV1DataProductPrincipal",
          "description": "Required. The principal entity associated with this access group."
        },
        "id": {
          "description": "Required. Unique identifier of the access group within the data product. User defined. Eg. \"analyst\", \"developer\", etc.",
          "type": "string"
        }
      }
    },
    "GoogleCloudDataplexV1DataProductAccessGroupDefaultIamRoleConfig": {
      "description": "Default IAM role configuration for an access group.",
      "properties": {
        "role": {
          "description": "Optional. The IAM role resource name to be applied as default. Example: \"roles/bigquery.dataViewer\".",
          "type": "string"
        }
      },
      "type": "object"
    },
    "GoogleCloudDataplexV1DataProductPrincipal": {
      "description": "Represents the principal entity associated with an access group, as per https://cloud.google.com/iam/docs/principals-overview.",
      "properties": {
        "googleGroup": {
          "description": "Optional. Email of the Google Group, as per https://cloud.google.com/iam/docs/principals-overview#google-group.",
          "type": "string"
        },
        "serviceAccount": {
          "description": "Optional. Specifies the email of the producer service account, as per https://cloud.google.com/iam/docs/principals-overview#service-account.",
          "type": "string"
        }
      },
      "type": "object"
    }
  }
}