Class: Google::Apis::DatastreamV1::SalesforceField

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

Overview

Salesforce field.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ SalesforceField

Returns a new instance of SalesforceField.



3903
3904
3905
# File 'lib/google/apis/datastream_v1/classes.rb', line 3903

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

Instance Attribute Details

#data_typeString

The data type. Corresponds to the JSON property dataType

Returns:

  • (String)


3890
3891
3892
# File 'lib/google/apis/datastream_v1/classes.rb', line 3890

def data_type
  @data_type
end

#nameString

The field name. Corresponds to the JSON property name

Returns:

  • (String)


3895
3896
3897
# File 'lib/google/apis/datastream_v1/classes.rb', line 3895

def name
  @name
end

#nillableBoolean Also known as: nillable?

Indicates whether the field can accept nil values. Corresponds to the JSON property nillable

Returns:

  • (Boolean)


3900
3901
3902
# File 'lib/google/apis/datastream_v1/classes.rb', line 3900

def nillable
  @nillable
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3908
3909
3910
3911
3912
# File 'lib/google/apis/datastream_v1/classes.rb', line 3908

def update!(**args)
  @data_type = args[:data_type] if args.key?(:data_type)
  @name = args[:name] if args.key?(:name)
  @nillable = args[:nillable] if args.key?(:nillable)
end