Reference documentation and code samples for the Access Context Manager V1 Client class AccessLevel.
AnAccessLevelis 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.
Generated from protobuf messagegoogle.identity.accesscontextmanager.v1.AccessLevel
Namespace
Google \ Identity \ AccessContextManager \ V1
Methods
__construct
Constructor.
Parameters
Name
Description
data
array
Optional. Data for populating the Message object.
↳ name
string
Required. Resource name for the Access Level. Theshort_namecomponent must begin with a letter and only include alphanumeric and '_'. Format:accessPolicies/{access_policy}/accessLevels/{access_level}. The maximum length of theaccess_levelcomponent is 50 characters.
↳ title
string
Human readable title. Must be unique within the Policy.
↳ description
string
Description of theAccessLeveland its use. Does not affect behavior.
Output only. Time theAccessLevelwas updated in UTC.
getName
Required. Resource name for the Access Level. Theshort_namecomponent
must begin with a letter and only include alphanumeric and '_'. Format:accessPolicies/{access_policy}/accessLevels/{access_level}. The maximum
length of theaccess_levelcomponent is 50 characters.
Returns
Type
Description
string
setName
Required. Resource name for the Access Level. Theshort_namecomponent
must begin with a letter and only include alphanumeric and '_'. Format:accessPolicies/{access_policy}/accessLevels/{access_level}. The maximum
length of theaccess_levelcomponent is 50 characters.
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getTitle
Human readable title. Must be unique within the Policy.
Returns
Type
Description
string
setTitle
Human readable title. Must be unique within the Policy.
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getDescription
Description of theAccessLeveland its use. Does not affect behavior.
Returns
Type
Description
string
setDescription
Description of theAccessLeveland its use. Does not affect behavior.
[[["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-04 UTC."],[],[],null,["# Access Context Manager V1 Client - Class AccessLevel (1.0.4)\n\nVersion latestkeyboard_arrow_down\n\n- [1.0.4 (latest)](/php/docs/reference/access-context-manager/latest/V1.AccessLevel)\n- [1.0.3](/php/docs/reference/access-context-manager/1.0.3/V1.AccessLevel)\n- [0.5.5](/php/docs/reference/access-context-manager/0.5.5/V1.AccessLevel)\n- [0.4.5](/php/docs/reference/access-context-manager/0.4.5/V1.AccessLevel)\n- [0.3.5](/php/docs/reference/access-context-manager/0.3.5/V1.AccessLevel) \nReference documentation and code samples for the Access Context Manager V1 Client class 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\nGenerated from protobuf message `google.identity.accesscontextmanager.v1.AccessLevel`\n\nNamespace\n---------\n\nGoogle \\\\ Identity \\\\ AccessContextManager \\\\ V1\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getName\n\nRequired. Resource name for the Access Level. The `short_name` component\nmust begin with a letter and only include alphanumeric and '_'. Format:\n`accessPolicies/{access_policy}/accessLevels/{access_level}`. The maximum\nlength of the `access_level` component is 50 characters.\n\n### setName\n\nRequired. Resource name for the Access Level. The `short_name` component\nmust begin with a letter and only include alphanumeric and '_'. Format:\n`accessPolicies/{access_policy}/accessLevels/{access_level}`. The maximum\nlength of the `access_level` component is 50 characters.\n\n### getTitle\n\nHuman readable title. Must be unique within the Policy.\n\n### setTitle\n\nHuman readable title. Must be unique within the Policy.\n\n### getDescription\n\nDescription of the `AccessLevel` and its use. Does not affect behavior.\n\n### setDescription\n\nDescription of the `AccessLevel` and its use. Does not affect behavior.\n\n### getBasic\n\nA `BasicLevel` composed of `Conditions`.\n\n### hasBasic\n\n### setBasic\n\nA `BasicLevel` composed of `Conditions`.\n\n### getCustom\n\nA `CustomLevel` written in the Common Expression Language.\n\n### hasCustom\n\n### setCustom\n\nA `CustomLevel` written in the Common Expression Language.\n\n### getCreateTime\n\nOutput only. Time the `AccessLevel` was created in UTC.\n\n### hasCreateTime\n\n### clearCreateTime\n\n### setCreateTime\n\nOutput only. Time the `AccessLevel` was created in UTC.\n\n### getUpdateTime\n\nOutput only. Time the `AccessLevel` was updated in UTC.\n\n### hasUpdateTime\n\n### clearUpdateTime\n\n### setUpdateTime\n\nOutput only. Time the `AccessLevel` was updated in UTC.\n\n### getLevel"]]