Class: Google::Apis::ConnectorsV1::Field

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Field

Returns a new instance of Field.



2576
2577
2578
# File 'lib/google/apis/connectors_v1/classes.rb', line 2576

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


2529
2530
2531
# File 'lib/google/apis/connectors_v1/classes.rb', line 2529

def additional_details
  @additional_details
end

#data_typeString

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

Returns:

  • (String)


2534
2535
2536
# File 'lib/google/apis/connectors_v1/classes.rb', line 2534

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)


2540
2541
2542
# File 'lib/google/apis/connectors_v1/classes.rb', line 2540

def default_value
  @default_value
end

#descriptionString

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

Returns:

  • (String)


2545
2546
2547
# File 'lib/google/apis/connectors_v1/classes.rb', line 2545

def description
  @description
end

#fieldString

Name of the Field. Corresponds to the JSON property field

Returns:

  • (String)


2550
2551
2552
# File 'lib/google/apis/connectors_v1/classes.rb', line 2550

def field
  @field
end

#json_schemaGoogle::Apis::ConnectorsV1::JsonSchema

JsonSchema representation of schema metadata Corresponds to the JSON property jsonSchema



2555
2556
2557
# File 'lib/google/apis/connectors_v1/classes.rb', line 2555

def json_schema
  @json_schema
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)


2561
2562
2563
# File 'lib/google/apis/connectors_v1/classes.rb', line 2561

def key
  @key
end

#nullableBoolean Also known as: nullable?

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

Returns:

  • (Boolean)


2567
2568
2569
# File 'lib/google/apis/connectors_v1/classes.rb', line 2567

def nullable
  @nullable
end

#readonlyBoolean Also known as: readonly?

Specifies if the Field is readonly. Corresponds to the JSON property readonly

Returns:

  • (Boolean)


2573
2574
2575
# File 'lib/google/apis/connectors_v1/classes.rb', line 2573

def readonly
  @readonly
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2581
2582
2583
2584
2585
2586
2587
2588
2589
2590
2591
# File 'lib/google/apis/connectors_v1/classes.rb', line 2581

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)
  @json_schema = args[:json_schema] if args.key?(:json_schema)
  @key = args[:key] if args.key?(:key)
  @nullable = args[:nullable] if args.key?(:nullable)
  @readonly = args[:readonly] if args.key?(:readonly)
end