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)
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)
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)
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)
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)
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 = """\
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. """)
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)
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)
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')
def Args(parser): Delete.FIREWALL_ARG = flags.FirewallRuleArgument(plural=True) Delete.FIREWALL_ARG.AddArgument(parser, operation_type='delete') parser.display_info.AddCacheUpdater(flags.FirewallsCompleter)
def Args(parser): Delete.FIREWALL_ARG = flags.FirewallRuleArgument( plural=True, operation_type='delete') Delete.FIREWALL_ARG.AddArgument(parser, operation_type='delete')
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)