@@ -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
0 commit comments