def Run(self, args): """Run 'services operations wait'. Args: args: argparse.Namespace, The arguments that this command was invoked with. Returns: Nothing. """ op = peering.WaitOperation(args.name) services_util.PrintOperation(op)
def Run(self, args): """Run 'services vpc-peerings connect'. Args: args: argparse.Namespace, The arguments that this command was invoked with. """ project = properties.VALUES.core.project.Get(required=True) project_number = _GetProjectNumber(project) ranges = args.ranges.split(',') op = peering.UpdateConnection(project_number, args.service, args.network, ranges, args.force) if args. async: cmd = OP_WAIT_CMD.format(op.name) log.status.Print('Asynchronous operation is in progress... ' 'Use the following command to wait for its ' 'completion:\n {0}'.format(cmd)) return op = peering.WaitOperation(op.name) services_util.PrintOperation(op)