@@ -80,6 +80,68 @@ def getGlobalCredential(self, **kwargs):
8080
8181
8282
83+ def updateCliCredential (self , ** kwargs ):
84+ """Updates global CLI credential
85+
86+ Args:
87+
88+ globalCredentialNio, CLICredentialDTO: CLI credentials (required)
89+
90+
91+
92+ Returns: TaskIdResult
93+ """
94+
95+ allParams = ['globalCredentialNio' ]
96+
97+ params = locals ()
98+ for (key , val ) in list (params ['kwargs' ].items ()):
99+ if key not in allParams :
100+ raise TypeError ("Got an unexpected keyword argument '%s' to method updateCliCredential" % key )
101+ params [key ] = val
102+ del params ['kwargs' ]
103+
104+ resourcePath = '/global-credential/cli'
105+ resourcePath = resourcePath .replace ('{format}' , 'json' )
106+ method = 'PUT'
107+
108+ queryParams = {}
109+ headerParams = {}
110+ formParams = {}
111+ files = {}
112+ bodyParam = None
113+
114+ headerParams ['Accept' ] = 'application/json'
115+ headerParams ['Content-Type' ] = 'application/json'
116+
117+
118+
119+
120+
121+
122+
123+
124+
125+
126+ if ('globalCredentialNio' in params ):
127+ bodyParam = params ['globalCredentialNio' ]
128+
129+
130+ postData = (formParams if formParams else bodyParam )
131+
132+ response = self .apiClient .callAPI (resourcePath , method , queryParams ,
133+ postData , headerParams , files = files )
134+
135+
136+ if not response :
137+ return None
138+
139+ responseObject = self .apiClient .deserialize (response , 'TaskIdResult' )
140+ return responseObject
141+
142+
143+
144+
83145 def addCliCredential (self , ** kwargs ):
84146 """Creates global CLI credential
85147
@@ -142,6 +204,68 @@ def addCliCredential(self, **kwargs):
142204
143205
144206
207+ def updateSnmpReadCommunity (self , ** kwargs ):
208+ """Updates global SNMP read community
209+
210+ Args:
211+
212+ globalCredentialNio, SNMPv2ReadCommunityDTO: SNMP read community details (required)
213+
214+
215+
216+ Returns: TaskIdResult
217+ """
218+
219+ allParams = ['globalCredentialNio' ]
220+
221+ params = locals ()
222+ for (key , val ) in list (params ['kwargs' ].items ()):
223+ if key not in allParams :
224+ raise TypeError ("Got an unexpected keyword argument '%s' to method updateSnmpReadCommunity" % key )
225+ params [key ] = val
226+ del params ['kwargs' ]
227+
228+ resourcePath = '/global-credential/snmpv2-read-community'
229+ resourcePath = resourcePath .replace ('{format}' , 'json' )
230+ method = 'PUT'
231+
232+ queryParams = {}
233+ headerParams = {}
234+ formParams = {}
235+ files = {}
236+ bodyParam = None
237+
238+ headerParams ['Accept' ] = 'application/json'
239+ headerParams ['Content-Type' ] = 'application/json'
240+
241+
242+
243+
244+
245+
246+
247+
248+
249+
250+ if ('globalCredentialNio' in params ):
251+ bodyParam = params ['globalCredentialNio' ]
252+
253+
254+ postData = (formParams if formParams else bodyParam )
255+
256+ response = self .apiClient .callAPI (resourcePath , method , queryParams ,
257+ postData , headerParams , files = files )
258+
259+
260+ if not response :
261+ return None
262+
263+ responseObject = self .apiClient .deserialize (response , 'TaskIdResult' )
264+ return responseObject
265+
266+
267+
268+
145269 def addSnmpReadCommunity (self , ** kwargs ):
146270 """Creates global SNMP read community
147271
@@ -204,6 +328,68 @@ def addSnmpReadCommunity(self, **kwargs):
204328
205329
206330
331+ def updateSnmpWriteCommunity (self , ** kwargs ):
332+ """Updates global SNMP write community
333+
334+ Args:
335+
336+ globalCredentialNio, SNMPv2WriteCommunityDTO: SNMP write community details (required)
337+
338+
339+
340+ Returns: TaskIdResult
341+ """
342+
343+ allParams = ['globalCredentialNio' ]
344+
345+ params = locals ()
346+ for (key , val ) in list (params ['kwargs' ].items ()):
347+ if key not in allParams :
348+ raise TypeError ("Got an unexpected keyword argument '%s' to method updateSnmpWriteCommunity" % key )
349+ params [key ] = val
350+ del params ['kwargs' ]
351+
352+ resourcePath = '/global-credential/snmpv2-write-community'
353+ resourcePath = resourcePath .replace ('{format}' , 'json' )
354+ method = 'PUT'
355+
356+ queryParams = {}
357+ headerParams = {}
358+ formParams = {}
359+ files = {}
360+ bodyParam = None
361+
362+ headerParams ['Accept' ] = 'application/json'
363+ headerParams ['Content-Type' ] = 'application/json'
364+
365+
366+
367+
368+
369+
370+
371+
372+
373+
374+ if ('globalCredentialNio' in params ):
375+ bodyParam = params ['globalCredentialNio' ]
376+
377+
378+ postData = (formParams if formParams else bodyParam )
379+
380+ response = self .apiClient .callAPI (resourcePath , method , queryParams ,
381+ postData , headerParams , files = files )
382+
383+
384+ if not response :
385+ return None
386+
387+ responseObject = self .apiClient .deserialize (response , 'TaskIdResult' )
388+ return responseObject
389+
390+
391+
392+
207393 def addSnmpWriteCommunity (self , ** kwargs ):
208394 """Creates global SNMP write community
209395
@@ -266,6 +452,68 @@ def addSnmpWriteCommunity(self, **kwargs):
266452
267453
268454
455+ def updateSnmpv3Credential (self , ** kwargs ):
456+ """Updates global SNMPv3 credential
457+
458+ Args:
459+
460+ globalCredentialNio, SNMPv3CredentialDTO: SNMPv3 credential details (required)
461+
462+
463+
464+ Returns: TaskIdResult
465+ """
466+
467+ allParams = ['globalCredentialNio' ]
468+
469+ params = locals ()
470+ for (key , val ) in list (params ['kwargs' ].items ()):
471+ if key not in allParams :
472+ raise TypeError ("Got an unexpected keyword argument '%s' to method updateSnmpv3Credential" % key )
473+ params [key ] = val
474+ del params ['kwargs' ]
475+
476+ resourcePath = '/global-credential/snmpv3'
477+ resourcePath = resourcePath .replace ('{format}' , 'json' )
478+ method = 'PUT'
479+
480+ queryParams = {}
481+ headerParams = {}
482+ formParams = {}
483+ files = {}
484+ bodyParam = None
485+
486+ headerParams ['Accept' ] = 'application/json'
487+ headerParams ['Content-Type' ] = 'application/json'
488+
489+
490+
491+
492+
493+
494+
495+
496+
497+
498+ if ('globalCredentialNio' in params ):
499+ bodyParam = params ['globalCredentialNio' ]
500+
501+
502+ postData = (formParams if formParams else bodyParam )
503+
504+ response = self .apiClient .callAPI (resourcePath , method , queryParams ,
505+ postData , headerParams , files = files )
506+
507+
508+ if not response :
509+ return None
510+
511+ responseObject = self .apiClient .deserialize (response , 'TaskIdResult' )
512+ return responseObject
513+
514+
515+
516+
269517 def addSnmpv3Credential (self , ** kwargs ):
270518 """Creates global SNMPv3 credential
271519
0 commit comments