Class: Google::Apis::CloudidentityV1beta1::EntityKey

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
lib/google/apis/cloudidentity_v1beta1/classes.rb,
lib/google/apis/cloudidentity_v1beta1/representations.rb,
lib/google/apis/cloudidentity_v1beta1/representations.rb

Overview

A unique identifier for an entity in the Cloud Identity Groups API. An entity can represent either a group with an optional namespace or a user without a namespace. The combination of id and namespace must be unique; however, the same id can be used with different namespaces.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ EntityKey

Returns a new instance of EntityKey.



1355
1356
1357
# File 'lib/google/apis/cloudidentity_v1beta1/classes.rb', line 1355

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

Instance Attribute Details

#idString

The ID of the entity. For Google-managed entities, the id must be the email address of an existing group or user. For external-identity-mapped entities, the id must be a string conforming to the Identity Source's requirements. Must be unique within a namespace. Corresponds to the JSON property id

Returns:

  • (String)


1344
1345
1346
# File 'lib/google/apis/cloudidentity_v1beta1/classes.rb', line 1344

def id
  @id
end

#namespaceString

The namespace in which the entity exists. If not specified, the EntityKey represents a Google-managed entity such as a Google user or a Google Group. If specified, the EntityKey represents an external-identity-mapped group. The namespace must correspond to an identity source created in Admin Console and must be in the form of identitysources/identity_source_id`. Corresponds to the JSON propertynamespace`

Returns:

  • (String)


1353
1354
1355
# File 'lib/google/apis/cloudidentity_v1beta1/classes.rb', line 1353

def namespace
  @namespace
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1360
1361
1362
1363
# File 'lib/google/apis/cloudidentity_v1beta1/classes.rb', line 1360

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