Class: Google::Apis::DataplexV1::GoogleCloudDataplexV1SchemaPartitionField

Inherits:
Object
  • Object
show all
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. Note: Partition fields are immutable.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDataplexV1SchemaPartitionField

Returns a new instance of GoogleCloudDataplexV1SchemaPartitionField.



5938
5939
5940
# File 'lib/google/apis/dataplex_v1/classes.rb', line 5938

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

Instance Attribute Details

#nameString

Required. Partition field name must consist of letters, numbers, and underscores only, with a maximum of length of 256 characters, and must begin with a letter or underscore.. Corresponds to the JSON property name

Returns:

  • (String)


5931
5932
5933
# File 'lib/google/apis/dataplex_v1/classes.rb', line 5931

def name
  @name
end

#typeString

Required. Immutable. The type of field. Corresponds to the JSON property type

Returns:

  • (String)


5936
5937
5938
# File 'lib/google/apis/dataplex_v1/classes.rb', line 5936

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5943
5944
5945
5946
# File 'lib/google/apis/dataplex_v1/classes.rb', line 5943

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