Class: Google::Apis::ConnectorsV1::Field
- Inherits:
-
Object
- Object
- Google::Apis::ConnectorsV1::Field
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/connectors_v1/classes.rb,
lib/google/apis/connectors_v1/representations.rb,
lib/google/apis/connectors_v1/representations.rb
Overview
Metadata of an entity field.
Instance Attribute Summary collapse
-
#additional_details ⇒ Hash<String,Object>
The following map contains fields that are not explicitly mentioned above,this give connectors the flexibility to add new metadata fields.
-
#data_type ⇒ String
The data type of the Field.
-
#default_value ⇒ Object
The following field specifies the default value of the Field provided by the external system if a value is not provided.
-
#description ⇒ String
A brief description of the Field.
-
#field ⇒ String
Name of the Field.
-
#key ⇒ Boolean
(also: #key?)
The following boolean field specifies if the current Field acts as a primary key or id if the parent is of type entity.
-
#nullable ⇒ Boolean
(also: #nullable?)
Specifies whether a null value is allowed.
-
#readonly ⇒ Boolean
(also: #readonly?)
Specifies if the Field is readonly.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Field
constructor
A new instance of Field.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Field
Returns a new instance of Field.
1324 1325 1326 |
# File 'lib/google/apis/connectors_v1/classes.rb', line 1324 def initialize(**args) update!(**args) end |
Instance Attribute Details
#additional_details ⇒ Hash<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
1282 1283 1284 |
# File 'lib/google/apis/connectors_v1/classes.rb', line 1282 def additional_details @additional_details end |
#data_type ⇒ String
The data type of the Field.
Corresponds to the JSON property dataType
1287 1288 1289 |
# File 'lib/google/apis/connectors_v1/classes.rb', line 1287 def data_type @data_type end |
#default_value ⇒ Object
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
1293 1294 1295 |
# File 'lib/google/apis/connectors_v1/classes.rb', line 1293 def default_value @default_value end |
#description ⇒ String
A brief description of the Field.
Corresponds to the JSON property description
1298 1299 1300 |
# File 'lib/google/apis/connectors_v1/classes.rb', line 1298 def description @description end |
#field ⇒ String
Name of the Field.
Corresponds to the JSON property field
1303 1304 1305 |
# File 'lib/google/apis/connectors_v1/classes.rb', line 1303 def field @field end |
#key ⇒ Boolean 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
1309 1310 1311 |
# File 'lib/google/apis/connectors_v1/classes.rb', line 1309 def key @key end |
#nullable ⇒ Boolean Also known as: nullable?
Specifies whether a null value is allowed.
Corresponds to the JSON property nullable
1315 1316 1317 |
# File 'lib/google/apis/connectors_v1/classes.rb', line 1315 def nullable @nullable end |
#readonly ⇒ Boolean Also known as: readonly?
Specifies if the Field is readonly.
Corresponds to the JSON property readonly
1321 1322 1323 |
# File 'lib/google/apis/connectors_v1/classes.rb', line 1321 def readonly @readonly end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 |
# File 'lib/google/apis/connectors_v1/classes.rb', line 1329 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) @field = args[:field] if args.key?(:field) @key = args[:key] if args.key?(:key) @nullable = args[:nullable] if args.key?(:nullable) @readonly = args[:readonly] if args.key?(:readonly) end |