1 // Copyright 2015 The Weave Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4 
5 #include "src/commands/schema_constants.h"
6 
7 namespace weave {
8 
9 namespace errors {
10 namespace commands {
11 
12 const char kTypeMismatch[] = "type_mismatch";
13 const char kInvalidPropValue[] = "invalid_parameter_value";
14 const char kPropertyMissing[] = "parameter_missing";
15 const char kInvalidCommandName[] = "invalid_command_name";
16 const char kCommandFailed[] = "command_failed";
17 const char kInvalidMinimalRole[] = "invalid_minimal_role";
18 const char kCommandDestroyed[] = "command_destroyed";
19 const char kInvalidState[] = "invalid_state";
20 }  // namespace commands
21 }  // namespace errors
22 
23 namespace commands {
24 namespace attributes {
25 
26 const char kCommand_Id[] = "id";
27 const char kCommand_Name[] = "name";
28 const char kCommand_Component[] = "component";
29 const char kCommand_Parameters[] = "parameters";
30 const char kCommand_Progress[] = "progress";
31 const char kCommand_Results[] = "results";
32 const char kCommand_State[] = "state";
33 const char kCommand_Error[] = "error";
34 
35 const char kCommand_Role[] = "minimalRole";
36 const char kCommand_Role_Manager[] = "manager";
37 const char kCommand_Role_Owner[] = "owner";
38 const char kCommand_Role_User[] = "user";
39 const char kCommand_Role_Viewer[] = "viewer";
40 
41 }  // namespace attributes
42 }  // namespace commands
43 
44 }  // namespace weave
45