Class: Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1TagField

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

Overview

Contains the value and supporting information for a field within a Tag.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDatacatalogV1beta1TagField

Returns a new instance of GoogleCloudDatacatalogV1beta1TagField.



1378
1379
1380
# File 'generated/google/apis/datacatalog_v1beta1/classes.rb', line 1378

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

Instance Attribute Details

#bool_valueBoolean Also known as: bool_value?

Holds the value for a tag field with boolean type. Corresponds to the JSON property boolValue

Returns:

  • (Boolean)


1342
1343
1344
# File 'generated/google/apis/datacatalog_v1beta1/classes.rb', line 1342

def bool_value
  @bool_value
end

#display_nameString

Output only. The display name of this field. Corresponds to the JSON property displayName

Returns:

  • (String)


1348
1349
1350
# File 'generated/google/apis/datacatalog_v1beta1/classes.rb', line 1348

def display_name
  @display_name
end

#double_valueFloat

Holds the value for a tag field with double type. Corresponds to the JSON property doubleValue

Returns:

  • (Float)


1353
1354
1355
# File 'generated/google/apis/datacatalog_v1beta1/classes.rb', line 1353

def double_value
  @double_value
end

#enum_valueGoogle::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1TagFieldEnumValue

Holds an enum value. Corresponds to the JSON property enumValue



1358
1359
1360
# File 'generated/google/apis/datacatalog_v1beta1/classes.rb', line 1358

def enum_value
  @enum_value
end

#orderFixnum

Output only. The order of this field with respect to other fields in this tag. It can be set in Tag. For example, a higher value can indicate a more important field. The value can be negative. Multiple fields can have the same order, and field orders within a tag do not have to be sequential. Corresponds to the JSON property order

Returns:

  • (Fixnum)


1366
1367
1368
# File 'generated/google/apis/datacatalog_v1beta1/classes.rb', line 1366

def order
  @order
end

#string_valueString

Holds the value for a tag field with string type. Corresponds to the JSON property stringValue

Returns:

  • (String)


1371
1372
1373
# File 'generated/google/apis/datacatalog_v1beta1/classes.rb', line 1371

def string_value
  @string_value
end

#timestamp_valueString

Holds the value for a tag field with timestamp type. Corresponds to the JSON property timestampValue

Returns:

  • (String)


1376
1377
1378
# File 'generated/google/apis/datacatalog_v1beta1/classes.rb', line 1376

def timestamp_value
  @timestamp_value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1383
1384
1385
1386
1387
1388
1389
1390
1391
# File 'generated/google/apis/datacatalog_v1beta1/classes.rb', line 1383

def update!(**args)
  @bool_value = args[:bool_value] if args.key?(:bool_value)
  @display_name = args[:display_name] if args.key?(:display_name)
  @double_value = args[:double_value] if args.key?(:double_value)
  @enum_value = args[:enum_value] if args.key?(:enum_value)
  @order = args[:order] if args.key?(:order)
  @string_value = args[:string_value] if args.key?(:string_value)
  @timestamp_value = args[:timestamp_value] if args.key?(:timestamp_value)
end