text: # coding: utf-8
  
  """
      Signing Today Web
  
      *Signing Today* is the perfect Digital Signature Gateway. Whenever in Your workflow You need to add one or more Digital Signatures to Your document, *Signing Today* is the right choice. You prepare Your documents, *Signing Today* takes care of all the rest: send invitations (`signature tickets`) to signers, collects their signatures, send You back the signed document. Integrating *Signing Today* in Your existing applications is very easy. Just follow these API specifications and get inspired by the many examples presented hereafter.   # noqa: E501
  
      The version of the OpenAPI document: 2.0.0
      Generated by: https://openapi-generator.tech
  """
  
  
  from __future__ import absolute_import
  
  import re  # noqa: F401
  
  # python 2 and python 3 compatibility library
  import six
  
  from signing_today_client.api_client import ApiClient
  from signing_today_client.exceptions import (
      ApiTypeError,
      ApiValueError
  )
  
  
  class Bit4idPathgroupRobotsApi(object):
      """NOTE: This class is auto generated by OpenAPI Generator
      Ref: https://openapi-generator.tech
  
      Do not edit the class manually.
      """
  
      def __init__(self, api_client=None):
          if api_client is None:
              api_client = ApiClient()
          self.api_client = api_client
  
      def robot_authentication_delete(self, **kwargs):  # noqa: E501
          """Clear a Robot authentication lifetime token  # noqa: E501
  
          This API allows to clear the Robot authentication lifetime token.  # noqa: E501
          This method makes a synchronous HTTP request by default. To make an
          asynchronous HTTP request, please pass async_req=True
          >>> thread = api.robot_authentication_delete(async_req=True)
          >>> result = thread.get()
  
          :param async_req bool: execute request asynchronously
          :param str username: The _username_ associated to the account
          :param str domain: The _domain_ associated to the account
          :param _preload_content: if False, the urllib3.HTTPResponse object will
                                   be returned without reading/decoding response
                                   data. Default is True.
          :param _request_timeout: timeout setting for this request. If one
                                   number provided, it will be total request
                                   timeout. It can also be a pair (tuple) of
                                   (connection, read) timeouts.
          :return: None
                   If the method is called asynchronously,
                   returns the request thread.
          """
          kwargs['_return_http_data_only'] = True
          return self.robot_authentication_delete_with_http_info(**kwargs)  # noqa: E501
  
      def robot_authentication_delete_with_http_info(self, **kwargs):  # noqa: E501
          """Clear a Robot authentication lifetime token  # noqa: E501
  
          This API allows to clear the Robot authentication lifetime token.  # noqa: E501
          This method makes a synchronous HTTP request by default. To make an
          asynchronous HTTP request, please pass async_req=True
          >>> thread = api.robot_authentication_delete_with_http_info(async_req=True)
          >>> result = thread.get()
  
          :param async_req bool: execute request asynchronously
          :param str username: The _username_ associated to the account
          :param str domain: The _domain_ associated to the account
          :param _return_http_data_only: response data without head status code
                                         and headers
          :param _preload_content: if False, the urllib3.HTTPResponse object will
                                   be returned without reading/decoding response
                                   data. Default is True.
          :param _request_timeout: timeout setting for this request. If one
                                   number provided, it will be total request
                                   timeout. It can also be a pair (tuple) of
                                   (connection, read) timeouts.
          :return: None
                   If the method is called asynchronously,
                   returns the request thread.
          """
  
          local_var_params = locals()
  
          all_params = ['username', 'domain']  # noqa: E501
          all_params.append('async_req')
          all_params.append('_return_http_data_only')
          all_params.append('_preload_content')
          all_params.append('_request_timeout')
  
          for key, val in six.iteritems(local_var_params['kwargs']):
              if key not in all_params:
                  raise ApiTypeError(
                      "Got an unexpected keyword argument '%s'"
                      " to method robot_authentication_delete" % key
                  )
              local_var_params[key] = val
          del local_var_params['kwargs']
  
          collection_formats = {}
  
          path_params = {}
  
          query_params = []
          if 'username' in local_var_params and local_var_params['username'] is not None:  # noqa: E501
              query_params.append(('username', local_var_params['username']))  # noqa: E501
          if 'domain' in local_var_params and local_var_params['domain'] is not None:  # noqa: E501
              query_params.append(('domain', local_var_params['domain']))  # noqa: E501
  
          header_params = {}
  
          form_params = []
          local_var_files = {}
  
          body_params = None
          # HTTP header `Accept`
          header_params['Accept'] = self.api_client.select_header_accept(
              ['*/*'])  # noqa: E501
  
          # Authentication setting
          auth_settings = ['OAuth2']  # noqa: E501
  
          return self.api_client.call_api(
              '/robot/authentication', 'DELETE',
              path_params,
              query_params,
              header_params,
              body=body_params,
              post_params=form_params,
              files=local_var_files,
              response_type=None,  # noqa: E501
              auth_settings=auth_settings,
              async_req=local_var_params.get('async_req'),
              _return_http_data_only=local_var_params.get('_return_http_data_only'),  # noqa: E501
              _preload_content=local_var_params.get('_preload_content', True),
              _request_timeout=local_var_params.get('_request_timeout'),
              collection_formats=collection_formats)
  
      def robot_authentication_get(self, **kwargs):  # noqa: E501
          """Retrieve the Robot authentication lifetime token  # noqa: E501
  
          This API allows to generate or retrieves the Robot authentication lifetime token for the specified robot account, or the current logged in account.   # noqa: E501
          This method makes a synchronous HTTP request by default. To make an
          asynchronous HTTP request, please pass async_req=True
          >>> thread = api.robot_authentication_get(async_req=True)
          >>> result = thread.get()
  
          :param async_req bool: execute request asynchronously
          :param str username: The _username_ associated to the account
          :param str domain: The _domain_ associated to the account
          :param _preload_content: if False, the urllib3.HTTPResponse object will
                                   be returned without reading/decoding response
                                   data. Default is True.
          :param _request_timeout: timeout setting for this request. If one
                                   number provided, it will be total request
                                   timeout. It can also be a pair (tuple) of
                                   (connection, read) timeouts.
          :return: RobotAuthenticationToken
                   If the method is called asynchronously,
                   returns the request thread.
          """
          kwargs['_return_http_data_only'] = True
          return self.robot_authentication_get_with_http_info(**kwargs)  # noqa: E501
  
      def robot_authentication_get_with_http_info(self, **kwargs):  # noqa: E501
          """Retrieve the Robot authentication lifetime token  # noqa: E501
  
          This API allows to generate or retrieves the Robot authentication lifetime token for the specified robot account, or the current logged in account.   # noqa: E501
          This method makes a synchronous HTTP request by default. To make an
          asynchronous HTTP request, please pass async_req=True
          >>> thread = api.robot_authentication_get_with_http_info(async_req=True)
          >>> result = thread.get()
  
          :param async_req bool: execute request asynchronously
          :param str username: The _username_ associated to the account
          :param str domain: The _domain_ associated to the account
          :param _return_http_data_only: response data without head status code
                                         and headers
          :param _preload_content: if False, the urllib3.HTTPResponse object will
                                   be returned without reading/decoding response
                                   data. Default is True.
          :param _request_timeout: timeout setting for this request. If one
                                   number provided, it will be total request
                                   timeout. It can also be a pair (tuple) of
                                   (connection, read) timeouts.
          :return: tuple(RobotAuthenticationToken, status_code(int), headers(HTTPHeaderDict))
                   If the method is called asynchronously,
                   returns the request thread.
          """
  
          local_var_params = locals()
  
          all_params = ['username', 'domain']  # noqa: E501
          all_params.append('async_req')
          all_params.append('_return_http_data_only')
          all_params.append('_preload_content')
          all_params.append('_request_timeout')
  
          for key, val in six.iteritems(local_var_params['kwargs']):
              if key not in all_params:
                  raise ApiTypeError(
                      "Got an unexpected keyword argument '%s'"
                      " to method robot_authentication_get" % key
                  )
              local_var_params[key] = val
          del local_var_params['kwargs']
  
          collection_formats = {}
  
          path_params = {}
  
          query_params = []
          if 'username' in local_var_params and local_var_params['username'] is not None:  # noqa: E501
              query_params.append(('username', local_var_params['username']))  # noqa: E501
          if 'domain' in local_var_params and local_var_params['domain'] is not None:  # noqa: E501
              query_params.append(('domain', local_var_params['domain']))  # noqa: E501
  
          header_params = {}
  
          form_params = []
          local_var_files = {}
  
          body_params = None
          # HTTP header `Accept`
          header_params['Accept'] = self.api_client.select_header_accept(
              ['application/json', '*/*'])  # noqa: E501
  
          # Authentication setting
          auth_settings = ['OAuth2']  # noqa: E501
  
          return self.api_client.call_api(
              '/robot/authentication', 'GET',
              path_params,
              query_params,
              header_params,
              body=body_params,
              post_params=form_params,
              files=local_var_files,
              response_type='RobotAuthenticationToken',  # noqa: E501
              auth_settings=auth_settings,
              async_req=local_var_params.get('async_req'),
              _return_http_data_only=local_var_params.get('_return_http_data_only'),  # noqa: E501
              _preload_content=local_var_params.get('_preload_content', True),
              _request_timeout=local_var_params.get('_request_timeout'),
              collection_formats=collection_formats)
  
      def robot_configuration_get(self, **kwargs):  # noqa: E501
          """Retrieve the Robot configuration  # noqa: E501
  
          This API allows to retrieve the Robot configuration.   # noqa: E501
          This method makes a synchronous HTTP request by default. To make an
          asynchronous HTTP request, please pass async_req=True
          >>> thread = api.robot_configuration_get(async_req=True)
          >>> result = thread.get()
  
          :param async_req bool: execute request asynchronously
          :param str username: The _username_ associated to the account
          :param str domain: The _domain_ associated to the account
          :param _preload_content: if False, the urllib3.HTTPResponse object will
                                   be returned without reading/decoding response
                                   data. Default is True.
          :param _request_timeout: timeout setting for this request. If one
                                   number provided, it will be total request
                                   timeout. It can also be a pair (tuple) of
                                   (connection, read) timeouts.
          :return: RobotConfiguration
                   If the method is called asynchronously,
                   returns the request thread.
          """
          kwargs['_return_http_data_only'] = True
          return self.robot_configuration_get_with_http_info(**kwargs)  # noqa: E501
  
      def robot_configuration_get_with_http_info(self, **kwargs):  # noqa: E501
          """Retrieve the Robot configuration  # noqa: E501
  
          This API allows to retrieve the Robot configuration.   # noqa: E501
          This method makes a synchronous HTTP request by default. To make an
          asynchronous HTTP request, please pass async_req=True
          >>> thread = api.robot_configuration_get_with_http_info(async_req=True)
          >>> result = thread.get()
  
          :param async_req bool: execute request asynchronously
          :param str username: The _username_ associated to the account
          :param str domain: The _domain_ associated to the account
          :param _return_http_data_only: response data without head status code
                                         and headers
          :param _preload_content: if False, the urllib3.HTTPResponse object will
                                   be returned without reading/decoding response
                                   data. Default is True.
          :param _request_timeout: timeout setting for this request. If one
                                   number provided, it will be total request
                                   timeout. It can also be a pair (tuple) of
                                   (connection, read) timeouts.
          :return: tuple(RobotConfiguration, status_code(int), headers(HTTPHeaderDict))
                   If the method is called asynchronously,
                   returns the request thread.
          """
  
          local_var_params = locals()
  
          all_params = ['username', 'domain']  # noqa: E501
          all_params.append('async_req')
          all_params.append('_return_http_data_only')
          all_params.append('_preload_content')
          all_params.append('_request_timeout')
  
          for key, val in six.iteritems(local_var_params['kwargs']):
              if key not in all_params:
                  raise ApiTypeError(
                      "Got an unexpected keyword argument '%s'"
                      " to method robot_configuration_get" % key
                  )
              local_var_params[key] = val
          del local_var_params['kwargs']
  
          collection_formats = {}
  
          path_params = {}
  
          query_params = []
          if 'username' in local_var_params and local_var_params['username'] is not None:  # noqa: E501
              query_params.append(('username', local_var_params['username']))  # noqa: E501
          if 'domain' in local_var_params and local_var_params['domain'] is not None:  # noqa: E501
              query_params.append(('domain', local_var_params['domain']))  # noqa: E501
  
          header_params = {}
  
          form_params = []
          local_var_files = {}
  
          body_params = None
          # HTTP header `Accept`
          header_params['Accept'] = self.api_client.select_header_accept(
              ['application/json', '*/*'])  # noqa: E501
  
          # Authentication setting
          auth_settings = ['OAuth2']  # noqa: E501
  
          return self.api_client.call_api(
              '/robot/configuration', 'GET',
              path_params,
              query_params,
              header_params,
              body=body_params,
              post_params=form_params,
              files=local_var_files,
              response_type='RobotConfiguration',  # noqa: E501
              auth_settings=auth_settings,
              async_req=local_var_params.get('async_req'),
              _return_http_data_only=local_var_params.get('_return_http_data_only'),  # noqa: E501
              _preload_content=local_var_params.get('_preload_content', True),
              _request_timeout=local_var_params.get('_request_timeout'),
              collection_formats=collection_formats)
  
      def robot_configuration_put(self, robot_configuration, **kwargs):  # noqa: E501
          """Edit the Robot configuration  # noqa: E501
  
          This API allows to edit the Robot configuration.   # noqa: E501
          This method makes a synchronous HTTP request by default. To make an
          asynchronous HTTP request, please pass async_req=True
          >>> thread = api.robot_configuration_put(robot_configuration, async_req=True)
          >>> result = thread.get()
  
          :param async_req bool: execute request asynchronously
          :param RobotConfiguration robot_configuration: RobotConfiguration. (required)
          :param str username: The _username_ associated to the account
          :param str domain: The _domain_ associated to the account
          :param _preload_content: if False, the urllib3.HTTPResponse object will
                                   be returned without reading/decoding response
                                   data. Default is True.
          :param _request_timeout: timeout setting for this request. If one
                                   number provided, it will be total request
                                   timeout. It can also be a pair (tuple) of
                                   (connection, read) timeouts.
          :return: None
                   If the method is called asynchronously,
                   returns the request thread.
          """
          kwargs['_return_http_data_only'] = True
          return self.robot_configuration_put_with_http_info(robot_configuration, **kwargs)  # noqa: E501
  
      def robot_configuration_put_with_http_info(self, robot_configuration, **kwargs):  # noqa: E501
          """Edit the Robot configuration  # noqa: E501
  
          This API allows to edit the Robot configuration.   # noqa: E501
          This method makes a synchronous HTTP request by default. To make an
          asynchronous HTTP request, please pass async_req=True
          >>> thread = api.robot_configuration_put_with_http_info(robot_configuration, async_req=True)
          >>> result = thread.get()
  
          :param async_req bool: execute request asynchronously
          :param RobotConfiguration robot_configuration: RobotConfiguration. (required)
          :param str username: The _username_ associated to the account
          :param str domain: The _domain_ associated to the account
          :param _return_http_data_only: response data without head status code
                                         and headers
          :param _preload_content: if False, the urllib3.HTTPResponse object will
                                   be returned without reading/decoding response
                                   data. Default is True.
          :param _request_timeout: timeout setting for this request. If one
                                   number provided, it will be total request
                                   timeout. It can also be a pair (tuple) of
                                   (connection, read) timeouts.
          :return: None
                   If the method is called asynchronously,
                   returns the request thread.
          """
  
          local_var_params = locals()
  
          all_params = ['robot_configuration', 'username', 'domain']  # noqa: E501
          all_params.append('async_req')
          all_params.append('_return_http_data_only')
          all_params.append('_preload_content')
          all_params.append('_request_timeout')
  
          for key, val in six.iteritems(local_var_params['kwargs']):
              if key not in all_params:
                  raise ApiTypeError(
                      "Got an unexpected keyword argument '%s'"
                      " to method robot_configuration_put" % key
                  )
              local_var_params[key] = val
          del local_var_params['kwargs']
          # verify the required parameter 'robot_configuration' is set
          if self.api_client.client_side_validation and ('robot_configuration' not in local_var_params or  # noqa: E501
                                                          local_var_params['robot_configuration'] is None):  # noqa: E501
              raise ApiValueError("Missing the required parameter `robot_configuration` when calling `robot_configuration_put`")  # noqa: E501
  
          collection_formats = {}
  
          path_params = {}
  
          query_params = []
          if 'username' in local_var_params and local_var_params['username'] is not None:  # noqa: E501
              query_params.append(('username', local_var_params['username']))  # noqa: E501
          if 'domain' in local_var_params and local_var_params['domain'] is not None:  # noqa: E501
              query_params.append(('domain', local_var_params['domain']))  # noqa: E501
  
          header_params = {}
  
          form_params = []
          local_var_files = {}
  
          body_params = None
          if 'robot_configuration' in local_var_params:
              body_params = local_var_params['robot_configuration']
          # HTTP header `Accept`
          header_params['Accept'] = self.api_client.select_header_accept(
              ['*/*'])  # noqa: E501
  
          # HTTP header `Content-Type`
          header_params['Content-Type'] = self.api_client.select_header_content_type(  # noqa: E501
              ['application/json'])  # noqa: E501
  
          # Authentication setting
          auth_settings = ['OAuth2']  # noqa: E501
  
          return self.api_client.call_api(
              '/robot/configuration', 'PUT',
              path_params,
              query_params,
              header_params,
              body=body_params,
              post_params=form_params,
              files=local_var_files,
              response_type=None,  # noqa: E501
              auth_settings=auth_settings,
              async_req=local_var_params.get('async_req'),
              _return_http_data_only=local_var_params.get('_return_http_data_only'),  # noqa: E501
              _preload_content=local_var_params.get('_preload_content', True),
              _request_timeout=local_var_params.get('_request_timeout'),
              collection_formats=collection_formats)
  
      def robot_ds_ts_post(self, create_digital_signature_transaction, **kwargs):  # noqa: E501
          """Create a new DST in one call  # noqa: E501
  
          This API allows to create a new DST with a more convenient interface for client applications. The purpose is to provide a method for the creation of a DST in order to semplify the integration into third part applications.   # noqa: E501
          This method makes a synchronous HTTP request by default. To make an
          asynchronous HTTP request, please pass async_req=True
          >>> thread = api.robot_ds_ts_post(create_digital_signature_transaction, async_req=True)
          >>> result = thread.get()
  
          :param async_req bool: execute request asynchronously
          :param CreateDigitalSignatureTransaction create_digital_signature_transaction: description (required)
          :param _preload_content: if False, the urllib3.HTTPResponse object will
                                   be returned without reading/decoding response
                                   data. Default is True.
          :param _request_timeout: timeout setting for this request. If one
                                   number provided, it will be total request
                                   timeout. It can also be a pair (tuple) of
                                   (connection, read) timeouts.
          :return: DigitalSignatureTransaction
                   If the method is called asynchronously,
                   returns the request thread.
          """
          kwargs['_return_http_data_only'] = True
          return self.robot_ds_ts_post_with_http_info(create_digital_signature_transaction, **kwargs)  # noqa: E501
  
      def robot_ds_ts_post_with_http_info(self, create_digital_signature_transaction, **kwargs):  # noqa: E501
          """Create a new DST in one call  # noqa: E501
  
          This API allows to create a new DST with a more convenient interface for client applications. The purpose is to provide a method for the creation of a DST in order to semplify the integration into third part applications.   # noqa: E501
          This method makes a synchronous HTTP request by default. To make an
          asynchronous HTTP request, please pass async_req=True
          >>> thread = api.robot_ds_ts_post_with_http_info(create_digital_signature_transaction, async_req=True)
          >>> result = thread.get()
  
          :param async_req bool: execute request asynchronously
          :param CreateDigitalSignatureTransaction create_digital_signature_transaction: description (required)
          :param _return_http_data_only: response data without head status code
                                         and headers
          :param _preload_content: if False, the urllib3.HTTPResponse object will
                                   be returned without reading/decoding response
                                   data. Default is True.
          :param _request_timeout: timeout setting for this request. If one
                                   number provided, it will be total request
                                   timeout. It can also be a pair (tuple) of
                                   (connection, read) timeouts.
          :return: tuple(DigitalSignatureTransaction, status_code(int), headers(HTTPHeaderDict))
                   If the method is called asynchronously,
                   returns the request thread.
          """
  
          local_var_params = locals()
  
          all_params = ['create_digital_signature_transaction']  # noqa: E501
          all_params.append('async_req')
          all_params.append('_return_http_data_only')
          all_params.append('_preload_content')
          all_params.append('_request_timeout')
  
          for key, val in six.iteritems(local_var_params['kwargs']):
              if key not in all_params:
                  raise ApiTypeError(
                      "Got an unexpected keyword argument '%s'"
                      " to method robot_ds_ts_post" % key
                  )
              local_var_params[key] = val
          del local_var_params['kwargs']
          # verify the required parameter 'create_digital_signature_transaction' is set
          if self.api_client.client_side_validation and ('create_digital_signature_transaction' not in local_var_params or  # noqa: E501
                                                          local_var_params['create_digital_signature_transaction'] is None):  # noqa: E501
              raise ApiValueError("Missing the required parameter `create_digital_signature_transaction` when calling `robot_ds_ts_post`")  # noqa: E501
  
          collection_formats = {}
  
          path_params = {}
  
          query_params = []
  
          header_params = {}
  
          form_params = []
          local_var_files = {}
  
          body_params = None
          if 'create_digital_signature_transaction' in local_var_params:
              body_params = local_var_params['create_digital_signature_transaction']
          # HTTP header `Accept`
          header_params['Accept'] = self.api_client.select_header_accept(
              ['application/json', '*/*'])  # noqa: E501
  
          # HTTP header `Content-Type`
          header_params['Content-Type'] = self.api_client.select_header_content_type(  # noqa: E501
              ['application/json'])  # noqa: E501
  
          # Authentication setting
          auth_settings = ['OAuth2']  # noqa: E501
  
          return self.api_client.call_api(
              '/robot/DSTs', 'POST',
              path_params,
              query_params,
              header_params,
              body=body_params,
              post_params=form_params,
              files=local_var_files,
              response_type='DigitalSignatureTransaction',  # noqa: E501
              auth_settings=auth_settings,
              async_req=local_var_params.get('async_req'),
              _return_http_data_only=local_var_params.get('_return_http_data_only'),  # noqa: E501
              _preload_content=local_var_params.get('_preload_content', True),
              _request_timeout=local_var_params.get('_request_timeout'),
              collection_formats=collection_formats)
  
      def robot_id_instantiate_post(self, id, instantiate_dst_template, **kwargs):  # noqa: E501
          """Instantiate a DST from a template by robot  # noqa: E501
  
          This API allows to instantiate a DST from a template patching parts of its data structure.   # noqa: E501
          This method makes a synchronous HTTP request by default. To make an
          asynchronous HTTP request, please pass async_req=True
          >>> thread = api.robot_id_instantiate_post(id, instantiate_dst_template, async_req=True)
          >>> result = thread.get()
  
          :param async_req bool: execute request asynchronously
          :param str id: The value of _the unique id_ (required)
          :param InstantiateDSTTemplate instantiate_dst_template: (required)
          :param _preload_content: if False, the urllib3.HTTPResponse object will
                                   be returned without reading/decoding response
                                   data. Default is True.
          :param _request_timeout: timeout setting for this request. If one
                                   number provided, it will be total request
                                   timeout. It can also be a pair (tuple) of
                                   (connection, read) timeouts.
          :return: DigitalSignatureTransaction
                   If the method is called asynchronously,
                   returns the request thread.
          """
          kwargs['_return_http_data_only'] = True
          return self.robot_id_instantiate_post_with_http_info(id, instantiate_dst_template, **kwargs)  # noqa: E501
  
      def robot_id_instantiate_post_with_http_info(self, id, instantiate_dst_template, **kwargs):  # noqa: E501
          """Instantiate a DST from a template by robot  # noqa: E501
  
          This API allows to instantiate a DST from a template patching parts of its data structure.   # noqa: E501
          This method makes a synchronous HTTP request by default. To make an
          asynchronous HTTP request, please pass async_req=True
          >>> thread = api.robot_id_instantiate_post_with_http_info(id, instantiate_dst_template, async_req=True)
          >>> result = thread.get()
  
          :param async_req bool: execute request asynchronously
          :param str id: The value of _the unique id_ (required)
          :param InstantiateDSTTemplate instantiate_dst_template: (required)
          :param _return_http_data_only: response data without head status code
                                         and headers
          :param _preload_content: if False, the urllib3.HTTPResponse object will
                                   be returned without reading/decoding response
                                   data. Default is True.
          :param _request_timeout: timeout setting for this request. If one
                                   number provided, it will be total request
                                   timeout. It can also be a pair (tuple) of
                                   (connection, read) timeouts.
          :return: tuple(DigitalSignatureTransaction, status_code(int), headers(HTTPHeaderDict))
                   If the method is called asynchronously,
                   returns the request thread.
          """
  
          local_var_params = locals()
  
          all_params = ['id', 'instantiate_dst_template']  # noqa: E501
          all_params.append('async_req')
          all_params.append('_return_http_data_only')
          all_params.append('_preload_content')
          all_params.append('_request_timeout')
  
          for key, val in six.iteritems(local_var_params['kwargs']):
              if key not in all_params:
                  raise ApiTypeError(
                      "Got an unexpected keyword argument '%s'"
                      " to method robot_id_instantiate_post" % key
                  )
              local_var_params[key] = val
          del local_var_params['kwargs']
          # verify the required parameter 'id' is set
          if self.api_client.client_side_validation and ('id' not in local_var_params or  # noqa: E501
                                                          local_var_params['id'] is None):  # noqa: E501
              raise ApiValueError("Missing the required parameter `id` when calling `robot_id_instantiate_post`")  # noqa: E501
          # verify the required parameter 'instantiate_dst_template' is set
          if self.api_client.client_side_validation and ('instantiate_dst_template' not in local_var_params or  # noqa: E501
                                                          local_var_params['instantiate_dst_template'] is None):  # noqa: E501
              raise ApiValueError("Missing the required parameter `instantiate_dst_template` when calling `robot_id_instantiate_post`")  # noqa: E501
  
          collection_formats = {}
  
          path_params = {}
          if 'id' in local_var_params:
              path_params['id'] = local_var_params['id']  # noqa: E501
  
          query_params = []
  
          header_params = {}
  
          form_params = []
          local_var_files = {}
  
          body_params = None
          if 'instantiate_dst_template' in local_var_params:
              body_params = local_var_params['instantiate_dst_template']
          # HTTP header `Accept`
          header_params['Accept'] = self.api_client.select_header_accept(
              ['application/json', '*/*'])  # noqa: E501
  
          # HTTP header `Content-Type`
          header_params['Content-Type'] = self.api_client.select_header_content_type(  # noqa: E501
              ['application/json'])  # noqa: E501
  
          # Authentication setting
          auth_settings = ['OAuth2']  # noqa: E501
  
          return self.api_client.call_api(
              '/robot/{id}/instantiate', 'POST',
              path_params,
              query_params,
              header_params,
              body=body_params,
              post_params=form_params,
              files=local_var_files,
              response_type='DigitalSignatureTransaction',  # noqa: E501
              auth_settings=auth_settings,
              async_req=local_var_params.get('async_req'),
              _return_http_data_only=local_var_params.get('_return_http_data_only'),  # noqa: E501
              _preload_content=local_var_params.get('_preload_content', True),
              _request_timeout=local_var_params.get('_request_timeout'),
              collection_formats=collection_formats)
  