Class: Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1Key
- Inherits:
-
Object
- Object
- Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1Key
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/dlp_v2beta1/classes.rb,
generated/google/apis/dlp_v2beta1/representations.rb,
generated/google/apis/dlp_v2beta1/representations.rb
Overview
A unique identifier for a Datastore entity. If a key's partition ID or any of its path kinds or names are reserved/read-only, the key is reserved/read-only. A reserved/read-only key is forbidden in certain documented contexts.
Instance Attribute Summary collapse
-
#partition_id ⇒ Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1PartitionId
Datastore partition ID.
-
#path ⇒ Array<Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1PathElement>
The entity path.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GooglePrivacyDlpV2beta1Key
constructor
A new instance of GooglePrivacyDlpV2beta1Key.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ GooglePrivacyDlpV2beta1Key
Returns a new instance of GooglePrivacyDlpV2beta1Key
1817 1818 1819 |
# File 'generated/google/apis/dlp_v2beta1/classes.rb', line 1817 def initialize(**args) update!(**args) end |
Instance Attribute Details
#partition_id ⇒ Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1PartitionId
Datastore partition ID.
A partition ID identifies a grouping of entities. The grouping is always
by project and namespace, however the namespace ID may be empty.
A partition ID contains several dimensions:
project ID and namespace ID.
Corresponds to the JSON property partitionId
1803 1804 1805 |
# File 'generated/google/apis/dlp_v2beta1/classes.rb', line 1803 def partition_id @partition_id end |
#path ⇒ Array<Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1PathElement>
The entity path.
An entity path consists of one or more elements composed of a kind and a
string or numerical identifier, which identify entities. The first
element identifies a root entity, the second element identifies
a child of the root entity, the third element identifies a child of the
second entity, and so forth. The entities identified by all prefixes of
the path are called the element's ancestors.
A path can never be empty, and a path can have at most 100 elements.
Corresponds to the JSON property path
1815 1816 1817 |
# File 'generated/google/apis/dlp_v2beta1/classes.rb', line 1815 def path @path end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1822 1823 1824 1825 |
# File 'generated/google/apis/dlp_v2beta1/classes.rb', line 1822 def update!(**args) @partition_id = args[:partition_id] if args.key?(:partition_id) @path = args[:path] if args.key?(:path) end |