Class: Google::Apis::DataplexV1::GoogleCloudDataplexV1Partition

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 partition metadata contained within entity instances.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDataplexV1Partition

Returns a new instance of GoogleCloudDataplexV1Partition.



5686
5687
5688
# File 'lib/google/apis/dataplex_v1/classes.rb', line 5686

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

Instance Attribute Details

#etagString

Optional. The etag for this partition. Corresponds to the JSON property etag

Returns:

  • (String)


5663
5664
5665
# File 'lib/google/apis/dataplex_v1/classes.rb', line 5663

def etag
  @etag
end

#locationString

Required. Immutable. The location of the entity data within the partition, for example, gs://bucket/path/to/entity/key1=value1/key2=value2. Or projects// datasets//tables/ Corresponds to the JSON property location

Returns:

  • (String)


5670
5671
5672
# File 'lib/google/apis/dataplex_v1/classes.rb', line 5670

def location
  @location
end

#nameString

Output only. Partition values used in the HTTP URL must be double encoded. For example, url_encode(url_encode(value)) can be used to encode "US:CA/CA# Sunnyvale so that the request URL ends with "/partitions/US%253ACA/CA% 2523Sunnyvale". The name field in the response retains the encoded format. Corresponds to the JSON property name

Returns:

  • (String)


5678
5679
5680
# File 'lib/google/apis/dataplex_v1/classes.rb', line 5678

def name
  @name
end

#valuesArray<String>

Required. Immutable. The set of values representing the partition, which correspond to the partition schema defined in the parent entity. Corresponds to the JSON property values

Returns:

  • (Array<String>)


5684
5685
5686
# File 'lib/google/apis/dataplex_v1/classes.rb', line 5684

def values
  @values
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5691
5692
5693
5694
5695
5696
# File 'lib/google/apis/dataplex_v1/classes.rb', line 5691

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