Class: Google::Apis::DataplexV1::GoogleCloudDataplexV1Partition
- Inherits:
-
Object
- Object
- Google::Apis::DataplexV1::GoogleCloudDataplexV1Partition
- 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
-
#etag ⇒ String
Optional.
-
#location ⇒ String
Required.
-
#name ⇒ String
Output only.
-
#values ⇒ Array<String>
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudDataplexV1Partition
constructor
A new instance of GoogleCloudDataplexV1Partition.
-
#update!(**args) ⇒ Object
Update properties of this object.
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
#etag ⇒ String
Optional. The etag for this partition.
Corresponds to the JSON property etag
2168 2169 2170 |
# File 'lib/google/apis/dataplex_v1/classes.rb', line 2168 def etag @etag end |
#location ⇒ String
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
2175 2176 2177 |
# File 'lib/google/apis/dataplex_v1/classes.rb', line 2175 def location @location end |
#name ⇒ String
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
2186 2187 2188 |
# File 'lib/google/apis/dataplex_v1/classes.rb', line 2186 def name @name end |
#values ⇒ Array<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
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 |