def Args(parser): arguments.AddConstraintArgToParser(parser) arguments.AddResourceFlagsToParser(parser) parser.add_argument( '--effective', action='store_true', help='Describe the effective policy.')
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)')
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)')
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.'))
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.'))
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)
def SetUp(self): self.parser = calliope_util.ArgumentParser() arguments.AddConstraintArgToParser(self.parser) arguments.AddResourceFlagsToParser(self.parser) arguments.AddConditionFlagToParser(self.parser) arguments.AddValueArgToParser(self.parser)