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.



2194
2195
2196
# File 'lib/google/apis/dataplex_v1/classes.rb', line 2194

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

Instance Attribute Details

#etagString

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

Returns:

  • (String)


2168
2169
2170
# File 'lib/google/apis/dataplex_v1/classes.rb', line 2168

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)


2175
2176
2177
# File 'lib/google/apis/dataplex_v1/classes.rb', line 2175

def location
  @location
end

#nameString

Output only. The values must be HTML URL encoded two times before constructing the path. For example, if you have a value of "US:CA", encoded it two times and you get "US%253ACA". Then if you have the 2nd value is "CA#Sunnyvale", encoded two times and you get "CA%2523Sunnyvale". The partition values path is "US%253ACA/CA%2523Sunnyvale". The final URL will be "https://.../partitions/US% 253ACA/CA%2523Sunnyvale". The name field in the responses will always have the encoded format. Corresponds to the JSON property name

Returns:

  • (String)


2186
2187
2188
# File 'lib/google/apis/dataplex_v1/classes.rb', line 2186

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>)


2192
2193
2194
# File 'lib/google/apis/dataplex_v1/classes.rb', line 2192

def values
  @values
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2199
2200
2201
2202
2203
2204
# File 'lib/google/apis/dataplex_v1/classes.rb', line 2199

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