Example #1
0
 def Args(cls, parser):
     cls.ORG_SECURITY_POLICY_ARG = flags.OrgSecurityPolicyRuleArgument(
         required=True, operation='update')
     cls.ORG_SECURITY_POLICY_ARG.AddArgument(parser)
     flags.AddAction(parser, required=False)
     flags.AddSecurityPolicyId(parser, operation='updated')
     flags.AddSrcIpRanges(parser)
     flags.AddDestIpRanges(parser)
     flags.AddDestPorts(parser)
     flags.AddDirection(parser)
     flags.AddEnableLogging(parser)
     flags.AddTargetResources(parser)
     flags.AddDescription(parser)
Example #2
0
 def Args(cls, parser):
   cls.ORG_SECURITY_POLICY_ARG = flags.OrgSecurityPolicyRuleArgument(
       required=True, operation='create')
   cls.ORG_SECURITY_POLICY_ARG.AddArgument(parser, operation_type='create')
   flags.AddAction(parser)
   flags.AddSecurityPolicyId(parser, operation='inserted')
   flags.AddSrcIpRanges(parser)
   flags.AddDestIpRanges(parser)
   flags.AddDestPorts(parser)
   flags.AddDirection(parser)
   flags.AddEnableLogging(parser)
   flags.AddTargetResources(parser)
   flags.AddDescription(parser)
   parser.display_info.AddCacheUpdater(flags.OrgSecurityPoliciesCompleter)