def Args(cls, parser): cls.NETWORK_ARG = network_flags.NetworkArgumentForOtherResource( 'Specifies the network to which the route will be applied.', required=False) cls.INSTANCE_ARG = instance_flags.InstanceArgumentForRoute(required=False) cls.VPN_TUNNEL_ARG = vpn_flags.VpnTunnelArgumentForRoute(required=False) cls.ROUTE_ARG = flags.RouteArgument() cls.ROUTE_ARG.AddArgument(parser) _Args(parser)
def Args(cls, parser): parser.display_info.AddFormat(flags.DEFAULT_LIST_FORMAT) cls.NETWORK_ARG = network_flags.NetworkArgumentForOtherResource( 'Specifies the network to which the route will be applied.', required=False) cls.INSTANCE_ARG = instance_flags.InstanceArgumentForRoute(required=False) cls.VPN_TUNNEL_ARG = vpn_flags.VpnTunnelArgumentForRoute(required=False) cls.ILB_ARG = ilb_flags.ForwardingRuleArgumentForRoute(required=False) cls.ROUTE_ARG = flags.RouteArgument() cls.ROUTE_ARG.AddArgument(parser, operation_type='create') _Args(parser)