Exemplo n.º 1
0
 def Args(cls, parser):
     cls.ORG_SECURITY_POLICY_ARG = flags.OrgSecurityPolicyRuleArgument(
         required=True, operation="delete")
     cls.ORG_SECURITY_POLICY_ARG.AddArgument(parser)
     flags.AddSecurityPolicyId(parser, operation="deleted")
     flags.AddOrganization(parser, required=False)
     parser.display_info.AddCacheUpdater(flags.OrgSecurityPoliciesCompleter)
Exemplo n.º 2
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.AddLayer4Configs(parser)
     flags.AddDirection(parser)
     flags.AddEnableLogging(parser)
     flags.AddTargetResources(parser)
     flags.AddTargetServiceAccounts(parser)
     flags.AddDescription(parser)
     flags.AddNewPriority(parser, operation='update')
     flags.AddOrganization(parser, required=False)
Exemplo n.º 3
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.AddLayer4Configs(parser)
   flags.AddDirection(parser)
   flags.AddEnableLogging(parser)
   flags.AddTargetResources(parser)
   flags.AddTargetServiceAccounts(parser)
   flags.AddDescription(parser)
   flags.AddOrganization(parser, required=False)
   parser.display_info.AddCacheUpdater(flags.OrgSecurityPoliciesCompleter)
Exemplo n.º 4
0
 def Args(cls, parser):
     cls.ORG_SECURITY_POLICY_ARG = flags.OrgSecurityPolicyRuleArgument(
         required=True, operation="describe")
     cls.ORG_SECURITY_POLICY_ARG.AddArgument(parser)
     flags.AddOrganization(parser, required=False)
     flags.AddSecurityPolicyId(parser, operation="described")