Reference documentation and code samples for the Cloud Asset V1 API class Google::Identity::AccessContextManager::V1::AccessLevel.
An AccessLevel is a label that can be applied to requests to Google Cloud
services, along with a list of requirements necessary for the label to be
applied.
Note: The following fields are mutually exclusive: basic, custom. If a field in that set is populated, all other fields in the set will automatically be cleared.
Note: The following fields are mutually exclusive: basic, custom. If a field in that set is populated, all other fields in the set will automatically be cleared.
Note: The following fields are mutually exclusive: basic, custom. If a field in that set is populated, all other fields in the set will automatically be cleared.
Note: The following fields are mutually exclusive: custom, basic. If a field in that set is populated, all other fields in the set will automatically be cleared.
Note: The following fields are mutually exclusive: custom, basic. If a field in that set is populated, all other fields in the set will automatically be cleared.
Note: The following fields are mutually exclusive: custom, basic. If a field in that set is populated, all other fields in the set will automatically be cleared.
#description
defdescription()->::String
Returns
(::String) — Description of the AccessLevel and its use. Does not affect behavior.
#description=
defdescription=(value)->::String
Parameter
value (::String) — Description of the AccessLevel and its use. Does not affect behavior.
Returns
(::String) — Description of the AccessLevel and its use. Does not affect behavior.
#name
defname()->::String
Returns
(::String) — Required. Resource name for the Access Level. The short_name component
must begin with a letter and only include alphanumeric and '_'. Format:
accessPolicies/{access_policy}/accessLevels/{access_level}. The maximum
length of the access_level component is 50 characters.
#name=
defname=(value)->::String
Parameter
value (::String) — Required. Resource name for the Access Level. The short_name component
must begin with a letter and only include alphanumeric and '_'. Format:
accessPolicies/{access_policy}/accessLevels/{access_level}. The maximum
length of the access_level component is 50 characters.
Returns
(::String) — Required. Resource name for the Access Level. The short_name component
must begin with a letter and only include alphanumeric and '_'. Format:
accessPolicies/{access_policy}/accessLevels/{access_level}. The maximum
length of the access_level component is 50 characters.
#title
deftitle()->::String
Returns
(::String) — Human readable title. Must be unique within the Policy.
#title=
deftitle=(value)->::String
Parameter
value (::String) — Human readable title. Must be unique within the Policy.
Returns
(::String) — Human readable title. Must be unique within the Policy.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-09 UTC."],[],[],null,["# Cloud Asset V1 API - Class Google::Identity::AccessContextManager::V1::AccessLevel (v1.4.1)\n\nVersion latestkeyboard_arrow_down\n\n- [1.4.1 (latest)](/ruby/docs/reference/google-cloud-asset-v1/latest/Google-Identity-AccessContextManager-V1-AccessLevel)\n- [1.4.0](/ruby/docs/reference/google-cloud-asset-v1/1.4.0/Google-Identity-AccessContextManager-V1-AccessLevel)\n- [1.3.1](/ruby/docs/reference/google-cloud-asset-v1/1.3.1/Google-Identity-AccessContextManager-V1-AccessLevel)\n- [1.2.0](/ruby/docs/reference/google-cloud-asset-v1/1.2.0/Google-Identity-AccessContextManager-V1-AccessLevel)\n- [1.1.0](/ruby/docs/reference/google-cloud-asset-v1/1.1.0/Google-Identity-AccessContextManager-V1-AccessLevel)\n- [1.0.2](/ruby/docs/reference/google-cloud-asset-v1/1.0.2/Google-Identity-AccessContextManager-V1-AccessLevel)\n- [0.32.0](/ruby/docs/reference/google-cloud-asset-v1/0.32.0/Google-Identity-AccessContextManager-V1-AccessLevel)\n- [0.31.0](/ruby/docs/reference/google-cloud-asset-v1/0.31.0/Google-Identity-AccessContextManager-V1-AccessLevel)\n- [0.30.0](/ruby/docs/reference/google-cloud-asset-v1/0.30.0/Google-Identity-AccessContextManager-V1-AccessLevel)\n- [0.29.3](/ruby/docs/reference/google-cloud-asset-v1/0.29.3/Google-Identity-AccessContextManager-V1-AccessLevel)\n- [0.28.1](/ruby/docs/reference/google-cloud-asset-v1/0.28.1/Google-Identity-AccessContextManager-V1-AccessLevel)\n- [0.27.0](/ruby/docs/reference/google-cloud-asset-v1/0.27.0/Google-Identity-AccessContextManager-V1-AccessLevel)\n- [0.26.1](/ruby/docs/reference/google-cloud-asset-v1/0.26.1/Google-Identity-AccessContextManager-V1-AccessLevel)\n- [0.25.0](/ruby/docs/reference/google-cloud-asset-v1/0.25.0/Google-Identity-AccessContextManager-V1-AccessLevel)\n- [0.24.0](/ruby/docs/reference/google-cloud-asset-v1/0.24.0/Google-Identity-AccessContextManager-V1-AccessLevel)\n- [0.23.0](/ruby/docs/reference/google-cloud-asset-v1/0.23.0/Google-Identity-AccessContextManager-V1-AccessLevel)\n- [0.22.0](/ruby/docs/reference/google-cloud-asset-v1/0.22.0/Google-Identity-AccessContextManager-V1-AccessLevel)\n- [0.21.1](/ruby/docs/reference/google-cloud-asset-v1/0.21.1/Google-Identity-AccessContextManager-V1-AccessLevel)\n- [0.20.1](/ruby/docs/reference/google-cloud-asset-v1/0.20.1/Google-Identity-AccessContextManager-V1-AccessLevel)\n- [0.19.0](/ruby/docs/reference/google-cloud-asset-v1/0.19.0/Google-Identity-AccessContextManager-V1-AccessLevel)\n- [0.18.0](/ruby/docs/reference/google-cloud-asset-v1/0.18.0/Google-Identity-AccessContextManager-V1-AccessLevel)\n- [0.17.3](/ruby/docs/reference/google-cloud-asset-v1/0.17.3/Google-Identity-AccessContextManager-V1-AccessLevel) \nReference documentation and code samples for the Cloud Asset V1 API class Google::Identity::AccessContextManager::V1::AccessLevel.\n\nAn `AccessLevel` is a label that can be applied to requests to Google Cloud\nservices, along with a list of requirements necessary for the label to be\napplied. \n\nInherits\n--------\n\n- Object \n\nExtended By\n-----------\n\n- Google::Protobuf::MessageExts::ClassMethods \n\nIncludes\n--------\n\n- Google::Protobuf::MessageExts\n\nMethods\n-------\n\n### #basic\n\n def basic() -\u003e ::Google::Identity::AccessContextManager::V1::BasicLevel\n\n**Returns**\n\n- ([::Google::Identity::AccessContextManager::V1::BasicLevel](./Google-Identity-AccessContextManager-V1-BasicLevel)) --- A `BasicLevel` composed of `Conditions`.\n\n\n Note: The following fields are mutually exclusive: `basic`, `custom`. If a field in that set is populated, all other fields in the set will automatically be cleared.\n\n### #basic=\n\n def basic=(value) -\u003e ::Google::Identity::AccessContextManager::V1::BasicLevel\n\n**Parameter**\n\n- **value** ([::Google::Identity::AccessContextManager::V1::BasicLevel](./Google-Identity-AccessContextManager-V1-BasicLevel)) --- A `BasicLevel` composed of `Conditions`.\n\n\nNote: The following fields are mutually exclusive: `basic`, `custom`. If a field in that set is populated, all other fields in the set will automatically be cleared. \n**Returns**\n\n- ([::Google::Identity::AccessContextManager::V1::BasicLevel](./Google-Identity-AccessContextManager-V1-BasicLevel)) --- A `BasicLevel` composed of `Conditions`.\n\n\n Note: The following fields are mutually exclusive: `basic`, `custom`. If a field in that set is populated, all other fields in the set will automatically be cleared.\n\n### #create_time\n\n def create_time() -\u003e ::Google::Protobuf::Timestamp\n\n**Returns**\n\n- ([::Google::Protobuf::Timestamp](./Google-Protobuf-Timestamp)) --- Output only. Time the `AccessLevel` was created in UTC.\n\n### #create_time=\n\n def create_time=(value) -\u003e ::Google::Protobuf::Timestamp\n\n**Parameter**\n\n- **value** ([::Google::Protobuf::Timestamp](./Google-Protobuf-Timestamp)) --- Output only. Time the `AccessLevel` was created in UTC. \n**Returns**\n\n- ([::Google::Protobuf::Timestamp](./Google-Protobuf-Timestamp)) --- Output only. Time the `AccessLevel` was created in UTC.\n\n### #custom\n\n def custom() -\u003e ::Google::Identity::AccessContextManager::V1::CustomLevel\n\n**Returns**\n\n- ([::Google::Identity::AccessContextManager::V1::CustomLevel](./Google-Identity-AccessContextManager-V1-CustomLevel)) --- A `CustomLevel` written in the Common Expression Language.\n\n\n Note: The following fields are mutually exclusive: `custom`, `basic`. If a field in that set is populated, all other fields in the set will automatically be cleared.\n\n### #custom=\n\n def custom=(value) -\u003e ::Google::Identity::AccessContextManager::V1::CustomLevel\n\n**Parameter**\n\n- **value** ([::Google::Identity::AccessContextManager::V1::CustomLevel](./Google-Identity-AccessContextManager-V1-CustomLevel)) --- A `CustomLevel` written in the Common Expression Language.\n\n\nNote: The following fields are mutually exclusive: `custom`, `basic`. If a field in that set is populated, all other fields in the set will automatically be cleared. \n**Returns**\n\n- ([::Google::Identity::AccessContextManager::V1::CustomLevel](./Google-Identity-AccessContextManager-V1-CustomLevel)) --- A `CustomLevel` written in the Common Expression Language.\n\n\n Note: The following fields are mutually exclusive: `custom`, `basic`. If a field in that set is populated, all other fields in the set will automatically be cleared.\n\n### #description\n\n def description() -\u003e ::String\n\n**Returns**\n\n- (::String) --- Description of the `AccessLevel` and its use. Does not affect behavior.\n\n### #description=\n\n def description=(value) -\u003e ::String\n\n**Parameter**\n\n- **value** (::String) --- Description of the `AccessLevel` and its use. Does not affect behavior. \n**Returns**\n\n- (::String) --- Description of the `AccessLevel` and its use. Does not affect behavior.\n\n### #name\n\n def name() -\u003e ::String\n\n**Returns**\n\n- (::String) --- Required. Resource name for the Access Level. The `short_name` component must begin with a letter and only include alphanumeric and '_'. Format: `accessPolicies/{access_policy}/accessLevels/{access_level}`. The maximum length of the `access_level` component is 50 characters.\n\n### #name=\n\n def name=(value) -\u003e ::String\n\n**Parameter**\n\n- **value** (::String) --- Required. Resource name for the Access Level. The `short_name` component must begin with a letter and only include alphanumeric and '_'. Format: `accessPolicies/{access_policy}/accessLevels/{access_level}`. The maximum length of the `access_level` component is 50 characters. \n**Returns**\n\n- (::String) --- Required. Resource name for the Access Level. The `short_name` component must begin with a letter and only include alphanumeric and '_'. Format: `accessPolicies/{access_policy}/accessLevels/{access_level}`. The maximum length of the `access_level` component is 50 characters.\n\n### #title\n\n def title() -\u003e ::String\n\n**Returns**\n\n- (::String) --- Human readable title. Must be unique within the Policy.\n\n### #title=\n\n def title=(value) -\u003e ::String\n\n**Parameter**\n\n- **value** (::String) --- Human readable title. Must be unique within the Policy. \n**Returns**\n\n- (::String) --- Human readable title. Must be unique within the Policy.\n\n### #update_time\n\n def update_time() -\u003e ::Google::Protobuf::Timestamp\n\n**Returns**\n\n- ([::Google::Protobuf::Timestamp](./Google-Protobuf-Timestamp)) --- Output only. Time the `AccessLevel` was updated in UTC.\n\n### #update_time=\n\n def update_time=(value) -\u003e ::Google::Protobuf::Timestamp\n\n**Parameter**\n\n- **value** ([::Google::Protobuf::Timestamp](./Google-Protobuf-Timestamp)) --- Output only. Time the `AccessLevel` was updated in UTC. \n**Returns**\n\n- ([::Google::Protobuf::Timestamp](./Google-Protobuf-Timestamp)) --- Output only. Time the `AccessLevel` was updated in UTC."]]