Class: Google::Apis::CloudidentityV1::EntityKey
- Inherits:
-
Object
- Object
- Google::Apis::CloudidentityV1::EntityKey
- Defined in:
- generated/google/apis/cloudidentity_v1/classes.rb,
generated/google/apis/cloudidentity_v1/representations.rb,
generated/google/apis/cloudidentity_v1/representations.rb
Overview
An EntityKey uniquely identifies an Entity. Namespaces are used to provide isolation for IDs. A single ID can be reused across namespaces but the combination of a namespace and an ID must be unique.
Instance Attribute Summary collapse
-
#id ⇒ String
The ID of the entity within the given namespace.
-
#namespace ⇒ String
Namespaces provide isolation for IDs, so an ID only needs to be unique within its namespace.
Instance Method Summary collapse
-
#initialize(**args) ⇒ EntityKey
constructor
A new instance of EntityKey.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Google::Apis::Core::JsonObjectSupport
Methods included from Google::Apis::Core::Hashable
Constructor Details
#initialize(**args) ⇒ EntityKey
Returns a new instance of EntityKey
46 47 48 |
# File 'generated/google/apis/cloudidentity_v1/classes.rb', line 46 def initialize(**args) update!(**args) end |
Instance Attribute Details
#id ⇒ String
The ID of the entity within the given namespace. The ID must be unique
within its namespace.
Corresponds to the JSON property id
35 36 37 |
# File 'generated/google/apis/cloudidentity_v1/classes.rb', line 35 def id @id end |
#namespace ⇒ String
Namespaces provide isolation for IDs, so an ID only needs to be unique
within its namespace.
Namespaces are currently only created as part of IdentitySource creation
from Admin Console. A namespace "identitysources/
identity_source_id"
is
created corresponding to every Identity Source identity_source_id
.
Corresponds to the JSON property namespace
44 45 46 |
# File 'generated/google/apis/cloudidentity_v1/classes.rb', line 44 def namespace @namespace end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
51 52 53 54 |
# File 'generated/google/apis/cloudidentity_v1/classes.rb', line 51 def update!(**args) @id = args[:id] if args.key?(:id) @namespace = args[:namespace] if args.key?(:namespace) end |