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)
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)