class Google::Apis::ConnectorsV1::Field

Metadata of an entity field.

Attributes

additional_details[RW]

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` @return [Hash<String,Object>]

data_type[RW]

The data type of the Field. Corresponds to the JSON property ‘dataType` @return [String]

default_value[RW]

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` @return [Object]

description[RW]

A brief description of the Field. Corresponds to the JSON property ‘description` @return [String]

field[RW]

Name of the Field. Corresponds to the JSON property ‘field` @return [String]

key[RW]

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` @return [Boolean]

key?[RW]

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` @return [Boolean]

nullable[RW]

Specifies whether a null value is allowed. Corresponds to the JSON property ‘nullable` @return [Boolean]

nullable?[RW]

Specifies whether a null value is allowed. Corresponds to the JSON property ‘nullable` @return [Boolean]

readonly[RW]

Specifies if the Field is readonly. Corresponds to the JSON property ‘readonly` @return [Boolean]

readonly?[RW]

Specifies if the Field is readonly. Corresponds to the JSON property ‘readonly` @return [Boolean]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/connectors_v1/classes.rb, line 914
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/connectors_v1/classes.rb, line 919
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