{
  "$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-scan-schema.json",
  "title": "GoogleCloudDataplexV1DataScan",
  "description": "Represents a user-visible job which provides the insights for the related data source.For example: Data quality: generates queries based on the rules and runs against the data to get data quality check results. For more information, see Auto data quality overview (https://cloud.google.com/dataplex/docs/auto-data-quality-overview). Data profile: analyzes the data in tables and generates insights about the structure, content and relationships (such as null percent, cardinality, min/max/mean, etc). For more information, see About data profiling (https://cloud.google.com/dataplex/docs/data-profiling-overview). Data discovery: scans data in Cloud Storage buckets to extract and then catalog metadata. For more information, see Discover and catalog Cloud Storage data (https://cloud.google.com/bigquery/docs/automatic-discovery). Data documentation: analyzes the table or dataset metadata and generates insights. For tables, insights include descriptions and sample SQL queries. For datasets, insights include descriptions, schema relationships and sample SQL queries. For more information, see Generate data insights in BigQuery (https://cloud.google.com/bigquery/docs/data-insights).",
  "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/GoogleCloudDataplexV1DataScan",
  "type": "object",
  "properties": {
    "executionStatus": {
      "$ref": "#/$defs/GoogleCloudDataplexV1DataScanExecutionStatus",
      "description": "Output only. Status of the data scan execution."
    },
    "dataDiscoveryResult": {
      "$ref": "#/$defs/GoogleCloudDataplexV1DataDiscoveryResult",
      "description": "Output only. The result of a data discovery scan."
    },
    "dataQualitySpec": {
      "$ref": "#/$defs/GoogleCloudDataplexV1DataQualitySpec",
      "description": "Settings for a data quality scan."
    },
    "state": {
      "type": "string",
      "enum": [
        "STATE_UNSPECIFIED",
        "ACTIVE",
        "CREATING",
        "DELETING",
        "ACTION_REQUIRED"
      ],
      "readOnly": true,
      "description": "Output only. Current state of the DataScan."
    },
    "uid": {
      "description": "Output only. System generated globally unique ID for the scan. This ID will be different if the scan is deleted and re-created with the same name.",
      "readOnly": true,
      "type": "string"
    },
    "name": {
      "description": "Output only. Identifier. The relative resource name of the scan, of the form: projects/{project}/locations/{location_id}/dataScans/{datascan_id}, where project refers to a project_id or project_number and location_id refers to a Google Cloud region.",
      "readOnly": true,
      "type": "string"
    },
    "labels": {
      "additionalProperties": {
        "type": "string"
      },
      "description": "Optional. User-defined labels for the scan.",
      "type": "object"
    },
    "dataDocumentationSpec": {
      "$ref": "#/$defs/GoogleCloudDataplexV1DataDocumentationSpec",
      "description": "Settings for a data documentation scan."
    },
    "dataQualityResult": {
      "$ref": "#/$defs/GoogleCloudDataplexV1DataQualityResult",
      "description": "Output only. The result of a data quality scan."
    },
    "description": {
      "type": "string",
      "description": "Optional. Description of the scan. Must be between 1-1024 characters."
    },
    "type": {
      "readOnly": true,
      "description": "Output only. The type of DataScan.",
      "type": "string",
      "enum": [
        "DATA_SCAN_TYPE_UNSPECIFIED",
        "DATA_QUALITY",
        "DATA_PROFILE",
        "DATA_DISCOVERY",
        "DATA_DOCUMENTATION"
      ]
    },
    "createTime": {
      "type": "string",
      "format": "google-datetime",
      "readOnly": true,
      "description": "Output only. The time when the scan was created."
    },
    "dataDocumentationResult": {
      "$ref": "#/$defs/GoogleCloudDataplexV1DataDocumentationResult",
      "description": "Output only. The result of a data documentation scan."
    },
    "displayName": {
      "type": "string",
      "description": "Optional. User friendly display name. Must be between 1-256 characters."
    },
    "dataDiscoverySpec": {
      "$ref": "#/$defs/GoogleCloudDataplexV1DataDiscoverySpec",
      "description": "Settings for a data discovery scan."
    },
    "executionIdentity": {
      "$ref": "#/$defs/GoogleCloudDataplexV1ExecutionIdentity",
      "description": "Optional. Immutable. The identity to run the datascan. If not specified, defaults to the Dataplex Service Agent."
    },
    "updateTime": {
      "description": "Output only. The time when the scan was last updated.",
      "readOnly": true,
      "type": "string",
      "format": "google-datetime"
    },
    "data": {
      "$ref": "#/$defs/GoogleCloudDataplexV1DataSource",
      "description": "Required. The data source for DataScan."
    },
    "executionSpec": {
      "$ref": "#/$defs/GoogleCloudDataplexV1DataScanExecutionSpec",
      "description": "Optional. DataScan execution settings.If not specified, the fields in it will use their default values."
    },
    "dataProfileResult": {
      "$ref": "#/$defs/GoogleCloudDataplexV1DataProfileResult",
      "description": "Output only. The result of a data profile scan."
    },
    "dataProfileSpec": {
      "$ref": "#/$defs/GoogleCloudDataplexV1DataProfileSpec",
      "description": "Settings for a data profile scan."
    }
  },
  "$defs": {
    "GoogleCloudDataplexV1DataDiscoveryResult": {
      "description": "The output of a data discovery scan.",
      "properties": {
        "scanStatistics": {
          "$ref": "#/$defs/GoogleCloudDataplexV1DataDiscoveryResultScanStatistics",
          "description": "Output only. Describes result statistics of a data scan discovery job."
        },
        "bigqueryPublishing": {
          "$ref": "#/$defs/GoogleCloudDataplexV1DataDiscoveryResultBigQueryPublishing",
          "description": "Output only. Configuration for metadata publishing."
        }
      },
      "type": "object"
    },
    "GoogleCloudDataplexV1DataDiscoveryResultBigQueryPublishing": {
      "type": "object",
      "description": "Describes BigQuery publishing configurations.",
      "properties": {
        "location": {
          "type": "string",
          "readOnly": true,
          "description": "Output only. The location of the BigQuery publishing dataset."
        },
        "dataset": {
          "description": "Output only. The BigQuery dataset the discovered tables are published to.",
          "readOnly": true,
          "type": "string"
        }
      }
    },
    "GoogleCloudDataplexV1DataDiscoveryResultScanStatistics": {
      "description": "Describes result statistics of a data scan discovery job.",
      "properties": {
        "filesetsUpdated": {
          "description": "The number of filesets updated.",
          "type": "integer",
          "format": "int32"
        },
        "tablesUpdated": {
          "description": "The number of tables updated.",
          "format": "int32",
          "type": "integer"
        },
        "scannedFileCount": {
          "description": "The number of files scanned.",
          "format": "int32",
          "type": "integer"
        },
        "filesetsDeleted": {
          "format": "int32",
          "description": "The number of filesets deleted.",
          "type": "integer"
        },
        "dataProcessedBytes": {
          "description": "The data processed in bytes.",
          "type": "string",
          "format": "int64"
        },
        "filesetsCreated": {
          "description": "The number of filesets created.",
          "format": "int32",
          "type": "integer"
        },
        "filesExcluded": {
          "description": "The number of files excluded.",
          "type": "integer",
          "format": "int32"
        },
        "tablesDeleted": {
          "description": "The number of tables deleted.",
          "format": "int32",
          "type": "integer"
        },
        "tablesCreated": {
          "description": "The number of tables created.",
          "type": "integer",
          "format": "int32"
        }
      },
      "type": "object"
    },
    "GoogleCloudDataplexV1DataDiscoverySpec": {
      "description": "Spec for a data discovery scan.",
      "properties": {
        "bigqueryPublishingConfig": {
          "$ref": "#/$defs/GoogleCloudDataplexV1DataDiscoverySpecBigQueryPublishingConfig",
          "description": "Optional. Configuration for metadata publishing."
        },
        "storageConfig": {
          "$ref": "#/$defs/GoogleCloudDataplexV1DataDiscoverySpecStorageConfig",
          "description": "Cloud Storage related configurations."
        }
      },
      "type": "object"
    },
    "GoogleCloudDataplexV1DataDiscoverySpecBigQueryPublishingConfig": {
      "type": "object",
      "properties": {
        "location": {
          "description": "Optional. The location of the BigQuery dataset to publish BigLake external or non-BigLake external tables to. 1. If the Cloud Storage bucket is located in a multi-region bucket, then BigQuery dataset can be in the same multi-region bucket or any single region that is included in the same multi-region bucket. The datascan can be created in any single region that is included in the same multi-region bucket 2. If the Cloud Storage bucket is located in a dual-region bucket, then BigQuery dataset can be located in regions that are included in the dual-region bucket, or in a multi-region that includes the dual-region. The datascan can be created in any single region that is included in the same dual-region bucket. 3. If the Cloud Storage bucket is located in a single region, then BigQuery dataset can be in the same single region or any multi-region bucket that includes the same single region. The datascan will be created in the same single region as the bucket. 4. If the BigQuery dataset is in single region, it must be in the same single region as the datascan.For supported values, refer to https://cloud.google.com/bigquery/docs/locations#supported_locations.",
          "type": "string"
        },
        "project": {
          "type": "string",
          "description": "Optional. The project of the BigQuery dataset to publish BigLake external or non-BigLake external tables to. If not specified, the project of the Cloud Storage bucket will be used. The format is \"projects/{project_id_or_number}\"."
        },
        "connection": {
          "type": "string",
          "description": "Optional. The BigQuery connection used to create BigLake tables. Must be in the form projects/{project_id}/locations/{location_id}/connections/{connection_id}"
        },
        "tableType": {
          "type": "string",
          "enum": [
            "TABLE_TYPE_UNSPECIFIED",
            "EXTERNAL",
            "BIGLAKE"
          ],
          "description": "Optional. Determines whether to publish discovered tables as BigLake external tables or non-BigLake external tables."
        }
      },
      "description": "Describes BigQuery publishing configurations."
    },
    "GoogleCloudDataplexV1DataDiscoverySpecStorageConfig": {
      "type": "object",
      "properties": {
        "includePatterns": {
          "items": {
            "type": "string"
          },
          "description": "Optional. Defines the data to include during discovery when only a subset of the data should be considered. Provide a list of patterns that identify the data to include. For Cloud Storage bucket assets, these patterns are interpreted as glob patterns used to match object names. For BigQuery dataset assets, these patterns are interpreted as patterns to match table names.",
          "type": "array"
        },
        "excludePatterns": {
          "type": "array",
          "description": "Optional. Defines the data to exclude during discovery. Provide a list of patterns that identify the data to exclude. For Cloud Storage bucket assets, these patterns are interpreted as glob patterns used to match object names. For BigQuery dataset assets, these patterns are interpreted as patterns to match table names.",
          "items": {
            "type": "string"
          }
        },
        "csvOptions": {
          "$ref": "#/$defs/GoogleCloudDataplexV1DataDiscoverySpecStorageConfigCsvOptions",
          "description": "Optional. Configuration for CSV data."
        },
        "jsonOptions": {
          "$ref": "#/$defs/GoogleCloudDataplexV1DataDiscoverySpecStorageConfigJsonOptions",
          "description": "Optional. Configuration for JSON data."
        }
      },
      "description": "Configurations related to Cloud Storage as the data source."
    },
    "GoogleCloudDataplexV1DataDiscoverySpecStorageConfigCsvOptions": {
      "description": "Describes CSV and similar semi-structured data formats.",
      "properties": {
        "delimiter": {
          "type": "string",
          "description": "Optional. The delimiter that is used to separate values. The default is , (comma)."
        },
        "encoding": {
          "description": "Optional. The character encoding of the data. The default is UTF-8.",
          "type": "string"
        },
        "typeInferenceDisabled": {
          "description": "Optional. Whether to disable the inference of data types for CSV data. If true, all columns are registered as strings.",
          "type": "boolean"
        },
        "quote": {
          "type": "string",
          "description": "Optional. The character used to quote column values. Accepts \" (double quotation mark) or ' (single quotation mark). If unspecified, defaults to \" (double quotation mark)."
        },
        "headerRows": {
          "description": "Optional. The number of rows to interpret as header rows that should be skipped when reading data rows.",
          "type": "integer",
          "format": "int32"
        }
      },
      "type": "object"
    },
    "GoogleCloudDataplexV1DataDiscoverySpecStorageConfigJsonOptions": {
      "description": "Describes JSON data format.",
      "type": "object",
      "properties": {
        "encoding": {
          "description": "Optional. The character encoding of the data. The default is UTF-8.",
          "type": "string"
        },
        "typeInferenceDisabled": {
          "type": "boolean",
          "description": "Optional. Whether to disable the inference of data types for JSON data. If true, all columns are registered as their primitive types (strings, number, or boolean)."
        }
      }
    },
    "GoogleCloudDataplexV1DataDocumentationResult": {
      "type": "object",
      "description": "The output of a DataDocumentation scan.",
      "properties": {
        "datasetResult": {
          "$ref": "#/$defs/GoogleCloudDataplexV1DataDocumentationResultDatasetResult",
          "description": "Output only. Insights for a Dataset resource."
        },
        "tableResult": {
          "$ref": "#/$defs/GoogleCloudDataplexV1DataDocumentationResultTableResult",
          "description": "Output only. Insights for a Table resource."
        },
        "dataProductResult": {
          "$ref": "#/$defs/GoogleCloudDataplexV1DataDocumentationResultDataProductResult",
          "description": "Output only. Insights for a data product."
        }
      }
    },
    "GoogleCloudDataplexV1DataDocumentationResultDataProductResult": {
      "properties": {
        "queries": {
          "type": "array",
          "readOnly": true,
          "items": {
            "$ref": "#/$defs/GoogleCloudDataplexV1DataDocumentationResultQuery"
          },
          "description": "Output only. Unordered list. Sample SQL queries for the data product."
        },
        "overview": {
          "readOnly": true,
          "description": "Output only. A detailed description for the data product.",
          "type": "string"
        },
        "assetDescriptions": {
          "items": {
            "$ref": "#/$defs/GoogleCloudDataplexV1DataDocumentationResultDataProductResultAssetDescription"
          },
          "type": "array",
          "readOnly": true,
          "description": "Output only. Unordered list. Generated descriptions for assets in the data product. Note that some assets may not have a generated description. Such assets will not be included in this list."
        }
      },
      "description": "Generated metadata about a data product.",
      "type": "object"
    },
    "GoogleCloudDataplexV1DataDocumentationResultDataProductResultAssetDescription": {
      "properties": {
        "resource": {
          "type": "string",
          "description": "Output only. The service-qualified full resource name of the asset. Example: //bigquery.googleapis.com/projects/PROJECT_ID/datasets/DATASET_ID/tables/TABLE_ID",
          "readOnly": true
        },
        "overview": {
          "readOnly": true,
          "type": "string",
          "description": "Output only. A generated description for the asset."
        }
      },
      "description": "Description for an asset in the data product.",
      "type": "object"
    },
    "GoogleCloudDataplexV1DataDocumentationResultDatasetResult": {
      "properties": {
        "queries": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/GoogleCloudDataplexV1DataDocumentationResultQuery"
          },
          "readOnly": true,
          "description": "Output only. Sample SQL queries for the dataset."
        },
        "schemaRelationships": {
          "type": "array",
          "description": "Output only. Relationships suggesting how tables in the dataset are related to each other, based on their schema.",
          "readOnly": true,
          "items": {
            "$ref": "#/$defs/GoogleCloudDataplexV1DataDocumentationResultSchemaRelationship"
          }
        },
        "overview": {
          "readOnly": true,
          "type": "string",
          "description": "Output only. Generated Dataset description."
        }
      },
      "description": "Insights for a dataset resource.",
      "type": "object"
    },
    "GoogleCloudDataplexV1DataDocumentationResultField": {
      "description": "Column of a table with generated metadata and nested fields.",
      "type": "object",
      "properties": {
        "name": {
          "description": "Output only. The name of the column.",
          "type": "string",
          "readOnly": true
        },
        "fields": {
          "type": "array",
          "readOnly": true,
          "description": "Output only. Nested fields.",
          "items": {
            "$ref": "#/$defs/GoogleCloudDataplexV1DataDocumentationResultField"
          }
        },
        "description": {
          "readOnly": true,
          "type": "string",
          "description": "Output only. Generated description for columns and fields."
        }
      }
    },
    "GoogleCloudDataplexV1DataDocumentationResultQuery": {
      "properties": {
        "sqlDialect": {
          "description": "Output only. The SQL dialect of the query.",
          "type": "string",
          "enum": [
            "SQL_DIALECT_UNSPECIFIED",
            "GOOGLE_SQL",
            "SPARK_SQL"
          ],
          "readOnly": true
        },
        "sql": {
          "type": "string",
          "readOnly": true,
          "description": "Output only. The SQL query string which can be executed."
        },
        "description": {
          "type": "string",
          "readOnly": true,
          "description": "Output only. The description for the query."
        }
      },
      "description": "A sample SQL query in data documentation.",
      "type": "object"
    },
    "GoogleCloudDataplexV1DataDocumentationResultSchema": {
      "description": "Schema of the table with generated metadata of columns.",
      "type": "object",
      "properties": {
        "fields": {
          "items": {
            "$ref": "#/$defs/GoogleCloudDataplexV1DataDocumentationResultField"
          },
          "type": "array",
          "description": "Output only. The list of columns.",
          "readOnly": true
        }
      }
    },
    "GoogleCloudDataplexV1DataDocumentationResultSchemaRelationship": {
      "description": "Details of the relationship between the schema of two resources.",
      "properties": {
        "sources": {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "SOURCE_UNSPECIFIED",
              "AGENT",
              "QUERY_HISTORY",
              "TABLE_CONSTRAINTS"
            ]
          },
          "description": "Output only. Sources which generated the schema relation edge.",
          "readOnly": true
        },
        "leftSchemaPaths": {
          "$ref": "#/$defs/GoogleCloudDataplexV1DataDocumentationResultSchemaRelationshipSchemaPaths",
          "description": "Output only. An ordered list of fields for the join from the first table. The size of this list must be the same as right_schema_paths. Each field at index i in this list must correspond to a field at the same index in the right_schema_paths list."
        },
        "type": {
          "readOnly": true,
          "type": "string",
          "enum": [
            "TYPE_UNSPECIFIED",
            "SCHEMA_JOIN"
          ],
          "description": "Output only. The type of relationship between the schema paths."
        },
        "rightSchemaPaths": {
          "$ref": "#/$defs/GoogleCloudDataplexV1DataDocumentationResultSchemaRelationshipSchemaPaths",
          "description": "Output only. An ordered list of fields for the join from the second table. The size of this list must be the same as left_schema_paths. Each field at index i in this list must correspond to a field at the same index in the left_schema_paths list."
        }
      },
      "type": "object"
    },
    "GoogleCloudDataplexV1DataDocumentationResultSchemaRelationshipSchemaPaths": {
      "description": "Represents an ordered set of paths within a table's schema.",
      "type": "object",
      "properties": {
        "paths": {
          "description": "Output only. An ordered set of Paths to fields within the schema of the table. For fields nested within a top level field of type record, use '.' to separate field names. Examples: Top level field - top_level Nested field - top_level.child.sub_field",
          "type": "array",
          "items": {
            "type": "string"
          },
          "readOnly": true
        },
        "tableFqn": {
          "readOnly": true,
          "description": "Output only. The service-qualified full resource name of the table Ex: //bigquery.googleapis.com/projects/PROJECT_ID/datasets/DATASET_ID/tables/TABLE_ID",
          "type": "string"
        }
      }
    },
    "GoogleCloudDataplexV1DataDocumentationResultTableResult": {
      "type": "object",
      "description": "Insights for a table resource.",
      "properties": {
        "overview": {
          "type": "string",
          "description": "Output only. Generated description of the table.",
          "readOnly": true
        },
        "queries": {
          "description": "Output only. Sample SQL queries for the table.",
          "items": {
            "$ref": "#/$defs/GoogleCloudDataplexV1DataDocumentationResultQuery"
          },
          "type": "array",
          "readOnly": true
        },
        "name": {
          "description": "Output only. The service-qualified full resource name of the cloud resource. Ex: //bigquery.googleapis.com/projects/PROJECT_ID/datasets/DATASET_ID/tables/TABLE_ID",
          "type": "string",
          "readOnly": true
        },
        "schema": {
          "$ref": "#/$defs/GoogleCloudDataplexV1DataDocumentationResultSchema",
          "description": "Output only. Schema of the table with generated metadata of the columns in the schema."
        }
      }
    },
    "GoogleCloudDataplexV1DataDocumentationSpec": {
      "description": "DataDocumentation scan related spec.",
      "type": "object",
      "properties": {
        "sqlDialect": {
          "type": "string",
          "enum": [
            "SQL_DIALECT_UNSPECIFIED",
            "GOOGLE_SQL",
            "SPARK_SQL"
          ],
          "description": "Optional. The SQL dialect to use in the generated SQL queries. If not specified, the default dialect is Google SQL."
        },
        "customInstructions": {
          "type": "string",
          "description": "Optional. Custom instructions for generating data documentation. The maximum length is 2,048 characters."
        },
        "catalogPublishingEnabled": {
          "description": "Optional. Whether to publish result to Dataplex Catalog.",
          "type": "boolean"
        },
        "generationScopes": {
          "description": "Optional. Specifies which components of the data documentation to generate. Any component that is required to generate the specified components will also be generated. If no generation scope is specified, all available documentation components will be generated.",
          "items": {
            "type": "string",
            "enum": [
              "GENERATION_SCOPE_UNSPECIFIED",
              "ALL",
              "TABLE_AND_COLUMN_DESCRIPTIONS",
              "SQL_QUERIES",
              "BUSINESS_GLOSSARY_TERM_ASSOCIATIONS"
            ]
          },
          "type": "array"
        }
      }
    },
    "GoogleCloudDataplexV1DataProfileResult": {
      "properties": {
        "scannedData": {
          "$ref": "#/$defs/GoogleCloudDataplexV1ScannedData",
          "description": "Output only. The data scanned for this result."
        },
        "catalogPublishingStatus": {
          "$ref": "#/$defs/GoogleCloudDataplexV1DataScanCatalogPublishingStatus",
          "description": "Output only. The status of publishing the data scan as Dataplex Universal Catalog metadata."
        },
        "postScanActionsResult": {
          "$ref": "#/$defs/GoogleCloudDataplexV1DataProfileResultPostScanActionsResult",
          "description": "Output only. The result of post scan actions."
        },
        "rowCount": {
          "description": "Output only. The count of rows scanned.",
          "readOnly": true,
          "format": "int64",
          "type": "string"
        },
        "profile": {
          "$ref": "#/$defs/GoogleCloudDataplexV1DataProfileResultProfile",
          "description": "Output only. The profile information per field."
        }
      },
      "description": "DataProfileResult defines the output of DataProfileScan. Each field of the table will have field type specific profile result.",
      "type": "object"
    },
    "GoogleCloudDataplexV1DataProfileResultPostScanActionsResult": {
      "type": "object",
      "description": "The result of post scan actions of DataProfileScan job.",
      "properties": {
        "bigqueryExportResult": {
          "$ref": "#/$defs/GoogleCloudDataplexV1DataProfileResultPostScanActionsResultBigQueryExportResult",
          "description": "Output only. The result of BigQuery export post scan action."
        }
      }
    },
    "GoogleCloudDataplexV1DataProfileResultPostScanActionsResultBigQueryExportResult": {
      "description": "The result of BigQuery export post scan action.",
      "type": "object",
      "properties": {
        "message": {
          "readOnly": true,
          "type": "string",
          "description": "Output only. Additional information about the BigQuery exporting."
        },
        "state": {
          "description": "Output only. Execution state for the BigQuery exporting.",
          "readOnly": true,
          "type": "string",
          "enum": [
            "STATE_UNSPECIFIED",
            "SUCCEEDED",
            "FAILED",
            "SKIPPED"
          ]
        }
      }
    },
    "GoogleCloudDataplexV1DataProfileResultProfile": {
      "description": "Contains name, type, mode and field type specific profile information.",
      "properties": {
        "fields": {
          "description": "Output only. List of fields with structural and profile information for each field.",
          "type": "array",
          "items": {
            "$ref": "#/$defs/GoogleCloudDataplexV1DataProfileResultProfileField"
          },
          "readOnly": true
        }
      },
      "type": "object"
    },
    "GoogleCloudDataplexV1DataProfileResultProfileField": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "description": "Output only. The name of the field.",
          "readOnly": true
        },
        "type": {
          "description": "Output only. The data type retrieved from the schema of the data source. For instance, for a BigQuery native table, it is the BigQuery Table Schema (https://cloud.google.com/bigquery/docs/reference/rest/v2/tables#tablefieldschema). For a Dataplex Universal Catalog Entity, it is the Entity Schema (https://cloud.google.com/dataplex/docs/reference/rpc/google.cloud.dataplex.v1#type_3).",
          "type": "string",
          "readOnly": true
        },
        "mode": {
          "description": "Output only. The mode of the field. Possible values include: REQUIRED, if it is a required field. NULLABLE, if it is an optional field. REPEATED, if it is a repeated field.",
          "readOnly": true,
          "type": "string"
        },
        "profile": {
          "$ref": "#/$defs/GoogleCloudDataplexV1DataProfileResultProfileFieldProfileInfo",
          "description": "Output only. Profile information for the corresponding field."
        }
      },
      "description": "A field within a table."
    },
    "GoogleCloudDataplexV1DataProfileResultProfileFieldProfileInfo": {
      "properties": {
        "nullRatio": {
          "type": "number",
          "description": "Output only. Ratio of rows with null value against total scanned rows.",
          "readOnly": true,
          "format": "double"
        },
        "stringProfile": {
          "$ref": "#/$defs/GoogleCloudDataplexV1DataProfileResultProfileFieldProfileInfoStringFieldInfo",
          "description": "String type field information."
        },
        "doubleProfile": {
          "$ref": "#/$defs/GoogleCloudDataplexV1DataProfileResultProfileFieldProfileInfoDoubleFieldInfo",
          "description": "Double type field information."
        },
        "integerProfile": {
          "$ref": "#/$defs/GoogleCloudDataplexV1DataProfileResultProfileFieldProfileInfoIntegerFieldInfo",
          "description": "Integer type field information."
        },
        "topNValues": {
          "readOnly": true,
          "items": {
            "$ref": "#/$defs/GoogleCloudDataplexV1DataProfileResultProfileFieldProfileInfoTopNValue"
          },
          "description": "Output only. The list of top N non-null values, frequency and ratio with which they occur in the scanned data. N is 10 or equal to the number of distinct values in the field, whichever is smaller. Not available for complex non-groupable field type, including RECORD, ARRAY, GEOGRAPHY, and JSON, as well as fields with REPEATABLE mode.",
          "type": "array"
        },
        "distinctRatio": {
          "readOnly": true,
          "type": "number",
          "format": "double",
          "description": "Output only. Ratio of rows with distinct values against total scanned rows. Not available for complex non-groupable field type, including RECORD, ARRAY, GEOGRAPHY, and JSON, as well as fields with REPEATABLE mode."
        }
      },
      "description": "The profile information for each field type.",
      "type": "object"
    },
    "GoogleCloudDataplexV1DataProfileResultProfileFieldProfileInfoDoubleFieldInfo": {
      "type": "object",
      "properties": {
        "quartiles": {
          "readOnly": true,
          "description": "Output only. A quartile divides the number of data points into four parts, or quarters, of more-or-less equal size. Three main quartiles used are: The first quartile (Q1) splits off the lowest 25% of data from the highest 75%. It is also known as the lower or 25th empirical quartile, as 25% of the data is below this point. The second quartile (Q2) is the median of a data set. So, 50% of the data lies below this point. The third quartile (Q3) splits off the highest 25% of data from the lowest 75%. It is known as the upper or 75th empirical quartile, as 75% of the data lies below this point. Here, the quartiles is provided as an ordered list of quartile values for the scanned data, occurring in order Q1, median, Q3.",
          "items": {
            "type": "number",
            "format": "double"
          },
          "type": "array"
        },
        "min": {
          "readOnly": true,
          "format": "double",
          "description": "Output only. Minimum of non-null values in the scanned data. NaN, if the field has a NaN.",
          "type": "number"
        },
        "standardDeviation": {
          "description": "Output only. Standard deviation of non-null values in the scanned data. NaN, if the field has a NaN.",
          "format": "double",
          "type": "number",
          "readOnly": true
        },
        "average": {
          "format": "double",
          "type": "number",
          "description": "Output only. Average of non-null values in the scanned data. NaN, if the field has a NaN.",
          "readOnly": true
        },
        "max": {
          "description": "Output only. Maximum of non-null values in the scanned data. NaN, if the field has a NaN.",
          "format": "double",
          "type": "number",
          "readOnly": true
        }
      },
      "description": "The profile information for a double type field."
    },
    "GoogleCloudDataplexV1DataProfileResultProfileFieldProfileInfoIntegerFieldInfo": {
      "properties": {
        "quartiles": {
          "items": {
            "type": "string",
            "format": "int64"
          },
          "type": "array",
          "description": "Output only. A quartile divides the number of data points into four parts, or quarters, of more-or-less equal size. Three main quartiles used are: The first quartile (Q1) splits off the lowest 25% of data from the highest 75%. It is also known as the lower or 25th empirical quartile, as 25% of the data is below this point. The second quartile (Q2) is the median of a data set. So, 50% of the data lies below this point. The third quartile (Q3) splits off the highest 25% of data from the lowest 75%. It is known as the upper or 75th empirical quartile, as 75% of the data lies below this point. Here, the quartiles is provided as an ordered list of approximate quartile values for the scanned data, occurring in order Q1, median, Q3.",
          "readOnly": true
        },
        "max": {
          "type": "string",
          "readOnly": true,
          "format": "int64",
          "description": "Output only. Maximum of non-null values in the scanned data. NaN, if the field has a NaN."
        },
        "average": {
          "readOnly": true,
          "type": "number",
          "format": "double",
          "description": "Output only. Average of non-null values in the scanned data. NaN, if the field has a NaN."
        },
        "standardDeviation": {
          "type": "number",
          "readOnly": true,
          "format": "double",
          "description": "Output only. Standard deviation of non-null values in the scanned data. NaN, if the field has a NaN."
        },
        "min": {
          "type": "string",
          "format": "int64",
          "readOnly": true,
          "description": "Output only. Minimum of non-null values in the scanned data. NaN, if the field has a NaN."
        }
      },
      "description": "The profile information for an integer type field.",
      "type": "object"
    },
    "GoogleCloudDataplexV1DataProfileResultProfileFieldProfileInfoStringFieldInfo": {
      "description": "The profile information for a string type field.",
      "type": "object",
      "properties": {
        "maxLength": {
          "format": "int64",
          "description": "Output only. Maximum length of non-null values in the scanned data.",
          "type": "string",
          "readOnly": true
        },
        "averageLength": {
          "readOnly": true,
          "description": "Output only. Average length of non-null values in the scanned data.",
          "format": "double",
          "type": "number"
        },
        "minLength": {
          "description": "Output only. Minimum length of non-null values in the scanned data.",
          "format": "int64",
          "type": "string",
          "readOnly": true
        }
      }
    },
    "GoogleCloudDataplexV1DataProfileResultProfileFieldProfileInfoTopNValue": {
      "description": "Top N non-null values in the scanned data.",
      "properties": {
        "count": {
          "description": "Output only. Count of the corresponding value in the scanned data.",
          "type": "string",
          "readOnly": true,
          "format": "int64"
        },
        "value": {
          "description": "Output only. String value of a top N non-null value.",
          "type": "string",
          "readOnly": true
        },
        "ratio": {
          "type": "number",
          "description": "Output only. Ratio of the corresponding value in the field against the total number of rows in the scanned data.",
          "format": "double",
          "readOnly": true
        }
      },
      "type": "object"
    },
    "GoogleCloudDataplexV1DataProfileSpec": {
      "properties": {
        "samplingPercent": {
          "format": "float",
          "type": "number",
          "description": "Optional. The percentage of the records to be selected from the dataset for DataScan. Value can range between 0.0 and 100.0 with up to 3 significant decimal digits. Sampling is not applied if sampling_percent is not specified, 0 or 100."
        },
        "catalogPublishingEnabled": {
          "type": "boolean",
          "description": "Optional. If set, the latest DataScan job result will be published as Dataplex Universal Catalog metadata."
        },
        "excludeFields": {
          "$ref": "#/$defs/GoogleCloudDataplexV1DataProfileSpecSelectedFields",
          "description": "Optional. The fields to exclude from data profile.If specified, the fields will be excluded from data profile, regardless of include_fields value."
        },
        "rowFilter": {
          "description": "Optional. A filter applied to all rows in a single DataScan job. The filter needs to be a valid SQL expression for a WHERE clause in BigQuery standard SQL syntax. Example: col1 >= 0 AND col2 < 10",
          "type": "string"
        },
        "postScanActions": {
          "$ref": "#/$defs/GoogleCloudDataplexV1DataProfileSpecPostScanActions",
          "description": "Optional. Actions to take upon job completion.."
        },
        "mode": {
          "type": "string",
          "enum": [
            "MODE_UNSPECIFIED",
            "STANDARD",
            "LIGHTWEIGHT"
          ],
          "description": "Optional. The execution mode for the profile scan."
        },
        "includeFields": {
          "$ref": "#/$defs/GoogleCloudDataplexV1DataProfileSpecSelectedFields",
          "description": "Optional. The fields to include in data profile.If not specified, all fields at the time of profile scan job execution are included, except for ones listed in exclude_fields."
        }
      },
      "type": "object",
      "description": "DataProfileScan related setting."
    },
    "GoogleCloudDataplexV1DataProfileSpecPostScanActions": {
      "description": "The configuration of post scan actions of DataProfileScan job.",
      "properties": {
        "bigqueryExport": {
          "$ref": "#/$defs/GoogleCloudDataplexV1DataProfileSpecPostScanActionsBigQueryExport",
          "description": "Optional. If set, results will be exported to the provided BigQuery table."
        }
      },
      "type": "object"
    },
    "GoogleCloudDataplexV1DataProfileSpecPostScanActionsBigQueryExport": {
      "type": "object",
      "description": "The configuration of BigQuery export post scan action.",
      "properties": {
        "resultsTable": {
          "type": "string",
          "description": "Optional. The BigQuery table to export DataProfileScan results to. Format: //bigquery.googleapis.com/projects/PROJECT_ID/datasets/DATASET_ID/tables/TABLE_ID"
        }
      }
    },
    "GoogleCloudDataplexV1DataProfileSpecSelectedFields": {
      "type": "object",
      "description": "The specification for fields to include or exclude in data profile scan.",
      "properties": {
        "fieldNames": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "Optional. Expected input is a list of fully qualified names of fields as in the schema.Only top-level field names for nested fields are supported. For instance, if 'x' is of nested field type, listing 'x' is supported but 'x.y.z' is not supported. Here 'y' and 'y.z' are nested fields of 'x'."
        }
      }
    },
    "GoogleCloudDataplexV1DataQualityColumnResult": {
      "properties": {
        "dimensions": {
          "type": "array",
          "description": "Output only. The dimension-level results for this column.",
          "items": {
            "$ref": "#/$defs/GoogleCloudDataplexV1DataQualityDimensionResult"
          },
          "readOnly": true
        },
        "column": {
          "type": "string",
          "description": "Output only. The column specified in the DataQualityRule.",
          "readOnly": true
        },
        "score": {
          "type": "number",
          "readOnly": true,
          "description": "Output only. The column-level data quality score for this data scan job if and only if the 'column' field is set.The score ranges between between 0, 100 (up to two decimal points).",
          "format": "float"
        },
        "passed": {
          "description": "Output only. Whether the column passed or failed.",
          "readOnly": true,
          "type": "boolean"
        }
      },
      "description": "DataQualityColumnResult provides a more detailed, per-column view of the results.",
      "type": "object"
    },
    "GoogleCloudDataplexV1DataQualityDimension": {
      "properties": {
        "name": {
          "readOnly": true,
          "type": "string",
          "description": "Output only. The dimension name a rule belongs to. Custom dimension name is supported with all uppercase letters and maximum length of 30 characters."
        }
      },
      "type": "object",
      "description": "A dimension captures data quality intent about a defined subset of the rules specified."
    },
    "GoogleCloudDataplexV1DataQualityDimensionResult": {
      "type": "object",
      "description": "DataQualityDimensionResult provides a more detailed, per-dimension view of the results.",
      "properties": {
        "score": {
          "readOnly": true,
          "description": "Output only. The dimension-level data quality score for this data scan job if and only if the 'dimension' field is set.The score ranges between 0, 100 (up to two decimal points).",
          "type": "number",
          "format": "float"
        },
        "dimension": {
          "$ref": "#/$defs/GoogleCloudDataplexV1DataQualityDimension",
          "description": "Output only. The dimension config specified in the DataQualitySpec, as is."
        },
        "passed": {
          "readOnly": true,
          "description": "Output only. Whether the dimension passed or failed.",
          "type": "boolean"
        }
      }
    },
    "GoogleCloudDataplexV1DataQualityResult": {
      "properties": {
        "anomalyDetectionGeneratedAssets": {
          "$ref": "#/$defs/GoogleCloudDataplexV1DataQualityResultAnomalyDetectionGeneratedAssets",
          "description": "Output only. The generated assets for anomaly detection."
        },
        "catalogPublishingStatus": {
          "$ref": "#/$defs/GoogleCloudDataplexV1DataScanCatalogPublishingStatus",
          "description": "Output only. The status of publishing the data scan as Dataplex Universal Catalog metadata."
        },
        "passed": {
          "type": "boolean",
          "description": "Output only. Overall data quality result -- true if all rules passed.",
          "readOnly": true
        },
        "score": {
          "format": "float",
          "description": "Output only. The overall data quality score.The score ranges between 0, 100 (up to two decimal points).",
          "readOnly": true,
          "type": "number"
        },
        "dimensions": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/GoogleCloudDataplexV1DataQualityDimensionResult"
          },
          "readOnly": true,
          "description": "Output only. A list of results at the dimension level.A dimension will have a corresponding DataQualityDimensionResult if and only if there is at least one rule with the 'dimension' field set to it."
        },
        "columns": {
          "readOnly": true,
          "description": "Output only. A list of results at the column level.A column will have a corresponding DataQualityColumnResult if and only if there is at least one rule with the 'column' field set to it.",
          "type": "array",
          "items": {
            "$ref": "#/$defs/GoogleCloudDataplexV1DataQualityColumnResult"
          }
        },
        "postScanActionsResult": {
          "$ref": "#/$defs/GoogleCloudDataplexV1DataQualityResultPostScanActionsResult",
          "description": "Output only. The result of post scan actions."
        },
        "rowCount": {
          "format": "int64",
          "readOnly": true,
          "description": "Output only. The count of rows processed.",
          "type": "string"
        },
        "rules": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/GoogleCloudDataplexV1DataQualityRuleResult"
          },
          "readOnly": true,
          "description": "Output only. A list of all the rules in a job, and their results."
        },
        "scannedData": {
          "$ref": "#/$defs/GoogleCloudDataplexV1ScannedData",
          "description": "Output only. The data scanned for this result."
        }
      },
      "description": "The output of a DataQualityScan.",
      "type": "object"
    },
    "GoogleCloudDataplexV1DataQualityResultAnomalyDetectionGeneratedAssets": {
      "description": "The assets generated by Anomaly Detection Data Scan.",
      "properties": {
        "dataIntermediateTable": {
          "type": "string",
          "description": "Output only. The intermediate table for data anomaly detection. Format: PROJECT_ID.DATASET_ID.TABLE_ID",
          "readOnly": true
        },
        "resultTable": {
          "readOnly": true,
          "type": "string",
          "description": "Output only. The result table for anomaly detection. Format: PROJECT_ID.DATASET_ID.TABLE_ID If the result table is set at AnomalyDetectionAssets, the result table here would be the same as the one set in the AnomalyDetectionAssets.result_table."
        },
        "volumeIntermediateTable": {
          "readOnly": true,
          "description": "Output only. The intermediate table for volume anomaly detection. Format: PROJECT_ID.DATASET_ID.TABLE_ID",
          "type": "string"
        },
        "freshnessIntermediateTable": {
          "type": "string",
          "description": "Output only. The intermediate table for freshness anomaly detection. Format: PROJECT_ID.DATASET_ID.TABLE_ID",
          "readOnly": true
        }
      },
      "type": "object"
    },
    "GoogleCloudDataplexV1DataQualityResultPostScanActionsResult": {
      "description": "The result of post scan actions of DataQualityScan job.",
      "properties": {
        "bigqueryExportResult": {
          "$ref": "#/$defs/GoogleCloudDataplexV1DataQualityResultPostScanActionsResultBigQueryExportResult",
          "description": "Output only. The result of BigQuery export post scan action."
        }
      },
      "type": "object"
    },
    "GoogleCloudDataplexV1DataQualityResultPostScanActionsResultBigQueryExportResult": {
      "type": "object",
      "properties": {
        "message": {
          "type": "string",
          "description": "Output only. Additional information about the BigQuery exporting.",
          "readOnly": true
        },
        "state": {
          "type": "string",
          "enum": [
            "STATE_UNSPECIFIED",
            "SUCCEEDED",
            "FAILED",
            "SKIPPED"
          ],
          "readOnly": true,
          "description": "Output only. Execution state for the BigQuery exporting."
        }
      },
      "description": "The result of BigQuery export post scan action."
    },
    "GoogleCloudDataplexV1DataQualityRule": {
      "type": "object",
      "properties": {
        "name": {
          "description": "Optional. A mutable name for the rule. The name must contain only letters (a-z, A-Z), numbers (0-9), or hyphens (-). The maximum length is 63 characters. Must start with a letter. Must end with a number or a letter.",
          "type": "string"
        },
        "threshold": {
          "type": "number",
          "description": "Optional. The minimum ratio of passing_rows / total_rows required to pass this rule, with a range of 0.0, 1.0.0 indicates default value (i.e. 1.0).This field is only valid for row-level type rules.",
          "format": "double"
        },
        "uniquenessExpectation": {
          "$ref": "#/$defs/GoogleCloudDataplexV1DataQualityRuleUniquenessExpectation",
          "description": "Row-level rule which evaluates whether each column value is unique."
        },
        "regexExpectation": {
          "$ref": "#/$defs/GoogleCloudDataplexV1DataQualityRuleRegexExpectation",
          "description": "Row-level rule which evaluates whether each column value matches a specified regex."
        },
        "ruleSource": {
          "$ref": "#/$defs/GoogleCloudDataplexV1DataQualityRuleRuleSource",
          "description": "Output only. Contains information about the source of the rule and its relationship with the BigQuery table, where applicable."
        },
        "debugQueries": {
          "description": "Optional. Specifies the debug queries for this rule. Currently, only one query is supported, but this may be expanded in the future.",
          "items": {
            "$ref": "#/$defs/GoogleCloudDataplexV1DataQualityRuleDebugQuery"
          },
          "type": "array"
        },
        "sqlAssertion": {
          "$ref": "#/$defs/GoogleCloudDataplexV1DataQualityRuleSqlAssertion",
          "description": "Aggregate rule which evaluates the number of rows returned for the provided statement. If any rows are returned, this rule fails."
        },
        "suspended": {
          "description": "Optional. Whether the Rule is active or suspended. Default is false.",
          "type": "boolean"
        },
        "statisticRangeExpectation": {
          "$ref": "#/$defs/GoogleCloudDataplexV1DataQualityRuleStatisticRangeExpectation",
          "description": "Aggregate rule which evaluates whether the column aggregate statistic lies between a specified range."
        },
        "description": {
          "description": "Optional. Description of the rule. The maximum length is 1,024 characters.",
          "type": "string"
        },
        "column": {
          "description": "Optional. The unnested column which this rule is evaluated against.",
          "type": "string"
        },
        "setExpectation": {
          "$ref": "#/$defs/GoogleCloudDataplexV1DataQualityRuleSetExpectation",
          "description": "Row-level rule which evaluates whether each column value is contained by a specified set."
        },
        "dimension": {
          "description": "Optional. The dimension a rule belongs to. Results are also aggregated at the dimension level. Custom dimension name is supported with all uppercase letters and maximum length of 30 characters.",
          "type": "string"
        },
        "rangeExpectation": {
          "$ref": "#/$defs/GoogleCloudDataplexV1DataQualityRuleRangeExpectation",
          "description": "Row-level rule which evaluates whether each column value lies between a specified range."
        },
        "attributes": {
          "description": "Optional. Map of attribute name and value linked to the rule. The rules to evaluate can be filtered based on attributes provided here and a filter expression provided in the DataQualitySpec.filter field.",
          "type": "object",
          "additionalProperties": {
            "type": "string"
          }
        },
        "tableConditionExpectation": {
          "$ref": "#/$defs/GoogleCloudDataplexV1DataQualityRuleTableConditionExpectation",
          "description": "Aggregate rule which evaluates whether the provided expression is true for a table."
        },
        "nonNullExpectation": {
          "$ref": "#/$defs/GoogleCloudDataplexV1DataQualityRuleNonNullExpectation",
          "description": "Row-level rule which evaluates whether each column value is null."
        },
        "ignoreNull": {
          "description": "Optional. Rows with null values will automatically fail a rule, unless ignore_null is true. In that case, such null rows are trivially considered passing.This field is only valid for the following type of rules: RangeExpectation RegexExpectation SetExpectation UniquenessExpectation",
          "type": "boolean"
        },
        "rowConditionExpectation": {
          "$ref": "#/$defs/GoogleCloudDataplexV1DataQualityRuleRowConditionExpectation",
          "description": "Row-level rule which evaluates whether each row in a table passes the specified condition."
        },
        "templateReference": {
          "$ref": "#/$defs/GoogleCloudDataplexV1DataQualityRuleTemplateReference",
          "description": "Aggregate rule which references a rule template and provides the parameters to be substituted in the template. If any rows are returned, this rule fails."
        }
      },
      "description": "A rule captures data quality intent about a data source."
    },
    "GoogleCloudDataplexV1DataQualityRuleDebugQuery": {
      "properties": {
        "description": {
          "type": "string",
          "description": "Optional. Specifies the description of the debug query. The maximum length is 1,024 characters."
        },
        "sqlStatement": {
          "type": "string",
          "description": "Required. Specifies the SQL statement to be executed."
        }
      },
      "type": "object",
      "description": "Specifies a SQL statement that is evaluated to return up to 10 scalar values that are used to debug rules. If the rule fails, the values can help diagnose the cause of the failure.The SQL statement must use GoogleSQL syntax (https://cloud.google.com/bigquery/docs/reference/standard-sql/query-syntax), and must not contain any semicolons.You can use the data reference parameter ${data()} to reference the source table with all of its precondition filters applied. Examples of precondition filters include row filters, incremental data filters, and sampling. For more information, see Data reference parameter (https://cloud.google.com/dataplex/docs/auto-data-quality-overview#data-reference-parameter).You can also name results with an explicit alias using [AS] alias. For more information, see BigQuery explicit aliases (https://docs.cloud.google.com/bigquery/docs/reference/standard-sql/query-syntax#explicit_alias_syntax).Example: SELECT MIN(col1) AS min_col1, MAX(col1) AS max_col1 FROM ${data()}"
    },
    "GoogleCloudDataplexV1DataQualityRuleNonNullExpectation": {
      "properties": {},
      "type": "object",
      "description": "Evaluates whether each column value is null."
    },
    "GoogleCloudDataplexV1DataQualityRuleRangeExpectation": {
      "type": "object",
      "description": "Evaluates whether each column value lies between a specified range.",
      "properties": {
        "minValue": {
          "description": "Optional. The minimum column value allowed for a row to pass this validation. At least one of min_value and max_value need to be provided.",
          "type": "string"
        },
        "maxValue": {
          "description": "Optional. The maximum column value allowed for a row to pass this validation. At least one of min_value and max_value need to be provided.",
          "type": "string"
        },
        "strictMaxEnabled": {
          "description": "Optional. Whether each value needs to be strictly lesser than ('<') the maximum, or if equality is allowed.Only relevant if a max_value has been defined. Default = false.",
          "type": "boolean"
        },
        "strictMinEnabled": {
          "description": "Optional. Whether each value needs to be strictly greater than ('>') the minimum, or if equality is allowed.Only relevant if a min_value has been defined. Default = false.",
          "type": "boolean"
        }
      }
    },
    "GoogleCloudDataplexV1DataQualityRuleRegexExpectation": {
      "description": "Evaluates whether each column value matches a specified regex.",
      "properties": {
        "regex": {
          "type": "string",
          "description": "Optional. A regular expression the column value is expected to match."
        }
      },
      "type": "object"
    },
    "GoogleCloudDataplexV1DataQualityRuleResult": {
      "description": "DataQualityRuleResult provides a more detailed, per-rule view of the results.",
      "properties": {
        "debugQueriesResultSets": {
          "items": {
            "$ref": "#/$defs/GoogleCloudDataplexV1DataQualityRuleResultDebugQueryResultSet"
          },
          "type": "array",
          "description": "Output only. Contains the results of all debug queries for this rule. The number of result sets will correspond to the number of debug_queries.",
          "readOnly": true
        },
        "evaluatedCount": {
          "description": "Output only. The number of rows a rule was evaluated against.This field is only valid for row-level type rules.Evaluated count can be configured to either include all rows (default) - with null rows automatically failing rule evaluation, or exclude null rows from the evaluated_count, by setting ignore_nulls = true.This field is not set for rule SqlAssertion.",
          "type": "string",
          "readOnly": true,
          "format": "int64"
        },
        "rule": {
          "$ref": "#/$defs/GoogleCloudDataplexV1DataQualityRule",
          "description": "Output only. The rule specified in the DataQualitySpec, as is."
        },
        "assertionRowCount": {
          "type": "string",
          "readOnly": true,
          "description": "Output only. The number of rows returned by the SQL statement in a SQL assertion rule.This field is only valid for SQL assertion rules.",
          "format": "int64"
        },
        "failingRowsQuery": {
          "type": "string",
          "readOnly": true,
          "description": "Output only. The query to find rows that did not pass this rule.This field is only valid for row-level type rules."
        },
        "nullCount": {
          "description": "Output only. The number of rows with null values in the specified column.",
          "format": "int64",
          "type": "string",
          "readOnly": true
        },
        "passRatio": {
          "readOnly": true,
          "description": "Output only. The ratio of passed_count / evaluated_count.This field is only valid for row-level type rules.",
          "type": "number",
          "format": "double"
        },
        "passed": {
          "description": "Output only. Whether the rule passed or failed.",
          "readOnly": true,
          "type": "boolean"
        },
        "passedCount": {
          "readOnly": true,
          "description": "Output only. The number of rows which passed a rule evaluation.This field is only valid for row-level type rules.This field is not set for rule SqlAssertion.",
          "type": "string",
          "format": "int64"
        }
      },
      "type": "object"
    },
    "GoogleCloudDataplexV1DataQualityRuleResultDebugQueryResult": {
      "description": "Contains a single result from the debug query.",
      "properties": {
        "value": {
          "type": "string",
          "description": "Represents the value of the result as a string."
        },
        "name": {
          "type": "string",
          "description": "Specifies the name of the result. Available if provided with an explicit alias using [AS] alias."
        },
        "type": {
          "type": "string",
          "description": "Indicates the data type of the result. For more information, see BigQuery data types (https://cloud.google.com/bigquery/docs/reference/standard-sql/data-types)."
        }
      },
      "type": "object"
    },
    "GoogleCloudDataplexV1DataQualityRuleResultDebugQueryResultSet": {
      "type": "object",
      "properties": {
        "results": {
          "items": {
            "$ref": "#/$defs/GoogleCloudDataplexV1DataQualityRuleResultDebugQueryResult"
          },
          "type": "array",
          "readOnly": true,
          "description": "Output only. Contains all results. Up to 10 results can be returned."
        }
      },
      "description": "Contains all results from a debug query."
    },
    "GoogleCloudDataplexV1DataQualityRuleRowConditionExpectation": {
      "description": "Evaluates whether each row passes the specified condition.The SQL expression needs to use GoogleSQL syntax (https://cloud.google.com/bigquery/docs/reference/standard-sql/query-syntax) and should produce a boolean value per row as the result.Example: col1 >= 0 AND col2 < 10",
      "type": "object",
      "properties": {
        "sqlExpression": {
          "description": "Optional. The SQL expression.",
          "type": "string"
        }
      }
    },
    "GoogleCloudDataplexV1DataQualityRuleRuleSource": {
      "description": "Represents the rule source information from Catalog.",
      "type": "object",
      "properties": {
        "rulePathElements": {
          "description": "Output only. Rule path elements represent information about the individual items in the relationship path between the scan resource and rule origin in that order.",
          "items": {
            "$ref": "#/$defs/GoogleCloudDataplexV1DataQualityRuleRuleSourceRulePathElement"
          },
          "readOnly": true,
          "type": "array"
        }
      }
    },
    "GoogleCloudDataplexV1DataQualityRuleRuleSourceRulePathElement": {
      "properties": {
        "entryLinkSource": {
          "$ref": "#/$defs/GoogleCloudDataplexV1DataQualityRuleRuleSourceRulePathElementEntryLinkSource",
          "description": "Output only. Entry link source represents information about the entry link."
        },
        "entrySource": {
          "$ref": "#/$defs/GoogleCloudDataplexV1DataQualityRuleRuleSourceRulePathElementEntrySource",
          "description": "Output only. Entry source represents information about the related source entry."
        }
      },
      "description": "Path Element represents the direct relationship between the rule origin (aspects) to the BigQuery Entry. Ordering of the rule relationship will be maintained such that the first entry in the list is the closest ancestor (BigQuery table itself). A blank source denotes that the rule is derived directly from the DataScan itself.",
      "type": "object"
    },
    "GoogleCloudDataplexV1DataQualityRuleRuleSourceRulePathElementEntryLinkSource": {
      "properties": {
        "entryLink": {
          "type": "string",
          "readOnly": true,
          "description": "Output only. The entry link name in the form of: projects/{project_id_or_number}/locations/{location_id}/entryGroups/{entry_group_id}/entryLinks/{entry_link_id}"
        },
        "entryLinkType": {
          "type": "string",
          "readOnly": true,
          "description": "Output only. The entry link type to represent the current relationship between the entry and the next entry in the path. In the form of: projects/{project_id_or_number}/locations/{location_id}/entryLinkTypes/{entry_link_type_id}"
        }
      },
      "description": "Entry link source represents information about the entry link.",
      "type": "object"
    },
    "GoogleCloudDataplexV1DataQualityRuleRuleSourceRulePathElementEntrySource": {
      "type": "object",
      "description": "Entry source represents information about the related source entry.",
      "properties": {
        "entry": {
          "readOnly": true,
          "description": "Output only. The entry name in the form of: projects/{project_id_or_number}/locations/{location_id}/entryGroups/{entry_group_id}/entries/{entry_id}",
          "type": "string"
        },
        "entryType": {
          "description": "Output only. The entry type to represent the current characteristics of the entry in the form of: projects/{project_id_or_number}/locations/{location_id}/entryTypes/{entry-type-id}.",
          "readOnly": true,
          "type": "string"
        },
        "displayName": {
          "description": "Output only. The display name of the entry.",
          "readOnly": true,
          "type": "string"
        }
      }
    },
    "GoogleCloudDataplexV1DataQualityRuleSetExpectation": {
      "type": "object",
      "description": "Evaluates whether each column value is contained by a specified set.",
      "properties": {
        "values": {
          "type": "array",
          "description": "Optional. Expected values for the column value.",
          "items": {
            "type": "string"
          }
        }
      }
    },
    "GoogleCloudDataplexV1DataQualityRuleSqlAssertion": {
      "properties": {
        "sqlStatement": {
          "description": "Optional. The SQL statement.",
          "type": "string"
        }
      },
      "type": "object",
      "description": "A SQL statement that is evaluated to return rows that match an invalid state. If any rows are are returned, this rule fails.The SQL statement must use GoogleSQL syntax (https://cloud.google.com/bigquery/docs/reference/standard-sql/query-syntax), and must not contain any semicolons.You can use the data reference parameter ${data()} to reference the source table with all of its precondition filters applied. Examples of precondition filters include row filters, incremental data filters, and sampling. For more information, see Data reference parameter (https://cloud.google.com/dataplex/docs/auto-data-quality-overview#data-reference-parameter).Example: SELECT * FROM ${data()} WHERE price < 0"
    },
    "GoogleCloudDataplexV1DataQualityRuleStatisticRangeExpectation": {
      "type": "object",
      "description": "Evaluates whether the column aggregate statistic lies between a specified range.",
      "properties": {
        "maxValue": {
          "description": "Optional. The maximum column statistic value allowed for a row to pass this validation.At least one of min_value and max_value need to be provided.",
          "type": "string"
        },
        "strictMaxEnabled": {
          "description": "Optional. Whether column statistic needs to be strictly lesser than ('<') the maximum, or if equality is allowed.Only relevant if a max_value has been defined. Default = false.",
          "type": "boolean"
        },
        "statistic": {
          "description": "Optional. The aggregate metric to evaluate.",
          "type": "string",
          "enum": [
            "STATISTIC_UNDEFINED",
            "MEAN",
            "MIN",
            "MAX"
          ]
        },
        "minValue": {
          "description": "Optional. The minimum column statistic value allowed for a row to pass this validation.At least one of min_value and max_value need to be provided.",
          "type": "string"
        },
        "strictMinEnabled": {
          "type": "boolean",
          "description": "Optional. Whether column statistic needs to be strictly greater than ('>') the minimum, or if equality is allowed.Only relevant if a min_value has been defined. Default = false."
        }
      }
    },
    "GoogleCloudDataplexV1DataQualityRuleTableConditionExpectation": {
      "properties": {
        "sqlExpression": {
          "type": "string",
          "description": "Optional. The SQL expression."
        }
      },
      "description": "Evaluates whether the provided expression is true.The SQL expression needs to use GoogleSQL syntax (https://cloud.google.com/bigquery/docs/reference/standard-sql/query-syntax) and should produce a scalar boolean result.Example: MIN(col1) >= 0",
      "type": "object"
    },
    "GoogleCloudDataplexV1DataQualityRuleTemplate": {
      "description": "DataQualityRuleTemplate represents a template which can be reused across multiple data quality rules.",
      "type": "object",
      "properties": {
        "capabilities": {
          "description": "Output only. A list of features or properties supported by this rule template.",
          "readOnly": true,
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "dimension": {
          "description": "Output only. The dimension a rule template belongs to. Rule level results are also aggregated at the dimension level.",
          "type": "string",
          "readOnly": true
        },
        "name": {
          "description": "Output only. The name of the rule template in the format: projects/{project_id_or_number}/locations/{location_id}/entryGroups/{entry_group_id}/entries/{entry_id}",
          "type": "string",
          "readOnly": true
        },
        "inputParameters": {
          "description": "Output only. Description for input parameters",
          "readOnly": true,
          "type": "object",
          "additionalProperties": {
            "$ref": "#/$defs/GoogleCloudDataplexV1DataQualityRuleTemplateParameterDescription"
          }
        },
        "sqlCollection": {
          "readOnly": true,
          "type": "array",
          "description": "Output only. Collection of SQLs for data quality rules. Currently only one SQL is supported.",
          "items": {
            "$ref": "#/$defs/GoogleCloudDataplexV1DataQualityRuleTemplateSql"
          }
        }
      }
    },
    "GoogleCloudDataplexV1DataQualityRuleTemplateParameterDescription": {
      "properties": {
        "defaultValue": {
          "type": "string",
          "readOnly": true,
          "description": "Output only. The default value for the parameter if no value is provided."
        },
        "description": {
          "readOnly": true,
          "description": "Output only. Description of the input parameter. It can include the type(s) supported by the parameter and intended usage. It is for information purposes only and does not affect the behavior of the rule template.",
          "type": "string"
        }
      },
      "type": "object",
      "description": "Description of the input parameter. It can include the type(s) supported by the parameter and intended usage. It is for information purposes only and does not affect the behavior of the rule template."
    },
    "GoogleCloudDataplexV1DataQualityRuleTemplateReference": {
      "type": "object",
      "description": "A rule that constructs a SQL statement to evaluate using a rule template and parameter values. If the constructed statement returns any rows, this rule fails",
      "properties": {
        "resolvedSql": {
          "type": "string",
          "readOnly": true,
          "description": "Output only. The resolved SQL statement generated from the template with parameters substituted. It is only populated in the result."
        },
        "values": {
          "additionalProperties": {
            "$ref": "#/$defs/GoogleCloudDataplexV1DataQualityRuleTemplateReferenceParameterValue"
          },
          "type": "object",
          "description": "Optional. Provides the map of parameter name and value. The maximum size of the field is 120KB (encoded as UTF-8)."
        },
        "name": {
          "description": "Required. The template entry name. Entry must be of EntryType projects/dataplex-types/locations/global/entryTypes/data-quality-rule-template and contains top-level aspect of AspectType projects/dataplex-types/locations/global/aspectTypes/data-quality-rule-template. The format is: projects/{project_id_or_number}/locations/{location_id}/entryGroups/{entry_group_id}/entries/{entry_id}",
          "type": "string"
        },
        "ruleTemplate": {
          "$ref": "#/$defs/GoogleCloudDataplexV1DataQualityRuleTemplate",
          "description": "Output only. The rule template used to resolve the rule. It is only populated in the result."
        }
      }
    },
    "GoogleCloudDataplexV1DataQualityRuleTemplateReferenceParameterValue": {
      "type": "object",
      "properties": {
        "value": {
          "description": "Required. Represents the string value of the parameter.",
          "type": "string"
        }
      },
      "description": "Represents a parameter value."
    },
    "GoogleCloudDataplexV1DataQualityRuleTemplateSql": {
      "properties": {
        "query": {
          "readOnly": true,
          "type": "string",
          "description": "Output only. Templatized SQL query for data quality rules."
        }
      },
      "type": "object",
      "description": "Templatized SQL query for data quality rules. It can have parameters that can be substituted with values when a rule is created using this template."
    },
    "GoogleCloudDataplexV1DataQualityRuleUniquenessExpectation": {
      "properties": {},
      "type": "object",
      "description": "Evaluates whether the column has duplicates."
    },
    "GoogleCloudDataplexV1DataQualitySpec": {
      "type": "object",
      "properties": {
        "rowFilter": {
          "type": "string",
          "description": "Optional. A filter applied to all rows in a single DataScan job. The filter needs to be a valid SQL expression for a WHERE clause in GoogleSQL syntax (https://cloud.google.com/bigquery/docs/reference/standard-sql/query-syntax#where_clause).Example: col1 >= 0 AND col2 < 10"
        },
        "enableCatalogBasedRules": {
          "description": "Optional. If enabled, the data scan will retrieve rules defined in the dataplex-types.global.data-rules aspect on all paths of the catalog entry corresponding to the BigQuery table resource and all attached glossary terms. The path that data-rules aspect is attached on the table entry defines the column that the rule will be evaluated against. For glossary terms, the path that the terms are attached on the table entry defines the column that the rule will be evaluated against. At the start of scan execution, the rules reflect the latest state retrieved from the catalog entry and any updates on the rules thereafter are ignored for that execution. The updates will be reflected from the next execution. Rules defined in the datascan must be empty if this field is enabled.",
          "type": "boolean"
        },
        "samplingPercent": {
          "type": "number",
          "format": "float",
          "description": "Optional. The percentage of the records to be selected from the dataset for DataScan. Value can range between 0.0 and 100.0 with up to 3 significant decimal digits. Sampling is not applied if sampling_percent is not specified, 0 or 100."
        },
        "filter": {
          "description": "Optional. Filter for selectively running a subset of rules. You can filter the request by the name or attribute key-value pairs defined on the rule. If not specified, all rules are run. The filter is applicable to both, the rules retrieved from catalog and explicitly defined rules in the scan. Please see filter syntax (https://docs.cloud.google.com/dataplex/docs/auto-data-quality-overview#rule-filtering) for more details.",
          "type": "string"
        },
        "rules": {
          "items": {
            "$ref": "#/$defs/GoogleCloudDataplexV1DataQualityRule"
          },
          "type": "array",
          "description": "Required. The list of rules to evaluate against a data source. At least one rule is required."
        },
        "postScanActions": {
          "$ref": "#/$defs/GoogleCloudDataplexV1DataQualitySpecPostScanActions",
          "description": "Optional. Actions to take upon job completion."
        },
        "catalogPublishingEnabled": {
          "type": "boolean",
          "description": "Optional. If set, the latest DataScan job result will be published as Dataplex Universal Catalog metadata."
        }
      },
      "description": "DataQualityScan related setting."
    },
    "GoogleCloudDataplexV1DataQualitySpecPostScanActions": {
      "type": "object",
      "description": "The configuration of post scan actions of DataQualityScan.",
      "properties": {
        "bigqueryExport": {
          "$ref": "#/$defs/GoogleCloudDataplexV1DataQualitySpecPostScanActionsBigQueryExport",
          "description": "Optional. If set, results will be exported to the provided BigQuery table."
        },
        "notificationReport": {
          "$ref": "#/$defs/GoogleCloudDataplexV1DataQualitySpecPostScanActionsNotificationReport",
          "description": "Optional. If set, results will be sent to the provided notification receipts upon triggers."
        }
      }
    },
    "GoogleCloudDataplexV1DataQualitySpecPostScanActionsBigQueryExport": {
      "description": "The configuration of BigQuery export post scan action.",
      "type": "object",
      "properties": {
        "resultsTable": {
          "type": "string",
          "description": "Optional. The BigQuery table to export DataQualityScan results to. Format: //bigquery.googleapis.com/projects/PROJECT_ID/datasets/DATASET_ID/tables/TABLE_ID or projects/PROJECT_ID/datasets/DATASET_ID/tables/TABLE_ID"
        }
      }
    },
    "GoogleCloudDataplexV1DataQualitySpecPostScanActionsJobEndTrigger": {
      "description": "This trigger is triggered whenever a scan job run ends, regardless of the result.",
      "type": "object",
      "properties": {}
    },
    "GoogleCloudDataplexV1DataQualitySpecPostScanActionsJobFailureTrigger": {
      "description": "This trigger is triggered when the scan job itself fails, regardless of the result.",
      "properties": {},
      "type": "object"
    },
    "GoogleCloudDataplexV1DataQualitySpecPostScanActionsNotificationReport": {
      "description": "The configuration of notification report post scan action.",
      "properties": {
        "recipients": {
          "$ref": "#/$defs/GoogleCloudDataplexV1DataQualitySpecPostScanActionsRecipients",
          "description": "Required. The recipients who will receive the notification report."
        },
        "jobFailureTrigger": {
          "$ref": "#/$defs/GoogleCloudDataplexV1DataQualitySpecPostScanActionsJobFailureTrigger",
          "description": "Optional. If set, report will be sent when a scan job fails."
        },
        "scoreThresholdTrigger": {
          "$ref": "#/$defs/GoogleCloudDataplexV1DataQualitySpecPostScanActionsScoreThresholdTrigger",
          "description": "Optional. If set, report will be sent when score threshold is met."
        },
        "jobEndTrigger": {
          "$ref": "#/$defs/GoogleCloudDataplexV1DataQualitySpecPostScanActionsJobEndTrigger",
          "description": "Optional. If set, report will be sent when a scan job ends."
        }
      },
      "type": "object"
    },
    "GoogleCloudDataplexV1DataQualitySpecPostScanActionsRecipients": {
      "description": "The individuals or groups who are designated to receive notifications upon triggers.",
      "properties": {
        "emails": {
          "type": "array",
          "description": "Optional. The email recipients who will receive the DataQualityScan results report.",
          "items": {
            "type": "string"
          }
        }
      },
      "type": "object"
    },
    "GoogleCloudDataplexV1DataQualitySpecPostScanActionsScoreThresholdTrigger": {
      "type": "object",
      "description": "This trigger is triggered when the DQ score in the job result is less than a specified input score.",
      "properties": {
        "scoreThreshold": {
          "type": "number",
          "description": "Optional. The score range is in 0,100.",
          "format": "float"
        }
      }
    },
    "GoogleCloudDataplexV1DataScanCatalogPublishingStatus": {
      "type": "object",
      "properties": {
        "state": {
          "type": "string",
          "enum": [
            "STATE_UNSPECIFIED",
            "SUCCEEDED",
            "FAILED",
            "SKIPPED"
          ],
          "description": "Output only. Execution state for publishing.",
          "readOnly": true
        }
      },
      "description": "The status of publishing the data scan result as Dataplex Universal Catalog metadata. Multiple DataScan log events may exist, each with different publishing information depending on the type of publishing triggered."
    },
    "GoogleCloudDataplexV1DataScanExecutionSpec": {
      "type": "object",
      "properties": {
        "field": {
          "description": "Immutable. The unnested field (of type Date or Timestamp) that contains values which monotonically increase over time.If not specified, a data scan will run for all data in the table.",
          "type": "string"
        },
        "trigger": {
          "$ref": "#/$defs/GoogleCloudDataplexV1Trigger",
          "description": "Optional. Spec related to how often and when a scan should be triggered.If not specified, the default is OnDemand, which means the scan will not run until the user calls RunDataScan API."
        }
      },
      "description": "DataScan execution settings."
    },
    "GoogleCloudDataplexV1DataScanExecutionStatus": {
      "description": "Status of the data scan execution.",
      "properties": {
        "latestJobCreateTime": {
          "format": "google-datetime",
          "type": "string",
          "description": "Optional. The time when the DataScanJob execution was created."
        },
        "latestJobEndTime": {
          "type": "string",
          "description": "Optional. The time when the latest DataScanJob ended.",
          "format": "google-datetime"
        },
        "latestJobStartTime": {
          "type": "string",
          "format": "google-datetime",
          "description": "Optional. The time when the latest DataScanJob started."
        }
      },
      "type": "object"
    },
    "GoogleCloudDataplexV1DataSource": {
      "description": "The data source for DataScan.",
      "type": "object",
      "properties": {
        "resource": {
          "description": "Immutable. The service-qualified full resource name of the cloud resource for a DataScan job to scan against. The field could either be: Cloud Storage bucket for DataDiscoveryScan Format: //storage.googleapis.com/projects/PROJECT_ID/buckets/BUCKET_ID or BigQuery table of type \"TABLE\" for DataProfileScan/DataQualityScan/DataDocumentationScan Format: //bigquery.googleapis.com/projects/PROJECT_ID/datasets/DATASET_ID/tables/TABLE_ID or BigQuery dataset for DataDocumentationScan only Format: //bigquery.googleapis.com/projects/PROJECT_ID/datasets/DATASET_ID",
          "type": "string"
        },
        "entity": {
          "type": "string",
          "description": "Immutable. The Dataplex Universal Catalog entity that represents the data source (e.g. BigQuery table) for DataScan, of the form: projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}/entities/{entity_id}."
        }
      }
    },
    "GoogleCloudDataplexV1ExecutionIdentity": {
      "type": "object",
      "properties": {
        "userCredential": {
          "$ref": "#/$defs/GoogleCloudDataplexV1ExecutionIdentityUserCredential",
          "description": "Optional. The credential of the calling user. Supports only ONE_TIME trigger type."
        },
        "serviceAccount": {
          "$ref": "#/$defs/GoogleCloudDataplexV1ExecutionIdentityServiceAccount",
          "description": "Optional. The provided service account."
        },
        "dataplexServiceAgent": {
          "$ref": "#/$defs/GoogleCloudDataplexV1ExecutionIdentityDataplexServiceAgent",
          "description": "Optional. The Dataplex service agent associated with the user's project."
        }
      },
      "description": "The identity to run the datascan."
    },
    "GoogleCloudDataplexV1ExecutionIdentityDataplexServiceAgent": {
      "description": "The Dataplex service agent associated with the user's project.",
      "type": "object",
      "properties": {}
    },
    "GoogleCloudDataplexV1ExecutionIdentityServiceAccount": {
      "properties": {
        "email": {
          "description": "Required. Service account email. The datascan will execute with this service account's credentials. The user calling this API must have permissions to act as this service account. Dataplex service agent must be granted iam.serviceAccounts.getAccessToken permission on this service account, for example, through the iam.serviceAccountTokenCreator role .",
          "type": "string"
        }
      },
      "description": "The service account",
      "type": "object"
    },
    "GoogleCloudDataplexV1ExecutionIdentityUserCredential": {
      "type": "object",
      "description": "The credential of the calling user.",
      "properties": {}
    },
    "GoogleCloudDataplexV1ScannedData": {
      "properties": {
        "incrementalField": {
          "$ref": "#/$defs/GoogleCloudDataplexV1ScannedDataIncrementalField",
          "description": "The range denoted by values of an incremental field"
        }
      },
      "type": "object",
      "description": "The data scanned during processing (e.g. in incremental DataScan)"
    },
    "GoogleCloudDataplexV1ScannedDataIncrementalField": {
      "description": "A data range denoted by a pair of start/end values of a field.",
      "properties": {
        "field": {
          "readOnly": true,
          "type": "string",
          "description": "Output only. The field that contains values which monotonically increases over time (e.g. a timestamp column)."
        },
        "end": {
          "readOnly": true,
          "type": "string",
          "description": "Output only. Value that marks the end of the range."
        },
        "start": {
          "readOnly": true,
          "type": "string",
          "description": "Output only. Value that marks the start of the range."
        }
      },
      "type": "object"
    },
    "GoogleCloudDataplexV1Trigger": {
      "description": "DataScan scheduling and trigger settings.",
      "type": "object",
      "properties": {
        "schedule": {
          "$ref": "#/$defs/GoogleCloudDataplexV1TriggerSchedule",
          "description": "The scan is scheduled to run periodically."
        },
        "oneTime": {
          "$ref": "#/$defs/GoogleCloudDataplexV1TriggerOneTime",
          "description": "The scan runs once, and does not create an associated ScanJob child resource."
        },
        "onDemand": {
          "$ref": "#/$defs/GoogleCloudDataplexV1TriggerOnDemand",
          "description": "The scan runs once via RunDataScan API."
        }
      }
    },
    "GoogleCloudDataplexV1TriggerOnDemand": {
      "type": "object",
      "description": "The scan runs once via RunDataScan API.",
      "properties": {}
    },
    "GoogleCloudDataplexV1TriggerOneTime": {
      "properties": {
        "ttlAfterScanCompletion": {
          "type": "string",
          "description": "Optional. Time to live for OneTime scans. default value is 24 hours, minimum value is 0 seconds, and maximum value is 365 days. The time is calculated from the data scan job completion time. If value is set as 0 seconds, the scan will be immediately deleted upon job completion, regardless of whether the job succeeded or failed.",
          "format": "google-duration"
        }
      },
      "description": "The scan runs once using create API.",
      "type": "object"
    },
    "GoogleCloudDataplexV1TriggerSchedule": {
      "description": "The scan is scheduled to run periodically.",
      "properties": {
        "cron": {
          "description": "Required. Cron (https://en.wikipedia.org/wiki/Cron) schedule for running scans periodically.To explicitly set a timezone in the cron tab, apply a prefix in the cron tab: \"CRON_TZ=${IANA_TIME_ZONE}\" or \"TZ=${IANA_TIME_ZONE}\". The ${IANA_TIME_ZONE} may only be a valid string from IANA time zone database (wikipedia (https://en.wikipedia.org/wiki/List_of_tz_database_time_zones#List)). For example, CRON_TZ=America/New_York 1 * * * *, or TZ=America/New_York 1 * * * *.This field is required for Schedule scans.",
          "type": "string"
        }
      },
      "type": "object"
    }
  }
}