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)
Exemple #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)
Exemple #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)
Exemple #4
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)
Exemple #5
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)
Exemple #6
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 = """\
Exemple #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, 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.
        """)
Exemple #8
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)
Exemple #9
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)
Exemple #10
0
 def Args(parser):
     # This factory method overrides help message - operation_type is baked in
     # at argument construction time.
     Describe.FIREWALL_ARG = flags.FirewallRuleArgument()
     Describe.FIREWALL_ARG.AddArgument(parser, operation_type='describe')
Exemple #11
0
 def Args(parser):
     Delete.FIREWALL_ARG = flags.FirewallRuleArgument(plural=True)
     Delete.FIREWALL_ARG.AddArgument(parser, operation_type='delete')
     parser.display_info.AddCacheUpdater(flags.FirewallsCompleter)
Exemple #12
0
 def Args(parser):
     Delete.FIREWALL_ARG = flags.FirewallRuleArgument(
         plural=True, operation_type='delete')
     Delete.FIREWALL_ARG.AddArgument(parser, operation_type='delete')
Exemple #13
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)