Ejemplo n.º 1
0
    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)
Ejemplo n.º 2
0
  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.')
Ejemplo n.º 3
0
 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)
Ejemplo n.º 4
0
 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')
Ejemplo n.º 5
0
 def Args(parser):
     Delete.TARGET_VPN_GATEWAY_ARG = flags.TargetVpnGatewayArgument(
         plural=True)
     Delete.TARGET_VPN_GATEWAY_ARG.AddArgument(parser,
                                               operation_type='delete')