Esempio n. 1
0
 def Args(parser):
     flags.AddIdArgToParser(parser)
     flags.AddParentResourceFlagsToParser(parser)
     base.Argument('--effective',
                   action='store_true',
                   required=False,
                   default=False,
                   help='Show the effective policy.').AddToParser(parser)
Esempio n. 2
0
 def Args(parser):
     flags.AddIdArgToParser(parser)
     flags.AddParentResourceFlagsToParser(parser)
     base.Argument(
         'denied_value',
         metavar='DENIED_VALUE',
         nargs='+',
         help='The values to add to the denied_values list policy.',
     ).AddToParser(parser)
Esempio n. 3
0
 def Args(parser):
     flags.AddParentResourceFlagsToParser(parser)
     base.Argument('--show-unset',
                   action='store_true',
                   required=False,
                   default=False,
                   help="""
     Show available constraints. For more information about constraints, see
     https://cloud.google.com/resource-manager/docs/organization-policy/understanding-constraints
     """).AddToParser(parser)
     parser.display_info.AddFormat("""
       table(
         constraint,
         listPolicy.yesno(no="-", yes="SET"),
         booleanPolicy.yesno(no="-", yes="SET"),
         etag
       )
     """)
 def Args(parser):
     flags.AddIdArgToParser(parser)
     flags.AddParentResourceFlagsToParser(parser)
Esempio n. 5
0
 def Args(parser):
     flags.AddParentResourceFlagsToParser(parser)
     base.Argument('policy_file',
                   help='JSON or YAML file with the Organization Policy.'
                   ).AddToParser(parser)