def Args(parser):
     flags.AddResourceFlagsToParser(parser)
     base.Argument('--show_unset',
                   action='store_true',
                   required=False,
                   default=False,
                   help='Show available constraints.').AddToParser(parser)
예제 #2
0
 def Args(parser):
     flags.AddIdArgToParser(parser)
     flags.AddResourceFlagsToParser(parser)
     base.Argument('--effective',
                   action='store_true',
                   required=False,
                   default=False,
                   help='Show the effective policy.').AddToParser(parser)
예제 #3
0
 def Args(parser):
   flags.AddIdArgToParser(parser)
   flags.AddResourceFlagsToParser(parser)
   base.Argument(
       'denied_value',
       metavar='DENIED_VALUE',
       nargs='+',
       help='The values to add to the denied_values list policy.',
   ).AddToParser(parser)
예제 #4
0
 def Args(parser):
     flags.AddResourceFlagsToParser(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
       )
     """)
예제 #5
0
 def Args(parser):
   flags.AddIdArgToParser(parser)
   flags.AddResourceFlagsToParser(parser)
   base.Argument(
       'allowed_value', metavar='ALLOWED_VALUE', nargs='+').AddToParser(parser)
 def Args(parser):
     flags.AddIdArgToParser(parser)
     flags.AddResourceFlagsToParser(parser)
예제 #7
0
 def Args(parser):
     flags.AddResourceFlagsToParser(parser)
     base.Argument(
         'policy_file',
         list_command_path='resource-manager org-policies list --uri',
         help='JSON or YAML file with the OrgPolicy.').AddToParser(parser)
예제 #8
0
 def Args(parser):
   flags.AddIdArgToParser(parser)
   flags.AddResourceFlagsToParser(parser)
   base.Argument(
       'denied_value', metavar='DENIED_VALUE', nargs='+').AddToParser(parser)
예제 #9
0
 def Args(parser):
     flags.AddResourceFlagsToParser(parser)
     base.Argument(
         'policy_file',
         help='JSON or YAML file with the OrgPolicy.').AddToParser(parser)