# frozen_string_literal: true # 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 # # https://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. # Auto-generated by gapic-generator-ruby. DO NOT EDIT! module Google module Cloud module Dataplex module V1 # DataScan scheduling and trigger settings. # @!attribute [rw] on_demand # @return [::Google::Cloud::Dataplex::V1::Trigger::OnDemand] # The scan runs one-time shortly after DataScan Creation. # @!attribute [rw] schedule # @return [::Google::Cloud::Dataplex::V1::Trigger::Schedule] # The scan is scheduled to run periodically. class Trigger include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # The scan runs one-time via RunDataScan API. class OnDemand include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # The scan is scheduled to run periodically. # @!attribute [rw] cron # @return [::String] # Required. Cron schedule (https://en.wikipedia.org/wiki/Cron) for running # scans periodically. # To explicitly set a timezone to 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. For example, "CRON_TZ=America/New_York 1 * * * *", or # "TZ=America/New_York 1 * * * *". # This field is required for Schedule scans. class Schedule include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end # The data source for DataScan. # @!attribute [rw] entity # @return [::String] # Immutable. The dataplex entity that contains the data for DataScan, of # the form: # `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}/entities/{entity_id}`. class DataSource include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # The data scanned during processing (e.g. in incremental DataScan) # @!attribute [rw] incremental_field # @return [::Google::Cloud::Dataplex::V1::ScannedData::IncrementalField] # The range denoted by values of an incremental field class ScannedData include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # A data range denoted by a pair of start/end values of a field. # @!attribute [rw] field # @return [::String] # The field that contains values which monotonically increases over time # (e.g. timestamp). # @!attribute [rw] start # @return [::String] # Value that marks the start of the range # @!attribute [rw] end # @return [::String] # Value that marks the end of the range class IncrementalField include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end end end end end