Class: Google::Apis::DataformV1beta1::WorkspaceCompilationOverrides

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

Overview

Configures workspace compilation overrides for a repository. Primarily used by the UI (console.cloud.google.com). schema_suffix and table_prefix can have a special expression - $workspaceName`, which refers to the workspace name from which the compilation results will be created. API callers are expected to resolve the expression in these overrides and provide them explicitly incode_compilation_config` (https://cloud.google.com/dataform/ reference/rest/v1beta1/projects.locations.repositories.compilationResults# codecompilationconfig) when creating workspace-scoped compilation results.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ WorkspaceCompilationOverrides

Returns a new instance of WorkspaceCompilationOverrides.



3107
3108
3109
# File 'lib/google/apis/dataform_v1beta1/classes.rb', line 3107

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

Instance Attribute Details

#default_databaseString

Optional. The default database (Google Cloud project ID). Corresponds to the JSON property defaultDatabase

Returns:

  • (String)


3094
3095
3096
# File 'lib/google/apis/dataform_v1beta1/classes.rb', line 3094

def default_database
  @default_database
end

#schema_suffixString

Optional. The suffix that should be appended to all schema (BigQuery dataset ID) names. Corresponds to the JSON property schemaSuffix

Returns:

  • (String)


3100
3101
3102
# File 'lib/google/apis/dataform_v1beta1/classes.rb', line 3100

def schema_suffix
  @schema_suffix
end

#table_prefixString

Optional. The prefix that should be prepended to all table names. Corresponds to the JSON property tablePrefix

Returns:

  • (String)


3105
3106
3107
# File 'lib/google/apis/dataform_v1beta1/classes.rb', line 3105

def table_prefix
  @table_prefix
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3112
3113
3114
3115
3116
# File 'lib/google/apis/dataform_v1beta1/classes.rb', line 3112

def update!(**args)
  @default_database = args[:default_database] if args.key?(:default_database)
  @schema_suffix = args[:schema_suffix] if args.key?(:schema_suffix)
  @table_prefix = args[:table_prefix] if args.key?(:table_prefix)
end