634d1d038e4e7cfcc2b1ef4ca6df8af1cf36f90f
[tpot/pegasus.git.bak/pegasus.git] / src / Pegasus / WsmServer / WsmConstants.h
1 //%LICENSE////////////////////////////////////////////////////////////////
2 //
3 // Licensed to The Open Group (TOG) under one or more contributor license
4 // agreements.  Refer to the OpenPegasusNOTICE.txt file distributed with
5 // this work for additional information regarding copyright ownership.
6 // Each contributor licenses this file to you under the OpenPegasus Open
7 // Source License; you may not use this file except in compliance with the
8 // License.
9 //
10 // Permission is hereby granted, free of charge, to any person obtaining a
11 // copy of this software and associated documentation files (the "Software"),
12 // to deal in the Software without restriction, including without limitation
13 // the rights to use, copy, modify, merge, publish, distribute, sublicense,
14 // and/or sell copies of the Software, and to permit persons to whom the
15 // Software is furnished to do so, subject to the following conditions:
16 //
17 // The above copyright notice and this permission notice shall be included
18 // in all copies or substantial portions of the Software.
19 //
20 // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
21 // OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
22 // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
23 // IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
24 // CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
25 // TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
26 // SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
27 //
28 //////////////////////////////////////////////////////////////////////////
29 //
30 //%/////////////////////////////////////////////////////////////////////////////
31
32 #ifndef Pegasus_WsmConstants_h
33 #define Pegasus_WsmConstants_h
34
35 #include <Pegasus/Common/Config.h>
36 #include <Pegasus/Common/CIMName.h>
37
38 //
39 // Message Queue Names
40 //
41
42 #define PEGASUS_QUEUENAME_WSMREQDECODER       "WsmRequestDecoder"
43 #define PEGASUS_QUEUENAME_WSMRESPENCODER      "WsmResponseEncoder"
44 #define PEGASUS_QUEUENAME_WSMPROCESSOR        "WsmProcessor"
45
46 //
47 // Minimum allowable value for MaxEnvelopeSize
48 //
49
50 #define WSM_MIN_MAXENVELOPESIZE_VALUE 8192
51
52 //
53 // WS-Management URIs
54 //
55
56 #define WSM_ADDRESS_ANONYMOUS \
57     "http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous"
58
59 // See DSP0227 R5.2-1, R6-1, and R7.1-7.
60 #define WSM_RESOURCEURI_ALLCLASSES \
61     "http://schemas.dmtf.org/wbem/wscim/1/*"
62
63 #define WSM_RESOURCEURI_CIMSCHEMAV2 \
64     "http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2"
65
66
67 //
68 // Action URIs
69 //
70
71 #define WSM_ACTION_GET \
72     "http://schemas.xmlsoap.org/ws/2004/09/transfer/Get"
73
74 #define WSM_ACTION_GET_RESPONSE \
75     "http://schemas.xmlsoap.org/ws/2004/09/transfer/GetResponse"
76
77 #define WSM_ACTION_PUT \
78     "http://schemas.xmlsoap.org/ws/2004/09/transfer/Put"
79
80 #define WSM_ACTION_PUT_RESPONSE \
81     "http://schemas.xmlsoap.org/ws/2004/09/transfer/PutResponse"
82
83 #define WSM_ACTION_CREATE \
84     "http://schemas.xmlsoap.org/ws/2004/09/transfer/Create"
85
86 #define WSM_ACTION_CREATE_RESPONSE \
87     "http://schemas.xmlsoap.org/ws/2004/09/transfer/CreateResponse"
88
89 #define WSM_ACTION_DELETE \
90     "http://schemas.xmlsoap.org/ws/2004/09/transfer/Delete"
91
92 #define WSM_ACTION_DELETE_RESPONSE \
93     "http://schemas.xmlsoap.org/ws/2004/09/transfer/DeleteResponse"
94
95 #define WSM_ACTION_ENUMERATE \
96     "http://schemas.xmlsoap.org/ws/2004/09/enumeration/Enumerate"
97
98 #define WSM_ACTION_ENUMERATE_RESPONSE \
99     "http://schemas.xmlsoap.org/ws/2004/09/enumeration/EnumerateResponse"
100
101 #define WSM_ACTION_PULL \
102     "http://schemas.xmlsoap.org/ws/2004/09/enumeration/Pull"
103
104 #define WSM_ACTION_PULL_RESPONSE \
105     "http://schemas.xmlsoap.org/ws/2004/09/enumeration/PullResponse"
106
107 #define WSM_ACTION_RELEASE \
108     "http://schemas.xmlsoap.org/ws/2004/09/enumeration/Release"
109
110 #define WSM_ACTION_RELEASE_RESPONSE \
111     "http://schemas.xmlsoap.org/ws/2004/09/enumeration/ReleaseResponse"
112
113 #define WSM_ACTION_WSMAN_FAULT \
114     "http://schemas.dmtf.org/wbem/wsman/1/wsman/fault"
115
116 #define WSM_ACTION_WSA_FAULT \
117     "http://schemas.xmlsoap.org/ws/2004/08/addressing/fault"
118
119 #define WSM_ACTION_WXF_FAULT \
120     "http://schemas.xmlsoap.org/ws/2004/09/transfer/fault"
121
122 #define WSM_ACTION_WSEN_FAULT \
123     "http://schemas.xmlsoap.org/ws/2004/09/enumeration/fault"
124
125 #define WSM_ACTION_WSE_FAULT \
126     "http://schemas.xmlsoap.org/ws/2004/08/eventing/fault"
127
128
129 //
130 // WS-Management FaultDetail URI values
131 //
132
133 #define WSMAN_FAULTDETAIL_ACTIONMISMATCH \
134     "http://schemas.dmtf.org/wbem/wsman/1/wsman/faultDetail/ActionMismatch"
135
136 #define WSMAN_FAULTDETAIL_ADDRESSINGMODE \
137     "http://schemas.dmtf.org/wbem/wsman/1/wsman/faultDetail/AddressingMode"
138
139 #define WSMAN_FAULTDETAIL_CHARACTERSET \
140     "http://schemas.dmtf.org/wbem/wsman/1/wsman/faultDetail/CharacterSet"
141
142 #define WSMAN_FAULTDETAIL_FRAGMENTLEVELACCESS \
143     "http://schemas.dmtf.org/wbem/wsman/1/wsman/faultDetail/FragmentLevelAccess"
144
145 #define WSMAN_FAULTDETAIL_INVALIDRESOURCEURI \
146     "http://schemas.dmtf.org/wbem/wsman/1/wsman/faultDetail/InvalidResourceURI"
147
148 #define WSMAN_FAULTDETAIL_INVALIDVALUE \
149     "http://schemas.dmtf.org/wbem/wsman/1/wsman/faultDetail/InvalidValue"
150
151 #define WSMAN_FAULTDETAIL_LOCALE \
152     "http://schemas.dmtf.org/wbem/wsman/1/wsman/faultDetail/Locale"
153
154 #define WSMAN_FAULTDETAIL_OPERATIONTIMEOUT \
155     "http://schemas.dmtf.org/wbem/wsman/1/wsman/faultDetail/OperationTimeout"
156
157 #define WSMAN_FAULTDETAIL_TYPEMISMATCH \
158     "http://schemas.dmtf.org/wbem/wsman/1/wsman/faultDetail/TypeMismatch"
159
160 #define WSMAN_FAULTDETAIL_UNEXPECTEDSELECTORS \
161     "http://schemas.dmtf.org/wbem/wsman/1/wsman/faultDetail/UnexpectedSelectors"
162
163 #define WSMAN_FAULTDETAIL_MINIMUMENVELOPELIMIT \
164    "http://schemas.dmtf.org/wbem/wsman/1/wsman/faultDetail/MinimumEnvelopeLimit"
165
166 #define WSMAN_FAULTDETAIL_MAXENVELOPESIZE \
167     "http://schemas.dmtf.org/wbem/wsman/1/wsman/faultDetail/MaxEnvelopeSize"
168
169 #define WSMAN_FAULTDETAIL_UNREPORTABLESUCCESS \
170     "http://schemas.dmtf.org/wbem/wsman/1/wsman/faultDetail/UnreportableSuccess"
171
172 #define WSMAN_FAULTDETAIL_ENUMERATION_MODE_UNSUPPORTED \
173     "http://schemas.dmtf.org/wbem/wsman/1/wsman/faultDetail/EnumerationMode"
174
175 enum WsmbPolymorphismMode
176 {
177     WSMB_PM_UNKNOWN,
178     WSMB_PM_NONE,
179     WSMB_PM_EXCLUDE_SUBCLASS_PROPERTIES,
180     WSMB_PM_INCLUDE_SUBCLASS_PROPERTIES
181 };
182
183 enum WsenEnumerationMode
184 {
185     WSEN_EM_UNKNOWN,
186     WSEN_EM_OBJECT,
187     WSEN_EM_EPR,
188     WSEN_EM_OBJECT_AND_EPR
189 };
190
191
192 PEGASUS_NAMESPACE_BEGIN
193
194 //
195 // CIM Namespace Names
196 //
197
198 extern const CIMNamespaceName PEGASUS_DEFAULT_WSM_NAMESPACE;
199
200 PEGASUS_NAMESPACE_END
201
202 #endif /* Pegasus_WsmConstants_h */