Skip to content

Commit

Permalink
feat: Automated regeneration of dataform v1beta1 client
Browse files Browse the repository at this point in the history
  • Loading branch information
yoshi-automation committed Apr 28, 2024
1 parent f2b23f7 commit acc24d6
Show file tree
Hide file tree
Showing 6 changed files with 189 additions and 3 deletions.
17 changes: 17 additions & 0 deletions api_names_out.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -145457,6 +145457,7 @@
"/dataform:v1beta1/Assertion/tags": tags
"/dataform:v1beta1/Assertion/tags/tag": tag
"/dataform:v1beta1/BigQueryAction": big_query_action
"/dataform:v1beta1/BigQueryAction/jobId": job_id
"/dataform:v1beta1/BigQueryAction/sqlScript": sql_script
"/dataform:v1beta1/Binding": binding
"/dataform:v1beta1/Binding/condition": condition
Expand All @@ -145469,6 +145470,7 @@
"/dataform:v1beta1/CodeCompilationConfig/databaseSuffix": database_suffix
"/dataform:v1beta1/CodeCompilationConfig/defaultDatabase": default_database
"/dataform:v1beta1/CodeCompilationConfig/defaultLocation": default_location
"/dataform:v1beta1/CodeCompilationConfig/defaultNotebookRuntimeOptions": default_notebook_runtime_options
"/dataform:v1beta1/CodeCompilationConfig/defaultSchema": default_schema
"/dataform:v1beta1/CodeCompilationConfig/schemaSuffix": schema_suffix
"/dataform:v1beta1/CodeCompilationConfig/tablePrefix": table_prefix
Expand Down Expand Up @@ -145521,6 +145523,7 @@
"/dataform:v1beta1/CompilationResultAction/canonicalTarget": canonical_target
"/dataform:v1beta1/CompilationResultAction/declaration": declaration
"/dataform:v1beta1/CompilationResultAction/filePath": file_path
"/dataform:v1beta1/CompilationResultAction/notebook": notebook
"/dataform:v1beta1/CompilationResultAction/operations": operations
"/dataform:v1beta1/CompilationResultAction/relation": relation
"/dataform:v1beta1/CompilationResultAction/target": target
Expand Down Expand Up @@ -145649,6 +145652,18 @@
"/dataform:v1beta1/MoveFileRequest/newPath": new_path
"/dataform:v1beta1/MoveFileRequest/path": path
"/dataform:v1beta1/MoveFileResponse": move_file_response
"/dataform:v1beta1/Notebook": notebook
"/dataform:v1beta1/Notebook/contents": contents
"/dataform:v1beta1/Notebook/dependencyTargets": dependency_targets
"/dataform:v1beta1/Notebook/dependencyTargets/dependency_target": dependency_target
"/dataform:v1beta1/Notebook/disabled": disabled
"/dataform:v1beta1/Notebook/tags": tags
"/dataform:v1beta1/Notebook/tags/tag": tag
"/dataform:v1beta1/NotebookAction": notebook_action
"/dataform:v1beta1/NotebookAction/contents": contents
"/dataform:v1beta1/NotebookAction/jobId": job_id
"/dataform:v1beta1/NotebookRuntimeOptions": notebook_runtime_options
"/dataform:v1beta1/NotebookRuntimeOptions/gcsOutputBucket": gcs_output_bucket
"/dataform:v1beta1/OperationMetadata": operation_metadata
"/dataform:v1beta1/OperationMetadata/apiVersion": api_version
"/dataform:v1beta1/OperationMetadata/cancelRequested": cancel_requested
Expand Down Expand Up @@ -145816,6 +145831,7 @@
"/dataform:v1beta1/WorkflowInvocationAction/canonicalTarget": canonical_target
"/dataform:v1beta1/WorkflowInvocationAction/failureReason": failure_reason
"/dataform:v1beta1/WorkflowInvocationAction/invocationTiming": invocation_timing
"/dataform:v1beta1/WorkflowInvocationAction/notebookAction": notebook_action
"/dataform:v1beta1/WorkflowInvocationAction/state": state
"/dataform:v1beta1/WorkflowInvocationAction/target": target
"/dataform:v1beta1/Workspace": workspace
Expand Down Expand Up @@ -145853,6 +145869,7 @@
"/dataform:v1beta1/dataform.projects.locations.repositories.compilationResults.get/name": name
"/dataform:v1beta1/dataform.projects.locations.repositories.compilationResults.list": list_project_location_repository_compilation_results
"/dataform:v1beta1/dataform.projects.locations.repositories.compilationResults.list/filter": filter
"/dataform:v1beta1/dataform.projects.locations.repositories.compilationResults.list/orderBy": order_by
"/dataform:v1beta1/dataform.projects.locations.repositories.compilationResults.list/pageSize": page_size
"/dataform:v1beta1/dataform.projects.locations.repositories.compilationResults.list/pageToken": page_token
"/dataform:v1beta1/dataform.projects.locations.repositories.compilationResults.list/parent": parent
Expand Down
4 changes: 4 additions & 0 deletions generated/google-apis-dataform_v1beta1/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Release history for google-apis-dataform_v1beta1

### v0.28.0 (2024-04-28)

* Regenerated from discovery document revision 20240420

### v0.27.0 (2024-03-31)

* Regenerated from discovery document revision 20240323
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,12 @@ def update!(**args)
class BigQueryAction
include Google::Apis::Core::Hashable

# Output only. The ID of the BigQuery job that executed the SQL in sql_script.
# Only set once the job has started to run.
# Corresponds to the JSON property `jobId`
# @return [String]
attr_accessor :job_id

# Output only. The generated BigQuery SQL script that will be executed.
# Corresponds to the JSON property `sqlScript`
# @return [String]
Expand All @@ -89,6 +95,7 @@ def initialize(**args)

# Update properties of this object
def update!(**args)
@job_id = args[:job_id] if args.key?(:job_id)
@sql_script = args[:sql_script] if args.key?(:sql_script)
end
end
Expand Down Expand Up @@ -234,6 +241,11 @@ class CodeCompilationConfig
# @return [String]
attr_accessor :default_location

#
# Corresponds to the JSON property `defaultNotebookRuntimeOptions`
# @return [Google::Apis::DataformV1beta1::NotebookRuntimeOptions]
attr_accessor :default_notebook_runtime_options

# Optional. The default schema (BigQuery dataset ID).
# Corresponds to the JSON property `defaultSchema`
# @return [String]
Expand Down Expand Up @@ -266,6 +278,7 @@ def update!(**args)
@database_suffix = args[:database_suffix] if args.key?(:database_suffix)
@default_database = args[:default_database] if args.key?(:default_database)
@default_location = args[:default_location] if args.key?(:default_location)
@default_notebook_runtime_options = args[:default_notebook_runtime_options] if args.key?(:default_notebook_runtime_options)
@default_schema = args[:default_schema] if args.key?(:default_schema)
@schema_suffix = args[:schema_suffix] if args.key?(:schema_suffix)
@table_prefix = args[:table_prefix] if args.key?(:table_prefix)
Expand Down Expand Up @@ -590,6 +603,11 @@ class CompilationResultAction
# @return [String]
attr_accessor :file_path

# The notebook executed by this action.
# Corresponds to the JSON property `notebook`
# @return [Google::Apis::DataformV1beta1::Notebook]
attr_accessor :notebook

# Represents a list of arbitrary database operations.
# Corresponds to the JSON property `operations`
# @return [Google::Apis::DataformV1beta1::Operations]
Expand All @@ -616,6 +634,7 @@ def update!(**args)
@canonical_target = args[:canonical_target] if args.key?(:canonical_target)
@declaration = args[:declaration] if args.key?(:declaration)
@file_path = args[:file_path] if args.key?(:file_path)
@notebook = args[:notebook] if args.key?(:notebook)
@operations = args[:operations] if args.key?(:operations)
@relation = args[:relation] if args.key?(:relation)
@target = args[:target] if args.key?(:target)
Expand Down Expand Up @@ -1531,6 +1550,90 @@ def update!(**args)
end
end

#
class Notebook
include Google::Apis::Core::Hashable

# The contents of the notebook.
# Corresponds to the JSON property `contents`
# @return [String]
attr_accessor :contents

# A list of actions that this action depends on.
# Corresponds to the JSON property `dependencyTargets`
# @return [Array<Google::Apis::DataformV1beta1::Target>]
attr_accessor :dependency_targets

# Whether this action is disabled (i.e. should not be run).
# Corresponds to the JSON property `disabled`
# @return [Boolean]
attr_accessor :disabled
alias_method :disabled?, :disabled

# Arbitrary, user-defined tags on this action.
# Corresponds to the JSON property `tags`
# @return [Array<String>]
attr_accessor :tags

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

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

# Represents a workflow action that will run against a Notebook runtime.
class NotebookAction
include Google::Apis::Core::Hashable

# Output only. The code contents of a Notebook to be run.
# Corresponds to the JSON property `contents`
# @return [String]
attr_accessor :contents

# Output only. The ID of the Vertex job that executed the notebook in contents
# and also the ID used for the outputs created in GCS buckets. Only set once the
# job has started to run.
# Corresponds to the JSON property `jobId`
# @return [String]
attr_accessor :job_id

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

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

#
class NotebookRuntimeOptions
include Google::Apis::Core::Hashable

# Optional. The GCS location to upload the result to. Format: `gs://bucket-name`.
# Corresponds to the JSON property `gcsOutputBucket`
# @return [String]
attr_accessor :gcs_output_bucket

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

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

# Represents the metadata of the long-running operation.
class OperationMetadata
include Google::Apis::Core::Hashable
Expand Down Expand Up @@ -2762,6 +2865,11 @@ class WorkflowInvocationAction
# @return [Google::Apis::DataformV1beta1::Interval]
attr_accessor :invocation_timing

# Represents a workflow action that will run against a Notebook runtime.
# Corresponds to the JSON property `notebookAction`
# @return [Google::Apis::DataformV1beta1::NotebookAction]
attr_accessor :notebook_action

# Output only. This action's current state.
# Corresponds to the JSON property `state`
# @return [String]
Expand All @@ -2783,6 +2891,7 @@ def update!(**args)
@canonical_target = args[:canonical_target] if args.key?(:canonical_target)
@failure_reason = args[:failure_reason] if args.key?(:failure_reason)
@invocation_timing = args[:invocation_timing] if args.key?(:invocation_timing)
@notebook_action = args[:notebook_action] if args.key?(:notebook_action)
@state = args[:state] if args.key?(:state)
@target = args[:target] if args.key?(:target)
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@ module Google
module Apis
module DataformV1beta1
# Version of the google-apis-dataform_v1beta1 gem
GEM_VERSION = "0.27.0"
GEM_VERSION = "0.28.0"

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

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

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

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

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

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

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

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

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

Expand Down Expand Up @@ -550,6 +568,7 @@ class Representation < Google::Apis::Core::JsonRepresentation
class BigQueryAction
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :job_id, as: 'jobId'
property :sql_script, as: 'sqlScript'
end
end
Expand Down Expand Up @@ -577,6 +596,8 @@ class Representation < Google::Apis::Core::JsonRepresentation
property :database_suffix, as: 'databaseSuffix'
property :default_database, as: 'defaultDatabase'
property :default_location, as: 'defaultLocation'
property :default_notebook_runtime_options, as: 'defaultNotebookRuntimeOptions', class: Google::Apis::DataformV1beta1::NotebookRuntimeOptions, decorator: Google::Apis::DataformV1beta1::NotebookRuntimeOptions::Representation

property :default_schema, as: 'defaultSchema'
property :schema_suffix, as: 'schemaSuffix'
property :table_prefix, as: 'tablePrefix'
Expand Down Expand Up @@ -679,6 +700,8 @@ class Representation < Google::Apis::Core::JsonRepresentation
property :declaration, as: 'declaration', class: Google::Apis::DataformV1beta1::Declaration, decorator: Google::Apis::DataformV1beta1::Declaration::Representation

property :file_path, as: 'filePath'
property :notebook, as: 'notebook', class: Google::Apis::DataformV1beta1::Notebook, decorator: Google::Apis::DataformV1beta1::Notebook::Representation

property :operations, as: 'operations', class: Google::Apis::DataformV1beta1::Operations, decorator: Google::Apis::DataformV1beta1::Operations::Representation

property :relation, as: 'relation', class: Google::Apis::DataformV1beta1::Relation, decorator: Google::Apis::DataformV1beta1::Relation::Representation
Expand Down Expand Up @@ -974,6 +997,32 @@ class Representation < Google::Apis::Core::JsonRepresentation
end
end

class Notebook
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :contents, as: 'contents'
collection :dependency_targets, as: 'dependencyTargets', class: Google::Apis::DataformV1beta1::Target, decorator: Google::Apis::DataformV1beta1::Target::Representation

property :disabled, as: 'disabled'
collection :tags, as: 'tags'
end
end

class NotebookAction
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :contents, as: 'contents'
property :job_id, as: 'jobId'
end
end

class NotebookRuntimeOptions
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :gcs_output_bucket, as: 'gcsOutputBucket'
end
end

class OperationMetadata
# @private
class Representation < Google::Apis::Core::JsonRepresentation
Expand Down Expand Up @@ -1299,6 +1348,8 @@ class Representation < Google::Apis::Core::JsonRepresentation
property :failure_reason, as: 'failureReason'
property :invocation_timing, as: 'invocationTiming', class: Google::Apis::DataformV1beta1::Interval, decorator: Google::Apis::DataformV1beta1::Interval::Representation

property :notebook_action, as: 'notebookAction', class: Google::Apis::DataformV1beta1::NotebookAction, decorator: Google::Apis::DataformV1beta1::NotebookAction::Representation

property :state, as: 'state'
property :target, as: 'target', class: Google::Apis::DataformV1beta1::Target, decorator: Google::Apis::DataformV1beta1::Target::Representation

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -851,6 +851,10 @@ def get_project_location_repository_compilation_result(name, fields: nil, quota_
# format `projects/*/locations/*/repositories/*`.
# @param [String] filter
# Optional. Filter for the returned list.
# @param [String] order_by
# Optional. This field only supports ordering by `name` and `create_time`. If
# unspecified, the server will choose the ordering. If specified, the default
# order is ascending for the `name` field.
# @param [Fixnum] page_size
# Optional. Maximum number of compilation results to return. The server may
# return fewer items than requested. If unspecified, the server will pick an
Expand All @@ -877,12 +881,13 @@ def get_project_location_repository_compilation_result(name, fields: nil, quota_
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def list_project_location_repository_compilation_results(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
def list_project_location_repository_compilation_results(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1beta1/{+parent}/compilationResults', options)
command.response_representation = Google::Apis::DataformV1beta1::ListCompilationResultsResponse::Representation
command.response_class = Google::Apis::DataformV1beta1::ListCompilationResultsResponse
command.params['parent'] = parent unless parent.nil?
command.query['filter'] = filter unless filter.nil?
command.query['orderBy'] = order_by unless order_by.nil?
command.query['pageSize'] = page_size unless page_size.nil?
command.query['pageToken'] = page_token unless page_token.nil?
command.query['fields'] = fields unless fields.nil?
Expand Down

0 comments on commit acc24d6

Please sign in to comment.