# Copyright 2023 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#      http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

# yamllint disable rule:line-length
values:
  module.dataplex-datascan.google_dataplex_datascan.datascan:
    data:
    - entity: null
      resource: //bigquery.googleapis.com/projects/bigquery-public-data/datasets/austin_bikeshare/tables/bikeshare_stations
    data_profile_spec: []
    data_quality_spec:
    - post_scan_actions: []
      row_filter: station_id > 1000
      rules:
      - column: address
        name: null
        description: null
        dimension: VALIDITY
        ignore_null: null
        non_null_expectation:
        - {}
        range_expectation: []
        regex_expectation: []
        row_condition_expectation: []
        set_expectation: []
        sql_assertion: []
        statistic_range_expectation: []
        table_condition_expectation: []
        threshold: 0.99
        uniqueness_expectation: []
      - column: council_district
        name: null
        description: null
        dimension: VALIDITY
        ignore_null: true
        non_null_expectation: []
        range_expectation:
        - max_value: '10'
          min_value: '1'
          strict_max_enabled: false
          strict_min_enabled: true
        regex_expectation: []
        row_condition_expectation: []
        set_expectation: []
        sql_assertion: []
        statistic_range_expectation: []
        table_condition_expectation: []
        threshold: 0.9
        uniqueness_expectation: []
      - column: council_district
        name: null
        description: null
        dimension: VALIDITY
        ignore_null: null
        non_null_expectation: []
        range_expectation:
        - max_value: '9'
          min_value: '3'
          strict_max_enabled: false
          strict_min_enabled: false
        regex_expectation: []
        row_condition_expectation: []
        set_expectation: []
        sql_assertion: []
        statistic_range_expectation: []
        table_condition_expectation: []
        threshold: 0.8
        uniqueness_expectation: []
      - column: power_type
        name: null
        description: null
        dimension: VALIDITY
        ignore_null: false
        non_null_expectation: []
        range_expectation: []
        regex_expectation:
        - regex: .*solar.*
        row_condition_expectation: []
        set_expectation: []
        sql_assertion: []
        statistic_range_expectation: []
        table_condition_expectation: []
        threshold: null
        uniqueness_expectation: []
      - column: property_type
        name: null
        description: null
        dimension: VALIDITY
        ignore_null: false
        non_null_expectation: []
        range_expectation: []
        regex_expectation: []
        row_condition_expectation: []
        set_expectation:
        - values:
          - sidewalk
          - parkland
        sql_assertion: []
        statistic_range_expectation: []
        table_condition_expectation: []
        threshold: null
        uniqueness_expectation: []
      - column: address
        name: null
        description: null
        dimension: UNIQUENESS
        ignore_null: null
        non_null_expectation: []
        range_expectation: []
        regex_expectation: []
        row_condition_expectation: []
        set_expectation: []
        sql_assertion: []
        statistic_range_expectation: []
        table_condition_expectation: []
        threshold: null
        uniqueness_expectation:
        - {}
      - column: number_of_docks
        name: null
        description: null
        dimension: VALIDITY
        ignore_null: null
        non_null_expectation: []
        range_expectation: []
        regex_expectation: []
        row_condition_expectation: []
        set_expectation: []
        sql_assertion: []
        statistic_range_expectation:
        - max_value: '15'
          min_value: '5'
          statistic: MEAN
          strict_max_enabled: true
          strict_min_enabled: true
        table_condition_expectation: []
        threshold: null
        uniqueness_expectation: []
      - column: footprint_length
        name: null
        description: null
        dimension: VALIDITY
        ignore_null: null
        non_null_expectation: []
        range_expectation: []
        regex_expectation: []
        row_condition_expectation:
        - sql_expression: footprint_length > 0 AND footprint_length <= 10
        set_expectation: []
        sql_assertion: []
        statistic_range_expectation: []
        table_condition_expectation: []
        threshold: null
        uniqueness_expectation: []
      - column: null
        name: null
        description: null
        dimension: VALIDITY
        ignore_null: null
        non_null_expectation: []
        range_expectation: []
        regex_expectation: []
        row_condition_expectation: []
        set_expectation: []
        sql_assertion: []
        statistic_range_expectation: []
        table_condition_expectation:
        - sql_expression: COUNT(*) > 0
        threshold: null
        uniqueness_expectation: []
      - column: null
        name: null
        description: null
        dimension: VALIDITY
        ignore_null: null
        non_null_expectation: []
        range_expectation: []
        regex_expectation: []
        row_condition_expectation: []
        set_expectation: []
        sql_assertion:
        - sql_statement: |
            SELECT
              city_asset_number, council_district
            FROM ${data()}
            WHERE city_asset_number IS NOT NULL
            GROUP BY 1,2
            HAVING COUNT(*) > 1
        statistic_range_expectation: []
        table_condition_expectation: []
        threshold: null
        uniqueness_expectation: []
      sampling_percent: 100
    data_scan_id: test-datascan
    description: Terraform Managed.
    display_name: test-datascan
    execution_spec:
    - field: modified_date
      trigger:
      - on_demand: []
        schedule:
        - cron: TZ=America/New_York 0 1 * * *
    labels:
      billing_id: a
    location: us-central1
    project: my-project-name
    timeouts: null

counts:
  google_dataplex_datascan: 1
  modules: 1
  resources: 1

outputs: {}
