# Class Tenant

Tenant class for tenant functionality.

A tenant is a container used to group or isolate resources and/or identity objects. Depending on the service operator, a tenant may map to a customer, account, organization, or project.

  OpenCloud\Common\Base
  OpenCloud\Common\Resource\BaseResource
  OpenCloud\Common\Resource\PersistentResource
  OpenCloud\Common\PersistentObject
  OpenCloud\Identity\Resource\Tenant

Namespace: OpenCloud\Identity\Resource
Package: OpenCloud\Identity\Resource
Located at OpenCloud/Identity/Resource/Tenant.php

Methods summary
`public` | # `setId( mixed $id )` #### Parameters $id `mixed` $id Sets the ID
`public string` | # `getId( )` #### Returns `string` Returns the ID
`public` | # `setName( mixed $name )` #### Parameters $name `mixed` $name Sets the name
`public string` | # `getName( )` #### Returns `string` Returns the name
`public` | # `setDescription( mixed $description )` #### Parameters $description `mixed` $description Sets the description
`public string` | # `getDescription( )` #### Returns `string` Returns the description
`public` | # `setEnabled( mixed $enabled )` #### Parameters $enabled `mixed` $enabled Enables/disables the tenant
`public boolean` | # `isEnabled( )` #### Returns `boolean` Checks whether this tenant is enabled or not

Methods inherited from OpenCloud\Common\Resource\PersistentResource
`checkExtension(), create(), createJson(), delete(), getAlias(), noCreate(), noDelete(), noUpdate(), refresh(), refreshFromLocationUrl(), update(), updateJson(), waitFor()`

Methods inherited from OpenCloud\Common\Resource\BaseResource
`__construct(), findLink(), getClient(), getMetadata(), getParent(), getService(), getUrl(), jsonCollectionElement(), jsonCollectionName(), jsonName(), parseResponse(), primaryKeyField(), resourceName(), setMetadata(), setParent(), setService()`

Methods inherited from OpenCloud\Common\Base
`__call(), checkJsonError(), generateUuid(), getInstance(), getJsonHeader(), getLogger(), getProperty(), makeResourceIteratorOptions(), populate(), propertyExists(), setLogger(), setProperty(), stripNamespace(), toCamel(), toUnderscores()`

Properties summary
`protected static string` | $url_resource | `'tenants'` | #
`protected static string` | $json_name | `'tenants'` | #

Properties inherited from OpenCloud\Common\Resource\BaseResource
`$metadata, $parent, $service`

Properties inherited from OpenCloud\Common\Base
`$aliases`