@@ -283,142 +283,6 @@ def delete_web_hook_with_http_info(self, cloud_pk, id, **kwargs): # noqa: E501
283283 _request_timeout = local_var_params .get ('_request_timeout' ),
284284 collection_formats = collection_formats )
285285
286- def full_update_web_hook (self , cloud_pk , id , data , ** kwargs ): # noqa: E501
287- """Update all field of a webhook # noqa: E501
288-
289- Update all field of a webhook Required scopes: webhook:manage # noqa: E501
290- This method makes a synchronous HTTP request by default. To make an
291- asynchronous HTTP request, please pass async_req=True
292- >>> thread = api.full_update_web_hook(cloud_pk, id, data, async_req=True)
293- >>> result = thread.get()
294-
295- :param async_req bool: execute request asynchronously
296- :param str cloud_pk: (required)
297- :param str id: (required)
298- :param WebHook data: (required)
299- :param _preload_content: if False, the urllib3.HTTPResponse object will
300- be returned without reading/decoding response
301- data. Default is True.
302- :param _request_timeout: timeout setting for this request. If one
303- number provided, it will be total request
304- timeout. It can also be a pair (tuple) of
305- (connection, read) timeouts.
306- :return: WebHook
307- If the method is called asynchronously,
308- returns the request thread.
309- """
310- kwargs ['_return_http_data_only' ] = True
311- return self .full_update_web_hook_with_http_info (cloud_pk , id , data , ** kwargs ) # noqa: E501
312-
313- def full_update_web_hook_with_http_info (self , cloud_pk , id , data , ** kwargs ): # noqa: E501
314- """Update all field of a webhook # noqa: E501
315-
316- Update all field of a webhook Required scopes: webhook:manage # noqa: E501
317- This method makes a synchronous HTTP request by default. To make an
318- asynchronous HTTP request, please pass async_req=True
319- >>> thread = api.full_update_web_hook_with_http_info(cloud_pk, id, data, async_req=True)
320- >>> result = thread.get()
321-
322- :param async_req bool: execute request asynchronously
323- :param str cloud_pk: (required)
324- :param str id: (required)
325- :param WebHook data: (required)
326- :param _return_http_data_only: response data without head status code
327- and headers
328- :param _preload_content: if False, the urllib3.HTTPResponse object will
329- be returned without reading/decoding response
330- data. Default is True.
331- :param _request_timeout: timeout setting for this request. If one
332- number provided, it will be total request
333- timeout. It can also be a pair (tuple) of
334- (connection, read) timeouts.
335- :return: tuple(WebHook, status_code(int), headers(HTTPHeaderDict))
336- If the method is called asynchronously,
337- returns the request thread.
338- """
339-
340- local_var_params = locals ()
341-
342- all_params = [
343- 'cloud_pk' ,
344- 'id' ,
345- 'data'
346- ]
347- all_params .extend (
348- [
349- 'async_req' ,
350- '_return_http_data_only' ,
351- '_preload_content' ,
352- '_request_timeout'
353- ]
354- )
355-
356- for key , val in six .iteritems (local_var_params ['kwargs' ]):
357- if key not in all_params :
358- raise ApiTypeError (
359- "Got an unexpected keyword argument '%s'"
360- " to method full_update_web_hook" % key
361- )
362- local_var_params [key ] = val
363- del local_var_params ['kwargs' ]
364- # verify the required parameter 'cloud_pk' is set
365- if self .api_client .client_side_validation and ('cloud_pk' not in local_var_params or # noqa: E501
366- local_var_params ['cloud_pk' ] is None ): # noqa: E501
367- raise ApiValueError ("Missing the required parameter `cloud_pk` when calling `full_update_web_hook`" ) # noqa: E501
368- # verify the required parameter 'id' is set
369- if self .api_client .client_side_validation and ('id' not in local_var_params or # noqa: E501
370- local_var_params ['id' ] is None ): # noqa: E501
371- raise ApiValueError ("Missing the required parameter `id` when calling `full_update_web_hook`" ) # noqa: E501
372- # verify the required parameter 'data' is set
373- if self .api_client .client_side_validation and ('data' not in local_var_params or # noqa: E501
374- local_var_params ['data' ] is None ): # noqa: E501
375- raise ApiValueError ("Missing the required parameter `data` when calling `full_update_web_hook`" ) # noqa: E501
376-
377- collection_formats = {}
378-
379- path_params = {}
380- if 'cloud_pk' in local_var_params :
381- path_params ['cloud_pk' ] = local_var_params ['cloud_pk' ] # noqa: E501
382- if 'id' in local_var_params :
383- path_params ['id' ] = local_var_params ['id' ] # noqa: E501
384-
385- query_params = []
386-
387- header_params = {}
388-
389- form_params = []
390- local_var_files = {}
391-
392- body_params = None
393- if 'data' in local_var_params :
394- body_params = local_var_params ['data' ]
395- # HTTP header `Accept`
396- header_params ['Accept' ] = self .api_client .select_header_accept (
397- ['application/json' ]) # noqa: E501
398-
399- # HTTP header `Content-Type`
400- header_params ['Content-Type' ] = self .api_client .select_header_content_type ( # noqa: E501
401- ['application/json' ]) # noqa: E501
402-
403- # Authentication setting
404- auth_settings = ['Bearer' , 'bimdata_connect' , 'client_credentials' ] # noqa: E501
405-
406- return self .api_client .call_api (
407- '/cloud/{cloud_pk}/webhook/{id}' , 'PUT' ,
408- path_params ,
409- query_params ,
410- header_params ,
411- body = body_params ,
412- post_params = form_params ,
413- files = local_var_files ,
414- response_type = 'WebHook' , # noqa: E501
415- auth_settings = auth_settings ,
416- async_req = local_var_params .get ('async_req' ),
417- _return_http_data_only = local_var_params .get ('_return_http_data_only' ), # noqa: E501
418- _preload_content = local_var_params .get ('_preload_content' , True ),
419- _request_timeout = local_var_params .get ('_request_timeout' ),
420- collection_formats = collection_formats )
421-
422286 def get_web_hook (self , cloud_pk , id , ** kwargs ): # noqa: E501
423287 """Retrieve one configured webhook # noqa: E501
424288
0 commit comments