Skip to content

Commit 9b2bc9e

Browse files
feat: Automated regeneration of dataform v1beta1 client (#13470)
Auto-created at 2023-02-05 09:58:41 +0000 using the toys pull request generator.
1 parent 613dec0 commit 9b2bc9e

File tree

5 files changed

+80
-2
lines changed

5 files changed

+80
-2
lines changed

api_names_out.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111961,6 +111961,7 @@
111961111961
"/dataform:v1beta1/Repository/gitRemoteSettings": git_remote_settings
111962111962
"/dataform:v1beta1/Repository/name": name
111963111963
"/dataform:v1beta1/Repository/npmrcEnvironmentVariablesSecretVersion": npmrc_environment_variables_secret_version
111964+
"/dataform:v1beta1/Repository/workspaceCompilationOverrides": workspace_compilation_overrides
111964111965
"/dataform:v1beta1/ResetWorkspaceChangesRequest": reset_workspace_changes_request
111965111966
"/dataform:v1beta1/ResetWorkspaceChangesRequest/clean": clean
111966111967
"/dataform:v1beta1/ResetWorkspaceChangesRequest/paths": paths
@@ -112010,6 +112011,10 @@
112010112011
"/dataform:v1beta1/WorkflowInvocationAction/target": target
112011112012
"/dataform:v1beta1/Workspace": workspace
112012112013
"/dataform:v1beta1/Workspace/name": name
112014+
"/dataform:v1beta1/WorkspaceCompilationOverrides": workspace_compilation_overrides
112015+
"/dataform:v1beta1/WorkspaceCompilationOverrides/defaultDatabase": default_database
112016+
"/dataform:v1beta1/WorkspaceCompilationOverrides/schemaSuffix": schema_suffix
112017+
"/dataform:v1beta1/WorkspaceCompilationOverrides/tablePrefix": table_prefix
112013112018
"/dataform:v1beta1/WriteFileRequest": write_file_request
112014112019
"/dataform:v1beta1/WriteFileRequest/contents": contents
112015112020
"/dataform:v1beta1/WriteFileRequest/path": path

generated/google-apis-dataform_v1beta1/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Release history for google-apis-dataform_v1beta1
22

3+
### v0.3.0 (2023-02-05)
4+
5+
* Regenerated from discovery document revision 20230128
6+
37
### v0.2.0 (2023-01-15)
48

59
* Regenerated from discovery document revision 20230107

generated/google-apis-dataform_v1beta1/lib/google/apis/dataform_v1beta1/classes.rb

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1663,6 +1663,18 @@ class Repository
16631663
# @return [String]
16641664
attr_accessor :npmrc_environment_variables_secret_version
16651665

1666+
# Configures workspace compilation overrides for a repository. Primarily used by
1667+
# the UI (`console.cloud.google.com`). `schema_suffix` and `table_prefix` can
1668+
# have a special expression - `$`workspaceName``, which refers to the workspace
1669+
# name from which the compilation results will be created. API callers are
1670+
# expected to resolve the expression in these overrides and provide them
1671+
# explicitly in `code_compilation_config` (https://cloud.google.com/dataform/
1672+
# reference/rest/v1beta1/projects.locations.repositories.compilationResults#
1673+
# codecompilationconfig) when creating workspace-scoped compilation results.
1674+
# Corresponds to the JSON property `workspaceCompilationOverrides`
1675+
# @return [Google::Apis::DataformV1beta1::WorkspaceCompilationOverrides]
1676+
attr_accessor :workspace_compilation_overrides
1677+
16661678
def initialize(**args)
16671679
update!(**args)
16681680
end
@@ -1672,6 +1684,7 @@ def update!(**args)
16721684
@git_remote_settings = args[:git_remote_settings] if args.key?(:git_remote_settings)
16731685
@name = args[:name] if args.key?(:name)
16741686
@npmrc_environment_variables_secret_version = args[:npmrc_environment_variables_secret_version] if args.key?(:npmrc_environment_variables_secret_version)
1687+
@workspace_compilation_overrides = args[:workspace_compilation_overrides] if args.key?(:workspace_compilation_overrides)
16751688
end
16761689
end
16771690

@@ -2060,6 +2073,45 @@ def update!(**args)
20602073
end
20612074
end
20622075

2076+
# Configures workspace compilation overrides for a repository. Primarily used by
2077+
# the UI (`console.cloud.google.com`). `schema_suffix` and `table_prefix` can
2078+
# have a special expression - `$`workspaceName``, which refers to the workspace
2079+
# name from which the compilation results will be created. API callers are
2080+
# expected to resolve the expression in these overrides and provide them
2081+
# explicitly in `code_compilation_config` (https://cloud.google.com/dataform/
2082+
# reference/rest/v1beta1/projects.locations.repositories.compilationResults#
2083+
# codecompilationconfig) when creating workspace-scoped compilation results.
2084+
class WorkspaceCompilationOverrides
2085+
include Google::Apis::Core::Hashable
2086+
2087+
# Optional. The default database (Google Cloud project ID).
2088+
# Corresponds to the JSON property `defaultDatabase`
2089+
# @return [String]
2090+
attr_accessor :default_database
2091+
2092+
# Optional. The suffix that should be appended to all schema (BigQuery dataset
2093+
# ID) names.
2094+
# Corresponds to the JSON property `schemaSuffix`
2095+
# @return [String]
2096+
attr_accessor :schema_suffix
2097+
2098+
# Optional. The prefix that should be prepended to all table names.
2099+
# Corresponds to the JSON property `tablePrefix`
2100+
# @return [String]
2101+
attr_accessor :table_prefix
2102+
2103+
def initialize(**args)
2104+
update!(**args)
2105+
end
2106+
2107+
# Update properties of this object
2108+
def update!(**args)
2109+
@default_database = args[:default_database] if args.key?(:default_database)
2110+
@schema_suffix = args[:schema_suffix] if args.key?(:schema_suffix)
2111+
@table_prefix = args[:table_prefix] if args.key?(:table_prefix)
2112+
end
2113+
end
2114+
20632115
# `WriteFile` request message.
20642116
class WriteFileRequest
20652117
include Google::Apis::Core::Hashable

generated/google-apis-dataform_v1beta1/lib/google/apis/dataform_v1beta1/gem_version.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ module Google
1616
module Apis
1717
module DataformV1beta1
1818
# Version of the google-apis-dataform_v1beta1 gem
19-
GEM_VERSION = "0.2.0"
19+
GEM_VERSION = "0.3.0"
2020

2121
# Version of the code generator used to generate this client
2222
GENERATOR_VERSION = "0.11.1"
2323

2424
# Revision of the discovery document this client was generated from
25-
REVISION = "20230107"
25+
REVISION = "20230128"
2626
end
2727
end
2828
end

generated/google-apis-dataform_v1beta1/lib/google/apis/dataform_v1beta1/representations.rb

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -388,6 +388,12 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
388388
include Google::Apis::Core::JsonObjectSupport
389389
end
390390

391+
class WorkspaceCompilationOverrides
392+
class Representation < Google::Apis::Core::JsonRepresentation; end
393+
394+
include Google::Apis::Core::JsonObjectSupport
395+
end
396+
391397
class WriteFileRequest
392398
class Representation < Google::Apis::Core::JsonRepresentation; end
393399

@@ -888,6 +894,8 @@ class Representation < Google::Apis::Core::JsonRepresentation
888894

889895
property :name, as: 'name'
890896
property :npmrc_environment_variables_secret_version, as: 'npmrcEnvironmentVariablesSecretVersion'
897+
property :workspace_compilation_overrides, as: 'workspaceCompilationOverrides', class: Google::Apis::DataformV1beta1::WorkspaceCompilationOverrides, decorator: Google::Apis::DataformV1beta1::WorkspaceCompilationOverrides::Representation
898+
891899
end
892900
end
893901

@@ -996,6 +1004,15 @@ class Representation < Google::Apis::Core::JsonRepresentation
9961004
end
9971005
end
9981006

1007+
class WorkspaceCompilationOverrides
1008+
# @private
1009+
class Representation < Google::Apis::Core::JsonRepresentation
1010+
property :default_database, as: 'defaultDatabase'
1011+
property :schema_suffix, as: 'schemaSuffix'
1012+
property :table_prefix, as: 'tablePrefix'
1013+
end
1014+
end
1015+
9991016
class WriteFileRequest
10001017
# @private
10011018
class Representation < Google::Apis::Core::JsonRepresentation

0 commit comments

Comments
 (0)