def Args(cls, parser): """Adds arguments to the supplied parser. Args: parser: The argparse parser to add arguments to. """ cls.TARGET_VPN_GATEWAY_ARG = ( target_vpn_gateway_flags.TargetVpnGatewayArgument()) cls.TARGET_VPN_GATEWAY_ARG.AddArgument(parser) labels_util.AddUpdateLabelsFlags(parser)
def Args(cls, parser): """Adds arguments to the supplied parser.""" cls.NETWORK_ARG = network_flags.NetworkArgumentForOtherResource( """\ A reference to a network in this project to contain the VPN Gateway. """) cls.NETWORK_ARG.AddArgument(parser) cls.TARGET_VPN_GATEWAY_ARG = flags.TargetVpnGatewayArgument() cls.TARGET_VPN_GATEWAY_ARG.AddArgument(parser, operation_type='create') parser.add_argument( '--description', help='An optional, textual description for the target VPN Gateway.')
def Args(parser): Delete.TARGET_VPN_GATEWAY_ARG = flags.TargetVpnGatewayArgument( plural=True) Delete.TARGET_VPN_GATEWAY_ARG.AddArgument(parser, operation_type='delete') parser.display_info.AddCacheUpdater(flags.TargetVpnGatewaysCompleter)
def Args(parser): """Adds arguments to the supplied parser.""" Describe.TARGET_VPN_GATEWAY_ARG = flags.TargetVpnGatewayArgument() Describe.TARGET_VPN_GATEWAY_ARG.AddArgument(parser, operation_type='describe')
def Args(parser): Delete.TARGET_VPN_GATEWAY_ARG = flags.TargetVpnGatewayArgument( plural=True) Delete.TARGET_VPN_GATEWAY_ARG.AddArgument(parser, operation_type='delete')