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).



276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
# File 'proto_docs/google/cloud/bigquery/migration/v2/translation_config.rb', line 276

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).



276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
# File 'proto_docs/google/cloud/bigquery/migration/v2/translation_config.rb', line 276

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).



276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
# File 'proto_docs/google/cloud/bigquery/migration/v2/translation_config.rb', line 276

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).



276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
# File 'proto_docs/google/cloud/bigquery/migration/v2/translation_config.rb', line 276

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:



276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
# File 'proto_docs/google/cloud/bigquery/migration/v2/translation_config.rb', line 276

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