Class: Google::Apis::DatastreamV1::SalesforceField
- Inherits:
-
Object
- Object
- Google::Apis::DatastreamV1::SalesforceField
- 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
-
#data_type ⇒ String
The data type.
-
#name ⇒ String
The field name.
-
#nillable ⇒ Boolean
(also: #nillable?)
Indicates whether the field can accept nil values.
Instance Method Summary collapse
-
#initialize(**args) ⇒ SalesforceField
constructor
A new instance of SalesforceField.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ SalesforceField
Returns a new instance of SalesforceField.
3897 3898 3899 |
# File 'lib/google/apis/datastream_v1/classes.rb', line 3897 def initialize(**args) update!(**args) end |
Instance Attribute Details
#data_type ⇒ String
The data type.
Corresponds to the JSON property dataType
3884 3885 3886 |
# File 'lib/google/apis/datastream_v1/classes.rb', line 3884 def data_type @data_type end |
#name ⇒ String
The field name.
Corresponds to the JSON property name
3889 3890 3891 |
# File 'lib/google/apis/datastream_v1/classes.rb', line 3889 def name @name end |
#nillable ⇒ Boolean Also known as: nillable?
Indicates whether the field can accept nil values.
Corresponds to the JSON property nillable
3894 3895 3896 |
# File 'lib/google/apis/datastream_v1/classes.rb', line 3894 def nillable @nillable end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3902 3903 3904 3905 3906 |
# File 'lib/google/apis/datastream_v1/classes.rb', line 3902 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 |