@@ -137,34 +137,16 @@ public bool DeepEquals(Blob other)
137137 Helper . AreEqual2 ( _mime_type , other . _mime_type ) ;
138138 }
139139
140- public override string SaveChanges ( Session session , string opaqueRef , Blob server )
141- {
142- if ( opaqueRef == null )
143- {
144- System . Diagnostics . Debug . Assert ( false , "Cannot create instances of this type on the server" ) ;
145- return "" ;
146- }
147- else
148- {
149- if ( ! Helper . AreEqual2 ( _name_label , server . _name_label ) )
150- {
151- Blob . set_name_label ( session , opaqueRef , _name_label ) ;
152- }
153- if ( ! Helper . AreEqual2 ( _name_description , server . _name_description ) )
154- {
155- Blob . set_name_description ( session , opaqueRef , _name_description ) ;
156- }
157-
158- return null ;
159- }
160- }
161140
162141 /// <summary>
163142 /// Get a record containing the current state of the given blob.
164143 /// First published in XenServer 5.0.
165144 /// </summary>
166145 /// <param name="session">The session</param>
167146 /// <param name="_blob">The opaque_ref of the given blob</param>
147+ /// <remarks>
148+ /// Minimum allowed role: read-only
149+ /// </remarks>
168150 public static Blob get_record ( Session session , string _blob )
169151 {
170152 return session . JsonRpcClient . blob_get_record ( session . opaque_ref , _blob ) ;
@@ -176,6 +158,9 @@ public static Blob get_record(Session session, string _blob)
176158 /// </summary>
177159 /// <param name="session">The session</param>
178160 /// <param name="_uuid">UUID of object to return</param>
161+ /// <remarks>
162+ /// Minimum allowed role: read-only
163+ /// </remarks>
179164 public static XenRef < Blob > get_by_uuid ( Session session , string _uuid )
180165 {
181166 return session . JsonRpcClient . blob_get_by_uuid ( session . opaque_ref , _uuid ) ;
@@ -187,6 +172,9 @@ public static XenRef<Blob> get_by_uuid(Session session, string _uuid)
187172 /// </summary>
188173 /// <param name="session">The session</param>
189174 /// <param name="_label">label of object to return</param>
175+ /// <remarks>
176+ /// Minimum allowed role: read-only
177+ /// </remarks>
190178 public static List < XenRef < Blob > > get_by_name_label ( Session session , string _label )
191179 {
192180 return session . JsonRpcClient . blob_get_by_name_label ( session . opaque_ref , _label ) ;
@@ -198,6 +186,9 @@ public static List<XenRef<Blob>> get_by_name_label(Session session, string _labe
198186 /// </summary>
199187 /// <param name="session">The session</param>
200188 /// <param name="_blob">The opaque_ref of the given blob</param>
189+ /// <remarks>
190+ /// Minimum allowed role: read-only
191+ /// </remarks>
201192 public static string get_uuid ( Session session , string _blob )
202193 {
203194 return session . JsonRpcClient . blob_get_uuid ( session . opaque_ref , _blob ) ;
@@ -209,6 +200,9 @@ public static string get_uuid(Session session, string _blob)
209200 /// </summary>
210201 /// <param name="session">The session</param>
211202 /// <param name="_blob">The opaque_ref of the given blob</param>
203+ /// <remarks>
204+ /// Minimum allowed role: read-only
205+ /// </remarks>
212206 public static string get_name_label ( Session session , string _blob )
213207 {
214208 return session . JsonRpcClient . blob_get_name_label ( session . opaque_ref , _blob ) ;
@@ -220,6 +214,9 @@ public static string get_name_label(Session session, string _blob)
220214 /// </summary>
221215 /// <param name="session">The session</param>
222216 /// <param name="_blob">The opaque_ref of the given blob</param>
217+ /// <remarks>
218+ /// Minimum allowed role: read-only
219+ /// </remarks>
223220 public static string get_name_description ( Session session , string _blob )
224221 {
225222 return session . JsonRpcClient . blob_get_name_description ( session . opaque_ref , _blob ) ;
@@ -231,6 +228,9 @@ public static string get_name_description(Session session, string _blob)
231228 /// </summary>
232229 /// <param name="session">The session</param>
233230 /// <param name="_blob">The opaque_ref of the given blob</param>
231+ /// <remarks>
232+ /// Minimum allowed role: read-only
233+ /// </remarks>
234234 public static long get_size ( Session session , string _blob )
235235 {
236236 return session . JsonRpcClient . blob_get_size ( session . opaque_ref , _blob ) ;
@@ -242,6 +242,9 @@ public static long get_size(Session session, string _blob)
242242 /// </summary>
243243 /// <param name="session">The session</param>
244244 /// <param name="_blob">The opaque_ref of the given blob</param>
245+ /// <remarks>
246+ /// Minimum allowed role: read-only
247+ /// </remarks>
245248 public static bool get_public ( Session session , string _blob )
246249 {
247250 return session . JsonRpcClient . blob_get_public ( session . opaque_ref , _blob ) ;
@@ -253,6 +256,9 @@ public static bool get_public(Session session, string _blob)
253256 /// </summary>
254257 /// <param name="session">The session</param>
255258 /// <param name="_blob">The opaque_ref of the given blob</param>
259+ /// <remarks>
260+ /// Minimum allowed role: read-only
261+ /// </remarks>
256262 public static DateTime get_last_updated ( Session session , string _blob )
257263 {
258264 return session . JsonRpcClient . blob_get_last_updated ( session . opaque_ref , _blob ) ;
@@ -264,6 +270,9 @@ public static DateTime get_last_updated(Session session, string _blob)
264270 /// </summary>
265271 /// <param name="session">The session</param>
266272 /// <param name="_blob">The opaque_ref of the given blob</param>
273+ /// <remarks>
274+ /// Minimum allowed role: read-only
275+ /// </remarks>
267276 public static string get_mime_type ( Session session , string _blob )
268277 {
269278 return session . JsonRpcClient . blob_get_mime_type ( session . opaque_ref , _blob ) ;
@@ -276,6 +285,9 @@ public static string get_mime_type(Session session, string _blob)
276285 /// <param name="session">The session</param>
277286 /// <param name="_blob">The opaque_ref of the given blob</param>
278287 /// <param name="_label">New value to set</param>
288+ /// <remarks>
289+ /// Minimum allowed role: pool-operator
290+ /// </remarks>
279291 public static void set_name_label ( Session session , string _blob , string _label )
280292 {
281293 session . JsonRpcClient . blob_set_name_label ( session . opaque_ref , _blob , _label ) ;
@@ -288,6 +300,9 @@ public static void set_name_label(Session session, string _blob, string _label)
288300 /// <param name="session">The session</param>
289301 /// <param name="_blob">The opaque_ref of the given blob</param>
290302 /// <param name="_description">New value to set</param>
303+ /// <remarks>
304+ /// Minimum allowed role: pool-operator
305+ /// </remarks>
291306 public static void set_name_description ( Session session , string _blob , string _description )
292307 {
293308 session . JsonRpcClient . blob_set_name_description ( session . opaque_ref , _blob , _description ) ;
@@ -300,6 +315,9 @@ public static void set_name_description(Session session, string _blob, string _d
300315 /// <param name="session">The session</param>
301316 /// <param name="_blob">The opaque_ref of the given blob</param>
302317 /// <param name="_public">New value to set</param>
318+ /// <remarks>
319+ /// Minimum allowed role: pool-operator
320+ /// </remarks>
303321 public static void set_public ( Session session , string _blob , bool _public )
304322 {
305323 session . JsonRpcClient . blob_set_public ( session . opaque_ref , _blob , _public ) ;
@@ -311,6 +329,9 @@ public static void set_public(Session session, string _blob, bool _public)
311329 /// </summary>
312330 /// <param name="session">The session</param>
313331 /// <param name="_mime_type">The mime-type of the blob. Defaults to 'application/octet-stream' if the empty string is supplied</param>
332+ /// <remarks>
333+ /// Minimum allowed role: pool-operator
334+ /// </remarks>
314335 public static XenRef < Blob > create ( Session session , string _mime_type )
315336 {
316337 return session . JsonRpcClient . blob_create ( session . opaque_ref , _mime_type ) ;
@@ -323,6 +344,9 @@ public static XenRef<Blob> create(Session session, string _mime_type)
323344 /// <param name="session">The session</param>
324345 /// <param name="_mime_type">The mime-type of the blob. Defaults to 'application/octet-stream' if the empty string is supplied</param>
325346 /// <param name="_public">True if the blob should be publicly available First published in XenServer 6.1.</param>
347+ /// <remarks>
348+ /// Minimum allowed role: pool-operator
349+ /// </remarks>
326350 public static XenRef < Blob > create ( Session session , string _mime_type , bool _public )
327351 {
328352 return session . JsonRpcClient . blob_create ( session . opaque_ref , _mime_type , _public ) ;
@@ -334,6 +358,9 @@ public static XenRef<Blob> create(Session session, string _mime_type, bool _publ
334358 /// </summary>
335359 /// <param name="session">The session</param>
336360 /// <param name="_blob">The opaque_ref of the given blob</param>
361+ /// <remarks>
362+ /// Minimum allowed role: pool-operator
363+ /// </remarks>
337364 public static void destroy ( Session session , string _blob )
338365 {
339366 session . JsonRpcClient . blob_destroy ( session . opaque_ref , _blob ) ;
@@ -344,16 +371,22 @@ public static void destroy(Session session, string _blob)
344371 /// First published in XenServer 5.0.
345372 /// </summary>
346373 /// <param name="session">The session</param>
374+ /// <remarks>
375+ /// Minimum allowed role: read-only
376+ /// </remarks>
347377 public static List < XenRef < Blob > > get_all ( Session session )
348378 {
349379 return session . JsonRpcClient . blob_get_all ( session . opaque_ref ) ;
350380 }
351381
352382 /// <summary>
353- /// Get all the blob Records at once, in a single XML RPC call
383+ /// Return a map of blob references to blob records for all blobs known to the system.
354384 /// First published in XenServer 5.0.
355385 /// </summary>
356386 /// <param name="session">The session</param>
387+ /// <remarks>
388+ /// Minimum allowed role: read-only
389+ /// </remarks>
357390 public static Dictionary < XenRef < Blob > , Blob > get_all_records ( Session session )
358391 {
359392 return session . JsonRpcClient . blob_get_all_records ( session . opaque_ref ) ;
0 commit comments