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/network_connectivity/internal_ranges/update.yaml
- release_tracks: [ALPHA, GA]

  help_text:
    brief: |
      Update an internal range.
    description: |
      Update the details of an internal range.
    examples: |
      Update ip-cidr-range of an internal range named ``my-range'':

        $ {command} my-range
          --ip-cidr-range="192.168.0.0/24"

      Extend an internal range named ``my-range'' to an address block of /24:

        $ {command} my-range
          --prefix-length=24

  arguments:
    resource:
      spec: !REF googlecloudsdk.command_lib.network_connectivity.resources:internalRange
      help_text: |
        Name of the internal range to be created.
    params:
    - group:
        mutex: true
        params:
        - arg_name: ip-cidr-range
          api_field: internalRange.ipCidrRange
          help_text: |
            IP range that this internal range defines.
        - arg_name: prefix-length
          api_field: internalRange.prefixLength
          help_text: |
            An alternative to ip-cidr-range.
            Can be set when trying to create a reservation that automatically finds a free range of
            the given size.
    - group:
        mutex: true
        params:
        - arg_name: clear-overlaps
          type: bool
          help_text: |
            Clear existing overlap fields for the range.
        - arg_name: overlaps
          api_field: internalRange.overlaps
          help_text: Overlap specifications for the range being updated.
          choices:
          - arg_value: overlap-route-range
            enum_value: OVERLAP_ROUTE_RANGE
            help_text: |
              Allows for creation or existence of routes that have a more specific destination
              than the created range.
          - arg_value: overlap-existing-subnet-range
            enum_value: OVERLAP_EXISTING_SUBNET_RANGE
            help_text: |
              Allows for creation of internal ranges that overlap with existing subnets.
    - group:
        mutex: true
        params:
        - arg_name: clear-labels
          type: bool
          help_text: |
            Clear existing labels for the range.
        - arg_name: labels
          api_field: internalRange.labels.additionalProperties
          metavar: KEY=VALUE
          help_text: List of label KEY=VALUE pairs for the range being updated.
          type:
            arg_dict:
              flatten: true
              spec:
              - api_field: key
              - api_field: value
    - group:
        params:
        - arg_name: description
          api_field: internalRange.description
          help_text: Description of the Internal Range


  async:
    collection: networkconnectivity.projects.locations.operations

  request:
    ALPHA:
      api_version: v1alpha1
      modify_request_hooks:
      - googlecloudsdk.command_lib.network_connectivity.util:ClearOverlaps
      - googlecloudsdk.command_lib.network_connectivity.util:ClearLabels
    GA:
      api_version: v1
      modify_request_hooks:
      - googlecloudsdk.command_lib.network_connectivity.util:ClearOverlaps
      - googlecloudsdk.command_lib.network_connectivity.util:ClearLabels
    collection: networkconnectivity.projects.locations.internalRanges
    method: patch