Skip to content

Commit

Permalink
feat: Automated regeneration of dataplex v1 client (googleapis#12685)
Browse files Browse the repository at this point in the history
Auto-created at 2022-10-30 11:08:27 +0000 using the toys pull request generator.
  • Loading branch information
yoshi-code-bot authored Oct 30, 2022
1 parent 85328c2 commit 75c1d5e
Show file tree
Hide file tree
Showing 6 changed files with 240 additions and 19 deletions.
21 changes: 21 additions & 0 deletions api_names_out.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -110514,6 +110514,26 @@
"/dataplex:v1/GoogleCloudDataplexV1ContentNotebook/kernelType": kernel_type
"/dataplex:v1/GoogleCloudDataplexV1ContentSqlScript": google_cloud_dataplex_v1_content_sql_script
"/dataplex:v1/GoogleCloudDataplexV1ContentSqlScript/engine": engine
"/dataplex:v1/GoogleCloudDataplexV1DataScanEvent": google_cloud_dataplex_v1_data_scan_event
"/dataplex:v1/GoogleCloudDataplexV1DataScanEvent/dataProfile": data_profile
"/dataplex:v1/GoogleCloudDataplexV1DataScanEvent/dataQuality": data_quality
"/dataplex:v1/GoogleCloudDataplexV1DataScanEvent/dataSource": data_source
"/dataplex:v1/GoogleCloudDataplexV1DataScanEvent/endTime": end_time
"/dataplex:v1/GoogleCloudDataplexV1DataScanEvent/jobId": job_id
"/dataplex:v1/GoogleCloudDataplexV1DataScanEvent/message": message
"/dataplex:v1/GoogleCloudDataplexV1DataScanEvent/scope": scope
"/dataplex:v1/GoogleCloudDataplexV1DataScanEvent/specVersion": spec_version
"/dataplex:v1/GoogleCloudDataplexV1DataScanEvent/startTime": start_time
"/dataplex:v1/GoogleCloudDataplexV1DataScanEvent/state": state
"/dataplex:v1/GoogleCloudDataplexV1DataScanEvent/trigger": trigger
"/dataplex:v1/GoogleCloudDataplexV1DataScanEvent/type": type
"/dataplex:v1/GoogleCloudDataplexV1DataScanEventDataProfileResult": google_cloud_dataplex_v1_data_scan_event_data_profile_result
"/dataplex:v1/GoogleCloudDataplexV1DataScanEventDataProfileResult/rowCount": row_count
"/dataplex:v1/GoogleCloudDataplexV1DataScanEventDataQualityResult": google_cloud_dataplex_v1_data_scan_event_data_quality_result
"/dataplex:v1/GoogleCloudDataplexV1DataScanEventDataQualityResult/dimensionPassed": dimension_passed
"/dataplex:v1/GoogleCloudDataplexV1DataScanEventDataQualityResult/dimensionPassed/dimension_passed": dimension_passed
"/dataplex:v1/GoogleCloudDataplexV1DataScanEventDataQualityResult/passed": passed
"/dataplex:v1/GoogleCloudDataplexV1DataScanEventDataQualityResult/rowCount": row_count
"/dataplex:v1/GoogleCloudDataplexV1DiscoveryEvent": google_cloud_dataplex_v1_discovery_event
"/dataplex:v1/GoogleCloudDataplexV1DiscoveryEvent/action": action
"/dataplex:v1/GoogleCloudDataplexV1DiscoveryEvent/assetId": asset_id
Expand Down Expand Up @@ -110726,6 +110746,7 @@
"/dataplex:v1/GoogleCloudDataplexV1Session/userId": user_id
"/dataplex:v1/GoogleCloudDataplexV1SessionEvent": google_cloud_dataplex_v1_session_event
"/dataplex:v1/GoogleCloudDataplexV1SessionEvent/eventSucceeded": event_succeeded
"/dataplex:v1/GoogleCloudDataplexV1SessionEvent/fastStartupEnabled": fast_startup_enabled
"/dataplex:v1/GoogleCloudDataplexV1SessionEvent/message": message
"/dataplex:v1/GoogleCloudDataplexV1SessionEvent/query": query
"/dataplex:v1/GoogleCloudDataplexV1SessionEvent/sessionId": session_id
Expand Down
5 changes: 5 additions & 0 deletions generated/google-apis-dataplex_v1/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Release history for google-apis-dataplex_v1

### v0.15.0 (2022-10-30)

* Regenerated from discovery document revision 20221021
* Regenerated using generator version 0.11.0

### v0.14.0 (2022-09-24)

* Regenerated from discovery document revision 20220920
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,5 @@ Gem::Specification.new do |gem|
gem.require_paths = ["lib"]

gem.required_ruby_version = '>= 2.5'
gem.add_runtime_dependency "google-apis-core", ">= 0.9.0", "< 2.a"
gem.add_runtime_dependency "google-apis-core", ">= 0.9.1", "< 2.a"
end
169 changes: 155 additions & 14 deletions generated/google-apis-dataplex_v1/lib/google/apis/dataplex_v1/classes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -896,6 +896,145 @@ def update!(**args)
end
end

# These messages contain information about the execution of a datascan. The
# monitored resource is 'DataScan'
class GoogleCloudDataplexV1DataScanEvent
include Google::Apis::Core::Hashable

# Data profile result for data scan job.
# Corresponds to the JSON property `dataProfile`
# @return [Google::Apis::DataplexV1::GoogleCloudDataplexV1DataScanEventDataProfileResult]
attr_accessor :data_profile

# Data quality result for data scan job.
# Corresponds to the JSON property `dataQuality`
# @return [Google::Apis::DataplexV1::GoogleCloudDataplexV1DataScanEventDataQualityResult]
attr_accessor :data_quality

# The data source of the data scan
# Corresponds to the JSON property `dataSource`
# @return [String]
attr_accessor :data_source

# The time when the data scan job finished.
# Corresponds to the JSON property `endTime`
# @return [String]
attr_accessor :end_time

# The identifier of the specific data scan job this log entry is for.
# Corresponds to the JSON property `jobId`
# @return [String]
attr_accessor :job_id

# The message describing the data scan job event.
# Corresponds to the JSON property `message`
# @return [String]
attr_accessor :message

# The scope of the data scan (e.g. full, incremental).
# Corresponds to the JSON property `scope`
# @return [String]
attr_accessor :scope

# A version identifier of the spec which was used to execute this job.
# Corresponds to the JSON property `specVersion`
# @return [String]
attr_accessor :spec_version

# The time when the data scan job started to run.
# Corresponds to the JSON property `startTime`
# @return [String]
attr_accessor :start_time

# The status of the data scan job.
# Corresponds to the JSON property `state`
# @return [String]
attr_accessor :state

# The trigger type of the data scan job.
# Corresponds to the JSON property `trigger`
# @return [String]
attr_accessor :trigger

# The type of the data scan.
# Corresponds to the JSON property `type`
# @return [String]
attr_accessor :type

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

# Update properties of this object
def update!(**args)
@data_profile = args[:data_profile] if args.key?(:data_profile)
@data_quality = args[:data_quality] if args.key?(:data_quality)
@data_source = args[:data_source] if args.key?(:data_source)
@end_time = args[:end_time] if args.key?(:end_time)
@job_id = args[:job_id] if args.key?(:job_id)
@message = args[:message] if args.key?(:message)
@scope = args[:scope] if args.key?(:scope)
@spec_version = args[:spec_version] if args.key?(:spec_version)
@start_time = args[:start_time] if args.key?(:start_time)
@state = args[:state] if args.key?(:state)
@trigger = args[:trigger] if args.key?(:trigger)
@type = args[:type] if args.key?(:type)
end
end

# Data profile result for data scan job.
class GoogleCloudDataplexV1DataScanEventDataProfileResult
include Google::Apis::Core::Hashable

# The count of rows processed in the data scan job.
# Corresponds to the JSON property `rowCount`
# @return [Fixnum]
attr_accessor :row_count

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

# Update properties of this object
def update!(**args)
@row_count = args[:row_count] if args.key?(:row_count)
end
end

# Data quality result for data scan job.
class GoogleCloudDataplexV1DataScanEventDataQualityResult
include Google::Apis::Core::Hashable

# The result of each dimension for data quality result. The key of the map is
# the name of the dimension. The value is the bool value depicting whether the
# dimension result was pass or not.
# Corresponds to the JSON property `dimensionPassed`
# @return [Hash<String,Boolean>]
attr_accessor :dimension_passed

# Whether the data quality result was pass or not.
# Corresponds to the JSON property `passed`
# @return [Boolean]
attr_accessor :passed
alias_method :passed?, :passed

# The count of rows processed in the data scan job.
# Corresponds to the JSON property `rowCount`
# @return [Fixnum]
attr_accessor :row_count

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

# Update properties of this object
def update!(**args)
@dimension_passed = args[:dimension_passed] if args.key?(:dimension_passed)
@passed = args[:passed] if args.key?(:passed)
@row_count = args[:row_count] if args.key?(:row_count)
end
end

# The payload associated with Discovery data processing.
class GoogleCloudDataplexV1DiscoveryEvent
include Google::Apis::Core::Hashable
Expand Down Expand Up @@ -2380,6 +2519,13 @@ class GoogleCloudDataplexV1SessionEvent
attr_accessor :event_succeeded
alias_method :event_succeeded?, :event_succeeded

# If the session is associated with an environment with fast startup enabled,
# and was created before being assigned to a user.
# Corresponds to the JSON property `fastStartupEnabled`
# @return [Boolean]
attr_accessor :fast_startup_enabled
alias_method :fast_startup_enabled?, :fast_startup_enabled

# The log message.
# Corresponds to the JSON property `message`
# @return [String]
Expand Down Expand Up @@ -2411,26 +2557,20 @@ class GoogleCloudDataplexV1SessionEvent
# @return [String]
attr_accessor :user_id

# If the session is a warm pooled session.
# Corresponds to the JSON property `warmPoolEnabled`
# @return [Boolean]
attr_accessor :warm_pool_enabled
alias_method :warm_pool_enabled?, :warm_pool_enabled

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

# Update properties of this object
def update!(**args)
@event_succeeded = args[:event_succeeded] if args.key?(:event_succeeded)
@fast_startup_enabled = args[:fast_startup_enabled] if args.key?(:fast_startup_enabled)
@message = args[:message] if args.key?(:message)
@query = args[:query] if args.key?(:query)
@session_id = args[:session_id] if args.key?(:session_id)
@type = args[:type] if args.key?(:type)
@unassigned_duration = args[:unassigned_duration] if args.key?(:unassigned_duration)
@user_id = args[:user_id] if args.key?(:user_id)
@warm_pool_enabled = args[:warm_pool_enabled] if args.key?(:warm_pool_enabled)
end
end

Expand Down Expand Up @@ -2906,14 +3046,15 @@ def update!(**args)
class GoogleCloudDataplexV1TaskNotebookTaskConfig
include Google::Apis::Core::Hashable

# Optional. GCS URIs of archives to be extracted into the working directory of
# each executor. Supported file types: .jar, .tar, .tar.gz, .tgz, and .zip.
# Optional. Cloud Storage URIs of archives to be extracted into the working
# directory of each executor. Supported file types: .jar, .tar, .tar.gz, .tgz,
# and .zip.
# Corresponds to the JSON property `archiveUris`
# @return [Array<String>]
attr_accessor :archive_uris

# Optional. GCS URIs of files to be placed in the working directory of each
# executor.
# Optional. Cloud Storage URIs of files to be placed in the working directory of
# each executor.
# Corresponds to the JSON property `fileUris`
# @return [Array<String>]
attr_accessor :file_uris
Expand All @@ -2923,9 +3064,9 @@ class GoogleCloudDataplexV1TaskNotebookTaskConfig
# @return [Google::Apis::DataplexV1::GoogleCloudDataplexV1TaskInfrastructureSpec]
attr_accessor :infrastructure_spec

# Required. Path to input notebook. This can be the GCS URI of the notebook file
# or the path to a Notebook Content. The execution args are accessible as
# environment variables (TASK_key=value).
# Required. Path to input notebook. This can be the Cloud Storage URI of the
# notebook file or the path to a Notebook Content. The execution args are
# accessible as environment variables (TASK_key=value).
# Corresponds to the JSON property `notebook`
# @return [String]
attr_accessor :notebook
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@ module Google
module Apis
module DataplexV1
# Version of the google-apis-dataplex_v1 gem
GEM_VERSION = "0.14.0"
GEM_VERSION = "0.15.0"

# Version of the code generator used to generate this client
GENERATOR_VERSION = "0.10.0"
GENERATOR_VERSION = "0.11.0"

# Revision of the discovery document this client was generated from
REVISION = "20220920"
REVISION = "20221021"
end
end
end
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,24 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end

class GoogleCloudDataplexV1DataScanEvent
class Representation < Google::Apis::Core::JsonRepresentation; end

include Google::Apis::Core::JsonObjectSupport
end

class GoogleCloudDataplexV1DataScanEventDataProfileResult
class Representation < Google::Apis::Core::JsonRepresentation; end

include Google::Apis::Core::JsonObjectSupport
end

class GoogleCloudDataplexV1DataScanEventDataQualityResult
class Representation < Google::Apis::Core::JsonRepresentation; end

include Google::Apis::Core::JsonObjectSupport
end

class GoogleCloudDataplexV1DiscoveryEvent
class Representation < Google::Apis::Core::JsonRepresentation; end

Expand Down Expand Up @@ -838,6 +856,42 @@ class Representation < Google::Apis::Core::JsonRepresentation
end
end

class GoogleCloudDataplexV1DataScanEvent
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :data_profile, as: 'dataProfile', class: Google::Apis::DataplexV1::GoogleCloudDataplexV1DataScanEventDataProfileResult, decorator: Google::Apis::DataplexV1::GoogleCloudDataplexV1DataScanEventDataProfileResult::Representation

property :data_quality, as: 'dataQuality', class: Google::Apis::DataplexV1::GoogleCloudDataplexV1DataScanEventDataQualityResult, decorator: Google::Apis::DataplexV1::GoogleCloudDataplexV1DataScanEventDataQualityResult::Representation

property :data_source, as: 'dataSource'
property :end_time, as: 'endTime'
property :job_id, as: 'jobId'
property :message, as: 'message'
property :scope, as: 'scope'
property :spec_version, as: 'specVersion'
property :start_time, as: 'startTime'
property :state, as: 'state'
property :trigger, as: 'trigger'
property :type, as: 'type'
end
end

class GoogleCloudDataplexV1DataScanEventDataProfileResult
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :row_count, :numeric_string => true, as: 'rowCount'
end
end

class GoogleCloudDataplexV1DataScanEventDataQualityResult
# @private
class Representation < Google::Apis::Core::JsonRepresentation
hash :dimension_passed, as: 'dimensionPassed'
property :passed, as: 'passed'
property :row_count, :numeric_string => true, as: 'rowCount'
end
end

class GoogleCloudDataplexV1DiscoveryEvent
# @private
class Representation < Google::Apis::Core::JsonRepresentation
Expand Down Expand Up @@ -1245,14 +1299,14 @@ class GoogleCloudDataplexV1SessionEvent
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :event_succeeded, as: 'eventSucceeded'
property :fast_startup_enabled, as: 'fastStartupEnabled'
property :message, as: 'message'
property :query, as: 'query', class: Google::Apis::DataplexV1::GoogleCloudDataplexV1SessionEventQueryDetail, decorator: Google::Apis::DataplexV1::GoogleCloudDataplexV1SessionEventQueryDetail::Representation

property :session_id, as: 'sessionId'
property :type, as: 'type'
property :unassigned_duration, as: 'unassignedDuration'
property :user_id, as: 'userId'
property :warm_pool_enabled, as: 'warmPoolEnabled'
end
end

Expand Down

0 comments on commit 75c1d5e

Please sign in to comment.