code: def _update(self, args: argparse.Namespace):
      with console.status("Updating gateway..."):
          if args.set_default:
              self.api.client.gateways.set_default(
                  self.api.project, args.name
              )
          if args.domain:
              self.api.client.gateways.set_wildcard_domain(
                  self.api.project, args.name, args.domain
              )
      gateway = self.api.client.gateways.get(
          self.api.project, args.name
      )
      print_gateways_table([gateway])
  
file_path: dstack/src/dstack/_internal/cli/commands/gateway.py
imports: import argparse
  from dstack._internal.cli.commands import APIBaseCommand
  from dstack._internal.cli.utils.common import confirm_ask, console
  from dstack._internal.cli.utils.gateway import print_gateways_table
  from dstack._internal.core.models.backends.base import BackendType
label_desc: Use image node_id 6 for calling the GatewayCommand obj's underlying member method code with example usage: obj._update(args) without return types