Esempio n. 1
0
 def Args(parser):
   arguments.AddConstraintArgToParser(parser)
   arguments.AddResourceFlagsToParser(parser)
   parser.add_argument(
       '--effective',
       action='store_true',
       help='Describe the effective policy.')
Esempio n. 2
0
 def Args(parser):
     arguments.AddConstraintArgToParser(parser)
     arguments.AddResourceFlagsToParser(parser)
     arguments.AddConditionFlagToParser(parser)
     label_manager_arguments.AddLabelParentArgToParser(
         parser, False,
         ('This flag must be specified as the parent of the LabelKey when the '
          'input for a condition expression is set as the LabelKey and '
          'LabelValue display name.'))
Esempio n. 3
0
 def Args(parser):
     arguments.AddConstraintArgToParser(parser)
     arguments.AddResourceFlagsToParser(parser)
     parser.add_argument('--effective',
                         action='store_true',
                         help='Describe the effective policy.')
     parser.add_argument(
         '--show-label-name',
         action='store_true',
         help=
         ('Return label based conditions with the display name instead of '
          'ID.'))
Esempio n. 4
0
    def SetUp(self):
        self.command = _GetAndUpdateCommand()

        parser = calliope_util.ArgumentParser()
        arguments.AddConstraintArgToParser(parser)
        arguments.AddResourceFlagsToParser(parser)
        arguments.AddConditionFlagToParser(parser)
        self.args_without_condition = parser.parse_args(
            [self.CONSTRAINT_A, self.RESOURCE_FLAG, self.RESOURCE_ID])
        self.args_with_condition = parser.parse_args([
            self.CONSTRAINT_A, self.RESOURCE_FLAG, self.RESOURCE_ID,
            self.CONDITION_FLAG, self.CONDITION_EXPRESSION_A
        ])
 def Args(parser):
     arguments.AddConstraintArgToParser(parser)
     arguments.AddResourceFlagsToParser(parser)
Esempio n. 6
0
 def SetUp(self):
     self.parser = calliope_util.ArgumentParser()
     arguments.AddConstraintArgToParser(self.parser)
     arguments.AddResourceFlagsToParser(self.parser)
     arguments.AddConditionFlagToParser(self.parser)
     arguments.AddValueArgToParser(self.parser)