Class: Google::Apis::DataplexV1::GoogleCloudDataplexV1SchemaPartitionField
- Inherits:
-
Object
- Object
- Google::Apis::DataplexV1::GoogleCloudDataplexV1SchemaPartitionField
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/dataplex_v1/classes.rb,
lib/google/apis/dataplex_v1/representations.rb,
lib/google/apis/dataplex_v1/representations.rb
Overview
Represents a key field within the entity's partition structure. You could have up to 20 partition fields, but only the first 10 partitions have the filtering ability due to performance consideration.
Instance Attribute Summary collapse
-
#name ⇒ String
Required.
-
#type ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudDataplexV1SchemaPartitionField
constructor
A new instance of GoogleCloudDataplexV1SchemaPartitionField.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudDataplexV1SchemaPartitionField
Returns a new instance of GoogleCloudDataplexV1SchemaPartitionField.
2278 2279 2280 |
# File 'lib/google/apis/dataplex_v1/classes.rb', line 2278 def initialize(**args) update!(**args) end |
Instance Attribute Details
#name ⇒ String
Required. Partition name is editable if only the partition style is not HIVE
compatible. The maximum length allowed is 767 characters.
Corresponds to the JSON property name
2271 2272 2273 |
# File 'lib/google/apis/dataplex_v1/classes.rb', line 2271 def name @name end |
#type ⇒ String
Required. Immutable. The type of field.
Corresponds to the JSON property type
2276 2277 2278 |
# File 'lib/google/apis/dataplex_v1/classes.rb', line 2276 def type @type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2283 2284 2285 2286 |
# File 'lib/google/apis/dataplex_v1/classes.rb', line 2283 def update!(**args) @name = args[:name] if args.key?(:name) @type = args[:type] if args.key?(:type) end |