# Cloud Talent Solution V4beta1 API - Class Google::Cloud::Talent::V4beta1::Tenant (v0.19.0)

0.19.0 (latest) 0.18.1 0.17.1 0.16.0 0.15.0 0.14.1 0.13.0 0.12.0 0.11.1 0.10.2 0.9.0 0.8.1 0.7.0 0.6.1 0.5.0 0.4.6 Reference documentation and code samples for the Cloud Talent Solution V4beta1 API class Google::Cloud::Talent::V4beta1::Tenant.

A Tenant resource represents a tenant in the service. A tenant is a group or
entity that shares common access with specific privileges for resources like
profiles. Customer may create multiple tenants to provide data isolation for
different groups.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #external_id

    def external_id() -> ::String

**Returns**

- (::String) --- Required. Client side tenant identifier, used to uniquely identify the tenant.

  The maximum number of allowed characters is 255.

### #external_id=

    def external_id=(value) -> ::String

**Parameter**

- **value** (::String) --- Required. Client side tenant identifier, used to uniquely identify the tenant.


  The maximum number of allowed characters is 255.
**Returns**

- (::String) --- Required. Client side tenant identifier, used to uniquely identify the tenant.

  The maximum number of allowed characters is 255.

### #keyword_searchable_profile_custom_attributes

    def keyword_searchable_profile_custom_attributes() -> ::Array<::String>

**Returns**

- (::Array\<::String\>) --- A list of keys of filterable \[Profile.custom_attributes\]\[google.cloud.talent.v4beta1.Profile.custom_attributes\], whose corresponding `string_values` are used in keyword searches. Profiles with `string_values` under these specified field keys are returned if any of the values match the search keyword. Custom field values with parenthesis, brackets and special symbols are not searchable as-is, and must be surrounded by quotes.

### #keyword_searchable_profile_custom_attributes=

    def keyword_searchable_profile_custom_attributes=(value) -> ::Array<::String>

**Parameter**

- **value** (::Array\<::String\>) --- A list of keys of filterable \[Profile.custom_attributes\]\[google.cloud.talent.v4beta1.Profile.custom_attributes\], whose corresponding `string_values` are used in keyword searches. Profiles with `string_values` under these specified field keys are returned if any of the values match the search keyword. Custom field values with parenthesis, brackets and special symbols are not searchable as-is, and must be surrounded by quotes.
**Returns**

- (::Array\<::String\>) --- A list of keys of filterable \[Profile.custom_attributes\]\[google.cloud.talent.v4beta1.Profile.custom_attributes\], whose corresponding `string_values` are used in keyword searches. Profiles with `string_values` under these specified field keys are returned if any of the values match the search keyword. Custom field values with parenthesis, brackets and special symbols are not searchable as-is, and must be surrounded by quotes.

### #name

    def name() -> ::String

**Returns**

- (::String) --- Required during tenant update.

  The resource name for a tenant. This is generated by the service when a
  tenant is created.

  The format is "projects/{project_id}/tenants/{tenant_id}", for example,
  "projects/foo/tenants/bar".

### #name=

    def name=(value) -> ::String

**Parameter**

- **value** (::String) --- Required during tenant update.


  The resource name for a tenant. This is generated by the service when a
  tenant is created.

  The format is "projects/{project_id}/tenants/{tenant_id}", for example,
  "projects/foo/tenants/bar".
**Returns**

- (::String) --- Required during tenant update.

  The resource name for a tenant. This is generated by the service when a
  tenant is created.

  The format is "projects/{project_id}/tenants/{tenant_id}", for example,
  "projects/foo/tenants/bar".

### #usage_type

    def usage_type() -> ::Google::Cloud::Talent::V4beta1::Tenant::DataUsageType

**Returns**

- ([::Google::Cloud::Talent::V4beta1::Tenant::DataUsageType](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-talent-v4beta1/latest/Google-Cloud-Talent-V4beta1-Tenant-DataUsageType)) --- Indicates whether data owned by this tenant may be used to provide product improvements across other tenants.


  Defaults behavior is
  [DataUsageType.ISOLATED](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-talent-v4beta1/latest/Google-Cloud-Talent-V4beta1-Tenant-DataUsageType#Google__Cloud__Talent__V4beta1__Tenant__DataUsageType__ISOLATED "Google::Cloud::Talent::V4beta1::Tenant::DataUsageType::ISOLATED (constant)")
  if it's unset.

### #usage_type=

    def usage_type=(value) -> ::Google::Cloud::Talent::V4beta1::Tenant::DataUsageType

**Parameter**

- **value** ([::Google::Cloud::Talent::V4beta1::Tenant::DataUsageType](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-talent-v4beta1/latest/Google-Cloud-Talent-V4beta1-Tenant-DataUsageType)) --- Indicates whether data owned by this tenant may be used to provide product improvements across other tenants.


  Defaults behavior is
  [DataUsageType.ISOLATED](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-talent-v4beta1/latest/Google-Cloud-Talent-V4beta1-Tenant-DataUsageType#Google__Cloud__Talent__V4beta1__Tenant__DataUsageType__ISOLATED "Google::Cloud::Talent::V4beta1::Tenant::DataUsageType::ISOLATED (constant)")
  if it's unset.
**Returns**

- ([::Google::Cloud::Talent::V4beta1::Tenant::DataUsageType](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-talent-v4beta1/latest/Google-Cloud-Talent-V4beta1-Tenant-DataUsageType)) --- Indicates whether data owned by this tenant may be used to provide product improvements across other tenants.


  Defaults behavior is
  [DataUsageType.ISOLATED](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-talent-v4beta1/latest/Google-Cloud-Talent-V4beta1-Tenant-DataUsageType#Google__Cloud__Talent__V4beta1__Tenant__DataUsageType__ISOLATED "Google::Cloud::Talent::V4beta1::Tenant::DataUsageType::ISOLATED (constant)")
  if it's unset.