|
24 | 24 | get_api_version_type, blob_download_file_path_validator, blob_tier_validator, validate_subnet, |
25 | 25 | validate_immutability_arguments, validate_blob_name_for_upload, validate_share_close_handle, |
26 | 26 | blob_tier_validator_track2, services_type_v2, resource_type_type_v2, PermissionScopeAddAction, |
27 | | - SshPublicKeyAddAction, user_delegation_oid_validator) |
| 27 | + SshPublicKeyAddAction, user_delegation_oid_validator, user_delegation_tid_validator) |
28 | 28 |
|
29 | 29 |
|
30 | 30 | def load_arguments(self, _): # pylint: disable=too-many-locals, too-many-statements, too-many-lines, too-many-branches, line-too-long |
@@ -979,6 +979,9 @@ def load_arguments(self, _): # pylint: disable=too-many-locals, too-many-statem |
979 | 979 | help='Specifies the Entra ID of the user that is authorized to use the resulting SAS URL. ' |
980 | 980 | 'The resulting SAS URL must be used in conjunction with an Entra ID token that has been issued ' |
981 | 981 | 'to the user specified in this value.') |
| 982 | + c.argument('user_delegation_tid', validator=user_delegation_tid_validator, is_preview=True, |
| 983 | + help='The delegated user tenant id in Azure AD. ' |
| 984 | + 'This parameter can only be specified when using OAuth.') |
982 | 985 |
|
983 | 986 | with self.argument_context('storage blob restore', resource_type=ResourceType.MGMT_STORAGE) as c: |
984 | 987 | from ._validators import BlobRangeAddAction |
@@ -1702,6 +1705,9 @@ def load_arguments(self, _): # pylint: disable=too-many-locals, too-many-statem |
1702 | 1705 | help='Specifies the Entra ID of the user that is authorized to use the resulting SAS URL. ' |
1703 | 1706 | 'The resulting SAS URL must be used in conjunction with an Entra ID token that has been issued ' |
1704 | 1707 | 'to the user specified in this value.') |
| 1708 | + c.argument('user_delegation_tid', validator=user_delegation_tid_validator, is_preview=True, |
| 1709 | + help='The delegated user tenant id in Azure AD. ' |
| 1710 | + 'This parameter can only be specified when using OAuth.') |
1705 | 1711 |
|
1706 | 1712 | for cmd in ['acquire', 'renew', 'break', 'change', 'release']: |
1707 | 1713 | with self.argument_context(f'storage container lease {cmd}') as c: |
@@ -1970,6 +1976,9 @@ def load_arguments(self, _): # pylint: disable=too-many-locals, too-many-statem |
1970 | 1976 | help='Specifies the Entra ID of the user that is authorized to use the resulting SAS URL. ' |
1971 | 1977 | 'The resulting SAS URL must be used in conjunction with an Entra ID token that has been issued ' |
1972 | 1978 | 'to the user specified in this value.') |
| 1979 | + c.argument('user_delegation_tid', validator=user_delegation_tid_validator, is_preview=True, |
| 1980 | + help='The delegated user tenant id in Azure AD. ' |
| 1981 | + 'This parameter can only be specified when using OAuth.') |
1973 | 1982 |
|
1974 | 1983 | with self.argument_context('storage share update') as c: |
1975 | 1984 | c.extra('share_name', share_name_type, options_list=('--name', '-n'), required=True) |
@@ -2185,6 +2194,8 @@ def load_arguments(self, _): # pylint: disable=too-many-locals, too-many-statem |
2185 | 2194 | help='Specifies the Entra ID of the user that is authorized to use the resulting SAS URL. ' |
2186 | 2195 | 'The resulting SAS URL must be used in conjunction with an Entra ID token that has been issued ' |
2187 | 2196 | 'to the user specified in this value.') |
| 2197 | + c.extra('user_delegation_tid', validator=user_delegation_tid_validator, is_preview=True, |
| 2198 | + help='The delegated user tenant id in Azure AD. This parameter can only be specified when using OAuth.') |
2188 | 2199 |
|
2189 | 2200 | with self.argument_context('storage file list') as c: |
2190 | 2201 | c.extra('share_name', share_name_type, required=True) |
@@ -2338,6 +2349,9 @@ def load_arguments(self, _): # pylint: disable=too-many-locals, too-many-statem |
2338 | 2349 | help='Specifies the Entra ID of the user that is authorized to use the resulting SAS URL. ' |
2339 | 2350 | 'The resulting SAS URL must be used in conjunction with an Entra ID token that has been issued ' |
2340 | 2351 | 'to the user specified in this value.') |
| 2352 | + c.argument('user_delegation_tid', validator=user_delegation_tid_validator, is_preview=True, |
| 2353 | + help='The delegated user tenant id in Azure AD. ' |
| 2354 | + 'This parameter can only be specified when using OAuth.') |
2341 | 2355 |
|
2342 | 2356 | with self.argument_context('storage queue list') as c: |
2343 | 2357 | c.argument('include_metadata', help='Specify that queue metadata be returned in the response.') |
@@ -2587,6 +2601,9 @@ def load_arguments(self, _): # pylint: disable=too-many-locals, too-many-statem |
2587 | 2601 | help='Specifies the Entra ID of the user that is authorized to use the resulting SAS URL. ' |
2588 | 2602 | 'The resulting SAS URL must be used in conjunction with an Entra ID token that has been issued ' |
2589 | 2603 | 'to the user specified in this value.') |
| 2604 | + c.argument('user_delegation_tid', validator=user_delegation_tid_validator, is_preview=True, |
| 2605 | + help='The delegated user tenant id in Azure AD. ' |
| 2606 | + 'This parameter can only be specified when using OAuth.') |
2590 | 2607 |
|
2591 | 2608 | with self.argument_context('storage fs list') as c: |
2592 | 2609 | c.argument('include_metadata', arg_type=get_three_state_flag(), |
@@ -2717,6 +2734,9 @@ def load_arguments(self, _): # pylint: disable=too-many-locals, too-many-statem |
2717 | 2734 | help='Specifies the Entra ID of the user that is authorized to use the resulting SAS URL. ' |
2718 | 2735 | 'The resulting SAS URL must be used in conjunction with an Entra ID token that has been issued ' |
2719 | 2736 | 'to the user specified in this value.') |
| 2737 | + c.argument('user_delegation_tid', validator=user_delegation_tid_validator, is_preview=True, |
| 2738 | + help='The delegated user tenant id in Azure AD. ' |
| 2739 | + 'This parameter can only be specified when using OAuth.') |
2720 | 2740 |
|
2721 | 2741 | with self.argument_context('storage fs file generate-sas') as c: |
2722 | 2742 | t_file_system_permissions = self.get_sdk('_models#FileSystemSasPermissions', |
@@ -2753,6 +2773,9 @@ def load_arguments(self, _): # pylint: disable=too-many-locals, too-many-statem |
2753 | 2773 | help='Specifies the Entra ID of the user that is authorized to use the resulting SAS URL. ' |
2754 | 2774 | 'The resulting SAS URL must be used in conjunction with an Entra ID token that has been issued ' |
2755 | 2775 | 'to the user specified in this value.') |
| 2776 | + c.argument('user_delegation_tid', validator=user_delegation_tid_validator, is_preview=True, |
| 2777 | + help='The delegated user tenant id in Azure AD. ' |
| 2778 | + 'This parameter can only be specified when using OAuth.') |
2756 | 2779 |
|
2757 | 2780 | with self.argument_context('storage fs file list') as c: |
2758 | 2781 | c.extra('file_system_name', options_list=['-f', '--file-system'], |
|
0 commit comments