docusign_esign.apis.signing_groups_api
DocuSign REST API
The DocuSign REST API provides you with a powerful, convenient, and simple Web services API for interacting with DocuSign. # noqa: E501
OpenAPI spec version: v2.1 Contact: devcenter@docusign.com Generated by: https://github.com/swagger-api/swagger-codegen.git
1# coding: utf-8 2 3""" 4 DocuSign REST API 5 6 The DocuSign REST API provides you with a powerful, convenient, and simple Web services API for interacting with DocuSign. # noqa: E501 7 8 OpenAPI spec version: v2.1 9 Contact: devcenter@docusign.com 10 Generated by: https://github.com/swagger-api/swagger-codegen.git 11""" 12 13 14from __future__ import absolute_import 15 16import sys 17import os 18import re 19 20# python 2 and python 3 compatibility library 21from six import iteritems 22 23from ..client.configuration import Configuration 24from ..client.api_client import ApiClient 25 26 27class SigningGroupsApi(object): 28 """ 29 NOTE: This class is auto generated by the swagger code generator program. 30 Do not edit the class manually. 31 Ref: https://github.com/swagger-api/swagger-codegen 32 """ 33 34 def __init__(self, api_client=None): 35 config = Configuration() 36 if api_client: 37 self.api_client = api_client 38 else: 39 if not config.api_client: 40 config.api_client = ApiClient() 41 self.api_client = config.api_client 42 43 def create_list(self, account_id, **kwargs): 44 """ 45 Creates a signing group. 46 Creates one or more signing groups. Multiple signing groups can be created in one call. Only users with account administrator privileges can create signing groups. An account can have a maximum of 50 signing groups. Each signing group can have a maximum of 50 group members. Signing groups can be used by any account user. 47 This method makes a synchronous HTTP request by default. To make an 48 asynchronous HTTP request, please define a `callback` function 49 to be invoked when receiving the response. 50 >>> def callback_function(response): 51 >>> pprint(response) 52 >>> 53 >>> thread = api.create_list(account_id, callback=callback_function) 54 55 :param callback function: The callback function 56 for asynchronous request. (optional) 57 :param str account_id: The external account number (int) or account ID Guid. (required) 58 :param SigningGroupInformation signing_group_information: 59 :return: SigningGroupInformation 60 If the method is called asynchronously, 61 returns the request thread. 62 """ 63 kwargs['_return_http_data_only'] = True 64 if kwargs.get('callback'): 65 return self.create_list_with_http_info(account_id, **kwargs) 66 else: 67 (data) = self.create_list_with_http_info(account_id, **kwargs) 68 return data 69 70 def create_list_with_http_info(self, account_id, **kwargs): 71 """ 72 Creates a signing group. 73 Creates one or more signing groups. Multiple signing groups can be created in one call. Only users with account administrator privileges can create signing groups. An account can have a maximum of 50 signing groups. Each signing group can have a maximum of 50 group members. Signing groups can be used by any account user. 74 This method makes a synchronous HTTP request by default. To make an 75 asynchronous HTTP request, please define a `callback` function 76 to be invoked when receiving the response. 77 >>> def callback_function(response): 78 >>> pprint(response) 79 >>> 80 >>> thread = api.create_list_with_http_info(account_id, callback=callback_function) 81 82 :param callback function: The callback function 83 for asynchronous request. (optional) 84 :param str account_id: The external account number (int) or account ID Guid. (required) 85 :param SigningGroupInformation signing_group_information: 86 :return: SigningGroupInformation 87 If the method is called asynchronously, 88 returns the request thread. 89 """ 90 91 all_params = ['account_id', 'signing_group_information'] 92 all_params.append('callback') 93 all_params.append('_return_http_data_only') 94 all_params.append('_preload_content') 95 all_params.append('_request_timeout') 96 97 params = locals() 98 for key, val in iteritems(params['kwargs']): 99 if key not in all_params: 100 raise TypeError( 101 "Got an unexpected keyword argument '%s'" 102 " to method create_list" % key 103 ) 104 params[key] = val 105 del params['kwargs'] 106 # verify the required parameter 'account_id' is set 107 if ('account_id' not in params) or (params['account_id'] is None): 108 raise ValueError("Missing the required parameter `account_id` when calling `create_list`") 109 110 111 collection_formats = {} 112 113 resource_path = '/v2.1/accounts/{accountId}/signing_groups'.replace('{format}', 'json') 114 path_params = {} 115 if 'account_id' in params: 116 path_params['accountId'] = params['account_id'] 117 118 query_params = {} 119 120 header_params = {} 121 122 form_params = [] 123 local_var_files = {} 124 125 body_params = None 126 if 'signing_group_information' in params: 127 body_params = params['signing_group_information'] 128 # HTTP header `Accept` 129 header_params['Accept'] = self.api_client.\ 130 select_header_accept(['application/json']) 131 132 # Authentication setting 133 auth_settings = [] 134 135 return self.api_client.call_api(resource_path, 'POST', 136 path_params, 137 query_params, 138 header_params, 139 body=body_params, 140 post_params=form_params, 141 files=local_var_files, 142 response_type='SigningGroupInformation', 143 auth_settings=auth_settings, 144 callback=params.get('callback'), 145 _return_http_data_only=params.get('_return_http_data_only'), 146 _preload_content=params.get('_preload_content', True), 147 _request_timeout=params.get('_request_timeout'), 148 collection_formats=collection_formats) 149 150 def delete_list(self, account_id, **kwargs): 151 """ 152 Deletes one or more signing groups. 153 Deletes one or more signing groups in the specified account. 154 This method makes a synchronous HTTP request by default. To make an 155 asynchronous HTTP request, please define a `callback` function 156 to be invoked when receiving the response. 157 >>> def callback_function(response): 158 >>> pprint(response) 159 >>> 160 >>> thread = api.delete_list(account_id, callback=callback_function) 161 162 :param callback function: The callback function 163 for asynchronous request. (optional) 164 :param str account_id: The external account number (int) or account ID Guid. (required) 165 :param SigningGroupInformation signing_group_information: 166 :return: SigningGroupInformation 167 If the method is called asynchronously, 168 returns the request thread. 169 """ 170 kwargs['_return_http_data_only'] = True 171 if kwargs.get('callback'): 172 return self.delete_list_with_http_info(account_id, **kwargs) 173 else: 174 (data) = self.delete_list_with_http_info(account_id, **kwargs) 175 return data 176 177 def delete_list_with_http_info(self, account_id, **kwargs): 178 """ 179 Deletes one or more signing groups. 180 Deletes one or more signing groups in the specified account. 181 This method makes a synchronous HTTP request by default. To make an 182 asynchronous HTTP request, please define a `callback` function 183 to be invoked when receiving the response. 184 >>> def callback_function(response): 185 >>> pprint(response) 186 >>> 187 >>> thread = api.delete_list_with_http_info(account_id, callback=callback_function) 188 189 :param callback function: The callback function 190 for asynchronous request. (optional) 191 :param str account_id: The external account number (int) or account ID Guid. (required) 192 :param SigningGroupInformation signing_group_information: 193 :return: SigningGroupInformation 194 If the method is called asynchronously, 195 returns the request thread. 196 """ 197 198 all_params = ['account_id', 'signing_group_information'] 199 all_params.append('callback') 200 all_params.append('_return_http_data_only') 201 all_params.append('_preload_content') 202 all_params.append('_request_timeout') 203 204 params = locals() 205 for key, val in iteritems(params['kwargs']): 206 if key not in all_params: 207 raise TypeError( 208 "Got an unexpected keyword argument '%s'" 209 " to method delete_list" % key 210 ) 211 params[key] = val 212 del params['kwargs'] 213 # verify the required parameter 'account_id' is set 214 if ('account_id' not in params) or (params['account_id'] is None): 215 raise ValueError("Missing the required parameter `account_id` when calling `delete_list`") 216 217 218 collection_formats = {} 219 220 resource_path = '/v2.1/accounts/{accountId}/signing_groups'.replace('{format}', 'json') 221 path_params = {} 222 if 'account_id' in params: 223 path_params['accountId'] = params['account_id'] 224 225 query_params = {} 226 227 header_params = {} 228 229 form_params = [] 230 local_var_files = {} 231 232 body_params = None 233 if 'signing_group_information' in params: 234 body_params = params['signing_group_information'] 235 # HTTP header `Accept` 236 header_params['Accept'] = self.api_client.\ 237 select_header_accept(['application/json']) 238 239 # Authentication setting 240 auth_settings = [] 241 242 return self.api_client.call_api(resource_path, 'DELETE', 243 path_params, 244 query_params, 245 header_params, 246 body=body_params, 247 post_params=form_params, 248 files=local_var_files, 249 response_type='SigningGroupInformation', 250 auth_settings=auth_settings, 251 callback=params.get('callback'), 252 _return_http_data_only=params.get('_return_http_data_only'), 253 _preload_content=params.get('_preload_content', True), 254 _request_timeout=params.get('_request_timeout'), 255 collection_formats=collection_formats) 256 257 def delete_users(self, account_id, signing_group_id, **kwargs): 258 """ 259 Deletes one or more members from a signing group. 260 Deletes one or more members from the specified signing group. 261 This method makes a synchronous HTTP request by default. To make an 262 asynchronous HTTP request, please define a `callback` function 263 to be invoked when receiving the response. 264 >>> def callback_function(response): 265 >>> pprint(response) 266 >>> 267 >>> thread = api.delete_users(account_id, signing_group_id, callback=callback_function) 268 269 :param callback function: The callback function 270 for asynchronous request. (optional) 271 :param str account_id: The external account number (int) or account ID Guid. (required) 272 :param str signing_group_id: (required) 273 :param SigningGroupUsers signing_group_users: 274 :return: SigningGroupUsers 275 If the method is called asynchronously, 276 returns the request thread. 277 """ 278 kwargs['_return_http_data_only'] = True 279 if kwargs.get('callback'): 280 return self.delete_users_with_http_info(account_id, signing_group_id, **kwargs) 281 else: 282 (data) = self.delete_users_with_http_info(account_id, signing_group_id, **kwargs) 283 return data 284 285 def delete_users_with_http_info(self, account_id, signing_group_id, **kwargs): 286 """ 287 Deletes one or more members from a signing group. 288 Deletes one or more members from the specified signing group. 289 This method makes a synchronous HTTP request by default. To make an 290 asynchronous HTTP request, please define a `callback` function 291 to be invoked when receiving the response. 292 >>> def callback_function(response): 293 >>> pprint(response) 294 >>> 295 >>> thread = api.delete_users_with_http_info(account_id, signing_group_id, callback=callback_function) 296 297 :param callback function: The callback function 298 for asynchronous request. (optional) 299 :param str account_id: The external account number (int) or account ID Guid. (required) 300 :param str signing_group_id: (required) 301 :param SigningGroupUsers signing_group_users: 302 :return: SigningGroupUsers 303 If the method is called asynchronously, 304 returns the request thread. 305 """ 306 307 all_params = ['account_id', 'signing_group_id', 'signing_group_users'] 308 all_params.append('callback') 309 all_params.append('_return_http_data_only') 310 all_params.append('_preload_content') 311 all_params.append('_request_timeout') 312 313 params = locals() 314 for key, val in iteritems(params['kwargs']): 315 if key not in all_params: 316 raise TypeError( 317 "Got an unexpected keyword argument '%s'" 318 " to method delete_users" % key 319 ) 320 params[key] = val 321 del params['kwargs'] 322 # verify the required parameter 'account_id' is set 323 if ('account_id' not in params) or (params['account_id'] is None): 324 raise ValueError("Missing the required parameter `account_id` when calling `delete_users`") 325 # verify the required parameter 'signing_group_id' is set 326 if ('signing_group_id' not in params) or (params['signing_group_id'] is None): 327 raise ValueError("Missing the required parameter `signing_group_id` when calling `delete_users`") 328 329 330 collection_formats = {} 331 332 resource_path = '/v2.1/accounts/{accountId}/signing_groups/{signingGroupId}/users'.replace('{format}', 'json') 333 path_params = {} 334 if 'account_id' in params: 335 path_params['accountId'] = params['account_id'] 336 if 'signing_group_id' in params: 337 path_params['signingGroupId'] = params['signing_group_id'] 338 339 query_params = {} 340 341 header_params = {} 342 343 form_params = [] 344 local_var_files = {} 345 346 body_params = None 347 if 'signing_group_users' in params: 348 body_params = params['signing_group_users'] 349 # HTTP header `Accept` 350 header_params['Accept'] = self.api_client.\ 351 select_header_accept(['application/json']) 352 353 # Authentication setting 354 auth_settings = [] 355 356 return self.api_client.call_api(resource_path, 'DELETE', 357 path_params, 358 query_params, 359 header_params, 360 body=body_params, 361 post_params=form_params, 362 files=local_var_files, 363 response_type='SigningGroupUsers', 364 auth_settings=auth_settings, 365 callback=params.get('callback'), 366 _return_http_data_only=params.get('_return_http_data_only'), 367 _preload_content=params.get('_preload_content', True), 368 _request_timeout=params.get('_request_timeout'), 369 collection_formats=collection_formats) 370 371 def get(self, account_id, signing_group_id, **kwargs): 372 """ 373 Gets information about a signing group. 374 Retrieves information, including group member information, for the specified signing group. 375 This method makes a synchronous HTTP request by default. To make an 376 asynchronous HTTP request, please define a `callback` function 377 to be invoked when receiving the response. 378 >>> def callback_function(response): 379 >>> pprint(response) 380 >>> 381 >>> thread = api.get(account_id, signing_group_id, callback=callback_function) 382 383 :param callback function: The callback function 384 for asynchronous request. (optional) 385 :param str account_id: The external account number (int) or account ID Guid. (required) 386 :param str signing_group_id: (required) 387 :return: SigningGroup 388 If the method is called asynchronously, 389 returns the request thread. 390 """ 391 kwargs['_return_http_data_only'] = True 392 if kwargs.get('callback'): 393 return self.get_with_http_info(account_id, signing_group_id, **kwargs) 394 else: 395 (data) = self.get_with_http_info(account_id, signing_group_id, **kwargs) 396 return data 397 398 def get_with_http_info(self, account_id, signing_group_id, **kwargs): 399 """ 400 Gets information about a signing group. 401 Retrieves information, including group member information, for the specified signing group. 402 This method makes a synchronous HTTP request by default. To make an 403 asynchronous HTTP request, please define a `callback` function 404 to be invoked when receiving the response. 405 >>> def callback_function(response): 406 >>> pprint(response) 407 >>> 408 >>> thread = api.get_with_http_info(account_id, signing_group_id, callback=callback_function) 409 410 :param callback function: The callback function 411 for asynchronous request. (optional) 412 :param str account_id: The external account number (int) or account ID Guid. (required) 413 :param str signing_group_id: (required) 414 :return: SigningGroup 415 If the method is called asynchronously, 416 returns the request thread. 417 """ 418 419 all_params = ['account_id', 'signing_group_id'] 420 all_params.append('callback') 421 all_params.append('_return_http_data_only') 422 all_params.append('_preload_content') 423 all_params.append('_request_timeout') 424 425 params = locals() 426 for key, val in iteritems(params['kwargs']): 427 if key not in all_params: 428 raise TypeError( 429 "Got an unexpected keyword argument '%s'" 430 " to method get" % key 431 ) 432 params[key] = val 433 del params['kwargs'] 434 # verify the required parameter 'account_id' is set 435 if ('account_id' not in params) or (params['account_id'] is None): 436 raise ValueError("Missing the required parameter `account_id` when calling `get`") 437 # verify the required parameter 'signing_group_id' is set 438 if ('signing_group_id' not in params) or (params['signing_group_id'] is None): 439 raise ValueError("Missing the required parameter `signing_group_id` when calling `get`") 440 441 442 collection_formats = {} 443 444 resource_path = '/v2.1/accounts/{accountId}/signing_groups/{signingGroupId}'.replace('{format}', 'json') 445 path_params = {} 446 if 'account_id' in params: 447 path_params['accountId'] = params['account_id'] 448 if 'signing_group_id' in params: 449 path_params['signingGroupId'] = params['signing_group_id'] 450 451 query_params = {} 452 453 header_params = {} 454 455 form_params = [] 456 local_var_files = {} 457 458 body_params = None 459 # HTTP header `Accept` 460 header_params['Accept'] = self.api_client.\ 461 select_header_accept(['application/json']) 462 463 # Authentication setting 464 auth_settings = [] 465 466 return self.api_client.call_api(resource_path, 'GET', 467 path_params, 468 query_params, 469 header_params, 470 body=body_params, 471 post_params=form_params, 472 files=local_var_files, 473 response_type='SigningGroup', 474 auth_settings=auth_settings, 475 callback=params.get('callback'), 476 _return_http_data_only=params.get('_return_http_data_only'), 477 _preload_content=params.get('_preload_content', True), 478 _request_timeout=params.get('_request_timeout'), 479 collection_formats=collection_formats) 480 481 def list(self, account_id, **kwargs): 482 """ 483 Gets a list of the Signing Groups in an account. 484 Retrieves a list of all signing groups in the specified account. 485 This method makes a synchronous HTTP request by default. To make an 486 asynchronous HTTP request, please define a `callback` function 487 to be invoked when receiving the response. 488 >>> def callback_function(response): 489 >>> pprint(response) 490 >>> 491 >>> thread = api.list(account_id, callback=callback_function) 492 493 :param callback function: The callback function 494 for asynchronous request. (optional) 495 :param str account_id: The external account number (int) or account ID Guid. (required) 496 :param str group_type: 497 :param str include_users: When set to **true**, the response includes the signing group members. 498 :return: SigningGroupInformation 499 If the method is called asynchronously, 500 returns the request thread. 501 """ 502 kwargs['_return_http_data_only'] = True 503 if kwargs.get('callback'): 504 return self.list_with_http_info(account_id, **kwargs) 505 else: 506 (data) = self.list_with_http_info(account_id, **kwargs) 507 return data 508 509 def list_with_http_info(self, account_id, **kwargs): 510 """ 511 Gets a list of the Signing Groups in an account. 512 Retrieves a list of all signing groups in the specified account. 513 This method makes a synchronous HTTP request by default. To make an 514 asynchronous HTTP request, please define a `callback` function 515 to be invoked when receiving the response. 516 >>> def callback_function(response): 517 >>> pprint(response) 518 >>> 519 >>> thread = api.list_with_http_info(account_id, callback=callback_function) 520 521 :param callback function: The callback function 522 for asynchronous request. (optional) 523 :param str account_id: The external account number (int) or account ID Guid. (required) 524 :param str group_type: 525 :param str include_users: When set to **true**, the response includes the signing group members. 526 :return: SigningGroupInformation 527 If the method is called asynchronously, 528 returns the request thread. 529 """ 530 531 all_params = ['account_id', 'group_type', 'include_users'] 532 all_params.append('callback') 533 all_params.append('_return_http_data_only') 534 all_params.append('_preload_content') 535 all_params.append('_request_timeout') 536 537 params = locals() 538 for key, val in iteritems(params['kwargs']): 539 if key not in all_params: 540 raise TypeError( 541 "Got an unexpected keyword argument '%s'" 542 " to method list" % key 543 ) 544 params[key] = val 545 del params['kwargs'] 546 # verify the required parameter 'account_id' is set 547 if ('account_id' not in params) or (params['account_id'] is None): 548 raise ValueError("Missing the required parameter `account_id` when calling `list`") 549 550 551 collection_formats = {} 552 553 resource_path = '/v2.1/accounts/{accountId}/signing_groups'.replace('{format}', 'json') 554 path_params = {} 555 if 'account_id' in params: 556 path_params['accountId'] = params['account_id'] 557 558 query_params = {} 559 if 'group_type' in params: 560 query_params['group_type'] = params['group_type'] 561 if 'include_users' in params: 562 query_params['include_users'] = params['include_users'] 563 564 header_params = {} 565 566 form_params = [] 567 local_var_files = {} 568 569 body_params = None 570 # HTTP header `Accept` 571 header_params['Accept'] = self.api_client.\ 572 select_header_accept(['application/json']) 573 574 # Authentication setting 575 auth_settings = [] 576 577 return self.api_client.call_api(resource_path, 'GET', 578 path_params, 579 query_params, 580 header_params, 581 body=body_params, 582 post_params=form_params, 583 files=local_var_files, 584 response_type='SigningGroupInformation', 585 auth_settings=auth_settings, 586 callback=params.get('callback'), 587 _return_http_data_only=params.get('_return_http_data_only'), 588 _preload_content=params.get('_preload_content', True), 589 _request_timeout=params.get('_request_timeout'), 590 collection_formats=collection_formats) 591 592 def list_users(self, account_id, signing_group_id, **kwargs): 593 """ 594 Gets a list of members in a Signing Group. 595 Retrieves the list of members in the specified Signing Group. 596 This method makes a synchronous HTTP request by default. To make an 597 asynchronous HTTP request, please define a `callback` function 598 to be invoked when receiving the response. 599 >>> def callback_function(response): 600 >>> pprint(response) 601 >>> 602 >>> thread = api.list_users(account_id, signing_group_id, callback=callback_function) 603 604 :param callback function: The callback function 605 for asynchronous request. (optional) 606 :param str account_id: The external account number (int) or account ID Guid. (required) 607 :param str signing_group_id: (required) 608 :return: SigningGroupUsers 609 If the method is called asynchronously, 610 returns the request thread. 611 """ 612 kwargs['_return_http_data_only'] = True 613 if kwargs.get('callback'): 614 return self.list_users_with_http_info(account_id, signing_group_id, **kwargs) 615 else: 616 (data) = self.list_users_with_http_info(account_id, signing_group_id, **kwargs) 617 return data 618 619 def list_users_with_http_info(self, account_id, signing_group_id, **kwargs): 620 """ 621 Gets a list of members in a Signing Group. 622 Retrieves the list of members in the specified Signing Group. 623 This method makes a synchronous HTTP request by default. To make an 624 asynchronous HTTP request, please define a `callback` function 625 to be invoked when receiving the response. 626 >>> def callback_function(response): 627 >>> pprint(response) 628 >>> 629 >>> thread = api.list_users_with_http_info(account_id, signing_group_id, callback=callback_function) 630 631 :param callback function: The callback function 632 for asynchronous request. (optional) 633 :param str account_id: The external account number (int) or account ID Guid. (required) 634 :param str signing_group_id: (required) 635 :return: SigningGroupUsers 636 If the method is called asynchronously, 637 returns the request thread. 638 """ 639 640 all_params = ['account_id', 'signing_group_id'] 641 all_params.append('callback') 642 all_params.append('_return_http_data_only') 643 all_params.append('_preload_content') 644 all_params.append('_request_timeout') 645 646 params = locals() 647 for key, val in iteritems(params['kwargs']): 648 if key not in all_params: 649 raise TypeError( 650 "Got an unexpected keyword argument '%s'" 651 " to method list_users" % key 652 ) 653 params[key] = val 654 del params['kwargs'] 655 # verify the required parameter 'account_id' is set 656 if ('account_id' not in params) or (params['account_id'] is None): 657 raise ValueError("Missing the required parameter `account_id` when calling `list_users`") 658 # verify the required parameter 'signing_group_id' is set 659 if ('signing_group_id' not in params) or (params['signing_group_id'] is None): 660 raise ValueError("Missing the required parameter `signing_group_id` when calling `list_users`") 661 662 663 collection_formats = {} 664 665 resource_path = '/v2.1/accounts/{accountId}/signing_groups/{signingGroupId}/users'.replace('{format}', 'json') 666 path_params = {} 667 if 'account_id' in params: 668 path_params['accountId'] = params['account_id'] 669 if 'signing_group_id' in params: 670 path_params['signingGroupId'] = params['signing_group_id'] 671 672 query_params = {} 673 674 header_params = {} 675 676 form_params = [] 677 local_var_files = {} 678 679 body_params = None 680 # HTTP header `Accept` 681 header_params['Accept'] = self.api_client.\ 682 select_header_accept(['application/json']) 683 684 # Authentication setting 685 auth_settings = [] 686 687 return self.api_client.call_api(resource_path, 'GET', 688 path_params, 689 query_params, 690 header_params, 691 body=body_params, 692 post_params=form_params, 693 files=local_var_files, 694 response_type='SigningGroupUsers', 695 auth_settings=auth_settings, 696 callback=params.get('callback'), 697 _return_http_data_only=params.get('_return_http_data_only'), 698 _preload_content=params.get('_preload_content', True), 699 _request_timeout=params.get('_request_timeout'), 700 collection_formats=collection_formats) 701 702 def update(self, account_id, signing_group_id, **kwargs): 703 """ 704 Updates a signing group. 705 Updates signing group name and member information. You can also add new members to the signing group. A signing group can have a maximum of 50 members. 706 This method makes a synchronous HTTP request by default. To make an 707 asynchronous HTTP request, please define a `callback` function 708 to be invoked when receiving the response. 709 >>> def callback_function(response): 710 >>> pprint(response) 711 >>> 712 >>> thread = api.update(account_id, signing_group_id, callback=callback_function) 713 714 :param callback function: The callback function 715 for asynchronous request. (optional) 716 :param str account_id: The external account number (int) or account ID Guid. (required) 717 :param str signing_group_id: (required) 718 :param SigningGroup signing_group: 719 :return: SigningGroup 720 If the method is called asynchronously, 721 returns the request thread. 722 """ 723 kwargs['_return_http_data_only'] = True 724 if kwargs.get('callback'): 725 return self.update_with_http_info(account_id, signing_group_id, **kwargs) 726 else: 727 (data) = self.update_with_http_info(account_id, signing_group_id, **kwargs) 728 return data 729 730 def update_with_http_info(self, account_id, signing_group_id, **kwargs): 731 """ 732 Updates a signing group. 733 Updates signing group name and member information. You can also add new members to the signing group. A signing group can have a maximum of 50 members. 734 This method makes a synchronous HTTP request by default. To make an 735 asynchronous HTTP request, please define a `callback` function 736 to be invoked when receiving the response. 737 >>> def callback_function(response): 738 >>> pprint(response) 739 >>> 740 >>> thread = api.update_with_http_info(account_id, signing_group_id, callback=callback_function) 741 742 :param callback function: The callback function 743 for asynchronous request. (optional) 744 :param str account_id: The external account number (int) or account ID Guid. (required) 745 :param str signing_group_id: (required) 746 :param SigningGroup signing_group: 747 :return: SigningGroup 748 If the method is called asynchronously, 749 returns the request thread. 750 """ 751 752 all_params = ['account_id', 'signing_group_id', 'signing_group'] 753 all_params.append('callback') 754 all_params.append('_return_http_data_only') 755 all_params.append('_preload_content') 756 all_params.append('_request_timeout') 757 758 params = locals() 759 for key, val in iteritems(params['kwargs']): 760 if key not in all_params: 761 raise TypeError( 762 "Got an unexpected keyword argument '%s'" 763 " to method update" % key 764 ) 765 params[key] = val 766 del params['kwargs'] 767 # verify the required parameter 'account_id' is set 768 if ('account_id' not in params) or (params['account_id'] is None): 769 raise ValueError("Missing the required parameter `account_id` when calling `update`") 770 # verify the required parameter 'signing_group_id' is set 771 if ('signing_group_id' not in params) or (params['signing_group_id'] is None): 772 raise ValueError("Missing the required parameter `signing_group_id` when calling `update`") 773 774 775 collection_formats = {} 776 777 resource_path = '/v2.1/accounts/{accountId}/signing_groups/{signingGroupId}'.replace('{format}', 'json') 778 path_params = {} 779 if 'account_id' in params: 780 path_params['accountId'] = params['account_id'] 781 if 'signing_group_id' in params: 782 path_params['signingGroupId'] = params['signing_group_id'] 783 784 query_params = {} 785 786 header_params = {} 787 788 form_params = [] 789 local_var_files = {} 790 791 body_params = None 792 if 'signing_group' in params: 793 body_params = params['signing_group'] 794 # HTTP header `Accept` 795 header_params['Accept'] = self.api_client.\ 796 select_header_accept(['application/json']) 797 798 # Authentication setting 799 auth_settings = [] 800 801 return self.api_client.call_api(resource_path, 'PUT', 802 path_params, 803 query_params, 804 header_params, 805 body=body_params, 806 post_params=form_params, 807 files=local_var_files, 808 response_type='SigningGroup', 809 auth_settings=auth_settings, 810 callback=params.get('callback'), 811 _return_http_data_only=params.get('_return_http_data_only'), 812 _preload_content=params.get('_preload_content', True), 813 _request_timeout=params.get('_request_timeout'), 814 collection_formats=collection_formats) 815 816 def update_list(self, account_id, **kwargs): 817 """ 818 Updates signing group names. 819 Updates the name of one or more existing signing groups. 820 This method makes a synchronous HTTP request by default. To make an 821 asynchronous HTTP request, please define a `callback` function 822 to be invoked when receiving the response. 823 >>> def callback_function(response): 824 >>> pprint(response) 825 >>> 826 >>> thread = api.update_list(account_id, callback=callback_function) 827 828 :param callback function: The callback function 829 for asynchronous request. (optional) 830 :param str account_id: The external account number (int) or account ID Guid. (required) 831 :param SigningGroupInformation signing_group_information: 832 :return: SigningGroupInformation 833 If the method is called asynchronously, 834 returns the request thread. 835 """ 836 kwargs['_return_http_data_only'] = True 837 if kwargs.get('callback'): 838 return self.update_list_with_http_info(account_id, **kwargs) 839 else: 840 (data) = self.update_list_with_http_info(account_id, **kwargs) 841 return data 842 843 def update_list_with_http_info(self, account_id, **kwargs): 844 """ 845 Updates signing group names. 846 Updates the name of one or more existing signing groups. 847 This method makes a synchronous HTTP request by default. To make an 848 asynchronous HTTP request, please define a `callback` function 849 to be invoked when receiving the response. 850 >>> def callback_function(response): 851 >>> pprint(response) 852 >>> 853 >>> thread = api.update_list_with_http_info(account_id, callback=callback_function) 854 855 :param callback function: The callback function 856 for asynchronous request. (optional) 857 :param str account_id: The external account number (int) or account ID Guid. (required) 858 :param SigningGroupInformation signing_group_information: 859 :return: SigningGroupInformation 860 If the method is called asynchronously, 861 returns the request thread. 862 """ 863 864 all_params = ['account_id', 'signing_group_information'] 865 all_params.append('callback') 866 all_params.append('_return_http_data_only') 867 all_params.append('_preload_content') 868 all_params.append('_request_timeout') 869 870 params = locals() 871 for key, val in iteritems(params['kwargs']): 872 if key not in all_params: 873 raise TypeError( 874 "Got an unexpected keyword argument '%s'" 875 " to method update_list" % key 876 ) 877 params[key] = val 878 del params['kwargs'] 879 # verify the required parameter 'account_id' is set 880 if ('account_id' not in params) or (params['account_id'] is None): 881 raise ValueError("Missing the required parameter `account_id` when calling `update_list`") 882 883 884 collection_formats = {} 885 886 resource_path = '/v2.1/accounts/{accountId}/signing_groups'.replace('{format}', 'json') 887 path_params = {} 888 if 'account_id' in params: 889 path_params['accountId'] = params['account_id'] 890 891 query_params = {} 892 893 header_params = {} 894 895 form_params = [] 896 local_var_files = {} 897 898 body_params = None 899 if 'signing_group_information' in params: 900 body_params = params['signing_group_information'] 901 # HTTP header `Accept` 902 header_params['Accept'] = self.api_client.\ 903 select_header_accept(['application/json']) 904 905 # Authentication setting 906 auth_settings = [] 907 908 return self.api_client.call_api(resource_path, 'PUT', 909 path_params, 910 query_params, 911 header_params, 912 body=body_params, 913 post_params=form_params, 914 files=local_var_files, 915 response_type='SigningGroupInformation', 916 auth_settings=auth_settings, 917 callback=params.get('callback'), 918 _return_http_data_only=params.get('_return_http_data_only'), 919 _preload_content=params.get('_preload_content', True), 920 _request_timeout=params.get('_request_timeout'), 921 collection_formats=collection_formats) 922 923 def update_users(self, account_id, signing_group_id, **kwargs): 924 """ 925 Adds members to a signing group. 926 Adds one or more new members to a signing group. A signing group can have a maximum of 50 members. 927 This method makes a synchronous HTTP request by default. To make an 928 asynchronous HTTP request, please define a `callback` function 929 to be invoked when receiving the response. 930 >>> def callback_function(response): 931 >>> pprint(response) 932 >>> 933 >>> thread = api.update_users(account_id, signing_group_id, callback=callback_function) 934 935 :param callback function: The callback function 936 for asynchronous request. (optional) 937 :param str account_id: The external account number (int) or account ID Guid. (required) 938 :param str signing_group_id: (required) 939 :param SigningGroupUsers signing_group_users: 940 :return: SigningGroupUsers 941 If the method is called asynchronously, 942 returns the request thread. 943 """ 944 kwargs['_return_http_data_only'] = True 945 if kwargs.get('callback'): 946 return self.update_users_with_http_info(account_id, signing_group_id, **kwargs) 947 else: 948 (data) = self.update_users_with_http_info(account_id, signing_group_id, **kwargs) 949 return data 950 951 def update_users_with_http_info(self, account_id, signing_group_id, **kwargs): 952 """ 953 Adds members to a signing group. 954 Adds one or more new members to a signing group. A signing group can have a maximum of 50 members. 955 This method makes a synchronous HTTP request by default. To make an 956 asynchronous HTTP request, please define a `callback` function 957 to be invoked when receiving the response. 958 >>> def callback_function(response): 959 >>> pprint(response) 960 >>> 961 >>> thread = api.update_users_with_http_info(account_id, signing_group_id, callback=callback_function) 962 963 :param callback function: The callback function 964 for asynchronous request. (optional) 965 :param str account_id: The external account number (int) or account ID Guid. (required) 966 :param str signing_group_id: (required) 967 :param SigningGroupUsers signing_group_users: 968 :return: SigningGroupUsers 969 If the method is called asynchronously, 970 returns the request thread. 971 """ 972 973 all_params = ['account_id', 'signing_group_id', 'signing_group_users'] 974 all_params.append('callback') 975 all_params.append('_return_http_data_only') 976 all_params.append('_preload_content') 977 all_params.append('_request_timeout') 978 979 params = locals() 980 for key, val in iteritems(params['kwargs']): 981 if key not in all_params: 982 raise TypeError( 983 "Got an unexpected keyword argument '%s'" 984 " to method update_users" % key 985 ) 986 params[key] = val 987 del params['kwargs'] 988 # verify the required parameter 'account_id' is set 989 if ('account_id' not in params) or (params['account_id'] is None): 990 raise ValueError("Missing the required parameter `account_id` when calling `update_users`") 991 # verify the required parameter 'signing_group_id' is set 992 if ('signing_group_id' not in params) or (params['signing_group_id'] is None): 993 raise ValueError("Missing the required parameter `signing_group_id` when calling `update_users`") 994 995 996 collection_formats = {} 997 998 resource_path = '/v2.1/accounts/{accountId}/signing_groups/{signingGroupId}/users'.replace('{format}', 'json') 999 path_params = {} 1000 if 'account_id' in params: 1001 path_params['accountId'] = params['account_id'] 1002 if 'signing_group_id' in params: 1003 path_params['signingGroupId'] = params['signing_group_id'] 1004 1005 query_params = {} 1006 1007 header_params = {} 1008 1009 form_params = [] 1010 local_var_files = {} 1011 1012 body_params = None 1013 if 'signing_group_users' in params: 1014 body_params = params['signing_group_users'] 1015 # HTTP header `Accept` 1016 header_params['Accept'] = self.api_client.\ 1017 select_header_accept(['application/json']) 1018 1019 # Authentication setting 1020 auth_settings = [] 1021 1022 return self.api_client.call_api(resource_path, 'PUT', 1023 path_params, 1024 query_params, 1025 header_params, 1026 body=body_params, 1027 post_params=form_params, 1028 files=local_var_files, 1029 response_type='SigningGroupUsers', 1030 auth_settings=auth_settings, 1031 callback=params.get('callback'), 1032 _return_http_data_only=params.get('_return_http_data_only'), 1033 _preload_content=params.get('_preload_content', True), 1034 _request_timeout=params.get('_request_timeout'), 1035 collection_formats=collection_formats)
28class SigningGroupsApi(object): 29 """ 30 NOTE: This class is auto generated by the swagger code generator program. 31 Do not edit the class manually. 32 Ref: https://github.com/swagger-api/swagger-codegen 33 """ 34 35 def __init__(self, api_client=None): 36 config = Configuration() 37 if api_client: 38 self.api_client = api_client 39 else: 40 if not config.api_client: 41 config.api_client = ApiClient() 42 self.api_client = config.api_client 43 44 def create_list(self, account_id, **kwargs): 45 """ 46 Creates a signing group. 47 Creates one or more signing groups. Multiple signing groups can be created in one call. Only users with account administrator privileges can create signing groups. An account can have a maximum of 50 signing groups. Each signing group can have a maximum of 50 group members. Signing groups can be used by any account user. 48 This method makes a synchronous HTTP request by default. To make an 49 asynchronous HTTP request, please define a `callback` function 50 to be invoked when receiving the response. 51 >>> def callback_function(response): 52 >>> pprint(response) 53 >>> 54 >>> thread = api.create_list(account_id, callback=callback_function) 55 56 :param callback function: The callback function 57 for asynchronous request. (optional) 58 :param str account_id: The external account number (int) or account ID Guid. (required) 59 :param SigningGroupInformation signing_group_information: 60 :return: SigningGroupInformation 61 If the method is called asynchronously, 62 returns the request thread. 63 """ 64 kwargs['_return_http_data_only'] = True 65 if kwargs.get('callback'): 66 return self.create_list_with_http_info(account_id, **kwargs) 67 else: 68 (data) = self.create_list_with_http_info(account_id, **kwargs) 69 return data 70 71 def create_list_with_http_info(self, account_id, **kwargs): 72 """ 73 Creates a signing group. 74 Creates one or more signing groups. Multiple signing groups can be created in one call. Only users with account administrator privileges can create signing groups. An account can have a maximum of 50 signing groups. Each signing group can have a maximum of 50 group members. Signing groups can be used by any account user. 75 This method makes a synchronous HTTP request by default. To make an 76 asynchronous HTTP request, please define a `callback` function 77 to be invoked when receiving the response. 78 >>> def callback_function(response): 79 >>> pprint(response) 80 >>> 81 >>> thread = api.create_list_with_http_info(account_id, callback=callback_function) 82 83 :param callback function: The callback function 84 for asynchronous request. (optional) 85 :param str account_id: The external account number (int) or account ID Guid. (required) 86 :param SigningGroupInformation signing_group_information: 87 :return: SigningGroupInformation 88 If the method is called asynchronously, 89 returns the request thread. 90 """ 91 92 all_params = ['account_id', 'signing_group_information'] 93 all_params.append('callback') 94 all_params.append('_return_http_data_only') 95 all_params.append('_preload_content') 96 all_params.append('_request_timeout') 97 98 params = locals() 99 for key, val in iteritems(params['kwargs']): 100 if key not in all_params: 101 raise TypeError( 102 "Got an unexpected keyword argument '%s'" 103 " to method create_list" % key 104 ) 105 params[key] = val 106 del params['kwargs'] 107 # verify the required parameter 'account_id' is set 108 if ('account_id' not in params) or (params['account_id'] is None): 109 raise ValueError("Missing the required parameter `account_id` when calling `create_list`") 110 111 112 collection_formats = {} 113 114 resource_path = '/v2.1/accounts/{accountId}/signing_groups'.replace('{format}', 'json') 115 path_params = {} 116 if 'account_id' in params: 117 path_params['accountId'] = params['account_id'] 118 119 query_params = {} 120 121 header_params = {} 122 123 form_params = [] 124 local_var_files = {} 125 126 body_params = None 127 if 'signing_group_information' in params: 128 body_params = params['signing_group_information'] 129 # HTTP header `Accept` 130 header_params['Accept'] = self.api_client.\ 131 select_header_accept(['application/json']) 132 133 # Authentication setting 134 auth_settings = [] 135 136 return self.api_client.call_api(resource_path, 'POST', 137 path_params, 138 query_params, 139 header_params, 140 body=body_params, 141 post_params=form_params, 142 files=local_var_files, 143 response_type='SigningGroupInformation', 144 auth_settings=auth_settings, 145 callback=params.get('callback'), 146 _return_http_data_only=params.get('_return_http_data_only'), 147 _preload_content=params.get('_preload_content', True), 148 _request_timeout=params.get('_request_timeout'), 149 collection_formats=collection_formats) 150 151 def delete_list(self, account_id, **kwargs): 152 """ 153 Deletes one or more signing groups. 154 Deletes one or more signing groups in the specified account. 155 This method makes a synchronous HTTP request by default. To make an 156 asynchronous HTTP request, please define a `callback` function 157 to be invoked when receiving the response. 158 >>> def callback_function(response): 159 >>> pprint(response) 160 >>> 161 >>> thread = api.delete_list(account_id, callback=callback_function) 162 163 :param callback function: The callback function 164 for asynchronous request. (optional) 165 :param str account_id: The external account number (int) or account ID Guid. (required) 166 :param SigningGroupInformation signing_group_information: 167 :return: SigningGroupInformation 168 If the method is called asynchronously, 169 returns the request thread. 170 """ 171 kwargs['_return_http_data_only'] = True 172 if kwargs.get('callback'): 173 return self.delete_list_with_http_info(account_id, **kwargs) 174 else: 175 (data) = self.delete_list_with_http_info(account_id, **kwargs) 176 return data 177 178 def delete_list_with_http_info(self, account_id, **kwargs): 179 """ 180 Deletes one or more signing groups. 181 Deletes one or more signing groups in the specified account. 182 This method makes a synchronous HTTP request by default. To make an 183 asynchronous HTTP request, please define a `callback` function 184 to be invoked when receiving the response. 185 >>> def callback_function(response): 186 >>> pprint(response) 187 >>> 188 >>> thread = api.delete_list_with_http_info(account_id, callback=callback_function) 189 190 :param callback function: The callback function 191 for asynchronous request. (optional) 192 :param str account_id: The external account number (int) or account ID Guid. (required) 193 :param SigningGroupInformation signing_group_information: 194 :return: SigningGroupInformation 195 If the method is called asynchronously, 196 returns the request thread. 197 """ 198 199 all_params = ['account_id', 'signing_group_information'] 200 all_params.append('callback') 201 all_params.append('_return_http_data_only') 202 all_params.append('_preload_content') 203 all_params.append('_request_timeout') 204 205 params = locals() 206 for key, val in iteritems(params['kwargs']): 207 if key not in all_params: 208 raise TypeError( 209 "Got an unexpected keyword argument '%s'" 210 " to method delete_list" % key 211 ) 212 params[key] = val 213 del params['kwargs'] 214 # verify the required parameter 'account_id' is set 215 if ('account_id' not in params) or (params['account_id'] is None): 216 raise ValueError("Missing the required parameter `account_id` when calling `delete_list`") 217 218 219 collection_formats = {} 220 221 resource_path = '/v2.1/accounts/{accountId}/signing_groups'.replace('{format}', 'json') 222 path_params = {} 223 if 'account_id' in params: 224 path_params['accountId'] = params['account_id'] 225 226 query_params = {} 227 228 header_params = {} 229 230 form_params = [] 231 local_var_files = {} 232 233 body_params = None 234 if 'signing_group_information' in params: 235 body_params = params['signing_group_information'] 236 # HTTP header `Accept` 237 header_params['Accept'] = self.api_client.\ 238 select_header_accept(['application/json']) 239 240 # Authentication setting 241 auth_settings = [] 242 243 return self.api_client.call_api(resource_path, 'DELETE', 244 path_params, 245 query_params, 246 header_params, 247 body=body_params, 248 post_params=form_params, 249 files=local_var_files, 250 response_type='SigningGroupInformation', 251 auth_settings=auth_settings, 252 callback=params.get('callback'), 253 _return_http_data_only=params.get('_return_http_data_only'), 254 _preload_content=params.get('_preload_content', True), 255 _request_timeout=params.get('_request_timeout'), 256 collection_formats=collection_formats) 257 258 def delete_users(self, account_id, signing_group_id, **kwargs): 259 """ 260 Deletes one or more members from a signing group. 261 Deletes one or more members from the specified signing group. 262 This method makes a synchronous HTTP request by default. To make an 263 asynchronous HTTP request, please define a `callback` function 264 to be invoked when receiving the response. 265 >>> def callback_function(response): 266 >>> pprint(response) 267 >>> 268 >>> thread = api.delete_users(account_id, signing_group_id, callback=callback_function) 269 270 :param callback function: The callback function 271 for asynchronous request. (optional) 272 :param str account_id: The external account number (int) or account ID Guid. (required) 273 :param str signing_group_id: (required) 274 :param SigningGroupUsers signing_group_users: 275 :return: SigningGroupUsers 276 If the method is called asynchronously, 277 returns the request thread. 278 """ 279 kwargs['_return_http_data_only'] = True 280 if kwargs.get('callback'): 281 return self.delete_users_with_http_info(account_id, signing_group_id, **kwargs) 282 else: 283 (data) = self.delete_users_with_http_info(account_id, signing_group_id, **kwargs) 284 return data 285 286 def delete_users_with_http_info(self, account_id, signing_group_id, **kwargs): 287 """ 288 Deletes one or more members from a signing group. 289 Deletes one or more members from the specified signing group. 290 This method makes a synchronous HTTP request by default. To make an 291 asynchronous HTTP request, please define a `callback` function 292 to be invoked when receiving the response. 293 >>> def callback_function(response): 294 >>> pprint(response) 295 >>> 296 >>> thread = api.delete_users_with_http_info(account_id, signing_group_id, callback=callback_function) 297 298 :param callback function: The callback function 299 for asynchronous request. (optional) 300 :param str account_id: The external account number (int) or account ID Guid. (required) 301 :param str signing_group_id: (required) 302 :param SigningGroupUsers signing_group_users: 303 :return: SigningGroupUsers 304 If the method is called asynchronously, 305 returns the request thread. 306 """ 307 308 all_params = ['account_id', 'signing_group_id', 'signing_group_users'] 309 all_params.append('callback') 310 all_params.append('_return_http_data_only') 311 all_params.append('_preload_content') 312 all_params.append('_request_timeout') 313 314 params = locals() 315 for key, val in iteritems(params['kwargs']): 316 if key not in all_params: 317 raise TypeError( 318 "Got an unexpected keyword argument '%s'" 319 " to method delete_users" % key 320 ) 321 params[key] = val 322 del params['kwargs'] 323 # verify the required parameter 'account_id' is set 324 if ('account_id' not in params) or (params['account_id'] is None): 325 raise ValueError("Missing the required parameter `account_id` when calling `delete_users`") 326 # verify the required parameter 'signing_group_id' is set 327 if ('signing_group_id' not in params) or (params['signing_group_id'] is None): 328 raise ValueError("Missing the required parameter `signing_group_id` when calling `delete_users`") 329 330 331 collection_formats = {} 332 333 resource_path = '/v2.1/accounts/{accountId}/signing_groups/{signingGroupId}/users'.replace('{format}', 'json') 334 path_params = {} 335 if 'account_id' in params: 336 path_params['accountId'] = params['account_id'] 337 if 'signing_group_id' in params: 338 path_params['signingGroupId'] = params['signing_group_id'] 339 340 query_params = {} 341 342 header_params = {} 343 344 form_params = [] 345 local_var_files = {} 346 347 body_params = None 348 if 'signing_group_users' in params: 349 body_params = params['signing_group_users'] 350 # HTTP header `Accept` 351 header_params['Accept'] = self.api_client.\ 352 select_header_accept(['application/json']) 353 354 # Authentication setting 355 auth_settings = [] 356 357 return self.api_client.call_api(resource_path, 'DELETE', 358 path_params, 359 query_params, 360 header_params, 361 body=body_params, 362 post_params=form_params, 363 files=local_var_files, 364 response_type='SigningGroupUsers', 365 auth_settings=auth_settings, 366 callback=params.get('callback'), 367 _return_http_data_only=params.get('_return_http_data_only'), 368 _preload_content=params.get('_preload_content', True), 369 _request_timeout=params.get('_request_timeout'), 370 collection_formats=collection_formats) 371 372 def get(self, account_id, signing_group_id, **kwargs): 373 """ 374 Gets information about a signing group. 375 Retrieves information, including group member information, for the specified signing group. 376 This method makes a synchronous HTTP request by default. To make an 377 asynchronous HTTP request, please define a `callback` function 378 to be invoked when receiving the response. 379 >>> def callback_function(response): 380 >>> pprint(response) 381 >>> 382 >>> thread = api.get(account_id, signing_group_id, callback=callback_function) 383 384 :param callback function: The callback function 385 for asynchronous request. (optional) 386 :param str account_id: The external account number (int) or account ID Guid. (required) 387 :param str signing_group_id: (required) 388 :return: SigningGroup 389 If the method is called asynchronously, 390 returns the request thread. 391 """ 392 kwargs['_return_http_data_only'] = True 393 if kwargs.get('callback'): 394 return self.get_with_http_info(account_id, signing_group_id, **kwargs) 395 else: 396 (data) = self.get_with_http_info(account_id, signing_group_id, **kwargs) 397 return data 398 399 def get_with_http_info(self, account_id, signing_group_id, **kwargs): 400 """ 401 Gets information about a signing group. 402 Retrieves information, including group member information, for the specified signing group. 403 This method makes a synchronous HTTP request by default. To make an 404 asynchronous HTTP request, please define a `callback` function 405 to be invoked when receiving the response. 406 >>> def callback_function(response): 407 >>> pprint(response) 408 >>> 409 >>> thread = api.get_with_http_info(account_id, signing_group_id, callback=callback_function) 410 411 :param callback function: The callback function 412 for asynchronous request. (optional) 413 :param str account_id: The external account number (int) or account ID Guid. (required) 414 :param str signing_group_id: (required) 415 :return: SigningGroup 416 If the method is called asynchronously, 417 returns the request thread. 418 """ 419 420 all_params = ['account_id', 'signing_group_id'] 421 all_params.append('callback') 422 all_params.append('_return_http_data_only') 423 all_params.append('_preload_content') 424 all_params.append('_request_timeout') 425 426 params = locals() 427 for key, val in iteritems(params['kwargs']): 428 if key not in all_params: 429 raise TypeError( 430 "Got an unexpected keyword argument '%s'" 431 " to method get" % key 432 ) 433 params[key] = val 434 del params['kwargs'] 435 # verify the required parameter 'account_id' is set 436 if ('account_id' not in params) or (params['account_id'] is None): 437 raise ValueError("Missing the required parameter `account_id` when calling `get`") 438 # verify the required parameter 'signing_group_id' is set 439 if ('signing_group_id' not in params) or (params['signing_group_id'] is None): 440 raise ValueError("Missing the required parameter `signing_group_id` when calling `get`") 441 442 443 collection_formats = {} 444 445 resource_path = '/v2.1/accounts/{accountId}/signing_groups/{signingGroupId}'.replace('{format}', 'json') 446 path_params = {} 447 if 'account_id' in params: 448 path_params['accountId'] = params['account_id'] 449 if 'signing_group_id' in params: 450 path_params['signingGroupId'] = params['signing_group_id'] 451 452 query_params = {} 453 454 header_params = {} 455 456 form_params = [] 457 local_var_files = {} 458 459 body_params = None 460 # HTTP header `Accept` 461 header_params['Accept'] = self.api_client.\ 462 select_header_accept(['application/json']) 463 464 # Authentication setting 465 auth_settings = [] 466 467 return self.api_client.call_api(resource_path, 'GET', 468 path_params, 469 query_params, 470 header_params, 471 body=body_params, 472 post_params=form_params, 473 files=local_var_files, 474 response_type='SigningGroup', 475 auth_settings=auth_settings, 476 callback=params.get('callback'), 477 _return_http_data_only=params.get('_return_http_data_only'), 478 _preload_content=params.get('_preload_content', True), 479 _request_timeout=params.get('_request_timeout'), 480 collection_formats=collection_formats) 481 482 def list(self, account_id, **kwargs): 483 """ 484 Gets a list of the Signing Groups in an account. 485 Retrieves a list of all signing groups in the specified account. 486 This method makes a synchronous HTTP request by default. To make an 487 asynchronous HTTP request, please define a `callback` function 488 to be invoked when receiving the response. 489 >>> def callback_function(response): 490 >>> pprint(response) 491 >>> 492 >>> thread = api.list(account_id, callback=callback_function) 493 494 :param callback function: The callback function 495 for asynchronous request. (optional) 496 :param str account_id: The external account number (int) or account ID Guid. (required) 497 :param str group_type: 498 :param str include_users: When set to **true**, the response includes the signing group members. 499 :return: SigningGroupInformation 500 If the method is called asynchronously, 501 returns the request thread. 502 """ 503 kwargs['_return_http_data_only'] = True 504 if kwargs.get('callback'): 505 return self.list_with_http_info(account_id, **kwargs) 506 else: 507 (data) = self.list_with_http_info(account_id, **kwargs) 508 return data 509 510 def list_with_http_info(self, account_id, **kwargs): 511 """ 512 Gets a list of the Signing Groups in an account. 513 Retrieves a list of all signing groups in the specified account. 514 This method makes a synchronous HTTP request by default. To make an 515 asynchronous HTTP request, please define a `callback` function 516 to be invoked when receiving the response. 517 >>> def callback_function(response): 518 >>> pprint(response) 519 >>> 520 >>> thread = api.list_with_http_info(account_id, callback=callback_function) 521 522 :param callback function: The callback function 523 for asynchronous request. (optional) 524 :param str account_id: The external account number (int) or account ID Guid. (required) 525 :param str group_type: 526 :param str include_users: When set to **true**, the response includes the signing group members. 527 :return: SigningGroupInformation 528 If the method is called asynchronously, 529 returns the request thread. 530 """ 531 532 all_params = ['account_id', 'group_type', 'include_users'] 533 all_params.append('callback') 534 all_params.append('_return_http_data_only') 535 all_params.append('_preload_content') 536 all_params.append('_request_timeout') 537 538 params = locals() 539 for key, val in iteritems(params['kwargs']): 540 if key not in all_params: 541 raise TypeError( 542 "Got an unexpected keyword argument '%s'" 543 " to method list" % key 544 ) 545 params[key] = val 546 del params['kwargs'] 547 # verify the required parameter 'account_id' is set 548 if ('account_id' not in params) or (params['account_id'] is None): 549 raise ValueError("Missing the required parameter `account_id` when calling `list`") 550 551 552 collection_formats = {} 553 554 resource_path = '/v2.1/accounts/{accountId}/signing_groups'.replace('{format}', 'json') 555 path_params = {} 556 if 'account_id' in params: 557 path_params['accountId'] = params['account_id'] 558 559 query_params = {} 560 if 'group_type' in params: 561 query_params['group_type'] = params['group_type'] 562 if 'include_users' in params: 563 query_params['include_users'] = params['include_users'] 564 565 header_params = {} 566 567 form_params = [] 568 local_var_files = {} 569 570 body_params = None 571 # HTTP header `Accept` 572 header_params['Accept'] = self.api_client.\ 573 select_header_accept(['application/json']) 574 575 # Authentication setting 576 auth_settings = [] 577 578 return self.api_client.call_api(resource_path, 'GET', 579 path_params, 580 query_params, 581 header_params, 582 body=body_params, 583 post_params=form_params, 584 files=local_var_files, 585 response_type='SigningGroupInformation', 586 auth_settings=auth_settings, 587 callback=params.get('callback'), 588 _return_http_data_only=params.get('_return_http_data_only'), 589 _preload_content=params.get('_preload_content', True), 590 _request_timeout=params.get('_request_timeout'), 591 collection_formats=collection_formats) 592 593 def list_users(self, account_id, signing_group_id, **kwargs): 594 """ 595 Gets a list of members in a Signing Group. 596 Retrieves the list of members in the specified Signing Group. 597 This method makes a synchronous HTTP request by default. To make an 598 asynchronous HTTP request, please define a `callback` function 599 to be invoked when receiving the response. 600 >>> def callback_function(response): 601 >>> pprint(response) 602 >>> 603 >>> thread = api.list_users(account_id, signing_group_id, callback=callback_function) 604 605 :param callback function: The callback function 606 for asynchronous request. (optional) 607 :param str account_id: The external account number (int) or account ID Guid. (required) 608 :param str signing_group_id: (required) 609 :return: SigningGroupUsers 610 If the method is called asynchronously, 611 returns the request thread. 612 """ 613 kwargs['_return_http_data_only'] = True 614 if kwargs.get('callback'): 615 return self.list_users_with_http_info(account_id, signing_group_id, **kwargs) 616 else: 617 (data) = self.list_users_with_http_info(account_id, signing_group_id, **kwargs) 618 return data 619 620 def list_users_with_http_info(self, account_id, signing_group_id, **kwargs): 621 """ 622 Gets a list of members in a Signing Group. 623 Retrieves the list of members in the specified Signing Group. 624 This method makes a synchronous HTTP request by default. To make an 625 asynchronous HTTP request, please define a `callback` function 626 to be invoked when receiving the response. 627 >>> def callback_function(response): 628 >>> pprint(response) 629 >>> 630 >>> thread = api.list_users_with_http_info(account_id, signing_group_id, callback=callback_function) 631 632 :param callback function: The callback function 633 for asynchronous request. (optional) 634 :param str account_id: The external account number (int) or account ID Guid. (required) 635 :param str signing_group_id: (required) 636 :return: SigningGroupUsers 637 If the method is called asynchronously, 638 returns the request thread. 639 """ 640 641 all_params = ['account_id', 'signing_group_id'] 642 all_params.append('callback') 643 all_params.append('_return_http_data_only') 644 all_params.append('_preload_content') 645 all_params.append('_request_timeout') 646 647 params = locals() 648 for key, val in iteritems(params['kwargs']): 649 if key not in all_params: 650 raise TypeError( 651 "Got an unexpected keyword argument '%s'" 652 " to method list_users" % key 653 ) 654 params[key] = val 655 del params['kwargs'] 656 # verify the required parameter 'account_id' is set 657 if ('account_id' not in params) or (params['account_id'] is None): 658 raise ValueError("Missing the required parameter `account_id` when calling `list_users`") 659 # verify the required parameter 'signing_group_id' is set 660 if ('signing_group_id' not in params) or (params['signing_group_id'] is None): 661 raise ValueError("Missing the required parameter `signing_group_id` when calling `list_users`") 662 663 664 collection_formats = {} 665 666 resource_path = '/v2.1/accounts/{accountId}/signing_groups/{signingGroupId}/users'.replace('{format}', 'json') 667 path_params = {} 668 if 'account_id' in params: 669 path_params['accountId'] = params['account_id'] 670 if 'signing_group_id' in params: 671 path_params['signingGroupId'] = params['signing_group_id'] 672 673 query_params = {} 674 675 header_params = {} 676 677 form_params = [] 678 local_var_files = {} 679 680 body_params = None 681 # HTTP header `Accept` 682 header_params['Accept'] = self.api_client.\ 683 select_header_accept(['application/json']) 684 685 # Authentication setting 686 auth_settings = [] 687 688 return self.api_client.call_api(resource_path, 'GET', 689 path_params, 690 query_params, 691 header_params, 692 body=body_params, 693 post_params=form_params, 694 files=local_var_files, 695 response_type='SigningGroupUsers', 696 auth_settings=auth_settings, 697 callback=params.get('callback'), 698 _return_http_data_only=params.get('_return_http_data_only'), 699 _preload_content=params.get('_preload_content', True), 700 _request_timeout=params.get('_request_timeout'), 701 collection_formats=collection_formats) 702 703 def update(self, account_id, signing_group_id, **kwargs): 704 """ 705 Updates a signing group. 706 Updates signing group name and member information. You can also add new members to the signing group. A signing group can have a maximum of 50 members. 707 This method makes a synchronous HTTP request by default. To make an 708 asynchronous HTTP request, please define a `callback` function 709 to be invoked when receiving the response. 710 >>> def callback_function(response): 711 >>> pprint(response) 712 >>> 713 >>> thread = api.update(account_id, signing_group_id, callback=callback_function) 714 715 :param callback function: The callback function 716 for asynchronous request. (optional) 717 :param str account_id: The external account number (int) or account ID Guid. (required) 718 :param str signing_group_id: (required) 719 :param SigningGroup signing_group: 720 :return: SigningGroup 721 If the method is called asynchronously, 722 returns the request thread. 723 """ 724 kwargs['_return_http_data_only'] = True 725 if kwargs.get('callback'): 726 return self.update_with_http_info(account_id, signing_group_id, **kwargs) 727 else: 728 (data) = self.update_with_http_info(account_id, signing_group_id, **kwargs) 729 return data 730 731 def update_with_http_info(self, account_id, signing_group_id, **kwargs): 732 """ 733 Updates a signing group. 734 Updates signing group name and member information. You can also add new members to the signing group. A signing group can have a maximum of 50 members. 735 This method makes a synchronous HTTP request by default. To make an 736 asynchronous HTTP request, please define a `callback` function 737 to be invoked when receiving the response. 738 >>> def callback_function(response): 739 >>> pprint(response) 740 >>> 741 >>> thread = api.update_with_http_info(account_id, signing_group_id, callback=callback_function) 742 743 :param callback function: The callback function 744 for asynchronous request. (optional) 745 :param str account_id: The external account number (int) or account ID Guid. (required) 746 :param str signing_group_id: (required) 747 :param SigningGroup signing_group: 748 :return: SigningGroup 749 If the method is called asynchronously, 750 returns the request thread. 751 """ 752 753 all_params = ['account_id', 'signing_group_id', 'signing_group'] 754 all_params.append('callback') 755 all_params.append('_return_http_data_only') 756 all_params.append('_preload_content') 757 all_params.append('_request_timeout') 758 759 params = locals() 760 for key, val in iteritems(params['kwargs']): 761 if key not in all_params: 762 raise TypeError( 763 "Got an unexpected keyword argument '%s'" 764 " to method update" % key 765 ) 766 params[key] = val 767 del params['kwargs'] 768 # verify the required parameter 'account_id' is set 769 if ('account_id' not in params) or (params['account_id'] is None): 770 raise ValueError("Missing the required parameter `account_id` when calling `update`") 771 # verify the required parameter 'signing_group_id' is set 772 if ('signing_group_id' not in params) or (params['signing_group_id'] is None): 773 raise ValueError("Missing the required parameter `signing_group_id` when calling `update`") 774 775 776 collection_formats = {} 777 778 resource_path = '/v2.1/accounts/{accountId}/signing_groups/{signingGroupId}'.replace('{format}', 'json') 779 path_params = {} 780 if 'account_id' in params: 781 path_params['accountId'] = params['account_id'] 782 if 'signing_group_id' in params: 783 path_params['signingGroupId'] = params['signing_group_id'] 784 785 query_params = {} 786 787 header_params = {} 788 789 form_params = [] 790 local_var_files = {} 791 792 body_params = None 793 if 'signing_group' in params: 794 body_params = params['signing_group'] 795 # HTTP header `Accept` 796 header_params['Accept'] = self.api_client.\ 797 select_header_accept(['application/json']) 798 799 # Authentication setting 800 auth_settings = [] 801 802 return self.api_client.call_api(resource_path, 'PUT', 803 path_params, 804 query_params, 805 header_params, 806 body=body_params, 807 post_params=form_params, 808 files=local_var_files, 809 response_type='SigningGroup', 810 auth_settings=auth_settings, 811 callback=params.get('callback'), 812 _return_http_data_only=params.get('_return_http_data_only'), 813 _preload_content=params.get('_preload_content', True), 814 _request_timeout=params.get('_request_timeout'), 815 collection_formats=collection_formats) 816 817 def update_list(self, account_id, **kwargs): 818 """ 819 Updates signing group names. 820 Updates the name of one or more existing signing groups. 821 This method makes a synchronous HTTP request by default. To make an 822 asynchronous HTTP request, please define a `callback` function 823 to be invoked when receiving the response. 824 >>> def callback_function(response): 825 >>> pprint(response) 826 >>> 827 >>> thread = api.update_list(account_id, callback=callback_function) 828 829 :param callback function: The callback function 830 for asynchronous request. (optional) 831 :param str account_id: The external account number (int) or account ID Guid. (required) 832 :param SigningGroupInformation signing_group_information: 833 :return: SigningGroupInformation 834 If the method is called asynchronously, 835 returns the request thread. 836 """ 837 kwargs['_return_http_data_only'] = True 838 if kwargs.get('callback'): 839 return self.update_list_with_http_info(account_id, **kwargs) 840 else: 841 (data) = self.update_list_with_http_info(account_id, **kwargs) 842 return data 843 844 def update_list_with_http_info(self, account_id, **kwargs): 845 """ 846 Updates signing group names. 847 Updates the name of one or more existing signing groups. 848 This method makes a synchronous HTTP request by default. To make an 849 asynchronous HTTP request, please define a `callback` function 850 to be invoked when receiving the response. 851 >>> def callback_function(response): 852 >>> pprint(response) 853 >>> 854 >>> thread = api.update_list_with_http_info(account_id, callback=callback_function) 855 856 :param callback function: The callback function 857 for asynchronous request. (optional) 858 :param str account_id: The external account number (int) or account ID Guid. (required) 859 :param SigningGroupInformation signing_group_information: 860 :return: SigningGroupInformation 861 If the method is called asynchronously, 862 returns the request thread. 863 """ 864 865 all_params = ['account_id', 'signing_group_information'] 866 all_params.append('callback') 867 all_params.append('_return_http_data_only') 868 all_params.append('_preload_content') 869 all_params.append('_request_timeout') 870 871 params = locals() 872 for key, val in iteritems(params['kwargs']): 873 if key not in all_params: 874 raise TypeError( 875 "Got an unexpected keyword argument '%s'" 876 " to method update_list" % key 877 ) 878 params[key] = val 879 del params['kwargs'] 880 # verify the required parameter 'account_id' is set 881 if ('account_id' not in params) or (params['account_id'] is None): 882 raise ValueError("Missing the required parameter `account_id` when calling `update_list`") 883 884 885 collection_formats = {} 886 887 resource_path = '/v2.1/accounts/{accountId}/signing_groups'.replace('{format}', 'json') 888 path_params = {} 889 if 'account_id' in params: 890 path_params['accountId'] = params['account_id'] 891 892 query_params = {} 893 894 header_params = {} 895 896 form_params = [] 897 local_var_files = {} 898 899 body_params = None 900 if 'signing_group_information' in params: 901 body_params = params['signing_group_information'] 902 # HTTP header `Accept` 903 header_params['Accept'] = self.api_client.\ 904 select_header_accept(['application/json']) 905 906 # Authentication setting 907 auth_settings = [] 908 909 return self.api_client.call_api(resource_path, 'PUT', 910 path_params, 911 query_params, 912 header_params, 913 body=body_params, 914 post_params=form_params, 915 files=local_var_files, 916 response_type='SigningGroupInformation', 917 auth_settings=auth_settings, 918 callback=params.get('callback'), 919 _return_http_data_only=params.get('_return_http_data_only'), 920 _preload_content=params.get('_preload_content', True), 921 _request_timeout=params.get('_request_timeout'), 922 collection_formats=collection_formats) 923 924 def update_users(self, account_id, signing_group_id, **kwargs): 925 """ 926 Adds members to a signing group. 927 Adds one or more new members to a signing group. A signing group can have a maximum of 50 members. 928 This method makes a synchronous HTTP request by default. To make an 929 asynchronous HTTP request, please define a `callback` function 930 to be invoked when receiving the response. 931 >>> def callback_function(response): 932 >>> pprint(response) 933 >>> 934 >>> thread = api.update_users(account_id, signing_group_id, callback=callback_function) 935 936 :param callback function: The callback function 937 for asynchronous request. (optional) 938 :param str account_id: The external account number (int) or account ID Guid. (required) 939 :param str signing_group_id: (required) 940 :param SigningGroupUsers signing_group_users: 941 :return: SigningGroupUsers 942 If the method is called asynchronously, 943 returns the request thread. 944 """ 945 kwargs['_return_http_data_only'] = True 946 if kwargs.get('callback'): 947 return self.update_users_with_http_info(account_id, signing_group_id, **kwargs) 948 else: 949 (data) = self.update_users_with_http_info(account_id, signing_group_id, **kwargs) 950 return data 951 952 def update_users_with_http_info(self, account_id, signing_group_id, **kwargs): 953 """ 954 Adds members to a signing group. 955 Adds one or more new members to a signing group. A signing group can have a maximum of 50 members. 956 This method makes a synchronous HTTP request by default. To make an 957 asynchronous HTTP request, please define a `callback` function 958 to be invoked when receiving the response. 959 >>> def callback_function(response): 960 >>> pprint(response) 961 >>> 962 >>> thread = api.update_users_with_http_info(account_id, signing_group_id, callback=callback_function) 963 964 :param callback function: The callback function 965 for asynchronous request. (optional) 966 :param str account_id: The external account number (int) or account ID Guid. (required) 967 :param str signing_group_id: (required) 968 :param SigningGroupUsers signing_group_users: 969 :return: SigningGroupUsers 970 If the method is called asynchronously, 971 returns the request thread. 972 """ 973 974 all_params = ['account_id', 'signing_group_id', 'signing_group_users'] 975 all_params.append('callback') 976 all_params.append('_return_http_data_only') 977 all_params.append('_preload_content') 978 all_params.append('_request_timeout') 979 980 params = locals() 981 for key, val in iteritems(params['kwargs']): 982 if key not in all_params: 983 raise TypeError( 984 "Got an unexpected keyword argument '%s'" 985 " to method update_users" % key 986 ) 987 params[key] = val 988 del params['kwargs'] 989 # verify the required parameter 'account_id' is set 990 if ('account_id' not in params) or (params['account_id'] is None): 991 raise ValueError("Missing the required parameter `account_id` when calling `update_users`") 992 # verify the required parameter 'signing_group_id' is set 993 if ('signing_group_id' not in params) or (params['signing_group_id'] is None): 994 raise ValueError("Missing the required parameter `signing_group_id` when calling `update_users`") 995 996 997 collection_formats = {} 998 999 resource_path = '/v2.1/accounts/{accountId}/signing_groups/{signingGroupId}/users'.replace('{format}', 'json') 1000 path_params = {} 1001 if 'account_id' in params: 1002 path_params['accountId'] = params['account_id'] 1003 if 'signing_group_id' in params: 1004 path_params['signingGroupId'] = params['signing_group_id'] 1005 1006 query_params = {} 1007 1008 header_params = {} 1009 1010 form_params = [] 1011 local_var_files = {} 1012 1013 body_params = None 1014 if 'signing_group_users' in params: 1015 body_params = params['signing_group_users'] 1016 # HTTP header `Accept` 1017 header_params['Accept'] = self.api_client.\ 1018 select_header_accept(['application/json']) 1019 1020 # Authentication setting 1021 auth_settings = [] 1022 1023 return self.api_client.call_api(resource_path, 'PUT', 1024 path_params, 1025 query_params, 1026 header_params, 1027 body=body_params, 1028 post_params=form_params, 1029 files=local_var_files, 1030 response_type='SigningGroupUsers', 1031 auth_settings=auth_settings, 1032 callback=params.get('callback'), 1033 _return_http_data_only=params.get('_return_http_data_only'), 1034 _preload_content=params.get('_preload_content', True), 1035 _request_timeout=params.get('_request_timeout'), 1036 collection_formats=collection_formats)
NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. Ref: https://github.com/swagger-api/swagger-codegen
44 def create_list(self, account_id, **kwargs): 45 """ 46 Creates a signing group. 47 Creates one or more signing groups. Multiple signing groups can be created in one call. Only users with account administrator privileges can create signing groups. An account can have a maximum of 50 signing groups. Each signing group can have a maximum of 50 group members. Signing groups can be used by any account user. 48 This method makes a synchronous HTTP request by default. To make an 49 asynchronous HTTP request, please define a `callback` function 50 to be invoked when receiving the response. 51 >>> def callback_function(response): 52 >>> pprint(response) 53 >>> 54 >>> thread = api.create_list(account_id, callback=callback_function) 55 56 :param callback function: The callback function 57 for asynchronous request. (optional) 58 :param str account_id: The external account number (int) or account ID Guid. (required) 59 :param SigningGroupInformation signing_group_information: 60 :return: SigningGroupInformation 61 If the method is called asynchronously, 62 returns the request thread. 63 """ 64 kwargs['_return_http_data_only'] = True 65 if kwargs.get('callback'): 66 return self.create_list_with_http_info(account_id, **kwargs) 67 else: 68 (data) = self.create_list_with_http_info(account_id, **kwargs) 69 return data
Creates a signing group.
Creates one or more signing groups. Multiple signing groups can be created in one call. Only users with account administrator privileges can create signing groups. An account can have a maximum of 50 signing groups. Each signing group can have a maximum of 50 group members. Signing groups can be used by any account user.
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please define a callback
function
to be invoked when receiving the response.
>>> def callback_function(response):
>>> pprint(response)
>>>
>>> thread = api.create_list(account_id, callback=callback_function)
Parameters
- callback function: The callback function for asynchronous request. (optional)
- str account_id: The external account number (int) or account ID Guid. (required)
- SigningGroupInformation signing_group_information:
Returns
SigningGroupInformation If the method is called asynchronously, returns the request thread.
71 def create_list_with_http_info(self, account_id, **kwargs): 72 """ 73 Creates a signing group. 74 Creates one or more signing groups. Multiple signing groups can be created in one call. Only users with account administrator privileges can create signing groups. An account can have a maximum of 50 signing groups. Each signing group can have a maximum of 50 group members. Signing groups can be used by any account user. 75 This method makes a synchronous HTTP request by default. To make an 76 asynchronous HTTP request, please define a `callback` function 77 to be invoked when receiving the response. 78 >>> def callback_function(response): 79 >>> pprint(response) 80 >>> 81 >>> thread = api.create_list_with_http_info(account_id, callback=callback_function) 82 83 :param callback function: The callback function 84 for asynchronous request. (optional) 85 :param str account_id: The external account number (int) or account ID Guid. (required) 86 :param SigningGroupInformation signing_group_information: 87 :return: SigningGroupInformation 88 If the method is called asynchronously, 89 returns the request thread. 90 """ 91 92 all_params = ['account_id', 'signing_group_information'] 93 all_params.append('callback') 94 all_params.append('_return_http_data_only') 95 all_params.append('_preload_content') 96 all_params.append('_request_timeout') 97 98 params = locals() 99 for key, val in iteritems(params['kwargs']): 100 if key not in all_params: 101 raise TypeError( 102 "Got an unexpected keyword argument '%s'" 103 " to method create_list" % key 104 ) 105 params[key] = val 106 del params['kwargs'] 107 # verify the required parameter 'account_id' is set 108 if ('account_id' not in params) or (params['account_id'] is None): 109 raise ValueError("Missing the required parameter `account_id` when calling `create_list`") 110 111 112 collection_formats = {} 113 114 resource_path = '/v2.1/accounts/{accountId}/signing_groups'.replace('{format}', 'json') 115 path_params = {} 116 if 'account_id' in params: 117 path_params['accountId'] = params['account_id'] 118 119 query_params = {} 120 121 header_params = {} 122 123 form_params = [] 124 local_var_files = {} 125 126 body_params = None 127 if 'signing_group_information' in params: 128 body_params = params['signing_group_information'] 129 # HTTP header `Accept` 130 header_params['Accept'] = self.api_client.\ 131 select_header_accept(['application/json']) 132 133 # Authentication setting 134 auth_settings = [] 135 136 return self.api_client.call_api(resource_path, 'POST', 137 path_params, 138 query_params, 139 header_params, 140 body=body_params, 141 post_params=form_params, 142 files=local_var_files, 143 response_type='SigningGroupInformation', 144 auth_settings=auth_settings, 145 callback=params.get('callback'), 146 _return_http_data_only=params.get('_return_http_data_only'), 147 _preload_content=params.get('_preload_content', True), 148 _request_timeout=params.get('_request_timeout'), 149 collection_formats=collection_formats)
Creates a signing group.
Creates one or more signing groups. Multiple signing groups can be created in one call. Only users with account administrator privileges can create signing groups. An account can have a maximum of 50 signing groups. Each signing group can have a maximum of 50 group members. Signing groups can be used by any account user.
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please define a callback
function
to be invoked when receiving the response.
>>> def callback_function(response):
>>> pprint(response)
>>>
>>> thread = api.create_list_with_http_info(account_id, callback=callback_function)
Parameters
- callback function: The callback function for asynchronous request. (optional)
- str account_id: The external account number (int) or account ID Guid. (required)
- SigningGroupInformation signing_group_information:
Returns
SigningGroupInformation If the method is called asynchronously, returns the request thread.
151 def delete_list(self, account_id, **kwargs): 152 """ 153 Deletes one or more signing groups. 154 Deletes one or more signing groups in the specified account. 155 This method makes a synchronous HTTP request by default. To make an 156 asynchronous HTTP request, please define a `callback` function 157 to be invoked when receiving the response. 158 >>> def callback_function(response): 159 >>> pprint(response) 160 >>> 161 >>> thread = api.delete_list(account_id, callback=callback_function) 162 163 :param callback function: The callback function 164 for asynchronous request. (optional) 165 :param str account_id: The external account number (int) or account ID Guid. (required) 166 :param SigningGroupInformation signing_group_information: 167 :return: SigningGroupInformation 168 If the method is called asynchronously, 169 returns the request thread. 170 """ 171 kwargs['_return_http_data_only'] = True 172 if kwargs.get('callback'): 173 return self.delete_list_with_http_info(account_id, **kwargs) 174 else: 175 (data) = self.delete_list_with_http_info(account_id, **kwargs) 176 return data
Deletes one or more signing groups.
Deletes one or more signing groups in the specified account.
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please define a callback
function
to be invoked when receiving the response.
>>> def callback_function(response):
>>> pprint(response)
>>>
>>> thread = api.delete_list(account_id, callback=callback_function)
Parameters
- callback function: The callback function for asynchronous request. (optional)
- str account_id: The external account number (int) or account ID Guid. (required)
- SigningGroupInformation signing_group_information:
Returns
SigningGroupInformation If the method is called asynchronously, returns the request thread.
178 def delete_list_with_http_info(self, account_id, **kwargs): 179 """ 180 Deletes one or more signing groups. 181 Deletes one or more signing groups in the specified account. 182 This method makes a synchronous HTTP request by default. To make an 183 asynchronous HTTP request, please define a `callback` function 184 to be invoked when receiving the response. 185 >>> def callback_function(response): 186 >>> pprint(response) 187 >>> 188 >>> thread = api.delete_list_with_http_info(account_id, callback=callback_function) 189 190 :param callback function: The callback function 191 for asynchronous request. (optional) 192 :param str account_id: The external account number (int) or account ID Guid. (required) 193 :param SigningGroupInformation signing_group_information: 194 :return: SigningGroupInformation 195 If the method is called asynchronously, 196 returns the request thread. 197 """ 198 199 all_params = ['account_id', 'signing_group_information'] 200 all_params.append('callback') 201 all_params.append('_return_http_data_only') 202 all_params.append('_preload_content') 203 all_params.append('_request_timeout') 204 205 params = locals() 206 for key, val in iteritems(params['kwargs']): 207 if key not in all_params: 208 raise TypeError( 209 "Got an unexpected keyword argument '%s'" 210 " to method delete_list" % key 211 ) 212 params[key] = val 213 del params['kwargs'] 214 # verify the required parameter 'account_id' is set 215 if ('account_id' not in params) or (params['account_id'] is None): 216 raise ValueError("Missing the required parameter `account_id` when calling `delete_list`") 217 218 219 collection_formats = {} 220 221 resource_path = '/v2.1/accounts/{accountId}/signing_groups'.replace('{format}', 'json') 222 path_params = {} 223 if 'account_id' in params: 224 path_params['accountId'] = params['account_id'] 225 226 query_params = {} 227 228 header_params = {} 229 230 form_params = [] 231 local_var_files = {} 232 233 body_params = None 234 if 'signing_group_information' in params: 235 body_params = params['signing_group_information'] 236 # HTTP header `Accept` 237 header_params['Accept'] = self.api_client.\ 238 select_header_accept(['application/json']) 239 240 # Authentication setting 241 auth_settings = [] 242 243 return self.api_client.call_api(resource_path, 'DELETE', 244 path_params, 245 query_params, 246 header_params, 247 body=body_params, 248 post_params=form_params, 249 files=local_var_files, 250 response_type='SigningGroupInformation', 251 auth_settings=auth_settings, 252 callback=params.get('callback'), 253 _return_http_data_only=params.get('_return_http_data_only'), 254 _preload_content=params.get('_preload_content', True), 255 _request_timeout=params.get('_request_timeout'), 256 collection_formats=collection_formats)
Deletes one or more signing groups.
Deletes one or more signing groups in the specified account.
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please define a callback
function
to be invoked when receiving the response.
>>> def callback_function(response):
>>> pprint(response)
>>>
>>> thread = api.delete_list_with_http_info(account_id, callback=callback_function)
Parameters
- callback function: The callback function for asynchronous request. (optional)
- str account_id: The external account number (int) or account ID Guid. (required)
- SigningGroupInformation signing_group_information:
Returns
SigningGroupInformation If the method is called asynchronously, returns the request thread.
258 def delete_users(self, account_id, signing_group_id, **kwargs): 259 """ 260 Deletes one or more members from a signing group. 261 Deletes one or more members from the specified signing group. 262 This method makes a synchronous HTTP request by default. To make an 263 asynchronous HTTP request, please define a `callback` function 264 to be invoked when receiving the response. 265 >>> def callback_function(response): 266 >>> pprint(response) 267 >>> 268 >>> thread = api.delete_users(account_id, signing_group_id, callback=callback_function) 269 270 :param callback function: The callback function 271 for asynchronous request. (optional) 272 :param str account_id: The external account number (int) or account ID Guid. (required) 273 :param str signing_group_id: (required) 274 :param SigningGroupUsers signing_group_users: 275 :return: SigningGroupUsers 276 If the method is called asynchronously, 277 returns the request thread. 278 """ 279 kwargs['_return_http_data_only'] = True 280 if kwargs.get('callback'): 281 return self.delete_users_with_http_info(account_id, signing_group_id, **kwargs) 282 else: 283 (data) = self.delete_users_with_http_info(account_id, signing_group_id, **kwargs) 284 return data
Deletes one or more members from a signing group.
Deletes one or more members from the specified signing group.
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please define a callback
function
to be invoked when receiving the response.
>>> def callback_function(response):
>>> pprint(response)
>>>
>>> thread = api.delete_users(account_id, signing_group_id, callback=callback_function)
Parameters
- callback function: The callback function for asynchronous request. (optional)
- str account_id: The external account number (int) or account ID Guid. (required)
- str signing_group_id: (required)
- SigningGroupUsers signing_group_users:
Returns
SigningGroupUsers If the method is called asynchronously, returns the request thread.
286 def delete_users_with_http_info(self, account_id, signing_group_id, **kwargs): 287 """ 288 Deletes one or more members from a signing group. 289 Deletes one or more members from the specified signing group. 290 This method makes a synchronous HTTP request by default. To make an 291 asynchronous HTTP request, please define a `callback` function 292 to be invoked when receiving the response. 293 >>> def callback_function(response): 294 >>> pprint(response) 295 >>> 296 >>> thread = api.delete_users_with_http_info(account_id, signing_group_id, callback=callback_function) 297 298 :param callback function: The callback function 299 for asynchronous request. (optional) 300 :param str account_id: The external account number (int) or account ID Guid. (required) 301 :param str signing_group_id: (required) 302 :param SigningGroupUsers signing_group_users: 303 :return: SigningGroupUsers 304 If the method is called asynchronously, 305 returns the request thread. 306 """ 307 308 all_params = ['account_id', 'signing_group_id', 'signing_group_users'] 309 all_params.append('callback') 310 all_params.append('_return_http_data_only') 311 all_params.append('_preload_content') 312 all_params.append('_request_timeout') 313 314 params = locals() 315 for key, val in iteritems(params['kwargs']): 316 if key not in all_params: 317 raise TypeError( 318 "Got an unexpected keyword argument '%s'" 319 " to method delete_users" % key 320 ) 321 params[key] = val 322 del params['kwargs'] 323 # verify the required parameter 'account_id' is set 324 if ('account_id' not in params) or (params['account_id'] is None): 325 raise ValueError("Missing the required parameter `account_id` when calling `delete_users`") 326 # verify the required parameter 'signing_group_id' is set 327 if ('signing_group_id' not in params) or (params['signing_group_id'] is None): 328 raise ValueError("Missing the required parameter `signing_group_id` when calling `delete_users`") 329 330 331 collection_formats = {} 332 333 resource_path = '/v2.1/accounts/{accountId}/signing_groups/{signingGroupId}/users'.replace('{format}', 'json') 334 path_params = {} 335 if 'account_id' in params: 336 path_params['accountId'] = params['account_id'] 337 if 'signing_group_id' in params: 338 path_params['signingGroupId'] = params['signing_group_id'] 339 340 query_params = {} 341 342 header_params = {} 343 344 form_params = [] 345 local_var_files = {} 346 347 body_params = None 348 if 'signing_group_users' in params: 349 body_params = params['signing_group_users'] 350 # HTTP header `Accept` 351 header_params['Accept'] = self.api_client.\ 352 select_header_accept(['application/json']) 353 354 # Authentication setting 355 auth_settings = [] 356 357 return self.api_client.call_api(resource_path, 'DELETE', 358 path_params, 359 query_params, 360 header_params, 361 body=body_params, 362 post_params=form_params, 363 files=local_var_files, 364 response_type='SigningGroupUsers', 365 auth_settings=auth_settings, 366 callback=params.get('callback'), 367 _return_http_data_only=params.get('_return_http_data_only'), 368 _preload_content=params.get('_preload_content', True), 369 _request_timeout=params.get('_request_timeout'), 370 collection_formats=collection_formats)
Deletes one or more members from a signing group.
Deletes one or more members from the specified signing group.
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please define a callback
function
to be invoked when receiving the response.
>>> def callback_function(response):
>>> pprint(response)
>>>
>>> thread = api.delete_users_with_http_info(account_id, signing_group_id, callback=callback_function)
Parameters
- callback function: The callback function for asynchronous request. (optional)
- str account_id: The external account number (int) or account ID Guid. (required)
- str signing_group_id: (required)
- SigningGroupUsers signing_group_users:
Returns
SigningGroupUsers If the method is called asynchronously, returns the request thread.
372 def get(self, account_id, signing_group_id, **kwargs): 373 """ 374 Gets information about a signing group. 375 Retrieves information, including group member information, for the specified signing group. 376 This method makes a synchronous HTTP request by default. To make an 377 asynchronous HTTP request, please define a `callback` function 378 to be invoked when receiving the response. 379 >>> def callback_function(response): 380 >>> pprint(response) 381 >>> 382 >>> thread = api.get(account_id, signing_group_id, callback=callback_function) 383 384 :param callback function: The callback function 385 for asynchronous request. (optional) 386 :param str account_id: The external account number (int) or account ID Guid. (required) 387 :param str signing_group_id: (required) 388 :return: SigningGroup 389 If the method is called asynchronously, 390 returns the request thread. 391 """ 392 kwargs['_return_http_data_only'] = True 393 if kwargs.get('callback'): 394 return self.get_with_http_info(account_id, signing_group_id, **kwargs) 395 else: 396 (data) = self.get_with_http_info(account_id, signing_group_id, **kwargs) 397 return data
Gets information about a signing group.
Retrieves information, including group member information, for the specified signing group.
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please define a callback
function
to be invoked when receiving the response.
>>> def callback_function(response):
>>> pprint(response)
>>>
>>> thread = api.get(account_id, signing_group_id, callback=callback_function)
Parameters
- callback function: The callback function for asynchronous request. (optional)
- str account_id: The external account number (int) or account ID Guid. (required)
- str signing_group_id: (required)
Returns
SigningGroup If the method is called asynchronously, returns the request thread.
399 def get_with_http_info(self, account_id, signing_group_id, **kwargs): 400 """ 401 Gets information about a signing group. 402 Retrieves information, including group member information, for the specified signing group. 403 This method makes a synchronous HTTP request by default. To make an 404 asynchronous HTTP request, please define a `callback` function 405 to be invoked when receiving the response. 406 >>> def callback_function(response): 407 >>> pprint(response) 408 >>> 409 >>> thread = api.get_with_http_info(account_id, signing_group_id, callback=callback_function) 410 411 :param callback function: The callback function 412 for asynchronous request. (optional) 413 :param str account_id: The external account number (int) or account ID Guid. (required) 414 :param str signing_group_id: (required) 415 :return: SigningGroup 416 If the method is called asynchronously, 417 returns the request thread. 418 """ 419 420 all_params = ['account_id', 'signing_group_id'] 421 all_params.append('callback') 422 all_params.append('_return_http_data_only') 423 all_params.append('_preload_content') 424 all_params.append('_request_timeout') 425 426 params = locals() 427 for key, val in iteritems(params['kwargs']): 428 if key not in all_params: 429 raise TypeError( 430 "Got an unexpected keyword argument '%s'" 431 " to method get" % key 432 ) 433 params[key] = val 434 del params['kwargs'] 435 # verify the required parameter 'account_id' is set 436 if ('account_id' not in params) or (params['account_id'] is None): 437 raise ValueError("Missing the required parameter `account_id` when calling `get`") 438 # verify the required parameter 'signing_group_id' is set 439 if ('signing_group_id' not in params) or (params['signing_group_id'] is None): 440 raise ValueError("Missing the required parameter `signing_group_id` when calling `get`") 441 442 443 collection_formats = {} 444 445 resource_path = '/v2.1/accounts/{accountId}/signing_groups/{signingGroupId}'.replace('{format}', 'json') 446 path_params = {} 447 if 'account_id' in params: 448 path_params['accountId'] = params['account_id'] 449 if 'signing_group_id' in params: 450 path_params['signingGroupId'] = params['signing_group_id'] 451 452 query_params = {} 453 454 header_params = {} 455 456 form_params = [] 457 local_var_files = {} 458 459 body_params = None 460 # HTTP header `Accept` 461 header_params['Accept'] = self.api_client.\ 462 select_header_accept(['application/json']) 463 464 # Authentication setting 465 auth_settings = [] 466 467 return self.api_client.call_api(resource_path, 'GET', 468 path_params, 469 query_params, 470 header_params, 471 body=body_params, 472 post_params=form_params, 473 files=local_var_files, 474 response_type='SigningGroup', 475 auth_settings=auth_settings, 476 callback=params.get('callback'), 477 _return_http_data_only=params.get('_return_http_data_only'), 478 _preload_content=params.get('_preload_content', True), 479 _request_timeout=params.get('_request_timeout'), 480 collection_formats=collection_formats)
Gets information about a signing group.
Retrieves information, including group member information, for the specified signing group.
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please define a callback
function
to be invoked when receiving the response.
>>> def callback_function(response):
>>> pprint(response)
>>>
>>> thread = api.get_with_http_info(account_id, signing_group_id, callback=callback_function)
Parameters
- callback function: The callback function for asynchronous request. (optional)
- str account_id: The external account number (int) or account ID Guid. (required)
- str signing_group_id: (required)
Returns
SigningGroup If the method is called asynchronously, returns the request thread.
482 def list(self, account_id, **kwargs): 483 """ 484 Gets a list of the Signing Groups in an account. 485 Retrieves a list of all signing groups in the specified account. 486 This method makes a synchronous HTTP request by default. To make an 487 asynchronous HTTP request, please define a `callback` function 488 to be invoked when receiving the response. 489 >>> def callback_function(response): 490 >>> pprint(response) 491 >>> 492 >>> thread = api.list(account_id, callback=callback_function) 493 494 :param callback function: The callback function 495 for asynchronous request. (optional) 496 :param str account_id: The external account number (int) or account ID Guid. (required) 497 :param str group_type: 498 :param str include_users: When set to **true**, the response includes the signing group members. 499 :return: SigningGroupInformation 500 If the method is called asynchronously, 501 returns the request thread. 502 """ 503 kwargs['_return_http_data_only'] = True 504 if kwargs.get('callback'): 505 return self.list_with_http_info(account_id, **kwargs) 506 else: 507 (data) = self.list_with_http_info(account_id, **kwargs) 508 return data
Gets a list of the Signing Groups in an account.
Retrieves a list of all signing groups in the specified account.
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please define a callback
function
to be invoked when receiving the response.
>>> def callback_function(response):
>>> pprint(response)
>>>
>>> thread = api.list(account_id, callback=callback_function)
Parameters
- callback function: The callback function for asynchronous request. (optional)
- str account_id: The external account number (int) or account ID Guid. (required)
- str group_type:
- str include_users: When set to true, the response includes the signing group members.
Returns
SigningGroupInformation If the method is called asynchronously, returns the request thread.
510 def list_with_http_info(self, account_id, **kwargs): 511 """ 512 Gets a list of the Signing Groups in an account. 513 Retrieves a list of all signing groups in the specified account. 514 This method makes a synchronous HTTP request by default. To make an 515 asynchronous HTTP request, please define a `callback` function 516 to be invoked when receiving the response. 517 >>> def callback_function(response): 518 >>> pprint(response) 519 >>> 520 >>> thread = api.list_with_http_info(account_id, callback=callback_function) 521 522 :param callback function: The callback function 523 for asynchronous request. (optional) 524 :param str account_id: The external account number (int) or account ID Guid. (required) 525 :param str group_type: 526 :param str include_users: When set to **true**, the response includes the signing group members. 527 :return: SigningGroupInformation 528 If the method is called asynchronously, 529 returns the request thread. 530 """ 531 532 all_params = ['account_id', 'group_type', 'include_users'] 533 all_params.append('callback') 534 all_params.append('_return_http_data_only') 535 all_params.append('_preload_content') 536 all_params.append('_request_timeout') 537 538 params = locals() 539 for key, val in iteritems(params['kwargs']): 540 if key not in all_params: 541 raise TypeError( 542 "Got an unexpected keyword argument '%s'" 543 " to method list" % key 544 ) 545 params[key] = val 546 del params['kwargs'] 547 # verify the required parameter 'account_id' is set 548 if ('account_id' not in params) or (params['account_id'] is None): 549 raise ValueError("Missing the required parameter `account_id` when calling `list`") 550 551 552 collection_formats = {} 553 554 resource_path = '/v2.1/accounts/{accountId}/signing_groups'.replace('{format}', 'json') 555 path_params = {} 556 if 'account_id' in params: 557 path_params['accountId'] = params['account_id'] 558 559 query_params = {} 560 if 'group_type' in params: 561 query_params['group_type'] = params['group_type'] 562 if 'include_users' in params: 563 query_params['include_users'] = params['include_users'] 564 565 header_params = {} 566 567 form_params = [] 568 local_var_files = {} 569 570 body_params = None 571 # HTTP header `Accept` 572 header_params['Accept'] = self.api_client.\ 573 select_header_accept(['application/json']) 574 575 # Authentication setting 576 auth_settings = [] 577 578 return self.api_client.call_api(resource_path, 'GET', 579 path_params, 580 query_params, 581 header_params, 582 body=body_params, 583 post_params=form_params, 584 files=local_var_files, 585 response_type='SigningGroupInformation', 586 auth_settings=auth_settings, 587 callback=params.get('callback'), 588 _return_http_data_only=params.get('_return_http_data_only'), 589 _preload_content=params.get('_preload_content', True), 590 _request_timeout=params.get('_request_timeout'), 591 collection_formats=collection_formats)
Gets a list of the Signing Groups in an account.
Retrieves a list of all signing groups in the specified account.
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please define a callback
function
to be invoked when receiving the response.
>>> def callback_function(response):
>>> pprint(response)
>>>
>>> thread = api.list_with_http_info(account_id, callback=callback_function)
Parameters
- callback function: The callback function for asynchronous request. (optional)
- str account_id: The external account number (int) or account ID Guid. (required)
- str group_type:
- str include_users: When set to true, the response includes the signing group members.
Returns
SigningGroupInformation If the method is called asynchronously, returns the request thread.
593 def list_users(self, account_id, signing_group_id, **kwargs): 594 """ 595 Gets a list of members in a Signing Group. 596 Retrieves the list of members in the specified Signing Group. 597 This method makes a synchronous HTTP request by default. To make an 598 asynchronous HTTP request, please define a `callback` function 599 to be invoked when receiving the response. 600 >>> def callback_function(response): 601 >>> pprint(response) 602 >>> 603 >>> thread = api.list_users(account_id, signing_group_id, callback=callback_function) 604 605 :param callback function: The callback function 606 for asynchronous request. (optional) 607 :param str account_id: The external account number (int) or account ID Guid. (required) 608 :param str signing_group_id: (required) 609 :return: SigningGroupUsers 610 If the method is called asynchronously, 611 returns the request thread. 612 """ 613 kwargs['_return_http_data_only'] = True 614 if kwargs.get('callback'): 615 return self.list_users_with_http_info(account_id, signing_group_id, **kwargs) 616 else: 617 (data) = self.list_users_with_http_info(account_id, signing_group_id, **kwargs) 618 return data
Gets a list of members in a Signing Group.
Retrieves the list of members in the specified Signing Group.
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please define a callback
function
to be invoked when receiving the response.
>>> def callback_function(response):
>>> pprint(response)
>>>
>>> thread = api.list_users(account_id, signing_group_id, callback=callback_function)
Parameters
- callback function: The callback function for asynchronous request. (optional)
- str account_id: The external account number (int) or account ID Guid. (required)
- str signing_group_id: (required)
Returns
SigningGroupUsers If the method is called asynchronously, returns the request thread.
620 def list_users_with_http_info(self, account_id, signing_group_id, **kwargs): 621 """ 622 Gets a list of members in a Signing Group. 623 Retrieves the list of members in the specified Signing Group. 624 This method makes a synchronous HTTP request by default. To make an 625 asynchronous HTTP request, please define a `callback` function 626 to be invoked when receiving the response. 627 >>> def callback_function(response): 628 >>> pprint(response) 629 >>> 630 >>> thread = api.list_users_with_http_info(account_id, signing_group_id, callback=callback_function) 631 632 :param callback function: The callback function 633 for asynchronous request. (optional) 634 :param str account_id: The external account number (int) or account ID Guid. (required) 635 :param str signing_group_id: (required) 636 :return: SigningGroupUsers 637 If the method is called asynchronously, 638 returns the request thread. 639 """ 640 641 all_params = ['account_id', 'signing_group_id'] 642 all_params.append('callback') 643 all_params.append('_return_http_data_only') 644 all_params.append('_preload_content') 645 all_params.append('_request_timeout') 646 647 params = locals() 648 for key, val in iteritems(params['kwargs']): 649 if key not in all_params: 650 raise TypeError( 651 "Got an unexpected keyword argument '%s'" 652 " to method list_users" % key 653 ) 654 params[key] = val 655 del params['kwargs'] 656 # verify the required parameter 'account_id' is set 657 if ('account_id' not in params) or (params['account_id'] is None): 658 raise ValueError("Missing the required parameter `account_id` when calling `list_users`") 659 # verify the required parameter 'signing_group_id' is set 660 if ('signing_group_id' not in params) or (params['signing_group_id'] is None): 661 raise ValueError("Missing the required parameter `signing_group_id` when calling `list_users`") 662 663 664 collection_formats = {} 665 666 resource_path = '/v2.1/accounts/{accountId}/signing_groups/{signingGroupId}/users'.replace('{format}', 'json') 667 path_params = {} 668 if 'account_id' in params: 669 path_params['accountId'] = params['account_id'] 670 if 'signing_group_id' in params: 671 path_params['signingGroupId'] = params['signing_group_id'] 672 673 query_params = {} 674 675 header_params = {} 676 677 form_params = [] 678 local_var_files = {} 679 680 body_params = None 681 # HTTP header `Accept` 682 header_params['Accept'] = self.api_client.\ 683 select_header_accept(['application/json']) 684 685 # Authentication setting 686 auth_settings = [] 687 688 return self.api_client.call_api(resource_path, 'GET', 689 path_params, 690 query_params, 691 header_params, 692 body=body_params, 693 post_params=form_params, 694 files=local_var_files, 695 response_type='SigningGroupUsers', 696 auth_settings=auth_settings, 697 callback=params.get('callback'), 698 _return_http_data_only=params.get('_return_http_data_only'), 699 _preload_content=params.get('_preload_content', True), 700 _request_timeout=params.get('_request_timeout'), 701 collection_formats=collection_formats)
Gets a list of members in a Signing Group.
Retrieves the list of members in the specified Signing Group.
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please define a callback
function
to be invoked when receiving the response.
>>> def callback_function(response):
>>> pprint(response)
>>>
>>> thread = api.list_users_with_http_info(account_id, signing_group_id, callback=callback_function)
Parameters
- callback function: The callback function for asynchronous request. (optional)
- str account_id: The external account number (int) or account ID Guid. (required)
- str signing_group_id: (required)
Returns
SigningGroupUsers If the method is called asynchronously, returns the request thread.
703 def update(self, account_id, signing_group_id, **kwargs): 704 """ 705 Updates a signing group. 706 Updates signing group name and member information. You can also add new members to the signing group. A signing group can have a maximum of 50 members. 707 This method makes a synchronous HTTP request by default. To make an 708 asynchronous HTTP request, please define a `callback` function 709 to be invoked when receiving the response. 710 >>> def callback_function(response): 711 >>> pprint(response) 712 >>> 713 >>> thread = api.update(account_id, signing_group_id, callback=callback_function) 714 715 :param callback function: The callback function 716 for asynchronous request. (optional) 717 :param str account_id: The external account number (int) or account ID Guid. (required) 718 :param str signing_group_id: (required) 719 :param SigningGroup signing_group: 720 :return: SigningGroup 721 If the method is called asynchronously, 722 returns the request thread. 723 """ 724 kwargs['_return_http_data_only'] = True 725 if kwargs.get('callback'): 726 return self.update_with_http_info(account_id, signing_group_id, **kwargs) 727 else: 728 (data) = self.update_with_http_info(account_id, signing_group_id, **kwargs) 729 return data
Updates a signing group.
Updates signing group name and member information. You can also add new members to the signing group. A signing group can have a maximum of 50 members.
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please define a callback
function
to be invoked when receiving the response.
>>> def callback_function(response):
>>> pprint(response)
>>>
>>> thread = api.update(account_id, signing_group_id, callback=callback_function)
Parameters
- callback function: The callback function for asynchronous request. (optional)
- str account_id: The external account number (int) or account ID Guid. (required)
- str signing_group_id: (required)
- SigningGroup signing_group:
Returns
SigningGroup If the method is called asynchronously, returns the request thread.
731 def update_with_http_info(self, account_id, signing_group_id, **kwargs): 732 """ 733 Updates a signing group. 734 Updates signing group name and member information. You can also add new members to the signing group. A signing group can have a maximum of 50 members. 735 This method makes a synchronous HTTP request by default. To make an 736 asynchronous HTTP request, please define a `callback` function 737 to be invoked when receiving the response. 738 >>> def callback_function(response): 739 >>> pprint(response) 740 >>> 741 >>> thread = api.update_with_http_info(account_id, signing_group_id, callback=callback_function) 742 743 :param callback function: The callback function 744 for asynchronous request. (optional) 745 :param str account_id: The external account number (int) or account ID Guid. (required) 746 :param str signing_group_id: (required) 747 :param SigningGroup signing_group: 748 :return: SigningGroup 749 If the method is called asynchronously, 750 returns the request thread. 751 """ 752 753 all_params = ['account_id', 'signing_group_id', 'signing_group'] 754 all_params.append('callback') 755 all_params.append('_return_http_data_only') 756 all_params.append('_preload_content') 757 all_params.append('_request_timeout') 758 759 params = locals() 760 for key, val in iteritems(params['kwargs']): 761 if key not in all_params: 762 raise TypeError( 763 "Got an unexpected keyword argument '%s'" 764 " to method update" % key 765 ) 766 params[key] = val 767 del params['kwargs'] 768 # verify the required parameter 'account_id' is set 769 if ('account_id' not in params) or (params['account_id'] is None): 770 raise ValueError("Missing the required parameter `account_id` when calling `update`") 771 # verify the required parameter 'signing_group_id' is set 772 if ('signing_group_id' not in params) or (params['signing_group_id'] is None): 773 raise ValueError("Missing the required parameter `signing_group_id` when calling `update`") 774 775 776 collection_formats = {} 777 778 resource_path = '/v2.1/accounts/{accountId}/signing_groups/{signingGroupId}'.replace('{format}', 'json') 779 path_params = {} 780 if 'account_id' in params: 781 path_params['accountId'] = params['account_id'] 782 if 'signing_group_id' in params: 783 path_params['signingGroupId'] = params['signing_group_id'] 784 785 query_params = {} 786 787 header_params = {} 788 789 form_params = [] 790 local_var_files = {} 791 792 body_params = None 793 if 'signing_group' in params: 794 body_params = params['signing_group'] 795 # HTTP header `Accept` 796 header_params['Accept'] = self.api_client.\ 797 select_header_accept(['application/json']) 798 799 # Authentication setting 800 auth_settings = [] 801 802 return self.api_client.call_api(resource_path, 'PUT', 803 path_params, 804 query_params, 805 header_params, 806 body=body_params, 807 post_params=form_params, 808 files=local_var_files, 809 response_type='SigningGroup', 810 auth_settings=auth_settings, 811 callback=params.get('callback'), 812 _return_http_data_only=params.get('_return_http_data_only'), 813 _preload_content=params.get('_preload_content', True), 814 _request_timeout=params.get('_request_timeout'), 815 collection_formats=collection_formats)
Updates a signing group.
Updates signing group name and member information. You can also add new members to the signing group. A signing group can have a maximum of 50 members.
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please define a callback
function
to be invoked when receiving the response.
>>> def callback_function(response):
>>> pprint(response)
>>>
>>> thread = api.update_with_http_info(account_id, signing_group_id, callback=callback_function)
Parameters
- callback function: The callback function for asynchronous request. (optional)
- str account_id: The external account number (int) or account ID Guid. (required)
- str signing_group_id: (required)
- SigningGroup signing_group:
Returns
SigningGroup If the method is called asynchronously, returns the request thread.
817 def update_list(self, account_id, **kwargs): 818 """ 819 Updates signing group names. 820 Updates the name of one or more existing signing groups. 821 This method makes a synchronous HTTP request by default. To make an 822 asynchronous HTTP request, please define a `callback` function 823 to be invoked when receiving the response. 824 >>> def callback_function(response): 825 >>> pprint(response) 826 >>> 827 >>> thread = api.update_list(account_id, callback=callback_function) 828 829 :param callback function: The callback function 830 for asynchronous request. (optional) 831 :param str account_id: The external account number (int) or account ID Guid. (required) 832 :param SigningGroupInformation signing_group_information: 833 :return: SigningGroupInformation 834 If the method is called asynchronously, 835 returns the request thread. 836 """ 837 kwargs['_return_http_data_only'] = True 838 if kwargs.get('callback'): 839 return self.update_list_with_http_info(account_id, **kwargs) 840 else: 841 (data) = self.update_list_with_http_info(account_id, **kwargs) 842 return data
Updates signing group names.
Updates the name of one or more existing signing groups.
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please define a callback
function
to be invoked when receiving the response.
>>> def callback_function(response):
>>> pprint(response)
>>>
>>> thread = api.update_list(account_id, callback=callback_function)
Parameters
- callback function: The callback function for asynchronous request. (optional)
- str account_id: The external account number (int) or account ID Guid. (required)
- SigningGroupInformation signing_group_information:
Returns
SigningGroupInformation If the method is called asynchronously, returns the request thread.
844 def update_list_with_http_info(self, account_id, **kwargs): 845 """ 846 Updates signing group names. 847 Updates the name of one or more existing signing groups. 848 This method makes a synchronous HTTP request by default. To make an 849 asynchronous HTTP request, please define a `callback` function 850 to be invoked when receiving the response. 851 >>> def callback_function(response): 852 >>> pprint(response) 853 >>> 854 >>> thread = api.update_list_with_http_info(account_id, callback=callback_function) 855 856 :param callback function: The callback function 857 for asynchronous request. (optional) 858 :param str account_id: The external account number (int) or account ID Guid. (required) 859 :param SigningGroupInformation signing_group_information: 860 :return: SigningGroupInformation 861 If the method is called asynchronously, 862 returns the request thread. 863 """ 864 865 all_params = ['account_id', 'signing_group_information'] 866 all_params.append('callback') 867 all_params.append('_return_http_data_only') 868 all_params.append('_preload_content') 869 all_params.append('_request_timeout') 870 871 params = locals() 872 for key, val in iteritems(params['kwargs']): 873 if key not in all_params: 874 raise TypeError( 875 "Got an unexpected keyword argument '%s'" 876 " to method update_list" % key 877 ) 878 params[key] = val 879 del params['kwargs'] 880 # verify the required parameter 'account_id' is set 881 if ('account_id' not in params) or (params['account_id'] is None): 882 raise ValueError("Missing the required parameter `account_id` when calling `update_list`") 883 884 885 collection_formats = {} 886 887 resource_path = '/v2.1/accounts/{accountId}/signing_groups'.replace('{format}', 'json') 888 path_params = {} 889 if 'account_id' in params: 890 path_params['accountId'] = params['account_id'] 891 892 query_params = {} 893 894 header_params = {} 895 896 form_params = [] 897 local_var_files = {} 898 899 body_params = None 900 if 'signing_group_information' in params: 901 body_params = params['signing_group_information'] 902 # HTTP header `Accept` 903 header_params['Accept'] = self.api_client.\ 904 select_header_accept(['application/json']) 905 906 # Authentication setting 907 auth_settings = [] 908 909 return self.api_client.call_api(resource_path, 'PUT', 910 path_params, 911 query_params, 912 header_params, 913 body=body_params, 914 post_params=form_params, 915 files=local_var_files, 916 response_type='SigningGroupInformation', 917 auth_settings=auth_settings, 918 callback=params.get('callback'), 919 _return_http_data_only=params.get('_return_http_data_only'), 920 _preload_content=params.get('_preload_content', True), 921 _request_timeout=params.get('_request_timeout'), 922 collection_formats=collection_formats)
Updates signing group names.
Updates the name of one or more existing signing groups.
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please define a callback
function
to be invoked when receiving the response.
>>> def callback_function(response):
>>> pprint(response)
>>>
>>> thread = api.update_list_with_http_info(account_id, callback=callback_function)
Parameters
- callback function: The callback function for asynchronous request. (optional)
- str account_id: The external account number (int) or account ID Guid. (required)
- SigningGroupInformation signing_group_information:
Returns
SigningGroupInformation If the method is called asynchronously, returns the request thread.
924 def update_users(self, account_id, signing_group_id, **kwargs): 925 """ 926 Adds members to a signing group. 927 Adds one or more new members to a signing group. A signing group can have a maximum of 50 members. 928 This method makes a synchronous HTTP request by default. To make an 929 asynchronous HTTP request, please define a `callback` function 930 to be invoked when receiving the response. 931 >>> def callback_function(response): 932 >>> pprint(response) 933 >>> 934 >>> thread = api.update_users(account_id, signing_group_id, callback=callback_function) 935 936 :param callback function: The callback function 937 for asynchronous request. (optional) 938 :param str account_id: The external account number (int) or account ID Guid. (required) 939 :param str signing_group_id: (required) 940 :param SigningGroupUsers signing_group_users: 941 :return: SigningGroupUsers 942 If the method is called asynchronously, 943 returns the request thread. 944 """ 945 kwargs['_return_http_data_only'] = True 946 if kwargs.get('callback'): 947 return self.update_users_with_http_info(account_id, signing_group_id, **kwargs) 948 else: 949 (data) = self.update_users_with_http_info(account_id, signing_group_id, **kwargs) 950 return data
Adds members to a signing group.
Adds one or more new members to a signing group. A signing group can have a maximum of 50 members.
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please define a callback
function
to be invoked when receiving the response.
>>> def callback_function(response):
>>> pprint(response)
>>>
>>> thread = api.update_users(account_id, signing_group_id, callback=callback_function)
Parameters
- callback function: The callback function for asynchronous request. (optional)
- str account_id: The external account number (int) or account ID Guid. (required)
- str signing_group_id: (required)
- SigningGroupUsers signing_group_users:
Returns
SigningGroupUsers If the method is called asynchronously, returns the request thread.
952 def update_users_with_http_info(self, account_id, signing_group_id, **kwargs): 953 """ 954 Adds members to a signing group. 955 Adds one or more new members to a signing group. A signing group can have a maximum of 50 members. 956 This method makes a synchronous HTTP request by default. To make an 957 asynchronous HTTP request, please define a `callback` function 958 to be invoked when receiving the response. 959 >>> def callback_function(response): 960 >>> pprint(response) 961 >>> 962 >>> thread = api.update_users_with_http_info(account_id, signing_group_id, callback=callback_function) 963 964 :param callback function: The callback function 965 for asynchronous request. (optional) 966 :param str account_id: The external account number (int) or account ID Guid. (required) 967 :param str signing_group_id: (required) 968 :param SigningGroupUsers signing_group_users: 969 :return: SigningGroupUsers 970 If the method is called asynchronously, 971 returns the request thread. 972 """ 973 974 all_params = ['account_id', 'signing_group_id', 'signing_group_users'] 975 all_params.append('callback') 976 all_params.append('_return_http_data_only') 977 all_params.append('_preload_content') 978 all_params.append('_request_timeout') 979 980 params = locals() 981 for key, val in iteritems(params['kwargs']): 982 if key not in all_params: 983 raise TypeError( 984 "Got an unexpected keyword argument '%s'" 985 " to method update_users" % key 986 ) 987 params[key] = val 988 del params['kwargs'] 989 # verify the required parameter 'account_id' is set 990 if ('account_id' not in params) or (params['account_id'] is None): 991 raise ValueError("Missing the required parameter `account_id` when calling `update_users`") 992 # verify the required parameter 'signing_group_id' is set 993 if ('signing_group_id' not in params) or (params['signing_group_id'] is None): 994 raise ValueError("Missing the required parameter `signing_group_id` when calling `update_users`") 995 996 997 collection_formats = {} 998 999 resource_path = '/v2.1/accounts/{accountId}/signing_groups/{signingGroupId}/users'.replace('{format}', 'json') 1000 path_params = {} 1001 if 'account_id' in params: 1002 path_params['accountId'] = params['account_id'] 1003 if 'signing_group_id' in params: 1004 path_params['signingGroupId'] = params['signing_group_id'] 1005 1006 query_params = {} 1007 1008 header_params = {} 1009 1010 form_params = [] 1011 local_var_files = {} 1012 1013 body_params = None 1014 if 'signing_group_users' in params: 1015 body_params = params['signing_group_users'] 1016 # HTTP header `Accept` 1017 header_params['Accept'] = self.api_client.\ 1018 select_header_accept(['application/json']) 1019 1020 # Authentication setting 1021 auth_settings = [] 1022 1023 return self.api_client.call_api(resource_path, 'PUT', 1024 path_params, 1025 query_params, 1026 header_params, 1027 body=body_params, 1028 post_params=form_params, 1029 files=local_var_files, 1030 response_type='SigningGroupUsers', 1031 auth_settings=auth_settings, 1032 callback=params.get('callback'), 1033 _return_http_data_only=params.get('_return_http_data_only'), 1034 _preload_content=params.get('_preload_content', True), 1035 _request_timeout=params.get('_request_timeout'), 1036 collection_formats=collection_formats)
Adds members to a signing group.
Adds one or more new members to a signing group. A signing group can have a maximum of 50 members.
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please define a callback
function
to be invoked when receiving the response.
>>> def callback_function(response):
>>> pprint(response)
>>>
>>> thread = api.update_users_with_http_info(account_id, signing_group_id, callback=callback_function)
Parameters
- callback function: The callback function for asynchronous request. (optional)
- str account_id: The external account number (int) or account ID Guid. (required)
- str signing_group_id: (required)
- SigningGroupUsers signing_group_users:
Returns
SigningGroupUsers If the method is called asynchronously, returns the request thread.