Class: Google::Apis::DlpV2::GooglePrivacyDlpV2Key

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/dlp_v2/classes.rb,
lib/google/apis/dlp_v2/representations.rb,
lib/google/apis/dlp_v2/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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GooglePrivacyDlpV2Key

Returns a new instance of GooglePrivacyDlpV2Key.



6285
6286
6287
# File 'lib/google/apis/dlp_v2/classes.rb', line 6285

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

Instance Attribute Details

#partition_idGoogle::Apis::DlpV2::GooglePrivacyDlpV2PartitionId

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



6272
6273
6274
# File 'lib/google/apis/dlp_v2/classes.rb', line 6272

def partition_id
  @partition_id
end

#pathArray<Google::Apis::DlpV2::GooglePrivacyDlpV2PathElement>

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



6283
6284
6285
# File 'lib/google/apis/dlp_v2/classes.rb', line 6283

def path
  @path
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



6290
6291
6292
6293
# File 'lib/google/apis/dlp_v2/classes.rb', line 6290

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