HEX
Server: Apache/2.4.65 (Ubuntu)
System: Linux ielts-store-v2 6.8.0-1036-gcp #38~22.04.1-Ubuntu SMP Thu Aug 14 01:19:18 UTC 2025 x86_64
User: root (0)
PHP: 7.2.34-54+ubuntu20.04.1+deb.sury.org+1
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,
Upload Files
File: //snap/google-cloud-cli/394/lib/surface/access_context_manager/levels/create.yaml
- release_tracks: [GA, BETA, ALPHA]

  help_text:
    brief: Create a new access level.
    description: Create a new access level in a given access policy.

  request:
    collection: accesscontextmanager.accessPolicies.accessLevels
    api_version: v1
    modify_request_hooks:
    - googlecloudsdk.command_lib.util.hooks.request_modifiers:SetFieldFromRelativeName:api_field=accessLevel.name
    - googlecloudsdk.command_lib.accesscontextmanager.policies:ValidateAccessPolicyArg
    - googlecloudsdk.command_lib.accesscontextmanager.levels:ClearCombiningFunctionUnlessBasicSpecSet
    ALPHA:
      api_version: v1alpha
      modify_request_hooks:
      - googlecloudsdk.command_lib.util.hooks.request_modifiers:SetFieldFromRelativeName:api_field=accessLevel.name
      - googlecloudsdk.command_lib.accesscontextmanager.policies:ValidateAccessPolicyArg
      - googlecloudsdk.command_lib.accesscontextmanager.levels:ClearCombiningFunctionUnlessBasicSpecSet
  async:
    collection: accesscontextmanager.operations
  arguments:
    resource:
      help_text: The access level to create.
      spec: !REF googlecloudsdk.command_lib.accesscontextmanager.resources:level
    params:
    - api_field: accessLevel.description
      arg_name: description
      required: false
      help_text: Long-form description of access level.
    - api_field: accessLevel.title
      arg_name: title
      required: true
      help_text: Short human-readable title of the access level.
    - group:
        required: true
        mutex: true
        help_text: Level specification.
        params:
        - group:
            help_text: Basic level specification.
            params:
            - api_field: accessLevel.basic.combiningFunction
              arg_name: combine-function
              default: and
              help_text: For a basic level, determines how conditions are combined.
              choices:
              - arg_value: and
                enum_value: AND
              - arg_value: or
                enum_value: OR
            - api_field: accessLevel.basic.conditions
              arg_name: basic-level-spec
              required: true
              help_text: |
                Path to a file containing a list of basic access level conditions.

                An access level condition file is a YAML-formatted list of
                conditions, which are YAML objects representing a Condition as
                described in the API reference. For example:

                    ```
                     - ipSubnetworks:
                       - 162.222.181.197/24
                       - 2001:db8::/48
                     - members:
                       - user:user@example.com
                    ```
              repeated: false
              processor: googlecloudsdk.command_lib.accesscontextmanager.levels:ParseBasicLevelConditions:api_version=v1
              ALPHA:
                processor: googlecloudsdk.command_lib.accesscontextmanager.levels:ParseBasicLevelConditions:api_version=v1alpha
        - group:
            help_text: Custom level specification.
            params:
            - api_field: accessLevel.custom.expr
              arg_name: custom-level-spec
              help_text: |
                Path to a file representing an expression that represents an access level.

                The expression is in the Common Expression Language (CEL) format. For example:

                    ```
                      expression: "origin.region_code in ['US', 'CA']"
                    ```
              repeated: false
              processor: googlecloudsdk.command_lib.accesscontextmanager.levels:ParseCustomLevel:api_version=v1
              ALPHA:
                processor: googlecloudsdk.command_lib.accesscontextmanager.levels:ParseCustomLevel:api_version=v1alpha