def Args(cls, parser):
   cls.FIREWALL_RULE_ARG = flags.FirewallRuleArgument()
   cls.FIREWALL_RULE_ARG.AddArgument(parser, operation_type='update')
   firewalls_utils.AddCommonArgs(
       parser,
       for_update=True,
       with_egress_support=cls.with_egress_firewall)
Esempio n. 2
0
 def Args(cls, parser):
     parser.display_info.AddFormat(flags.DEFAULT_LIST_FORMAT)
     cls.FIREWALL_RULE_ARG = flags.FirewallRuleArgument()
     cls.FIREWALL_RULE_ARG.AddArgument(parser)
     cls.NETWORK_ARG = network_flags.NetworkArgumentForOtherResource(
         'The network to which this rule is attached.', required=False)
     firewalls_utils.AddCommonArgs(parser, for_update=False)
Esempio n. 3
0
 def Args(cls, parser):
   cls.FIREWALL_RULE_ARG = flags.FirewallRuleArgument()
   cls.FIREWALL_RULE_ARG.AddArgument(parser)
   cls.NETWORK_ARG = network_flags.NetworkArgumentForOtherResource(
       'The network to which this rule is attached.', required=False)
   firewalls_utils.AddCommonArgs(
       parser, for_update=False, with_egress_support=True)
Esempio n. 4
0
    def Args(parser):
        firewalls_utils.AddCommonArgs(parser, False)

        network = parser.add_argument(
            '--network',
            default='default',
            help='The network to which this rule is attached.')
        network.detailed_help = """\
Esempio n. 5
0
 def Args(cls, parser):
     cls.FIREWALL_RULE_ARG = flags.FirewallRuleArgument()
     cls.FIREWALL_RULE_ARG.AddArgument(parser, operation_type='update')
     firewalls_utils.AddCommonArgs(
         parser,
         for_update=True,
         with_egress_support=cls.with_egress_firewall,
         with_service_account=cls.with_service_account)
     firewalls_utils.AddArgsForServiceAccount(parser, for_update=True)
     flags.AddEnableLogging(parser, default=None)
Esempio n. 6
0
 def Args(cls, parser):
     parser.display_info.AddFormat(flags.DEFAULT_BETA_LIST_FORMAT)
     cls.FIREWALL_RULE_ARG = flags.FirewallRuleArgument()
     cls.FIREWALL_RULE_ARG.AddArgument(parser, operation_type='create')
     cls.NETWORK_ARG = network_flags.NetworkArgumentForOtherResource(
         'The network to which this rule is attached.', required=False)
     firewalls_utils.AddCommonArgs(parser,
                                   for_update=False,
                                   with_egress_support=True,
                                   with_service_account=True)
     firewalls_utils.AddArgsForServiceAccount(parser, for_update=False)
Esempio n. 7
0
  def Args(cls, parser):
    cls.FIREWALL_RULE_ARG = flags.FirewallRuleArgument()
    cls.FIREWALL_RULE_ARG.AddArgument(parser)
    cls.NETWORK_ARG = network_flags.NetworkArgumentForOtherResource(
        'The network to which this rule is attached.', required=False)
    firewalls_utils.AddCommonArgs(parser, False)

    network = parser.add_argument(
        '--network',
        default='default',
        help='The network to which this rule is attached.')
    network.detailed_help = """\
Esempio n. 8
0
    def Args(cls, parser):
        cls.FIREWALL_RULE_ARG = flags.FirewallRuleArgument()
        cls.FIREWALL_RULE_ARG.AddArgument(parser)
        cls.NETWORK_ARG = network_flags.NetworkArgumentForOtherResource(
            'The network to which this rule is attached.', required=False)
        firewalls_utils.AddCommonArgs(parser, for_update=False)

        parser.add_argument('--network',
                            default='default',
                            help="""\
        The network to which this rule is attached. If omitted, the
        rule is attached to the ``default'' network.
        """)
Esempio n. 9
0
 def Args(cls, parser):
     messages = apis.GetMessagesModule(
         'compute', compute_api.COMPUTE_ALPHA_API_VERSION)
     cls.FIREWALL_RULE_ARG = flags.FirewallRuleArgument()
     cls.FIREWALL_RULE_ARG.AddArgument(parser, operation_type='update')
     firewalls_utils.AddCommonArgs(
         parser,
         for_update=True,
         with_egress_support=cls.with_egress_firewall,
         with_service_account=cls.with_service_account)
     firewalls_utils.AddArgsForServiceAccount(parser, for_update=True)
     flags.AddEnableLogging(parser, default=None)
     flags.AddLoggingMetadata(parser, messages)
Esempio n. 10
0
 def Args(cls, parser):
     messages = apis.GetMessagesModule(
         'compute', compute_api.COMPUTE_ALPHA_API_VERSION)
     parser.display_info.AddFormat(flags.DEFAULT_LIST_FORMAT)
     cls.FIREWALL_RULE_ARG = flags.FirewallRuleArgument()
     cls.FIREWALL_RULE_ARG.AddArgument(parser, operation_type='create')
     cls.NETWORK_ARG = network_flags.NetworkArgumentForOtherResource(
         'The network to which this rule is attached.', required=False)
     firewalls_utils.AddCommonArgs(parser,
                                   for_update=False,
                                   with_egress_support=True,
                                   with_service_account=True)
     firewalls_utils.AddArgsForServiceAccount(parser, for_update=False)
     flags.AddEnableLogging(parser)
     flags.AddLoggingMetadata(parser, messages)
Esempio n. 11
0
 def Args(parser):
   firewalls_utils.AddCommonArgs(parser, True)
Esempio n. 12
0
 def Args(cls, parser):
     cls.FIREWALL_RULE_ARG = flags.FirewallRuleArgument(
         operation_type='update')
     cls.FIREWALL_RULE_ARG.AddArgument(parser)
     firewalls_utils.AddCommonArgs(parser, for_update=True)