@@ -28742,6 +28742,125 @@ def post_sign_page_with_http_info(self, name, page_number, sign, **kwargs):
28742
28742
_request_timeout=params.get('_request_timeout'),
28743
28743
collection_formats=collection_formats)
28744
28744
28745
+ def post_signature_field(self, name, field, **kwargs):
28746
+ """
28747
+ Add document signature field.
28748
+ This method makes a synchronous HTTP request by default. To make an
28749
+ asynchronous HTTP request, please define a `callback` function
28750
+ to be invoked when receiving the response.
28751
+ >>> def callback_function(response):
28752
+ >>> pprint(response)
28753
+ >>>
28754
+ >>> thread = api.post_signature_field(name, field, callback=callback_function)
28755
+
28756
+ :param callback function: The callback function
28757
+ for asynchronous request. (optional)
28758
+ :param str name: The document name. (required)
28759
+ :param SignatureField field: The field. (required)
28760
+ :param str storage: The document storage.
28761
+ :param str folder: The document folder.
28762
+ :return: AsposeResponse
28763
+ If the method is called asynchronously,
28764
+ returns the request thread.
28765
+ """
28766
+ kwargs['_return_http_data_only'] = True
28767
+ if kwargs.get('callback'):
28768
+ return self.post_signature_field_with_http_info(name, field, **kwargs)
28769
+ else:
28770
+ (data) = self.post_signature_field_with_http_info(name, field, **kwargs)
28771
+ return data
28772
+
28773
+ def post_signature_field_with_http_info(self, name, field, **kwargs):
28774
+ """
28775
+ Add document signature field.
28776
+ This method makes a synchronous HTTP request by default. To make an
28777
+ asynchronous HTTP request, please define a `callback` function
28778
+ to be invoked when receiving the response.
28779
+ >>> def callback_function(response):
28780
+ >>> pprint(response)
28781
+ >>>
28782
+ >>> thread = api.post_signature_field_with_http_info(name, field, callback=callback_function)
28783
+
28784
+ :param callback function: The callback function
28785
+ for asynchronous request. (optional)
28786
+ :param str name: The document name. (required)
28787
+ :param SignatureField field: The field. (required)
28788
+ :param str storage: The document storage.
28789
+ :param str folder: The document folder.
28790
+ :return: AsposeResponse
28791
+ If the method is called asynchronously,
28792
+ returns the request thread.
28793
+ """
28794
+
28795
+ all_params = ['name', 'field', 'storage', 'folder']
28796
+ all_params.append('callback')
28797
+ all_params.append('_return_http_data_only')
28798
+ all_params.append('_preload_content')
28799
+ all_params.append('_request_timeout')
28800
+
28801
+ params = locals()
28802
+ for key, val in iteritems(params['kwargs']):
28803
+ if key not in all_params:
28804
+ raise TypeError(
28805
+ "Got an unexpected keyword argument '%s'"
28806
+ " to method post_signature_field" % key
28807
+ )
28808
+ params[key] = val
28809
+ del params['kwargs']
28810
+ # verify the required parameter 'name' is set
28811
+ if ('name' not in params) or (params['name'] is None):
28812
+ raise ValueError("Missing the required parameter `name` when calling `post_signature_field`")
28813
+ # verify the required parameter 'field' is set
28814
+ if ('field' not in params) or (params['field'] is None):
28815
+ raise ValueError("Missing the required parameter `field` when calling `post_signature_field`")
28816
+
28817
+
28818
+ collection_formats = {}
28819
+
28820
+ path_params = {}
28821
+ if 'name' in params:
28822
+ path_params['name'] = params['name']
28823
+
28824
+ query_params = []
28825
+ if 'storage' in params:
28826
+ query_params.append(('storage', params['storage']))
28827
+ if 'folder' in params:
28828
+ query_params.append(('folder', params['folder']))
28829
+
28830
+ header_params = {}
28831
+
28832
+ form_params = []
28833
+ local_var_files = {}
28834
+
28835
+ body_params = None
28836
+ if 'field' in params:
28837
+ body_params = params['field']
28838
+ # HTTP header `Accept`
28839
+ header_params['Accept'] = self.api_client.\
28840
+ select_header_accept(['application/json'])
28841
+
28842
+ # HTTP header `Content-Type`
28843
+ header_params['Content-Type'] = self.api_client.\
28844
+ select_header_content_type(['application/json'])
28845
+
28846
+ # Authentication setting
28847
+ auth_settings = ['JWT']
28848
+
28849
+ return self.api_client.call_api('/pdf/{name}/fields/signature', 'POST',
28850
+ path_params,
28851
+ query_params,
28852
+ header_params,
28853
+ body=body_params,
28854
+ post_params=form_params,
28855
+ files=local_var_files,
28856
+ response_type='AsposeResponse',
28857
+ auth_settings=auth_settings,
28858
+ callback=params.get('callback'),
28859
+ _return_http_data_only=params.get('_return_http_data_only'),
28860
+ _preload_content=params.get('_preload_content', True),
28861
+ _request_timeout=params.get('_request_timeout'),
28862
+ collection_formats=collection_formats)
28863
+
28745
28864
def post_split_document(self, name, **kwargs):
28746
28865
"""
28747
28866
Split document to parts.
@@ -40542,6 +40661,132 @@ def put_set_property_with_http_info(self, name, property_name, value, **kwargs):
40542
40661
_request_timeout=params.get('_request_timeout'),
40543
40662
collection_formats=collection_formats)
40544
40663
40664
+ def put_signature_field(self, name, field_name, field, **kwargs):
40665
+ """
40666
+ Replace document signature field.
40667
+ This method makes a synchronous HTTP request by default. To make an
40668
+ asynchronous HTTP request, please define a `callback` function
40669
+ to be invoked when receiving the response.
40670
+ >>> def callback_function(response):
40671
+ >>> pprint(response)
40672
+ >>>
40673
+ >>> thread = api.put_signature_field(name, field_name, field, callback=callback_function)
40674
+
40675
+ :param callback function: The callback function
40676
+ for asynchronous request. (optional)
40677
+ :param str name: The document name. (required)
40678
+ :param str field_name: The field name. (required)
40679
+ :param SignatureField field: The field. (required)
40680
+ :param str storage: The document storage.
40681
+ :param str folder: The document folder.
40682
+ :return: SignatureFieldResponse
40683
+ If the method is called asynchronously,
40684
+ returns the request thread.
40685
+ """
40686
+ kwargs['_return_http_data_only'] = True
40687
+ if kwargs.get('callback'):
40688
+ return self.put_signature_field_with_http_info(name, field_name, field, **kwargs)
40689
+ else:
40690
+ (data) = self.put_signature_field_with_http_info(name, field_name, field, **kwargs)
40691
+ return data
40692
+
40693
+ def put_signature_field_with_http_info(self, name, field_name, field, **kwargs):
40694
+ """
40695
+ Replace document signature field.
40696
+ This method makes a synchronous HTTP request by default. To make an
40697
+ asynchronous HTTP request, please define a `callback` function
40698
+ to be invoked when receiving the response.
40699
+ >>> def callback_function(response):
40700
+ >>> pprint(response)
40701
+ >>>
40702
+ >>> thread = api.put_signature_field_with_http_info(name, field_name, field, callback=callback_function)
40703
+
40704
+ :param callback function: The callback function
40705
+ for asynchronous request. (optional)
40706
+ :param str name: The document name. (required)
40707
+ :param str field_name: The field name. (required)
40708
+ :param SignatureField field: The field. (required)
40709
+ :param str storage: The document storage.
40710
+ :param str folder: The document folder.
40711
+ :return: SignatureFieldResponse
40712
+ If the method is called asynchronously,
40713
+ returns the request thread.
40714
+ """
40715
+
40716
+ all_params = ['name', 'field_name', 'field', 'storage', 'folder']
40717
+ all_params.append('callback')
40718
+ all_params.append('_return_http_data_only')
40719
+ all_params.append('_preload_content')
40720
+ all_params.append('_request_timeout')
40721
+
40722
+ params = locals()
40723
+ for key, val in iteritems(params['kwargs']):
40724
+ if key not in all_params:
40725
+ raise TypeError(
40726
+ "Got an unexpected keyword argument '%s'"
40727
+ " to method put_signature_field" % key
40728
+ )
40729
+ params[key] = val
40730
+ del params['kwargs']
40731
+ # verify the required parameter 'name' is set
40732
+ if ('name' not in params) or (params['name'] is None):
40733
+ raise ValueError("Missing the required parameter `name` when calling `put_signature_field`")
40734
+ # verify the required parameter 'field_name' is set
40735
+ if ('field_name' not in params) or (params['field_name'] is None):
40736
+ raise ValueError("Missing the required parameter `field_name` when calling `put_signature_field`")
40737
+ # verify the required parameter 'field' is set
40738
+ if ('field' not in params) or (params['field'] is None):
40739
+ raise ValueError("Missing the required parameter `field` when calling `put_signature_field`")
40740
+
40741
+
40742
+ collection_formats = {}
40743
+
40744
+ path_params = {}
40745
+ if 'name' in params:
40746
+ path_params['name'] = params['name']
40747
+ if 'field_name' in params:
40748
+ path_params['fieldName'] = params['field_name']
40749
+
40750
+ query_params = []
40751
+ if 'storage' in params:
40752
+ query_params.append(('storage', params['storage']))
40753
+ if 'folder' in params:
40754
+ query_params.append(('folder', params['folder']))
40755
+
40756
+ header_params = {}
40757
+
40758
+ form_params = []
40759
+ local_var_files = {}
40760
+
40761
+ body_params = None
40762
+ if 'field' in params:
40763
+ body_params = params['field']
40764
+ # HTTP header `Accept`
40765
+ header_params['Accept'] = self.api_client.\
40766
+ select_header_accept(['application/json'])
40767
+
40768
+ # HTTP header `Content-Type`
40769
+ header_params['Content-Type'] = self.api_client.\
40770
+ select_header_content_type(['application/json'])
40771
+
40772
+ # Authentication setting
40773
+ auth_settings = ['JWT']
40774
+
40775
+ return self.api_client.call_api('/pdf/{name}/fields/signature/{fieldName}', 'PUT',
40776
+ path_params,
40777
+ query_params,
40778
+ header_params,
40779
+ body=body_params,
40780
+ post_params=form_params,
40781
+ files=local_var_files,
40782
+ response_type='SignatureFieldResponse',
40783
+ auth_settings=auth_settings,
40784
+ callback=params.get('callback'),
40785
+ _return_http_data_only=params.get('_return_http_data_only'),
40786
+ _preload_content=params.get('_preload_content', True),
40787
+ _request_timeout=params.get('_request_timeout'),
40788
+ collection_formats=collection_formats)
40789
+
40545
40790
def put_sound_annotation(self, name, annotation_id, annotation, **kwargs):
40546
40791
"""
40547
40792
Replace document sound annotation
0 commit comments