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)
def Args(cls, parser): parser.display_info.AddFormat(flags.DEFAULT_ALPHA_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, with_egress_support=True, with_service_account=True) firewalls_utils.AddArgsForServiceAccount(parser, for_update=False)
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): 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, with_disabled=cls.with_disabled) firewalls_utils.AddArgsForServiceAccount(parser, for_update=False) flags.AddEnableLogging(parser, default=None)
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)