code: def generate_key(self, key_type, expire_current_seconds=None):
          
          route_values = {}
          if key_type is not None:
              route_values['keyType'] = self._serialize.url('key_type', key_type, 'str')
          query_parameters = {}
          if expire_current_seconds is not None:
              query_parameters['expireCurrentSeconds'] = self._serialize.query('expire_current_seconds', expire_current_seconds, 'int')
          self._send(http_method='POST',
                     location_id='92ed5cf4-c38b-465a-9059-2f2fb7c624b5',
                     version='5.1-preview.1',
                     route_values=route_values,
                     query_parameters=query_parameters)
docs: GenerateKey.
          [Preview API]
          :param str key_type:
          :param int expire_current_seconds: