Class: Google::Apis::ConnectorsV2::Field

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

Overview

Message contains EntityType's Field metadata.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Field

Returns a new instance of Field.



264
265
266
# File 'lib/google/apis/connectors_v2/classes.rb', line 264

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

Instance Attribute Details

#additional_detailsHash<String,Object>

The following map contains fields that are not explicitly mentioned above,this give connectors the flexibility to add new metadata fields. Corresponds to the JSON property additionalDetails

Returns:

  • (Hash<String,Object>)


222
223
224
# File 'lib/google/apis/connectors_v2/classes.rb', line 222

def additional_details
  @additional_details
end

#data_typeString

The data type of the Field. Corresponds to the JSON property dataType

Returns:

  • (String)


227
228
229
# File 'lib/google/apis/connectors_v2/classes.rb', line 227

def data_type
  @data_type
end

#default_valueObject

The following field specifies the default value of the Field provided by the external system if a value is not provided. Corresponds to the JSON property defaultValue

Returns:

  • (Object)


233
234
235
# File 'lib/google/apis/connectors_v2/classes.rb', line 233

def default_value
  @default_value
end

#descriptionString

A brief description of the Field. Corresponds to the JSON property description

Returns:

  • (String)


238
239
240
# File 'lib/google/apis/connectors_v2/classes.rb', line 238

def description
  @description
end

#keyBoolean Also known as: key?

The following boolean field specifies if the current Field acts as a primary key or id if the parent is of type entity. Corresponds to the JSON property key

Returns:

  • (Boolean)


244
245
246
# File 'lib/google/apis/connectors_v2/classes.rb', line 244

def key
  @key
end

#nameString

Name of the Field. Corresponds to the JSON property name

Returns:

  • (String)


250
251
252
# File 'lib/google/apis/connectors_v2/classes.rb', line 250

def name
  @name
end

#nullableBoolean Also known as: nullable?

Specifies whether a null value is allowed. Corresponds to the JSON property nullable

Returns:

  • (Boolean)


255
256
257
# File 'lib/google/apis/connectors_v2/classes.rb', line 255

def nullable
  @nullable
end

#referenceGoogle::Apis::ConnectorsV2::Reference

Reference captures the association between two different entity types. Value links to the reference of another entity type. Corresponds to the JSON property reference



262
263
264
# File 'lib/google/apis/connectors_v2/classes.rb', line 262

def reference
  @reference
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



269
270
271
272
273
274
275
276
277
278
# File 'lib/google/apis/connectors_v2/classes.rb', line 269

def update!(**args)
  @additional_details = args[:additional_details] if args.key?(:additional_details)
  @data_type = args[:data_type] if args.key?(:data_type)
  @default_value = args[:default_value] if args.key?(:default_value)
  @description = args[:description] if args.key?(:description)
  @key = args[:key] if args.key?(:key)
  @name = args[:name] if args.key?(:name)
  @nullable = args[:nullable] if args.key?(:nullable)
  @reference = args[:reference] if args.key?(:reference)
end