Skip to content

Commit 19b73c7

Browse files
fzkhanFaizan Uddin Fahad Khan
andauthored
[Az.DataTransfer] Rebuild Az.DataTransfer module for the listing Flow Profiles (#28693)
Co-authored-by: Faizan Uddin Fahad Khan <[email protected]>
1 parent 92c1c3e commit 19b73c7

File tree

10 files changed

+117
-51
lines changed

10 files changed

+117
-51
lines changed

src/DataTransfer/DataTransfer.Autorest/Properties/AssemblyInfo.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
[assembly: System.Reflection.AssemblyCopyrightAttribute("Copyright © Microsoft")]
2121
[assembly: System.Reflection.AssemblyProductAttribute("Microsoft Azure PowerShell")]
2222
[assembly: System.Reflection.AssemblyTitleAttribute("Microsoft Azure PowerShell - DataTransfer")]
23-
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0")]
24-
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0")]
23+
[assembly: System.Reflection.AssemblyFileVersionAttribute("2.0.0")]
24+
[assembly: System.Reflection.AssemblyVersionAttribute("2.0.0")]
2525
[assembly: System.Runtime.InteropServices.ComVisibleAttribute(false)]
2626
[assembly: System.CLSCompliantAttribute(false)]

src/DataTransfer/DataTransfer.Autorest/README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ For information on how to develop for `Az.DataTransfer`, see [how-to.md](how-to.
2929
3030
```yaml
3131
# pin the swagger version by using the commit id instead of branch name
32-
commit: 3a1833c86fbad00062482b683ee0df83cc2832e6
32+
commit: ab76a9a9cdd1812bf936ccf3b3b2ccf6be89d3de
3333
namespace: ADT
3434
require:
3535
# readme.azure.noprofile.md is the common configuration file
@@ -38,6 +38,9 @@ require:
3838
# If the swagger has not been put in the repo, you may uncomment the following line and refer to it locally
3939
# - (this-folder)/relative-path-to-your-local-readme.md
4040

41+
# Pin to version
42+
tag: package-2025-05-30-preview
43+
4144
try-require:
4245
- $(repo)/specification/azuredatatransfer/resource-manager/readme.powershell.md
4346

src/DataTransfer/DataTransfer.Autorest/docs/Get-AzDataTransferFlowProfile.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
327327
328328
### ADT.Models.IFlowProfile
329329
330-
### ADT.Models.IFlowProfileMetadata
330+
### ADT.Models.IFlowProfilesListResult
331331
332332
## NOTES
333333
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
"generate_Id": "20609426-b92c-4807-a758-9ab12ecd2318"
2+
"generate_Id": "87d32e10-daae-4ed4-bd86-53b195130622"
33
}

src/DataTransfer/DataTransfer.Autorest/test/Get-AzDataTransferFlowProfile.Recording.json

Lines changed: 69 additions & 26 deletions
Large diffs are not rendered by default.

src/DataTransfer/DataTransfer.Autorest/test/Get-AzDataTransferFlowProfile.Tests.ps1

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,25 @@ $testRunId = "09280826"
1919
$getTestFlowProfileName = "test-basic-fp-$testRunId"
2020

2121
Describe 'Get-AzDataTransferFlowProfile' {
22+
It 'List via Provider Action' {
23+
{
24+
# List all FlowProfiles in the pipeline
25+
$flowProfiles = Get-AzDataTransferFlowProfile -PipelineName $env.PipelineName
26+
$flowProfiles.Count | Should -BeGreaterThan 0
27+
$flowProfiles | ForEach-Object {
28+
$_.Name | Should -Not -BeNullOrEmpty
29+
$_.ReplicationScenario | Should -Not -BeNullOrEmpty
30+
$_.Status | Should -Not -BeNullOrEmpty
31+
}
32+
33+
# Verify our test FlowProfile is in the list
34+
$testFlowProfile = $flowProfiles | Where-Object { $_.Name -eq $getTestFlowProfileName }
35+
$testFlowProfile | Should -Not -BeNullOrEmpty
36+
$testFlowProfile.ReplicationScenario | Should -Be "Files"
37+
$testFlowProfile.Status | Should -Be "Enabled"
38+
} | Should -Not -Throw
39+
}
40+
2241
It 'List' {
2342
{
2443
# List all FlowProfiles in the pipeline

src/DataTransfer/DataTransfer.sln

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DataTransfer", "DataTransfe
2121
EndProject
2222
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "DataTransfer.Autorest", "DataTransfer.Autorest", "{E3651BD2-2AAA-41CF-2DFA-F6780C65890A}"
2323
EndProject
24-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.DataTransfer", "..\..\generated\DataTransfer\DataTransfer.Autorest\Az.DataTransfer.csproj", "{868A853E-2073-412A-AA92-4C8ED18C4919}"
24+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.DataTransfer", "..\..\generated\DataTransfer\DataTransfer.Autorest\Az.DataTransfer.csproj", "{207F3859-F97D-422C-A3F4-D3A9B4F06B81}"
2525
EndProject
2626
Global
2727
GlobalSection(SolutionConfigurationPlatforms) = preSolution
@@ -117,18 +117,18 @@ Global
117117
{23D2B465-3259-453B-A927-C5C4E7EE2375}.Release|x64.Build.0 = Release|Any CPU
118118
{23D2B465-3259-453B-A927-C5C4E7EE2375}.Release|x86.ActiveCfg = Release|Any CPU
119119
{23D2B465-3259-453B-A927-C5C4E7EE2375}.Release|x86.Build.0 = Release|Any CPU
120-
{868A853E-2073-412A-AA92-4C8ED18C4919}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
121-
{868A853E-2073-412A-AA92-4C8ED18C4919}.Debug|Any CPU.Build.0 = Debug|Any CPU
122-
{868A853E-2073-412A-AA92-4C8ED18C4919}.Debug|x64.ActiveCfg = Debug|Any CPU
123-
{868A853E-2073-412A-AA92-4C8ED18C4919}.Debug|x64.Build.0 = Debug|Any CPU
124-
{868A853E-2073-412A-AA92-4C8ED18C4919}.Debug|x86.ActiveCfg = Debug|Any CPU
125-
{868A853E-2073-412A-AA92-4C8ED18C4919}.Debug|x86.Build.0 = Debug|Any CPU
126-
{868A853E-2073-412A-AA92-4C8ED18C4919}.Release|Any CPU.ActiveCfg = Release|Any CPU
127-
{868A853E-2073-412A-AA92-4C8ED18C4919}.Release|Any CPU.Build.0 = Release|Any CPU
128-
{868A853E-2073-412A-AA92-4C8ED18C4919}.Release|x64.ActiveCfg = Release|Any CPU
129-
{868A853E-2073-412A-AA92-4C8ED18C4919}.Release|x64.Build.0 = Release|Any CPU
130-
{868A853E-2073-412A-AA92-4C8ED18C4919}.Release|x86.ActiveCfg = Release|Any CPU
131-
{868A853E-2073-412A-AA92-4C8ED18C4919}.Release|x86.Build.0 = Release|Any CPU
120+
{207F3859-F97D-422C-A3F4-D3A9B4F06B81}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
121+
{207F3859-F97D-422C-A3F4-D3A9B4F06B81}.Debug|Any CPU.Build.0 = Debug|Any CPU
122+
{207F3859-F97D-422C-A3F4-D3A9B4F06B81}.Debug|x64.ActiveCfg = Debug|Any CPU
123+
{207F3859-F97D-422C-A3F4-D3A9B4F06B81}.Debug|x64.Build.0 = Debug|Any CPU
124+
{207F3859-F97D-422C-A3F4-D3A9B4F06B81}.Debug|x86.ActiveCfg = Debug|Any CPU
125+
{207F3859-F97D-422C-A3F4-D3A9B4F06B81}.Debug|x86.Build.0 = Debug|Any CPU
126+
{207F3859-F97D-422C-A3F4-D3A9B4F06B81}.Release|Any CPU.ActiveCfg = Release|Any CPU
127+
{207F3859-F97D-422C-A3F4-D3A9B4F06B81}.Release|Any CPU.Build.0 = Release|Any CPU
128+
{207F3859-F97D-422C-A3F4-D3A9B4F06B81}.Release|x64.ActiveCfg = Release|Any CPU
129+
{207F3859-F97D-422C-A3F4-D3A9B4F06B81}.Release|x64.Build.0 = Release|Any CPU
130+
{207F3859-F97D-422C-A3F4-D3A9B4F06B81}.Release|x86.ActiveCfg = Release|Any CPU
131+
{207F3859-F97D-422C-A3F4-D3A9B4F06B81}.Release|x86.Build.0 = Release|Any CPU
132132
EndGlobalSection
133133
GlobalSection(SolutionProperties) = preSolution
134134
HideSolutionNode = FALSE
@@ -140,6 +140,6 @@ Global
140140
{4BDF5DC6-A518-46E6-99C6-3AF3BFE24451} = {32836310-FB5E-5A92-56B4-44D826EF11F5}
141141
{244454EF-5EAF-40F6-895F-DA49D8681DFF} = {32836310-FB5E-5A92-56B4-44D826EF11F5}
142142
{081B7423-0DAA-462B-ACF1-4C7600C6D131} = {32836310-FB5E-5A92-56B4-44D826EF11F5}
143-
{868A853E-2073-412A-AA92-4C8ED18C4919} = {E3651BD2-2AAA-41CF-2DFA-F6780C65890A}
143+
{207F3859-F97D-422C-A3F4-D3A9B4F06B81} = {E3651BD2-2AAA-41CF-2DFA-F6780C65890A}
144144
EndGlobalSection
145145
EndGlobal

src/DataTransfer/DataTransfer/Az.DataTransfer.psd1

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
#
44
# Generated by: Microsoft Corporation
55
#
6-
# Generated on: 9/30/2025
6+
# Generated on: 10/15/2025
77
#
88

99
@{
@@ -57,10 +57,10 @@ RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '5.3.0'; })
5757
RequiredAssemblies = 'DataTransfer.Autorest/bin/Az.DataTransfer.private.dll'
5858

5959
# Script files (.ps1) that are run in the caller's environment prior to importing this module.
60-
# ScriptsToProcess = @()
60+
ScriptsToProcess = @()
6161

6262
# Type files (.ps1xml) to be loaded when importing this module
63-
# TypesToProcess = @()
63+
TypesToProcess = @()
6464

6565
# Format files (.ps1xml) to be loaded when importing this module
6666
FormatsToProcess = 'DataTransfer.Autorest/Az.DataTransfer.format.ps1xml'
@@ -109,7 +109,7 @@ PrivateData = @{
109109
PSData = @{
110110

111111
# Tags applied to this module. These help with module discovery in online galleries.
112-
Tags = 'Azure','ResourceManager','ARM','PSModule','DataTransfer'
112+
Tags = 'Azure', 'ResourceManager', 'ARM', 'PSModule', 'DataTransfer'
113113

114114
# A URL to the license for this module.
115115
LicenseUri = 'https://aka.ms/azps-license'
@@ -135,7 +135,7 @@ PrivateData = @{
135135

136136
} # End of PSData hashtable
137137

138-
} # End of PrivateData hashtable
138+
} # End of PrivateData hashtable
139139

140140
# HelpInfo URI of this module
141141
# HelpInfoURI = ''

src/DataTransfer/DataTransfer/ChangeLog.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
- Additional information about change #1
1919
-->
2020
## Upcoming Release
21+
* Fixed return type for Get-AzDataTransferFlowProfile cmdlet
2122

2223
## Version 2.0.0
2324
* Added commands for FlowProfile creation and management

src/DataTransfer/DataTransfer/help/Get-AzDataTransferFlowProfile.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
340340
341341
### ADT.Models.IFlowProfile
342342
343-
### ADT.Models.IFlowProfileMetadata
343+
### ADT.Models.IFlowProfilesListResult
344344
345345
## NOTES
346346

0 commit comments

Comments
 (0)