(options, params = {})
| 658 | } |
| 659 | |
| 660 | function updateable_resource_params(options, params = {}) { |
| 661 | if (options.access_control != null) { |
| 662 | params.access_control = utils.jsonArrayParam(options.access_control); |
| 663 | } |
| 664 | if (options.auto_tagging != null) { |
| 665 | params.auto_tagging = options.auto_tagging; |
| 666 | } |
| 667 | if (options.background_removal != null) { |
| 668 | params.background_removal = options.background_removal; |
| 669 | } |
| 670 | if (options.categorization != null) { |
| 671 | params.categorization = options.categorization; |
| 672 | } |
| 673 | if (options.context != null) { |
| 674 | params.context = utils.encode_context(options.context); |
| 675 | } |
| 676 | if (options.metadata != null) { |
| 677 | params.metadata = utils.encode_context(options.metadata); |
| 678 | } |
| 679 | if (options.custom_coordinates != null) { |
| 680 | params.custom_coordinates = encodeDoubleArray(options.custom_coordinates); |
| 681 | } |
| 682 | if (options.detection != null) { |
| 683 | params.detection = options.detection; |
| 684 | } |
| 685 | if (options.face_coordinates != null) { |
| 686 | params.face_coordinates = encodeDoubleArray(options.face_coordinates); |
| 687 | } |
| 688 | if (options.headers != null) { |
| 689 | params.headers = utils.build_custom_headers(options.headers); |
| 690 | } |
| 691 | if (options.notification_url != null) { |
| 692 | params.notification_url = options.notification_url; |
| 693 | } |
| 694 | if (options.ocr != null) { |
| 695 | params.ocr = options.ocr; |
| 696 | } |
| 697 | if (options.raw_convert != null) { |
| 698 | params.raw_convert = options.raw_convert; |
| 699 | } |
| 700 | if (options.similarity_search != null) { |
| 701 | params.similarity_search = options.similarity_search; |
| 702 | } |
| 703 | if (options.tags != null) { |
| 704 | params.tags = toArray(options.tags).join(","); |
| 705 | } |
| 706 | if (options.quality_override != null) { |
| 707 | params.quality_override = options.quality_override; |
| 708 | } |
| 709 | if (options.asset_folder != null) { |
| 710 | params.asset_folder = options.asset_folder; |
| 711 | } |
| 712 | if (options.display_name != null) { |
| 713 | params.display_name = options.display_name; |
| 714 | } |
| 715 | if (options.unique_display_name != null) { |
| 716 | params.unique_display_name = options.unique_display_name; |
| 717 | } |
nothing calls this directly
no test coverage detected