@@ -25466,6 +25466,123 @@ def cells_workbook_put_workbook_create_with_http_info(self, name, **kwargs):
25466
25466
_request_timeout=params.get('_request_timeout'),
25467
25467
collection_formats=collection_formats)
25468
25468
25469
+ def cells_workbook_put_workbook_water_marker(self, name, **kwargs):
25470
+ """
25471
+ Set workbook background image.
25472
+ This method makes a synchronous HTTP request by default. To make an
25473
+ asynchronous HTTP request, please define a `callback` function
25474
+ to be invoked when receiving the response.
25475
+ >>> def callback_function(response):
25476
+ >>> pprint(response)
25477
+ >>>
25478
+ >>> thread = api.cells_workbook_put_workbook_water_marker(name, callback=callback_function)
25479
+
25480
+ :param callback function: The callback function
25481
+ for asynchronous request. (optional)
25482
+ :param str name: (required)
25483
+ :param str folder:
25484
+ :param str storage: storage name.
25485
+ :param TextWaterMarkerRequest text_water_marker_request: The text water marker request.
25486
+ :return: CellsCloudResponse
25487
+ If the method is called asynchronously,
25488
+ returns the request thread.
25489
+ """
25490
+ kwargs['_return_http_data_only'] = True
25491
+ self.check_access_token()
25492
+ if kwargs.get('callback'):
25493
+ return self.cells_workbook_put_workbook_water_marker_with_http_info(name, **kwargs)
25494
+ else:
25495
+ (data) = self.cells_workbook_put_workbook_water_marker_with_http_info(name, **kwargs)
25496
+ return data
25497
+
25498
+ def cells_workbook_put_workbook_water_marker_with_http_info(self, name, **kwargs):
25499
+ """
25500
+ Set workbook background image.
25501
+ This method makes a synchronous HTTP request by default. To make an
25502
+ asynchronous HTTP request, please define a `callback` function
25503
+ to be invoked when receiving the response.
25504
+ >>> def callback_function(response):
25505
+ >>> pprint(response)
25506
+ >>>
25507
+ >>> thread = api.cells_workbook_put_workbook_water_marker_with_http_info(name, callback=callback_function)
25508
+
25509
+ :param callback function: The callback function
25510
+ for asynchronous request. (optional)
25511
+ :param str name: (required)
25512
+ :param str folder:
25513
+ :param str storage: storage name.
25514
+ :param TextWaterMarkerRequest text_water_marker_request: The text water marker request.
25515
+ :return: CellsCloudResponse
25516
+ If the method is called asynchronously,
25517
+ returns the request thread.
25518
+ """
25519
+
25520
+ all_params = ['name', 'folder', 'storage', 'text_water_marker_request']
25521
+ all_params.append('callback')
25522
+ all_params.append('_return_http_data_only')
25523
+ all_params.append('_preload_content')
25524
+ all_params.append('_request_timeout')
25525
+
25526
+ params = locals()
25527
+ for key, val in iteritems(params['kwargs']):
25528
+ if key not in all_params:
25529
+ raise TypeError(
25530
+ "Got an unexpected keyword argument '%s'"
25531
+ " to method cells_workbook_put_workbook_water_marker" % key
25532
+ )
25533
+ params[key] = val
25534
+ del params['kwargs']
25535
+ # verify the required parameter 'name' is set
25536
+ if ('name' not in params) or (params['name'] is None):
25537
+ raise ValueError("Missing the required parameter `name` when calling `cells_workbook_put_workbook_water_marker`")
25538
+
25539
+
25540
+ collection_formats = {}
25541
+
25542
+ path_params = {}
25543
+ if 'name' in params:
25544
+ path_params['name'] = params['name']
25545
+
25546
+ query_params = []
25547
+ if 'folder' in params:
25548
+ query_params.append(('folder', params['folder']))
25549
+ if 'storage' in params:
25550
+ query_params.append(('storage', params['storage']))
25551
+
25552
+ header_params = {}
25553
+
25554
+ form_params = []
25555
+ local_var_files = {}
25556
+
25557
+ body_params = None
25558
+ if 'text_water_marker_request' in params:
25559
+ body_params = params['text_water_marker_request']
25560
+ # HTTP header `Accept`
25561
+ header_params['Accept'] = self.api_client.\
25562
+ select_header_accept(['application/json'])
25563
+
25564
+ # HTTP header `Content-Type`
25565
+ header_params['Content-Type'] = self.api_client.\
25566
+ select_header_content_type(['application/json'])
25567
+
25568
+ # Authentication setting
25569
+ auth_settings = []
25570
+
25571
+ return self.api_client.call_api('/cells/{name}/watermarker', 'PUT',
25572
+ path_params,
25573
+ query_params,
25574
+ header_params,
25575
+ body=body_params,
25576
+ post_params=form_params,
25577
+ files=local_var_files,
25578
+ response_type='CellsCloudResponse',
25579
+ auth_settings=auth_settings,
25580
+ callback=params.get('callback'),
25581
+ _return_http_data_only=params.get('_return_http_data_only'),
25582
+ _preload_content=params.get('_preload_content', True),
25583
+ _request_timeout=params.get('_request_timeout'),
25584
+ collection_formats=collection_formats)
25585
+
25469
25586
def cells_worksheet_validations_delete_worksheet_validation(self, name, sheet_name, validation_index, **kwargs):
25470
25587
"""
25471
25588
Delete worksheet validation by index.
0 commit comments