|
1 | 1 | // Code generated from API definition by Databricks SDK Generator. DO NOT EDIT. |
2 | 2 |
|
| 3 | +import {FieldMask} from '@databricks/sdk-core/wkt'; |
| 4 | +import type {FieldMaskSchema} from '@databricks/sdk-core/wkt'; |
3 | 5 | import {z} from 'zod'; |
4 | 6 |
|
5 | 7 | export enum PolicyType { |
@@ -603,3 +605,235 @@ export const marshalTagValueExtractionSchema: z.ZodType = z |
603 | 605 | .transform(d => ({ |
604 | 606 | tag_key: d.tagKey, |
605 | 607 | })); |
| 608 | + |
| 609 | +const columnMaskOptionsFieldMaskSchema: FieldMaskSchema = { |
| 610 | + functionName: {wire: 'function_name'}, |
| 611 | + onColumn: {wire: 'on_column'}, |
| 612 | + using: {wire: 'using'}, |
| 613 | +}; |
| 614 | + |
| 615 | +export function columnMaskOptionsFieldMask( |
| 616 | + ...paths: string[] |
| 617 | +): FieldMask<ColumnMaskOptions> { |
| 618 | + return FieldMask.build<ColumnMaskOptions>( |
| 619 | + paths, |
| 620 | + columnMaskOptionsFieldMaskSchema |
| 621 | + ); |
| 622 | +} |
| 623 | + |
| 624 | +const columnTagValueExtractionFieldMaskSchema: FieldMaskSchema = { |
| 625 | + columnAlias: {wire: 'column_alias'}, |
| 626 | + tagKey: {wire: 'tag_key'}, |
| 627 | +}; |
| 628 | + |
| 629 | +export function columnTagValueExtractionFieldMask( |
| 630 | + ...paths: string[] |
| 631 | +): FieldMask<ColumnTagValueExtraction> { |
| 632 | + return FieldMask.build<ColumnTagValueExtraction>( |
| 633 | + paths, |
| 634 | + columnTagValueExtractionFieldMaskSchema |
| 635 | + ); |
| 636 | +} |
| 637 | + |
| 638 | +const createPolicyFieldMaskSchema: FieldMaskSchema = { |
| 639 | + policyInfo: {wire: 'policy_info', children: () => policyInfoFieldMaskSchema}, |
| 640 | +}; |
| 641 | + |
| 642 | +export function createPolicyFieldMask( |
| 643 | + ...paths: string[] |
| 644 | +): FieldMask<CreatePolicy> { |
| 645 | + return FieldMask.build<CreatePolicy>(paths, createPolicyFieldMaskSchema); |
| 646 | +} |
| 647 | + |
| 648 | +const deletePolicyFieldMaskSchema: FieldMaskSchema = { |
| 649 | + name: {wire: 'name'}, |
| 650 | + onSecurableFullname: {wire: 'on_securable_fullname'}, |
| 651 | + onSecurableType: {wire: 'on_securable_type'}, |
| 652 | +}; |
| 653 | + |
| 654 | +export function deletePolicyFieldMask( |
| 655 | + ...paths: string[] |
| 656 | +): FieldMask<DeletePolicy> { |
| 657 | + return FieldMask.build<DeletePolicy>(paths, deletePolicyFieldMaskSchema); |
| 658 | +} |
| 659 | + |
| 660 | +const denyOptionsFieldMaskSchema: FieldMaskSchema = { |
| 661 | + privileges: {wire: 'privileges'}, |
| 662 | +}; |
| 663 | + |
| 664 | +export function denyOptionsFieldMask( |
| 665 | + ...paths: string[] |
| 666 | +): FieldMask<DenyOptions> { |
| 667 | + return FieldMask.build<DenyOptions>(paths, denyOptionsFieldMaskSchema); |
| 668 | +} |
| 669 | + |
| 670 | +const functionArgumentFieldMaskSchema: FieldMaskSchema = { |
| 671 | + alias: {wire: 'alias'}, |
| 672 | + constant: {wire: 'constant'}, |
| 673 | + metadataExtraction: { |
| 674 | + wire: 'metadata_extraction', |
| 675 | + children: () => metadataExtractionExpressionFieldMaskSchema, |
| 676 | + }, |
| 677 | +}; |
| 678 | + |
| 679 | +export function functionArgumentFieldMask( |
| 680 | + ...paths: string[] |
| 681 | +): FieldMask<FunctionArgument> { |
| 682 | + return FieldMask.build<FunctionArgument>( |
| 683 | + paths, |
| 684 | + functionArgumentFieldMaskSchema |
| 685 | + ); |
| 686 | +} |
| 687 | + |
| 688 | +const getPolicyFieldMaskSchema: FieldMaskSchema = { |
| 689 | + name: {wire: 'name'}, |
| 690 | + onSecurableFullname: {wire: 'on_securable_fullname'}, |
| 691 | + onSecurableType: {wire: 'on_securable_type'}, |
| 692 | +}; |
| 693 | + |
| 694 | +export function getPolicyFieldMask(...paths: string[]): FieldMask<GetPolicy> { |
| 695 | + return FieldMask.build<GetPolicy>(paths, getPolicyFieldMaskSchema); |
| 696 | +} |
| 697 | + |
| 698 | +const grantOptionsFieldMaskSchema: FieldMaskSchema = { |
| 699 | + privileges: {wire: 'privileges'}, |
| 700 | +}; |
| 701 | + |
| 702 | +export function grantOptionsFieldMask( |
| 703 | + ...paths: string[] |
| 704 | +): FieldMask<GrantOptions> { |
| 705 | + return FieldMask.build<GrantOptions>(paths, grantOptionsFieldMaskSchema); |
| 706 | +} |
| 707 | + |
| 708 | +const listPoliciesFieldMaskSchema: FieldMaskSchema = { |
| 709 | + includeInherited: {wire: 'include_inherited'}, |
| 710 | + maxResults: {wire: 'max_results'}, |
| 711 | + onSecurableFullname: {wire: 'on_securable_fullname'}, |
| 712 | + onSecurableType: {wire: 'on_securable_type'}, |
| 713 | + pageToken: {wire: 'page_token'}, |
| 714 | +}; |
| 715 | + |
| 716 | +export function listPoliciesFieldMask( |
| 717 | + ...paths: string[] |
| 718 | +): FieldMask<ListPolicies> { |
| 719 | + return FieldMask.build<ListPolicies>(paths, listPoliciesFieldMaskSchema); |
| 720 | +} |
| 721 | + |
| 722 | +const listPoliciesResponseFieldMaskSchema: FieldMaskSchema = { |
| 723 | + nextPageToken: {wire: 'next_page_token'}, |
| 724 | + policies: {wire: 'policies'}, |
| 725 | +}; |
| 726 | + |
| 727 | +export function listPoliciesResponseFieldMask( |
| 728 | + ...paths: string[] |
| 729 | +): FieldMask<ListPolicies_Response> { |
| 730 | + return FieldMask.build<ListPolicies_Response>( |
| 731 | + paths, |
| 732 | + listPoliciesResponseFieldMaskSchema |
| 733 | + ); |
| 734 | +} |
| 735 | + |
| 736 | +const matchColumnFieldMaskSchema: FieldMaskSchema = { |
| 737 | + alias: {wire: 'alias'}, |
| 738 | + condition: {wire: 'condition'}, |
| 739 | +}; |
| 740 | + |
| 741 | +export function matchColumnFieldMask( |
| 742 | + ...paths: string[] |
| 743 | +): FieldMask<MatchColumn> { |
| 744 | + return FieldMask.build<MatchColumn>(paths, matchColumnFieldMaskSchema); |
| 745 | +} |
| 746 | + |
| 747 | +const metadataExtractionExpressionFieldMaskSchema: FieldMaskSchema = { |
| 748 | + columnTagValue: { |
| 749 | + wire: 'column_tag_value', |
| 750 | + children: () => columnTagValueExtractionFieldMaskSchema, |
| 751 | + }, |
| 752 | + tagValue: { |
| 753 | + wire: 'tag_value', |
| 754 | + children: () => tagValueExtractionFieldMaskSchema, |
| 755 | + }, |
| 756 | +}; |
| 757 | + |
| 758 | +export function metadataExtractionExpressionFieldMask( |
| 759 | + ...paths: string[] |
| 760 | +): FieldMask<MetadataExtractionExpression> { |
| 761 | + return FieldMask.build<MetadataExtractionExpression>( |
| 762 | + paths, |
| 763 | + metadataExtractionExpressionFieldMaskSchema |
| 764 | + ); |
| 765 | +} |
| 766 | + |
| 767 | +const policyInfoFieldMaskSchema: FieldMaskSchema = { |
| 768 | + columnMask: { |
| 769 | + wire: 'column_mask', |
| 770 | + children: () => columnMaskOptionsFieldMaskSchema, |
| 771 | + }, |
| 772 | + comment: {wire: 'comment'}, |
| 773 | + createdAt: {wire: 'created_at'}, |
| 774 | + createdBy: {wire: 'created_by'}, |
| 775 | + deny: {wire: 'deny', children: () => denyOptionsFieldMaskSchema}, |
| 776 | + exceptPrincipals: {wire: 'except_principals'}, |
| 777 | + forSecurableType: {wire: 'for_securable_type'}, |
| 778 | + grant: {wire: 'grant', children: () => grantOptionsFieldMaskSchema}, |
| 779 | + id: {wire: 'id'}, |
| 780 | + matchColumns: {wire: 'match_columns'}, |
| 781 | + name: {wire: 'name'}, |
| 782 | + onSecurableFullname: {wire: 'on_securable_fullname'}, |
| 783 | + onSecurableType: {wire: 'on_securable_type'}, |
| 784 | + policyType: {wire: 'policy_type'}, |
| 785 | + rowFilter: { |
| 786 | + wire: 'row_filter', |
| 787 | + children: () => rowFilterOptionsFieldMaskSchema, |
| 788 | + }, |
| 789 | + toPrincipals: {wire: 'to_principals'}, |
| 790 | + updatedAt: {wire: 'updated_at'}, |
| 791 | + updatedBy: {wire: 'updated_by'}, |
| 792 | + useSessionIdentity: {wire: 'use_session_identity'}, |
| 793 | + whenCondition: {wire: 'when_condition'}, |
| 794 | +}; |
| 795 | + |
| 796 | +export function policyInfoFieldMask(...paths: string[]): FieldMask<PolicyInfo> { |
| 797 | + return FieldMask.build<PolicyInfo>(paths, policyInfoFieldMaskSchema); |
| 798 | +} |
| 799 | + |
| 800 | +const rowFilterOptionsFieldMaskSchema: FieldMaskSchema = { |
| 801 | + functionName: {wire: 'function_name'}, |
| 802 | + using: {wire: 'using'}, |
| 803 | +}; |
| 804 | + |
| 805 | +export function rowFilterOptionsFieldMask( |
| 806 | + ...paths: string[] |
| 807 | +): FieldMask<RowFilterOptions> { |
| 808 | + return FieldMask.build<RowFilterOptions>( |
| 809 | + paths, |
| 810 | + rowFilterOptionsFieldMaskSchema |
| 811 | + ); |
| 812 | +} |
| 813 | + |
| 814 | +const tagValueExtractionFieldMaskSchema: FieldMaskSchema = { |
| 815 | + tagKey: {wire: 'tag_key'}, |
| 816 | +}; |
| 817 | + |
| 818 | +export function tagValueExtractionFieldMask( |
| 819 | + ...paths: string[] |
| 820 | +): FieldMask<TagValueExtraction> { |
| 821 | + return FieldMask.build<TagValueExtraction>( |
| 822 | + paths, |
| 823 | + tagValueExtractionFieldMaskSchema |
| 824 | + ); |
| 825 | +} |
| 826 | + |
| 827 | +const updatePolicyFieldMaskSchema: FieldMaskSchema = { |
| 828 | + name: {wire: 'name'}, |
| 829 | + onSecurableFullname: {wire: 'on_securable_fullname'}, |
| 830 | + onSecurableType: {wire: 'on_securable_type'}, |
| 831 | + policyInfo: {wire: 'policy_info', children: () => policyInfoFieldMaskSchema}, |
| 832 | + updateMask: {wire: 'update_mask'}, |
| 833 | +}; |
| 834 | + |
| 835 | +export function updatePolicyFieldMask( |
| 836 | + ...paths: string[] |
| 837 | +): FieldMask<UpdatePolicy> { |
| 838 | + return FieldMask.build<UpdatePolicy>(paths, updatePolicyFieldMaskSchema); |
| 839 | +} |
0 commit comments