Class: Google::Apis::DataplexV1::GoogleCloudDataplexV1DataScan

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/dataplex_v1/classes.rb,
lib/google/apis/dataplex_v1/representations.rb,
lib/google/apis/dataplex_v1/representations.rb

Overview

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. Data Profile: analyzes the data in table(s) and generates insights about the structure, content and relationships (such as null percent, cardinality, min/max/mean, etc).

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDataplexV1DataScan

Returns a new instance of GoogleCloudDataplexV1DataScan.



3282
3283
3284
# File 'lib/google/apis/dataplex_v1/classes.rb', line 3282

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#create_timeString

Output only. The time when the scan was created. Corresponds to the JSON property createTime

Returns:

  • (String)


3191
3192
3193
# File 'lib/google/apis/dataplex_v1/classes.rb', line 3191

def create_time
  @create_time
end

#dataGoogle::Apis::DataplexV1::GoogleCloudDataplexV1DataSource

The data source for DataScan. Corresponds to the JSON property data



3196
3197
3198
# File 'lib/google/apis/dataplex_v1/classes.rb', line 3196

def data
  @data
end

#data_discovery_resultGoogle::Apis::DataplexV1::GoogleCloudDataplexV1DataDiscoveryResult

The output of a data discovery scan. Corresponds to the JSON property dataDiscoveryResult



3201
3202
3203
# File 'lib/google/apis/dataplex_v1/classes.rb', line 3201

def data_discovery_result
  @data_discovery_result
end

#data_discovery_specGoogle::Apis::DataplexV1::GoogleCloudDataplexV1DataDiscoverySpec

Spec for a data discovery scan. Corresponds to the JSON property dataDiscoverySpec



3206
3207
3208
# File 'lib/google/apis/dataplex_v1/classes.rb', line 3206

def data_discovery_spec
  @data_discovery_spec
end

#data_profile_resultGoogle::Apis::DataplexV1::GoogleCloudDataplexV1DataProfileResult

DataProfileResult defines the output of DataProfileScan. Each field of the table will have field type specific profile result. Corresponds to the JSON property dataProfileResult



3212
3213
3214
# File 'lib/google/apis/dataplex_v1/classes.rb', line 3212

def data_profile_result
  @data_profile_result
end

#data_profile_specGoogle::Apis::DataplexV1::GoogleCloudDataplexV1DataProfileSpec

DataProfileScan related setting. Corresponds to the JSON property dataProfileSpec



3217
3218
3219
# File 'lib/google/apis/dataplex_v1/classes.rb', line 3217

def data_profile_spec
  @data_profile_spec
end

#data_quality_resultGoogle::Apis::DataplexV1::GoogleCloudDataplexV1DataQualityResult

The output of a DataQualityScan. Corresponds to the JSON property dataQualityResult



3222
3223
3224
# File 'lib/google/apis/dataplex_v1/classes.rb', line 3222

def data_quality_result
  @data_quality_result
end

#data_quality_specGoogle::Apis::DataplexV1::GoogleCloudDataplexV1DataQualitySpec

DataQualityScan related setting. Corresponds to the JSON property dataQualitySpec



3227
3228
3229
# File 'lib/google/apis/dataplex_v1/classes.rb', line 3227

def data_quality_spec
  @data_quality_spec
end

#descriptionString

Optional. Description of the scan. Must be between 1-1024 characters. Corresponds to the JSON property description

Returns:

  • (String)


3232
3233
3234
# File 'lib/google/apis/dataplex_v1/classes.rb', line 3232

def description
  @description
end

#display_nameString

Optional. User friendly display name. Must be between 1-256 characters. Corresponds to the JSON property displayName

Returns:

  • (String)


3237
3238
3239
# File 'lib/google/apis/dataplex_v1/classes.rb', line 3237

def display_name
  @display_name
end

#execution_specGoogle::Apis::DataplexV1::GoogleCloudDataplexV1DataScanExecutionSpec

DataScan execution settings. Corresponds to the JSON property executionSpec



3242
3243
3244
# File 'lib/google/apis/dataplex_v1/classes.rb', line 3242

def execution_spec
  @execution_spec
end

#execution_statusGoogle::Apis::DataplexV1::GoogleCloudDataplexV1DataScanExecutionStatus

Status of the data scan execution. Corresponds to the JSON property executionStatus



3247
3248
3249
# File 'lib/google/apis/dataplex_v1/classes.rb', line 3247

def execution_status
  @execution_status
end

#labelsHash<String,String>

Optional. User-defined labels for the scan. Corresponds to the JSON property labels

Returns:

  • (Hash<String,String>)


3252
3253
3254
# File 'lib/google/apis/dataplex_v1/classes.rb', line 3252

def labels
  @labels
end

#nameString

Output only. 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 GCP region. Corresponds to the JSON property name

Returns:

  • (String)


3259
3260
3261
# File 'lib/google/apis/dataplex_v1/classes.rb', line 3259

def name
  @name
end

#stateString

Output only. Current state of the DataScan. Corresponds to the JSON property state

Returns:

  • (String)


3264
3265
3266
# File 'lib/google/apis/dataplex_v1/classes.rb', line 3264

def state
  @state
end

#typeString

Output only. The type of DataScan. Corresponds to the JSON property type

Returns:

  • (String)


3269
3270
3271
# File 'lib/google/apis/dataplex_v1/classes.rb', line 3269

def type
  @type
end

#uidString

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. Corresponds to the JSON property uid

Returns:

  • (String)


3275
3276
3277
# File 'lib/google/apis/dataplex_v1/classes.rb', line 3275

def uid
  @uid
end

#update_timeString

Output only. The time when the scan was last updated. Corresponds to the JSON property updateTime

Returns:

  • (String)


3280
3281
3282
# File 'lib/google/apis/dataplex_v1/classes.rb', line 3280

def update_time
  @update_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3287
3288
3289
3290
3291
3292
3293
3294
3295
3296
3297
3298
3299
3300
3301
3302
3303
3304
3305
3306
# File 'lib/google/apis/dataplex_v1/classes.rb', line 3287

def update!(**args)
  @create_time = args[:create_time] if args.key?(:create_time)
  @data = args[:data] if args.key?(:data)
  @data_discovery_result = args[:data_discovery_result] if args.key?(:data_discovery_result)
  @data_discovery_spec = args[:data_discovery_spec] if args.key?(:data_discovery_spec)
  @data_profile_result = args[:data_profile_result] if args.key?(:data_profile_result)
  @data_profile_spec = args[:data_profile_spec] if args.key?(:data_profile_spec)
  @data_quality_result = args[:data_quality_result] if args.key?(:data_quality_result)
  @data_quality_spec = args[:data_quality_spec] if args.key?(:data_quality_spec)
  @description = args[:description] if args.key?(:description)
  @display_name = args[:display_name] if args.key?(:display_name)
  @execution_spec = args[:execution_spec] if args.key?(:execution_spec)
  @execution_status = args[:execution_status] if args.key?(:execution_status)
  @labels = args[:labels] if args.key?(:labels)
  @name = args[:name] if args.key?(:name)
  @state = args[:state] if args.key?(:state)
  @type = args[:type] if args.key?(:type)
  @uid = args[:uid] if args.key?(:uid)
  @update_time = args[:update_time] if args.key?(:update_time)
end