Ejemplo n.º 1
0
 def Args(parser):
   arguments.AddConstraintArgToParser(parser)
   arguments.AddResourceFlagsToParser(parser)
   parser.add_argument(
       '--effective',
       action='store_true',
       help='Describe the effective policy.')
Ejemplo n.º 2
0
  def Args(parser):
    arguments.AddResourceFlagsToParser(parser)
    parser.add_argument(
        '--show-unset',
        action='store_true',
        help='Show all available constraints for the resource.')

    parser.display_info.AddFormat('table(name, etag, updateTime)')
Ejemplo n.º 3
0
  def Args(parser):
    arguments.AddResourceFlagsToParser(parser)
    parser.add_argument(
        '--show-unset',
        action='store_true',
        help='Show all available constraints for the resource.')

    parser.display_info.AddFormat(
        'table(constraint, listPolicy, booleanPolicy, etag)')
Ejemplo n.º 4
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.'))
Ejemplo n.º 5
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.'))
Ejemplo n.º 6
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
        ])
Ejemplo n.º 7
0
 def Args(parser):
     arguments.AddConstraintArgToParser(parser)
     arguments.AddResourceFlagsToParser(parser)
Ejemplo n.º 8
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)