Class: Google::Cloud::Bigquery::Migration::V2::NameMappingKey

Inherits:
Object
  • Object
show all
Extended by:
Protobuf::MessageExts::ClassMethods
Includes:
Protobuf::MessageExts
Defined in:
proto_docs/google/cloud/bigquery/migration/v2/translation_config.rb

Overview

The potential components of a full name mapping that will be mapped during translation in the source data warehouse.

Defined Under Namespace

Modules: Type

Instance Attribute Summary collapse

Instance Attribute Details

#attribute::String

Returns The attribute name (BigQuery column equivalent in the source data warehouse).

Returns:

  • (::String)

    The attribute name (BigQuery column equivalent in the source data warehouse).



243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
# File 'proto_docs/google/cloud/bigquery/migration/v2/translation_config.rb', line 243

class NameMappingKey
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # The type of the object that is being mapped.
  module Type
    # Unspecified name mapping type.
    TYPE_UNSPECIFIED = 0

    # The object being mapped is a database.
    DATABASE = 1

    # The object being mapped is a schema.
    SCHEMA = 2

    # The object being mapped is a relation.
    RELATION = 3

    # The object being mapped is an attribute.
    ATTRIBUTE = 4

    # The object being mapped is a relation alias.
    RELATION_ALIAS = 5

    # The object being mapped is a an attribute alias.
    ATTRIBUTE_ALIAS = 6

    # The object being mapped is a function.
    FUNCTION = 7
  end
end

#database::String

Returns The database name (BigQuery project ID equivalent in the source data warehouse).

Returns:

  • (::String)

    The database name (BigQuery project ID equivalent in the source data warehouse).



243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
# File 'proto_docs/google/cloud/bigquery/migration/v2/translation_config.rb', line 243

class NameMappingKey
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # The type of the object that is being mapped.
  module Type
    # Unspecified name mapping type.
    TYPE_UNSPECIFIED = 0

    # The object being mapped is a database.
    DATABASE = 1

    # The object being mapped is a schema.
    SCHEMA = 2

    # The object being mapped is a relation.
    RELATION = 3

    # The object being mapped is an attribute.
    ATTRIBUTE = 4

    # The object being mapped is a relation alias.
    RELATION_ALIAS = 5

    # The object being mapped is a an attribute alias.
    ATTRIBUTE_ALIAS = 6

    # The object being mapped is a function.
    FUNCTION = 7
  end
end

#relation::String

Returns The relation name (BigQuery table or view equivalent in the source data warehouse).

Returns:

  • (::String)

    The relation name (BigQuery table or view equivalent in the source data warehouse).



243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
# File 'proto_docs/google/cloud/bigquery/migration/v2/translation_config.rb', line 243

class NameMappingKey
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # The type of the object that is being mapped.
  module Type
    # Unspecified name mapping type.
    TYPE_UNSPECIFIED = 0

    # The object being mapped is a database.
    DATABASE = 1

    # The object being mapped is a schema.
    SCHEMA = 2

    # The object being mapped is a relation.
    RELATION = 3

    # The object being mapped is an attribute.
    ATTRIBUTE = 4

    # The object being mapped is a relation alias.
    RELATION_ALIAS = 5

    # The object being mapped is a an attribute alias.
    ATTRIBUTE_ALIAS = 6

    # The object being mapped is a function.
    FUNCTION = 7
  end
end

#schema::String

Returns The schema name (BigQuery dataset equivalent in the source data warehouse).

Returns:

  • (::String)

    The schema name (BigQuery dataset equivalent in the source data warehouse).



243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
# File 'proto_docs/google/cloud/bigquery/migration/v2/translation_config.rb', line 243

class NameMappingKey
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # The type of the object that is being mapped.
  module Type
    # Unspecified name mapping type.
    TYPE_UNSPECIFIED = 0

    # The object being mapped is a database.
    DATABASE = 1

    # The object being mapped is a schema.
    SCHEMA = 2

    # The object being mapped is a relation.
    RELATION = 3

    # The object being mapped is an attribute.
    ATTRIBUTE = 4

    # The object being mapped is a relation alias.
    RELATION_ALIAS = 5

    # The object being mapped is a an attribute alias.
    ATTRIBUTE_ALIAS = 6

    # The object being mapped is a function.
    FUNCTION = 7
  end
end

#type::Google::Cloud::Bigquery::Migration::V2::NameMappingKey::Type

Returns The type of object that is being mapped.

Returns:



243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
# File 'proto_docs/google/cloud/bigquery/migration/v2/translation_config.rb', line 243

class NameMappingKey
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # The type of the object that is being mapped.
  module Type
    # Unspecified name mapping type.
    TYPE_UNSPECIFIED = 0

    # The object being mapped is a database.
    DATABASE = 1

    # The object being mapped is a schema.
    SCHEMA = 2

    # The object being mapped is a relation.
    RELATION = 3

    # The object being mapped is an attribute.
    ATTRIBUTE = 4

    # The object being mapped is a relation alias.
    RELATION_ALIAS = 5

    # The object being mapped is a an attribute alias.
    ATTRIBUTE_ALIAS = 6

    # The object being mapped is a function.
    FUNCTION = 7
  end
end