Class: Google::Apis::CloudidentityV1::EntityKey

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
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

Instance Method Summary collapse

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ EntityKey

Returns a new instance of EntityKey.



490
491
492
# File 'generated/google/apis/cloudidentity_v1/classes.rb', line 490

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

Instance Attribute Details

#idString

The ID of the entity within the given namespace. The ID must be unique within its namespace. Corresponds to the JSON property id

Returns:

  • (String)


479
480
481
# File 'generated/google/apis/cloudidentity_v1/classes.rb', line 479

def id
  @id
end

#namespaceString

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

Returns:

  • (String)


488
489
490
# File 'generated/google/apis/cloudidentity_v1/classes.rb', line 488

def namespace
  @namespace
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



495
496
497
498
# File 'generated/google/apis/cloudidentity_v1/classes.rb', line 495

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