diff --git a/generated/CloudService/CloudService.Autorest/Properties/AssemblyInfo.cs b/generated/CloudService/CloudService.Autorest/Properties/AssemblyInfo.cs index 64a4c4cd4e58..464810880fba 100644 --- a/generated/CloudService/CloudService.Autorest/Properties/AssemblyInfo.cs +++ b/generated/CloudService/CloudService.Autorest/Properties/AssemblyInfo.cs @@ -1,28 +1,26 @@ -// ---------------------------------------------------------------------------------- -// -// Copyright Microsoft Corporation -// Licensed under the Apache License, Version 2.0 (the "License"); +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the Apache License, Version 2.0 (the ""License""); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // http://www.apache.org/licenses/LICENSE-2.0 // Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, +// distributed under the License is distributed on an ""AS IS"" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. -// ---------------------------------------------------------------------------------- +// Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code +// is regenerated. using System; using System.Reflection; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; -[assembly: AssemblyTitle("Microsoft Azure Powershell - CloudService")] -[assembly: AssemblyCompany(Microsoft.WindowsAzure.Commands.Common.AzurePowerShell.AssemblyCompany)] -[assembly: AssemblyProduct(Microsoft.WindowsAzure.Commands.Common.AzurePowerShell.AssemblyProduct)] -[assembly: AssemblyCopyright(Microsoft.WindowsAzure.Commands.Common.AzurePowerShell.AssemblyCopyright)] - -[assembly: ComVisible(false)] -[assembly: CLSCompliant(false)] -[assembly: Guid("d6032dad-d733-4990-85ed-dad18681d1fe")] -[assembly: AssemblyVersion("2.1.0")] -[assembly: AssemblyFileVersion("2.1.0")] +[assembly: System.Reflection.AssemblyCompanyAttribute("Microsoft")] +[assembly: System.Reflection.AssemblyCopyrightAttribute("Copyright © Microsoft")] +[assembly: System.Reflection.AssemblyProductAttribute("Microsoft Azure PowerShell")] +[assembly: System.Reflection.AssemblyTitleAttribute("Microsoft Azure PowerShell - CloudService")] +[assembly: System.Reflection.AssemblyFileVersionAttribute("2.1.0")] +[assembly: System.Reflection.AssemblyVersionAttribute("2.1.0")] +[assembly: System.Runtime.InteropServices.ComVisibleAttribute(false)] +[assembly: System.CLSCompliantAttribute(false)] diff --git a/generated/CloudService/CloudService.Autorest/exports/New-AzCloudServiceLoadBalancerFrontendIPConfigurationObject.ps1 b/generated/CloudService/CloudService.Autorest/exports/New-AzCloudServiceLoadBalancerFrontendIPConfigurationObject.ps1 index 724f25d9215b..133bed2e1e98 100644 --- a/generated/CloudService/CloudService.Autorest/exports/New-AzCloudServiceLoadBalancerFrontendIPConfigurationObject.ps1 +++ b/generated/CloudService/CloudService.Autorest/exports/New-AzCloudServiceLoadBalancerFrontendIPConfigurationObject.ps1 @@ -42,7 +42,7 @@ param( [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Body')] [System.String] - # Name of FrontendIpConfigration. + # Name of FrontendIpConfiguration. ${Name}, [Parameter(ParameterSetName='DefaultParameterSet')] diff --git a/generated/CloudService/CloudService.Autorest/exports/ProxyCmdletDefinitions.ps1 b/generated/CloudService/CloudService.Autorest/exports/ProxyCmdletDefinitions.ps1 index 6c1ae59d28f8..b97758126a65 100644 --- a/generated/CloudService/CloudService.Autorest/exports/ProxyCmdletDefinitions.ps1 +++ b/generated/CloudService/CloudService.Autorest/exports/ProxyCmdletDefinitions.ps1 @@ -5626,7 +5626,7 @@ param( [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Body')] [System.String] - # Name of FrontendIpConfigration. + # Name of FrontendIpConfiguration. ${Name}, [Parameter(ParameterSetName='DefaultParameterSet')] diff --git a/generated/CloudService/CloudService.Autorest/generate-info.json b/generated/CloudService/CloudService.Autorest/generate-info.json index 726df2dd5cef..e68605a92d65 100644 --- a/generated/CloudService/CloudService.Autorest/generate-info.json +++ b/generated/CloudService/CloudService.Autorest/generate-info.json @@ -1,3 +1,3 @@ { - "generate_Id": "f75fc427-d5a9-4621-809f-472136726c10" + "generate_Id": "0c134ecb-184e-4347-ac0b-b64bbaaa9e6f" } diff --git a/generated/CloudService/CloudService.Autorest/generated/cmdlets/GetAzCloudServiceInstanceView_Get.cs b/generated/CloudService/CloudService.Autorest/generated/cmdlets/GetAzCloudServiceInstanceView_Get.cs index a9ddc611e4a2..fc7d9bac1cee 100644 --- a/generated/CloudService/CloudService.Autorest/generated/cmdlets/GetAzCloudServiceInstanceView_Get.cs +++ b/generated/CloudService/CloudService.Autorest/generated/cmdlets/GetAzCloudServiceInstanceView_Get.cs @@ -13,6 +13,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Cmdlets /// [OpenAPI] GetInstanceView=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/instanceView" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzCloudServiceInstanceView_Get")] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.OutputBreakingChange("Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20220904.ICloudServiceInstanceView", "15.0.0", "9.0.0", "2025/11/03", DeprecatedOutputProperties=new string[] {"Statuses","RoleInstanceStatusesSummary","PrivateId"}, NewOutputProperties=new string[] {"Statuses","RoleInstanceStatusesSummary","PrivateId"}, ChangeDescription="The types of the properties 'Statuses', 'RoleInstanceStatusesSummary', and 'PrivateId' will be changed from object to 'List'.")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20220904.ICloudServiceInstanceView))] [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Description(@"Gets the status of a cloud service.")] [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Generated] diff --git a/generated/CloudService/CloudService.Autorest/generated/cmdlets/GetAzCloudServiceNetworkInterface_Get.cs b/generated/CloudService/CloudService.Autorest/generated/cmdlets/GetAzCloudServiceNetworkInterface_Get.cs index bf86fea0ca46..dd3b6f1bada0 100644 --- a/generated/CloudService/CloudService.Autorest/generated/cmdlets/GetAzCloudServiceNetworkInterface_Get.cs +++ b/generated/CloudService/CloudService.Autorest/generated/cmdlets/GetAzCloudServiceNetworkInterface_Get.cs @@ -13,6 +13,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Cmdlets /// [OpenAPI] GetByCloudService=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/roleInstances/{roleInstanceName}/networkInterfaces/{networkInterfaceName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzCloudServiceNetworkInterface_Get")] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.OutputBreakingChange("Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.INetworkInterface", "15.0.0", "9.0.0", "2025/11/03", DeprecatedOutputProperties=new string[] {"ApplicationSecurityGroup","CustomDnsConfig","FlowLog","LoadBalancerFrontendIPConfiguration","NetworkSecurityGroupPropertiesNetworkInterface","PrivateEndpointPropertiesNetworkInterface","PrivateLinkServicePropertiesNetworkInterface","IPConfiguration","TapConfiguration","PrivateEndpointConnection","PrivateEndpointPropertiesIPConfiguration","PrivateLinkServiceConnection","ManualPrivateLinkServiceConnection","PrivateLinkServicePropertiesIPConfiguration","SecurityRule","DefaultSecurityRule","ApplicationGatewayIPConfiguration","Delegation","FlowLog","IPConfiguration","IPConfigurationProfile","NetworkInterface","PrivateEndpoint","ResourceNavigationLink","Route","DefaultSecurityRule","SecurityRule","ServiceAssociationLink","ServiceEndpointPolicy","ServiceEndpoint","NetworkSecurityGroupPropertiesSubnet","RouteTablePropertiesSubnet","IPAllocation","PropertiesAddressPrefixes","PropertiesNetworkSecurityGroupPropertiesSubnets","HostedWorkload","VisibilitySubscription","DnsSettingDnsServer","DnsSettingAppliedDnsServer","AutoApprovalSubscription","Fqdn"}, NewOutputProperties=new string[] {"ApplicationSecurityGroup","CustomDnsConfig","FlowLog","LoadBalancerFrontendIPConfiguration","NetworkSecurityGroupPropertiesNetworkInterface","PrivateEndpointPropertiesNetworkInterface","PrivateLinkServicePropertiesNetworkInterface","IPConfiguration","TapConfiguration","PrivateEndpointConnection","PrivateEndpointPropertiesIPConfiguration","PrivateLinkServiceConnection","ManualPrivateLinkServiceConnection","PrivateLinkServicePropertiesIPConfiguration","SecurityRule","DefaultSecurityRule","ApplicationGatewayIPConfiguration","Delegation","FlowLog","IPConfiguration","IPConfigurationProfile","NetworkInterface","PrivateEndpoint","ResourceNavigationLink","Route","DefaultSecurityRule","SecurityRule","ServiceAssociationLink","ServiceEndpointPolicy","ServiceEndpoint","NetworkSecurityGroupPropertiesSubnet","RouteTablePropertiesSubnet","IPAllocation","PropertiesAddressPrefixes","PropertiesNetworkSecurityGroupPropertiesSubnets","HostedWorkload","VisibilitySubscription","DnsSettingDnsServer","DnsSettingAppliedDnsServer","AutoApprovalSubscription","Fqdn"}, ChangeDescription="The types of the properties 'ApplicationSecurityGroup', 'CustomDnsConfig', 'FlowLog', 'LoadBalancerFrontendIPConfiguration', 'NetworkSecurityGroupPropertiesNetworkInterface', 'PrivateEndpointPropertiesNetworkInterface', 'PrivateLinkServicePropertiesNetworkInterface', 'IPConfiguration', 'TapConfiguration', 'PrivateEndpointConnection', 'PrivateEndpointPropertiesIPConfiguration', 'PrivateLinkServiceConnection', 'ManualPrivateLinkServiceConnection', 'PrivateLinkServicePropertiesIPConfiguration', 'SecurityRule', 'DefaultSecurityRule', 'ApplicationGatewayIPConfiguration', 'Delegation', 'FlowLog', 'IPConfiguration', 'IPConfigurationProfile', 'NetworkInterface', 'PrivateEndpoint', 'ResourceNavigationLink', 'Route', 'DefaultSecurityRule', 'SecurityRule', 'ServiceAssociationLink', 'ServiceEndpointPolicy', 'ServiceEndpoint', 'NetworkSecurityGroupPropertiesSubnet', 'RouteTablePropertiesSubnet', 'IPAllocation', 'PropertiesAddressPrefixes', 'PropertiesNetworkSecurityGroupPropertiesSubnets', 'HostedWorkload', 'VisibilitySubscription', 'DnsSettingDnsServer', 'DnsSettingAppliedDnsServer', 'AutoApprovalSubscription', 'Fqdn' will be changed from object to 'List'.")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.INetworkInterface))] [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Description(@"Get the specified network interface in a cloud service.")] [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Generated] diff --git a/generated/CloudService/CloudService.Autorest/generated/cmdlets/GetAzCloudServiceNetworkInterface_GetViaIdentity.cs b/generated/CloudService/CloudService.Autorest/generated/cmdlets/GetAzCloudServiceNetworkInterface_GetViaIdentity.cs index 4b62f7da4dda..1bd03e912392 100644 --- a/generated/CloudService/CloudService.Autorest/generated/cmdlets/GetAzCloudServiceNetworkInterface_GetViaIdentity.cs +++ b/generated/CloudService/CloudService.Autorest/generated/cmdlets/GetAzCloudServiceNetworkInterface_GetViaIdentity.cs @@ -13,6 +13,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Cmdlets /// [OpenAPI] GetByCloudService=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/roleInstances/{roleInstanceName}/networkInterfaces/{networkInterfaceName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzCloudServiceNetworkInterface_GetViaIdentity")] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.OutputBreakingChange("Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.INetworkInterface", "15.0.0", "9.0.0", "2025/11/03", DeprecatedOutputProperties=new string[] {"ApplicationSecurityGroup","CustomDnsConfig","FlowLog","LoadBalancerFrontendIPConfiguration","NetworkSecurityGroupPropertiesNetworkInterface","PrivateEndpointPropertiesNetworkInterface","PrivateLinkServicePropertiesNetworkInterface","IPConfiguration","TapConfiguration","PrivateEndpointConnection","PrivateEndpointPropertiesIPConfiguration","PrivateLinkServiceConnection","ManualPrivateLinkServiceConnection","PrivateLinkServicePropertiesIPConfiguration","SecurityRule","DefaultSecurityRule","ApplicationGatewayIPConfiguration","Delegation","FlowLog","IPConfiguration","IPConfigurationProfile","NetworkInterface","PrivateEndpoint","ResourceNavigationLink","Route","DefaultSecurityRule","SecurityRule","ServiceAssociationLink","ServiceEndpointPolicy","ServiceEndpoint","NetworkSecurityGroupPropertiesSubnet","RouteTablePropertiesSubnet","IPAllocation","PropertiesAddressPrefixes","PropertiesNetworkSecurityGroupPropertiesSubnets","HostedWorkload","VisibilitySubscription","DnsSettingDnsServer","DnsSettingAppliedDnsServer","AutoApprovalSubscription","Fqdn"}, NewOutputProperties=new string[] {"ApplicationSecurityGroup","CustomDnsConfig","FlowLog","LoadBalancerFrontendIPConfiguration","NetworkSecurityGroupPropertiesNetworkInterface","PrivateEndpointPropertiesNetworkInterface","PrivateLinkServicePropertiesNetworkInterface","IPConfiguration","TapConfiguration","PrivateEndpointConnection","PrivateEndpointPropertiesIPConfiguration","PrivateLinkServiceConnection","ManualPrivateLinkServiceConnection","PrivateLinkServicePropertiesIPConfiguration","SecurityRule","DefaultSecurityRule","ApplicationGatewayIPConfiguration","Delegation","FlowLog","IPConfiguration","IPConfigurationProfile","NetworkInterface","PrivateEndpoint","ResourceNavigationLink","Route","DefaultSecurityRule","SecurityRule","ServiceAssociationLink","ServiceEndpointPolicy","ServiceEndpoint","NetworkSecurityGroupPropertiesSubnet","RouteTablePropertiesSubnet","IPAllocation","PropertiesAddressPrefixes","PropertiesNetworkSecurityGroupPropertiesSubnets","HostedWorkload","VisibilitySubscription","DnsSettingDnsServer","DnsSettingAppliedDnsServer","AutoApprovalSubscription","Fqdn"}, ChangeDescription="The types of the properties 'ApplicationSecurityGroup', 'CustomDnsConfig', 'FlowLog', 'LoadBalancerFrontendIPConfiguration', 'NetworkSecurityGroupPropertiesNetworkInterface', 'PrivateEndpointPropertiesNetworkInterface', 'PrivateLinkServicePropertiesNetworkInterface', 'IPConfiguration', 'TapConfiguration', 'PrivateEndpointConnection', 'PrivateEndpointPropertiesIPConfiguration', 'PrivateLinkServiceConnection', 'ManualPrivateLinkServiceConnection', 'PrivateLinkServicePropertiesIPConfiguration', 'SecurityRule', 'DefaultSecurityRule', 'ApplicationGatewayIPConfiguration', 'Delegation', 'FlowLog', 'IPConfiguration', 'IPConfigurationProfile', 'NetworkInterface', 'PrivateEndpoint', 'ResourceNavigationLink', 'Route', 'DefaultSecurityRule', 'SecurityRule', 'ServiceAssociationLink', 'ServiceEndpointPolicy', 'ServiceEndpoint', 'NetworkSecurityGroupPropertiesSubnet', 'RouteTablePropertiesSubnet', 'IPAllocation', 'PropertiesAddressPrefixes', 'PropertiesNetworkSecurityGroupPropertiesSubnets', 'HostedWorkload', 'VisibilitySubscription', 'DnsSettingDnsServer', 'DnsSettingAppliedDnsServer', 'AutoApprovalSubscription', 'Fqdn' will be changed from object to 'List'.")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.INetworkInterface))] [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Description(@"Get the specified network interface in a cloud service.")] [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Generated] diff --git a/generated/CloudService/CloudService.Autorest/generated/cmdlets/GetAzCloudServiceNetworkInterface_List.cs b/generated/CloudService/CloudService.Autorest/generated/cmdlets/GetAzCloudServiceNetworkInterface_List.cs index 7d4be496711b..45f290ac6cb5 100644 --- a/generated/CloudService/CloudService.Autorest/generated/cmdlets/GetAzCloudServiceNetworkInterface_List.cs +++ b/generated/CloudService/CloudService.Autorest/generated/cmdlets/GetAzCloudServiceNetworkInterface_List.cs @@ -15,6 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Cmdlets /// [OpenAPI] ListByCloudServiceRoleInstance=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/roleInstances/{roleInstanceName}/networkInterfaces" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzCloudServiceNetworkInterface_List")] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.OutputBreakingChange("Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.INetworkInterface", "15.0.0", "9.0.0", "2025/11/03", DeprecatedOutputProperties=new string[] {"ApplicationSecurityGroup","CustomDnsConfig","FlowLog","LoadBalancerFrontendIPConfiguration","NetworkSecurityGroupPropertiesNetworkInterface","PrivateEndpointPropertiesNetworkInterface","PrivateLinkServicePropertiesNetworkInterface","IPConfiguration","TapConfiguration","PrivateEndpointConnection","PrivateEndpointPropertiesIPConfiguration","PrivateLinkServiceConnection","ManualPrivateLinkServiceConnection","PrivateLinkServicePropertiesIPConfiguration","SecurityRule","DefaultSecurityRule","ApplicationGatewayIPConfiguration","Delegation","FlowLog","IPConfiguration","IPConfigurationProfile","NetworkInterface","PrivateEndpoint","ResourceNavigationLink","Route","DefaultSecurityRule","SecurityRule","ServiceAssociationLink","ServiceEndpointPolicy","ServiceEndpoint","NetworkSecurityGroupPropertiesSubnet","RouteTablePropertiesSubnet","IPAllocation","PropertiesAddressPrefixes","PropertiesNetworkSecurityGroupPropertiesSubnets","HostedWorkload","VisibilitySubscription","DnsSettingDnsServer","DnsSettingAppliedDnsServer","AutoApprovalSubscription","Fqdn"}, NewOutputProperties=new string[] {"ApplicationSecurityGroup","CustomDnsConfig","FlowLog","LoadBalancerFrontendIPConfiguration","NetworkSecurityGroupPropertiesNetworkInterface","PrivateEndpointPropertiesNetworkInterface","PrivateLinkServicePropertiesNetworkInterface","IPConfiguration","TapConfiguration","PrivateEndpointConnection","PrivateEndpointPropertiesIPConfiguration","PrivateLinkServiceConnection","ManualPrivateLinkServiceConnection","PrivateLinkServicePropertiesIPConfiguration","SecurityRule","DefaultSecurityRule","ApplicationGatewayIPConfiguration","Delegation","FlowLog","IPConfiguration","IPConfigurationProfile","NetworkInterface","PrivateEndpoint","ResourceNavigationLink","Route","DefaultSecurityRule","SecurityRule","ServiceAssociationLink","ServiceEndpointPolicy","ServiceEndpoint","NetworkSecurityGroupPropertiesSubnet","RouteTablePropertiesSubnet","IPAllocation","PropertiesAddressPrefixes","PropertiesNetworkSecurityGroupPropertiesSubnets","HostedWorkload","VisibilitySubscription","DnsSettingDnsServer","DnsSettingAppliedDnsServer","AutoApprovalSubscription","Fqdn"}, ChangeDescription="The types of the properties 'ApplicationSecurityGroup', 'CustomDnsConfig', 'FlowLog', 'LoadBalancerFrontendIPConfiguration', 'NetworkSecurityGroupPropertiesNetworkInterface', 'PrivateEndpointPropertiesNetworkInterface', 'PrivateLinkServicePropertiesNetworkInterface', 'IPConfiguration', 'TapConfiguration', 'PrivateEndpointConnection', 'PrivateEndpointPropertiesIPConfiguration', 'PrivateLinkServiceConnection', 'ManualPrivateLinkServiceConnection', 'PrivateLinkServicePropertiesIPConfiguration', 'SecurityRule', 'DefaultSecurityRule', 'ApplicationGatewayIPConfiguration', 'Delegation', 'FlowLog', 'IPConfiguration', 'IPConfigurationProfile', 'NetworkInterface', 'PrivateEndpoint', 'ResourceNavigationLink', 'Route', 'DefaultSecurityRule', 'SecurityRule', 'ServiceAssociationLink', 'ServiceEndpointPolicy', 'ServiceEndpoint', 'NetworkSecurityGroupPropertiesSubnet', 'RouteTablePropertiesSubnet', 'IPAllocation', 'PropertiesAddressPrefixes', 'PropertiesNetworkSecurityGroupPropertiesSubnets', 'HostedWorkload', 'VisibilitySubscription', 'DnsSettingDnsServer', 'DnsSettingAppliedDnsServer', 'AutoApprovalSubscription', 'Fqdn' will be changed from object to 'List'.")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.INetworkInterface))] [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Description(@"Gets information about all network interfaces in a role instance in a cloud service.")] [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Generated] diff --git a/generated/CloudService/CloudService.Autorest/generated/cmdlets/GetAzCloudServiceNetworkInterface_List1.cs b/generated/CloudService/CloudService.Autorest/generated/cmdlets/GetAzCloudServiceNetworkInterface_List1.cs index 00cede707fc2..a5acb15604d1 100644 --- a/generated/CloudService/CloudService.Autorest/generated/cmdlets/GetAzCloudServiceNetworkInterface_List1.cs +++ b/generated/CloudService/CloudService.Autorest/generated/cmdlets/GetAzCloudServiceNetworkInterface_List1.cs @@ -13,6 +13,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Cmdlets /// [OpenAPI] ListByCloudService=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/networkInterfaces" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzCloudServiceNetworkInterface_List1")] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.OutputBreakingChange("Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.INetworkInterface", "15.0.0", "9.0.0", "2025/11/03", DeprecatedOutputProperties=new string[] {"ApplicationSecurityGroup","CustomDnsConfig","FlowLog","LoadBalancerFrontendIPConfiguration","NetworkSecurityGroupPropertiesNetworkInterface","PrivateEndpointPropertiesNetworkInterface","PrivateLinkServicePropertiesNetworkInterface","IPConfiguration","TapConfiguration","PrivateEndpointConnection","PrivateEndpointPropertiesIPConfiguration","PrivateLinkServiceConnection","ManualPrivateLinkServiceConnection","PrivateLinkServicePropertiesIPConfiguration","SecurityRule","DefaultSecurityRule","ApplicationGatewayIPConfiguration","Delegation","FlowLog","IPConfiguration","IPConfigurationProfile","NetworkInterface","PrivateEndpoint","ResourceNavigationLink","Route","DefaultSecurityRule","SecurityRule","ServiceAssociationLink","ServiceEndpointPolicy","ServiceEndpoint","NetworkSecurityGroupPropertiesSubnet","RouteTablePropertiesSubnet","IPAllocation","PropertiesAddressPrefixes","PropertiesNetworkSecurityGroupPropertiesSubnets","HostedWorkload","VisibilitySubscription","DnsSettingDnsServer","DnsSettingAppliedDnsServer","AutoApprovalSubscription","Fqdn"}, NewOutputProperties=new string[] {"ApplicationSecurityGroup","CustomDnsConfig","FlowLog","LoadBalancerFrontendIPConfiguration","NetworkSecurityGroupPropertiesNetworkInterface","PrivateEndpointPropertiesNetworkInterface","PrivateLinkServicePropertiesNetworkInterface","IPConfiguration","TapConfiguration","PrivateEndpointConnection","PrivateEndpointPropertiesIPConfiguration","PrivateLinkServiceConnection","ManualPrivateLinkServiceConnection","PrivateLinkServicePropertiesIPConfiguration","SecurityRule","DefaultSecurityRule","ApplicationGatewayIPConfiguration","Delegation","FlowLog","IPConfiguration","IPConfigurationProfile","NetworkInterface","PrivateEndpoint","ResourceNavigationLink","Route","DefaultSecurityRule","SecurityRule","ServiceAssociationLink","ServiceEndpointPolicy","ServiceEndpoint","NetworkSecurityGroupPropertiesSubnet","RouteTablePropertiesSubnet","IPAllocation","PropertiesAddressPrefixes","PropertiesNetworkSecurityGroupPropertiesSubnets","HostedWorkload","VisibilitySubscription","DnsSettingDnsServer","DnsSettingAppliedDnsServer","AutoApprovalSubscription","Fqdn"}, ChangeDescription="The types of the properties 'ApplicationSecurityGroup', 'CustomDnsConfig', 'FlowLog', 'LoadBalancerFrontendIPConfiguration', 'NetworkSecurityGroupPropertiesNetworkInterface', 'PrivateEndpointPropertiesNetworkInterface', 'PrivateLinkServicePropertiesNetworkInterface', 'IPConfiguration', 'TapConfiguration', 'PrivateEndpointConnection', 'PrivateEndpointPropertiesIPConfiguration', 'PrivateLinkServiceConnection', 'ManualPrivateLinkServiceConnection', 'PrivateLinkServicePropertiesIPConfiguration', 'SecurityRule', 'DefaultSecurityRule', 'ApplicationGatewayIPConfiguration', 'Delegation', 'FlowLog', 'IPConfiguration', 'IPConfigurationProfile', 'NetworkInterface', 'PrivateEndpoint', 'ResourceNavigationLink', 'Route', 'DefaultSecurityRule', 'SecurityRule', 'ServiceAssociationLink', 'ServiceEndpointPolicy', 'ServiceEndpoint', 'NetworkSecurityGroupPropertiesSubnet', 'RouteTablePropertiesSubnet', 'IPAllocation', 'PropertiesAddressPrefixes', 'PropertiesNetworkSecurityGroupPropertiesSubnets', 'HostedWorkload', 'VisibilitySubscription', 'DnsSettingDnsServer', 'DnsSettingAppliedDnsServer', 'AutoApprovalSubscription', 'Fqdn' will be changed from object to 'List'.")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.INetworkInterface))] [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Description(@"Gets all network interfaces in a cloud service.")] [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Generated] diff --git a/generated/CloudService/CloudService.Autorest/generated/cmdlets/GetAzCloudServiceOSFamily_Get.cs b/generated/CloudService/CloudService.Autorest/generated/cmdlets/GetAzCloudServiceOSFamily_Get.cs index f1bf41eebed0..20cd3b8d7584 100644 --- a/generated/CloudService/CloudService.Autorest/generated/cmdlets/GetAzCloudServiceOSFamily_Get.cs +++ b/generated/CloudService/CloudService.Autorest/generated/cmdlets/GetAzCloudServiceOSFamily_Get.cs @@ -16,6 +16,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Cmdlets /// [OpenAPI] GetOSFamily=>GET:"/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/cloudServiceOsFamilies/{osFamilyName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzCloudServiceOSFamily_Get")] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.OutputBreakingChange("Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20220904.IOSFamily", "15.0.0", "9.0.0", "2025/11/03", DeprecatedOutputProperties=new string[] {"Version"}, NewOutputProperties=new string[] {"Version"}, ChangeDescription="The types of the properties 'Version' will be changed from object to 'List'.")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20220904.IOSFamily))] [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Description(@"Gets properties of a guest operating system family that can be specified in the XML service configuration (.cscfg) for a cloud service.")] [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Generated] diff --git a/generated/CloudService/CloudService.Autorest/generated/cmdlets/GetAzCloudServiceOSFamily_GetViaIdentity.cs b/generated/CloudService/CloudService.Autorest/generated/cmdlets/GetAzCloudServiceOSFamily_GetViaIdentity.cs index ce11486a386a..3a8ea6f2d174 100644 --- a/generated/CloudService/CloudService.Autorest/generated/cmdlets/GetAzCloudServiceOSFamily_GetViaIdentity.cs +++ b/generated/CloudService/CloudService.Autorest/generated/cmdlets/GetAzCloudServiceOSFamily_GetViaIdentity.cs @@ -16,6 +16,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Cmdlets /// [OpenAPI] GetOSFamily=>GET:"/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/cloudServiceOsFamilies/{osFamilyName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzCloudServiceOSFamily_GetViaIdentity")] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.OutputBreakingChange("Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20220904.IOSFamily", "15.0.0", "9.0.0", "2025/11/03", DeprecatedOutputProperties=new string[] {"Version"}, NewOutputProperties=new string[] {"Version"}, ChangeDescription="The types of the properties 'Version' will be changed from object to 'List'.")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20220904.IOSFamily))] [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Description(@"Gets properties of a guest operating system family that can be specified in the XML service configuration (.cscfg) for a cloud service.")] [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Generated] diff --git a/generated/CloudService/CloudService.Autorest/generated/cmdlets/GetAzCloudServiceOSFamily_List.cs b/generated/CloudService/CloudService.Autorest/generated/cmdlets/GetAzCloudServiceOSFamily_List.cs index 6f4f45ec9ee4..c646b93e0c65 100644 --- a/generated/CloudService/CloudService.Autorest/generated/cmdlets/GetAzCloudServiceOSFamily_List.cs +++ b/generated/CloudService/CloudService.Autorest/generated/cmdlets/GetAzCloudServiceOSFamily_List.cs @@ -17,6 +17,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Cmdlets /// [OpenAPI] ListOSFamilies=>GET:"/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/cloudServiceOsFamilies" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzCloudServiceOSFamily_List")] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.OutputBreakingChange("Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20220904.IOSFamily", "15.0.0", "9.0.0", "2025/11/03", DeprecatedOutputProperties=new string[] {"Version"}, NewOutputProperties=new string[] {"Version"}, ChangeDescription="The types of the properties 'Version' will be changed from object to 'List'.")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20220904.IOSFamily))] [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Description(@"Gets a list of all guest operating system families available to be specified in the XML service configuration (.cscfg) for a cloud service. Use nextLink property in the response to get the next page of OS Families. Do this till nextLink is null to fetch all the OS Families.")] [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Generated] diff --git a/generated/CloudService/CloudService.Autorest/generated/cmdlets/GetAzCloudServicePublicIPAddress_Get.cs b/generated/CloudService/CloudService.Autorest/generated/cmdlets/GetAzCloudServicePublicIPAddress_Get.cs index eadc0ea3b618..cd934c7bf4c2 100644 --- a/generated/CloudService/CloudService.Autorest/generated/cmdlets/GetAzCloudServicePublicIPAddress_Get.cs +++ b/generated/CloudService/CloudService.Autorest/generated/cmdlets/GetAzCloudServicePublicIPAddress_Get.cs @@ -13,6 +13,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Cmdlets /// [OpenAPI] GetByCloudService=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/roleInstances/{roleInstanceName}/networkInterfaces/{networkInterfaceName}/ipconfigurations/{ipConfigurationName}/publicipaddresses/{publicIpAddressName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzCloudServicePublicIPAddress_Get")] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.OutputBreakingChange("Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IPublicIPAddress", "15.0.0", "9.0.0", "2025/11/03", DeprecatedOutputProperties=new string[] {"Zone","IPTag","PublicIPAddress","PublicIPPrefix","Subnet"}, NewOutputProperties=new string[] {"Zone","IPTag","PublicIPAddress","PublicIPPrefix","Subnet"}, ChangeDescription="The types of the properties 'Zone', 'IPTag', 'PublicIPAddress', 'PublicIPPrefix', and 'Subnet' will be changed from object to 'List'.")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IPublicIPAddress))] [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Description(@"Get the specified public IP address in a cloud service.")] [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Generated] diff --git a/generated/CloudService/CloudService.Autorest/generated/cmdlets/GetAzCloudServicePublicIPAddress_GetViaIdentity.cs b/generated/CloudService/CloudService.Autorest/generated/cmdlets/GetAzCloudServicePublicIPAddress_GetViaIdentity.cs index 2be9a9b9e4b8..3dfc09a16d6c 100644 --- a/generated/CloudService/CloudService.Autorest/generated/cmdlets/GetAzCloudServicePublicIPAddress_GetViaIdentity.cs +++ b/generated/CloudService/CloudService.Autorest/generated/cmdlets/GetAzCloudServicePublicIPAddress_GetViaIdentity.cs @@ -13,6 +13,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Cmdlets /// [OpenAPI] GetByCloudService=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/roleInstances/{roleInstanceName}/networkInterfaces/{networkInterfaceName}/ipconfigurations/{ipConfigurationName}/publicipaddresses/{publicIpAddressName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzCloudServicePublicIPAddress_GetViaIdentity")] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.OutputBreakingChange("Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IPublicIPAddress", "15.0.0", "9.0.0", "2025/11/03", DeprecatedOutputProperties=new string[] {"Zone","IPTag","PublicIPAddress","PublicIPPrefix","Subnet"}, NewOutputProperties=new string[] {"Zone","IPTag","PublicIPAddress","PublicIPPrefix","Subnet"}, ChangeDescription="The types of the properties 'Zone', 'IPTag', 'PublicIPAddress', 'PublicIPPrefix', and 'Subnet' will be changed from object to 'List'.")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IPublicIPAddress))] [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Description(@"Get the specified public IP address in a cloud service.")] [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Generated] diff --git a/generated/CloudService/CloudService.Autorest/generated/cmdlets/GetAzCloudServicePublicIPAddress_List.cs b/generated/CloudService/CloudService.Autorest/generated/cmdlets/GetAzCloudServicePublicIPAddress_List.cs index d3c385120dad..c31d05b2ecff 100644 --- a/generated/CloudService/CloudService.Autorest/generated/cmdlets/GetAzCloudServicePublicIPAddress_List.cs +++ b/generated/CloudService/CloudService.Autorest/generated/cmdlets/GetAzCloudServicePublicIPAddress_List.cs @@ -13,6 +13,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Cmdlets /// [OpenAPI] ListByCloudService=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/publicipaddresses" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzCloudServicePublicIPAddress_List")] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.OutputBreakingChange("Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IPublicIPAddress", "15.0.0", "9.0.0", "2025/11/03", DeprecatedOutputProperties=new string[] {"Zone","IPTag","PublicIPAddress","PublicIPPrefix","Subnet"}, NewOutputProperties=new string[] {"Zone","IPTag","PublicIPAddress","PublicIPPrefix","Subnet"}, ChangeDescription="The types of the properties 'Zone', 'IPTag', 'PublicIPAddress', 'PublicIPPrefix', and 'Subnet' will be changed from object to 'List'.")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IPublicIPAddress))] [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Description(@"Gets information about all public IP addresses on a cloud service level.")] [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Generated] diff --git a/generated/CloudService/CloudService.Autorest/generated/cmdlets/GetAzCloudServicePublicIPAddress_List1.cs b/generated/CloudService/CloudService.Autorest/generated/cmdlets/GetAzCloudServicePublicIPAddress_List1.cs index d6b90b952451..2c789e5a7022 100644 --- a/generated/CloudService/CloudService.Autorest/generated/cmdlets/GetAzCloudServicePublicIPAddress_List1.cs +++ b/generated/CloudService/CloudService.Autorest/generated/cmdlets/GetAzCloudServicePublicIPAddress_List1.cs @@ -15,6 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Cmdlets /// [OpenAPI] ListByCloudServiceRoleInstance=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/roleInstances/{roleInstanceName}/networkInterfaces/{networkInterfaceName}/ipconfigurations/{ipConfigurationName}/publicipaddresses" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzCloudServicePublicIPAddress_List1")] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.OutputBreakingChange("Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IPublicIPAddress", "15.0.0", "9.0.0", "2025/11/03", DeprecatedOutputProperties=new string[] {"Zone","IPTag","PublicIPAddress","PublicIPPrefix","Subnet"}, NewOutputProperties=new string[] {"Zone","IPTag","PublicIPAddress","PublicIPPrefix","Subnet"}, ChangeDescription="The types of the properties 'Zone', 'IPTag', 'PublicIPAddress', 'PublicIPPrefix', and 'Subnet' will be changed from object to 'List'.")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IPublicIPAddress))] [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Description(@"Gets information about all public IP addresses in a role instance IP configuration in a cloud service.")] [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Generated] diff --git a/generated/CloudService/CloudService.Autorest/generated/cmdlets/GetAzCloudServiceRoleInstanceView_Get.cs b/generated/CloudService/CloudService.Autorest/generated/cmdlets/GetAzCloudServiceRoleInstanceView_Get.cs index 26852a4288ae..bc7185995860 100644 --- a/generated/CloudService/CloudService.Autorest/generated/cmdlets/GetAzCloudServiceRoleInstanceView_Get.cs +++ b/generated/CloudService/CloudService.Autorest/generated/cmdlets/GetAzCloudServiceRoleInstanceView_Get.cs @@ -15,6 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Cmdlets /// [OpenAPI] GetInstanceView=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/roleInstances/{roleInstanceName}/instanceView" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzCloudServiceRoleInstanceView_Get")] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.OutputBreakingChange("Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20220904.IRoleInstanceView", "15.0.0", "9.0.0", "2025/11/03", DeprecatedOutputProperties=new string[] {"Statuses"}, NewOutputProperties=new string[] {"Statuses"}, ChangeDescription="The types of the properties 'Statuses' will be changed from object to 'List'.")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20220904.IRoleInstanceView))] [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Description(@"Retrieves information about the run-time state of a role instance in a cloud service.")] [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Generated] diff --git a/generated/CloudService/CloudService.Autorest/generated/cmdlets/GetAzCloudServiceRoleInstance_Get.cs b/generated/CloudService/CloudService.Autorest/generated/cmdlets/GetAzCloudServiceRoleInstance_Get.cs index 6092b7def176..bef4b9564d66 100644 --- a/generated/CloudService/CloudService.Autorest/generated/cmdlets/GetAzCloudServiceRoleInstance_Get.cs +++ b/generated/CloudService/CloudService.Autorest/generated/cmdlets/GetAzCloudServiceRoleInstance_Get.cs @@ -13,6 +13,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Cmdlets /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/roleInstances/{roleInstanceName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzCloudServiceRoleInstance_Get")] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.OutputBreakingChange("Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20220904.IRoleInstance", "15.0.0", "9.0.0", "2025/11/03", DeprecatedOutputProperties=new string[] {"NetworkProfileNetworkInterface","InstanceViewStatuses"}, NewOutputProperties=new string[] {"NetworkProfileNetworkInterface","InstanceViewStatuses"}, ChangeDescription="The types of the properties 'NetworkProfileNetworkInterface' and 'InstanceViewStatuses' will be changed from object to 'List'.")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20220904.IRoleInstance))] [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Description(@"Gets a role instance from a cloud service.")] [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Generated] diff --git a/generated/CloudService/CloudService.Autorest/generated/cmdlets/GetAzCloudServiceRoleInstance_GetViaIdentity.cs b/generated/CloudService/CloudService.Autorest/generated/cmdlets/GetAzCloudServiceRoleInstance_GetViaIdentity.cs index 80863e3db40c..fa4e409d55b1 100644 --- a/generated/CloudService/CloudService.Autorest/generated/cmdlets/GetAzCloudServiceRoleInstance_GetViaIdentity.cs +++ b/generated/CloudService/CloudService.Autorest/generated/cmdlets/GetAzCloudServiceRoleInstance_GetViaIdentity.cs @@ -13,6 +13,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Cmdlets /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/roleInstances/{roleInstanceName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzCloudServiceRoleInstance_GetViaIdentity")] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.OutputBreakingChange("Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20220904.IRoleInstance", "15.0.0", "9.0.0", "2025/11/03", DeprecatedOutputProperties=new string[] {"NetworkProfileNetworkInterface","InstanceViewStatuses"}, NewOutputProperties=new string[] {"NetworkProfileNetworkInterface","InstanceViewStatuses"}, ChangeDescription="The types of the properties 'NetworkProfileNetworkInterface' and 'InstanceViewStatuses' will be changed from object to 'List'.")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20220904.IRoleInstance))] [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Description(@"Gets a role instance from a cloud service.")] [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Generated] diff --git a/generated/CloudService/CloudService.Autorest/generated/cmdlets/GetAzCloudServiceRoleInstance_List.cs b/generated/CloudService/CloudService.Autorest/generated/cmdlets/GetAzCloudServiceRoleInstance_List.cs index 1882267cb0a5..167016145fa8 100644 --- a/generated/CloudService/CloudService.Autorest/generated/cmdlets/GetAzCloudServiceRoleInstance_List.cs +++ b/generated/CloudService/CloudService.Autorest/generated/cmdlets/GetAzCloudServiceRoleInstance_List.cs @@ -16,6 +16,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Cmdlets /// [OpenAPI] List=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/roleInstances" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzCloudServiceRoleInstance_List")] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.OutputBreakingChange("Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20220904.IRoleInstance", "15.0.0", "9.0.0", "2025/11/03", DeprecatedOutputProperties=new string[] {"NetworkProfileNetworkInterface","InstanceViewStatuses"}, NewOutputProperties=new string[] {"NetworkProfileNetworkInterface","InstanceViewStatuses"}, ChangeDescription="The types of the properties 'NetworkProfileNetworkInterface' and 'InstanceViewStatuses' will be changed from object to 'List'.")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20220904.IRoleInstance))] [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Description(@"Gets the list of all role instances in a cloud service. Use nextLink property in the response to get the next page of role instances. Do this till nextLink is null to fetch all the role instances.")] [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Generated] diff --git a/generated/CloudService/CloudService.Autorest/generated/cmdlets/GetAzCloudService_Get.cs b/generated/CloudService/CloudService.Autorest/generated/cmdlets/GetAzCloudService_Get.cs index f2b0ee563233..334a5b0ae3f7 100644 --- a/generated/CloudService/CloudService.Autorest/generated/cmdlets/GetAzCloudService_Get.cs +++ b/generated/CloudService/CloudService.Autorest/generated/cmdlets/GetAzCloudService_Get.cs @@ -13,6 +13,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Cmdlets /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzCloudService_Get")] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.OutputBreakingChange("Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20220904.ICloudService", "15.0.0", "9.0.0", "2025/11/03", DeprecatedOutputProperties=new string[] {"Extension","LoadBalancerConfiguration","Secret","Role","Zone"}, NewOutputProperties=new string[] {"Extension","LoadBalancerConfiguration","Secret","Role","Zone"}, ChangeDescription="The types of the properties 'Extension', 'LoadBalancerConfiguration', 'Secret', 'Role', and 'Zone' will be changed from object to 'List'.")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20220904.ICloudService))] [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Description(@"Display information about a cloud service.")] [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Generated] diff --git a/generated/CloudService/CloudService.Autorest/generated/cmdlets/GetAzCloudService_GetViaIdentity.cs b/generated/CloudService/CloudService.Autorest/generated/cmdlets/GetAzCloudService_GetViaIdentity.cs index 643bb2f4bfe9..43f87949c6f2 100644 --- a/generated/CloudService/CloudService.Autorest/generated/cmdlets/GetAzCloudService_GetViaIdentity.cs +++ b/generated/CloudService/CloudService.Autorest/generated/cmdlets/GetAzCloudService_GetViaIdentity.cs @@ -13,6 +13,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Cmdlets /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzCloudService_GetViaIdentity")] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.OutputBreakingChange("Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20220904.ICloudService", "15.0.0", "9.0.0", "2025/11/03", DeprecatedOutputProperties=new string[] {"Extension","LoadBalancerConfiguration","Secret","Role","Zone"}, NewOutputProperties=new string[] {"Extension","LoadBalancerConfiguration","Secret","Role","Zone"}, ChangeDescription="The types of the properties 'Extension', 'LoadBalancerConfiguration', 'Secret', 'Role', and 'Zone' will be changed from object to 'List'.")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20220904.ICloudService))] [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Description(@"Display information about a cloud service.")] [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Generated] diff --git a/generated/CloudService/CloudService.Autorest/generated/cmdlets/GetAzCloudService_List.cs b/generated/CloudService/CloudService.Autorest/generated/cmdlets/GetAzCloudService_List.cs index 42b48ebe7826..9467a5b8e933 100644 --- a/generated/CloudService/CloudService.Autorest/generated/cmdlets/GetAzCloudService_List.cs +++ b/generated/CloudService/CloudService.Autorest/generated/cmdlets/GetAzCloudService_List.cs @@ -16,6 +16,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Cmdlets /// [OpenAPI] ListAll=>GET:"/subscriptions/{subscriptionId}/providers/Microsoft.Compute/cloudServices" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzCloudService_List")] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.OutputBreakingChange("Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20220904.ICloudService", "15.0.0", "9.0.0", "2025/11/03", DeprecatedOutputProperties=new string[] {"Extension","LoadBalancerConfiguration","Secret","Role","Zone"}, NewOutputProperties=new string[] {"Extension","LoadBalancerConfiguration","Secret","Role","Zone"}, ChangeDescription="The types of the properties 'Extension', 'LoadBalancerConfiguration', 'Secret', 'Role', and 'Zone' will be changed from object to 'List'.")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20220904.ICloudService))] [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Description(@"Gets a list of all cloud services in the subscription, regardless of the associated resource group. Use nextLink property in the response to get the next page of Cloud Services. Do this till nextLink is null to fetch all the Cloud Services.")] [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Generated] diff --git a/generated/CloudService/CloudService.Autorest/generated/cmdlets/GetAzCloudService_List1.cs b/generated/CloudService/CloudService.Autorest/generated/cmdlets/GetAzCloudService_List1.cs index b9e53a692516..09118d0aab2a 100644 --- a/generated/CloudService/CloudService.Autorest/generated/cmdlets/GetAzCloudService_List1.cs +++ b/generated/CloudService/CloudService.Autorest/generated/cmdlets/GetAzCloudService_List1.cs @@ -16,6 +16,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Cmdlets /// [OpenAPI] List=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzCloudService_List1")] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.OutputBreakingChange("Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20220904.ICloudService", "15.0.0", "9.0.0", "2025/11/03", DeprecatedOutputProperties=new string[] {"Extension","LoadBalancerConfiguration","Secret","Role","Zone"}, NewOutputProperties=new string[] {"Extension","LoadBalancerConfiguration","Secret","Role","Zone"}, ChangeDescription="The types of the properties 'Extension', 'LoadBalancerConfiguration', 'Secret', 'Role', and 'Zone' will be changed from object to 'List'.")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20220904.ICloudService))] [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Description(@"Gets a list of all cloud services under a resource group. Use nextLink property in the response to get the next page of Cloud Services. Do this till nextLink is null to fetch all the Cloud Services.")] [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Generated] diff --git a/generated/CloudService/CloudService.Autorest/generated/cmdlets/UpdateAzCloudService_CreateViaIdentity.cs b/generated/CloudService/CloudService.Autorest/generated/cmdlets/UpdateAzCloudService_CreateViaIdentity.cs index 06fb0b93ef3e..c6b60ddf9f78 100644 --- a/generated/CloudService/CloudService.Autorest/generated/cmdlets/UpdateAzCloudService_CreateViaIdentity.cs +++ b/generated/CloudService/CloudService.Autorest/generated/cmdlets/UpdateAzCloudService_CreateViaIdentity.cs @@ -15,6 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Cmdlets /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzCloudService_CreateViaIdentity", SupportsShouldProcess = true)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.OutputBreakingChange("Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20220904.ICloudService", "15.0.0", "9.0.0", "2025/11/03", DeprecatedOutputProperties=new string[] {"Extension","LoadBalancerConfiguration","Secret","Role","Zone"}, NewOutputProperties=new string[] {"Extension","LoadBalancerConfiguration","Secret","Role","Zone"}, ChangeDescription="The types of the properties 'Extension', 'LoadBalancerConfiguration', 'Secret', 'Role', and 'Zone' will be changed from object to 'List'.")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20220904.ICloudService))] [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Description(@"Create or update a cloud service. Please note some properties can be set only during cloud service creation.")] [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Generated] diff --git a/generated/CloudService/CloudService.Autorest/resources/README.md b/generated/CloudService/CloudService.Autorest/resources/README.md new file mode 100644 index 000000000000..937f07f8fec2 --- /dev/null +++ b/generated/CloudService/CloudService.Autorest/resources/README.md @@ -0,0 +1,11 @@ +# Resources +This directory can contain any additional resources for module that are not required at runtime. This directory **does not** get packaged with the module. If you have assets for custom implementation, place them into the `..\custom` folder. + +## Info +- Modifiable: yes +- Generated: no +- Committed: yes +- Packaged: no + +## Purpose +Use this folder to put anything you want to keep around as part of the repository for the module, but is not something that is required for the module. For example, development files, packaged builds, or additional information. This is only intended to be used in repositories where the module's output directory is cleaned, but tangential resources for the module want to remain intact. \ No newline at end of file diff --git a/generated/ScVmm/ScVmm.Autorest/exports/New-AzScVmmVMCheckpoint.ps1 b/generated/ScVmm/ScVmm.Autorest/exports/New-AzScVmmVMCheckpoint.ps1 index 6c83bca1e867..beeda3205c7b 100644 --- a/generated/ScVmm/ScVmm.Autorest/exports/New-AzScVmmVMCheckpoint.ps1 +++ b/generated/ScVmm/ScVmm.Autorest/exports/New-AzScVmmVMCheckpoint.ps1 @@ -16,9 +16,9 @@ <# .Synopsis -create a checkpoint in virtual machine. +Create a checkpoint in virtual machine. .Description -create a checkpoint in virtual machine. +Create a checkpoint in virtual machine. .Example New-AzScVmmVMCheckpoint -Name "test-vm" -ResourceGroupName "test-rg-01" -CheckpointName "Test-01" -CheckpointDescription "Test-Desc-01" .Example diff --git a/generated/ScVmm/ScVmm.Autorest/exports/ProxyCmdletDefinitions.ps1 b/generated/ScVmm/ScVmm.Autorest/exports/ProxyCmdletDefinitions.ps1 index a73a30edca26..4ef944ba6d3b 100644 --- a/generated/ScVmm/ScVmm.Autorest/exports/ProxyCmdletDefinitions.ps1 +++ b/generated/ScVmm/ScVmm.Autorest/exports/ProxyCmdletDefinitions.ps1 @@ -2636,9 +2636,9 @@ end { <# .Synopsis -update the AvailabilitySets resource. +Update the AvailabilitySets resource. .Description -update the AvailabilitySets resource. +Update the AvailabilitySets resource. .Example Update-AzScVmmAvailabilitySet -Name "test-avset" -ResourceGroupName "test-rg-01" -SubscriptionId "00000000-abcd-0000-abcd-000000000000d" -Tag @{"key-1"="value-1"} @@ -2895,9 +2895,9 @@ end { <# .Synopsis -update the Clouds resource. +Update the Clouds resource. .Description -update the Clouds resource. +Update the Clouds resource. .Example Update-AzScVmmCloud -Name "test-cloud" -ResourceGroupName "test-rg-01" -SubscriptionId "00000000-abcd-0000-abcd-000000000000d" -Tag @{"key-1"="value-1"} @@ -3154,9 +3154,9 @@ end { <# .Synopsis -update the VmmServers resource. +Update the VmmServers resource. .Description -update the VmmServers resource. +Update the VmmServers resource. .Example Update-AzScVmmServer -Name "test-vmmserver-01" -ResourceGroupName "test-rg-01" -SubscriptionId "00000000-abcd-0000-abcd-000000000000" -Tag @{"key-1"="value-1"} @@ -3413,9 +3413,9 @@ end { <# .Synopsis -update the VirtualNetworks resource. +Update the VirtualNetworks resource. .Description -update the VirtualNetworks resource. +Update the VirtualNetworks resource. .Example Update-AzScVmmVirtualNetwork -Name "test-vnet" -ResourceGroupName "test-rg-01" -SubscriptionId "00000000-abcd-0000-abcd-000000000000" -Tag @{"key-1"="value-1"} @@ -3672,9 +3672,9 @@ end { <# .Synopsis -update the VirtualMachineTemplate resource. +Update the VirtualMachineTemplate resource. .Description -update the VirtualMachineTemplate resource. +Update the VirtualMachineTemplate resource. .Example Update-AzScVmmVMTemplate -Name "test-vmt" -ResourceGroupName "test-rg-01" -SubscriptionId "00000000-abcd-0000-abcd-000000000000" -Tag @{"key-1"="value-1"} @@ -7384,9 +7384,9 @@ end { <# .Synopsis -create a checkpoint in virtual machine. +Create a checkpoint in virtual machine. .Description -create a checkpoint in virtual machine. +Create a checkpoint in virtual machine. .Example New-AzScVmmVMCheckpoint -Name "test-vm" -ResourceGroupName "test-rg-01" -CheckpointName "Test-01" -CheckpointDescription "Test-Desc-01" .Example diff --git a/generated/ScVmm/ScVmm.Autorest/exports/Update-AzScVmmAvailabilitySet.ps1 b/generated/ScVmm/ScVmm.Autorest/exports/Update-AzScVmmAvailabilitySet.ps1 index cb3bd4f605af..b4a2cfa874a8 100644 --- a/generated/ScVmm/ScVmm.Autorest/exports/Update-AzScVmmAvailabilitySet.ps1 +++ b/generated/ScVmm/ScVmm.Autorest/exports/Update-AzScVmmAvailabilitySet.ps1 @@ -16,9 +16,9 @@ <# .Synopsis -update the AvailabilitySets resource. +Update the AvailabilitySets resource. .Description -update the AvailabilitySets resource. +Update the AvailabilitySets resource. .Example Update-AzScVmmAvailabilitySet -Name "test-avset" -ResourceGroupName "test-rg-01" -SubscriptionId "00000000-abcd-0000-abcd-000000000000d" -Tag @{"key-1"="value-1"} diff --git a/generated/ScVmm/ScVmm.Autorest/exports/Update-AzScVmmCloud.ps1 b/generated/ScVmm/ScVmm.Autorest/exports/Update-AzScVmmCloud.ps1 index e2529c947714..b1945d9cefc9 100644 --- a/generated/ScVmm/ScVmm.Autorest/exports/Update-AzScVmmCloud.ps1 +++ b/generated/ScVmm/ScVmm.Autorest/exports/Update-AzScVmmCloud.ps1 @@ -16,9 +16,9 @@ <# .Synopsis -update the Clouds resource. +Update the Clouds resource. .Description -update the Clouds resource. +Update the Clouds resource. .Example Update-AzScVmmCloud -Name "test-cloud" -ResourceGroupName "test-rg-01" -SubscriptionId "00000000-abcd-0000-abcd-000000000000d" -Tag @{"key-1"="value-1"} diff --git a/generated/ScVmm/ScVmm.Autorest/exports/Update-AzScVmmServer.ps1 b/generated/ScVmm/ScVmm.Autorest/exports/Update-AzScVmmServer.ps1 index cc69b7a06a5f..c2260c5ac758 100644 --- a/generated/ScVmm/ScVmm.Autorest/exports/Update-AzScVmmServer.ps1 +++ b/generated/ScVmm/ScVmm.Autorest/exports/Update-AzScVmmServer.ps1 @@ -16,9 +16,9 @@ <# .Synopsis -update the VmmServers resource. +Update the VmmServers resource. .Description -update the VmmServers resource. +Update the VmmServers resource. .Example Update-AzScVmmServer -Name "test-vmmserver-01" -ResourceGroupName "test-rg-01" -SubscriptionId "00000000-abcd-0000-abcd-000000000000" -Tag @{"key-1"="value-1"} diff --git a/generated/ScVmm/ScVmm.Autorest/exports/Update-AzScVmmVMTemplate.ps1 b/generated/ScVmm/ScVmm.Autorest/exports/Update-AzScVmmVMTemplate.ps1 index dc4714ae0cfd..0ab69567156a 100644 --- a/generated/ScVmm/ScVmm.Autorest/exports/Update-AzScVmmVMTemplate.ps1 +++ b/generated/ScVmm/ScVmm.Autorest/exports/Update-AzScVmmVMTemplate.ps1 @@ -16,9 +16,9 @@ <# .Synopsis -update the VirtualMachineTemplate resource. +Update the VirtualMachineTemplate resource. .Description -update the VirtualMachineTemplate resource. +Update the VirtualMachineTemplate resource. .Example Update-AzScVmmVMTemplate -Name "test-vmt" -ResourceGroupName "test-rg-01" -SubscriptionId "00000000-abcd-0000-abcd-000000000000" -Tag @{"key-1"="value-1"} diff --git a/generated/ScVmm/ScVmm.Autorest/exports/Update-AzScVmmVirtualNetwork.ps1 b/generated/ScVmm/ScVmm.Autorest/exports/Update-AzScVmmVirtualNetwork.ps1 index 9dd1adf92437..2397fdc7c58d 100644 --- a/generated/ScVmm/ScVmm.Autorest/exports/Update-AzScVmmVirtualNetwork.ps1 +++ b/generated/ScVmm/ScVmm.Autorest/exports/Update-AzScVmmVirtualNetwork.ps1 @@ -16,9 +16,9 @@ <# .Synopsis -update the VirtualNetworks resource. +Update the VirtualNetworks resource. .Description -update the VirtualNetworks resource. +Update the VirtualNetworks resource. .Example Update-AzScVmmVirtualNetwork -Name "test-vnet" -ResourceGroupName "test-rg-01" -SubscriptionId "00000000-abcd-0000-abcd-000000000000" -Tag @{"key-1"="value-1"} diff --git a/generated/ScVmm/ScVmm.Autorest/generate-info.json b/generated/ScVmm/ScVmm.Autorest/generate-info.json index df372acab231..0e85df2ccc06 100644 --- a/generated/ScVmm/ScVmm.Autorest/generate-info.json +++ b/generated/ScVmm/ScVmm.Autorest/generate-info.json @@ -1,3 +1,3 @@ { - "generate_Id": "2e00b7d3-20cc-4d79-9637-d046d7720a57" + "generate_Id": "16a2b4a2-4cb6-4cde-ac54-a8a255677b2c" } diff --git a/generated/ScVmm/ScVmm.Autorest/generated/api/Models/AvailabilitySet.cs b/generated/ScVmm/ScVmm.Autorest/generated/api/Models/AvailabilitySet.cs index dd44d99cb7a2..45da71ba144b 100644 --- a/generated/ScVmm/ScVmm.Autorest/generated/api/Models/AvailabilitySet.cs +++ b/generated/ScVmm/ScVmm.Autorest/generated/api/Models/AvailabilitySet.cs @@ -60,37 +60,37 @@ public partial class AvailabilitySet : Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IAvailabilitySetProperties Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IAvailabilitySetInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.AvailabilitySetProperties()); set { {_property = value;} } } /// Internal Acessors for ProvisioningState - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IAvailabilitySetInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IAvailabilitySetPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IAvailabilitySetPropertiesInternal)Property).ProvisioningState = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IAvailabilitySetInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IAvailabilitySetPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IAvailabilitySetPropertiesInternal)Property).ProvisioningState = value ?? null; } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__trackedResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__trackedResource).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__trackedResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__trackedResource).Id = value ?? null; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__trackedResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__trackedResource).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__trackedResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__trackedResource).Name = value ?? null; } /// Internal Acessors for SystemData - Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__trackedResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__trackedResource).SystemData = value; } + Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__trackedResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__trackedResource).SystemData = value ?? null /* model class */; } /// Internal Acessors for SystemDataCreatedAt - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__trackedResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__trackedResource).SystemDataCreatedAt = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__trackedResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__trackedResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } /// Internal Acessors for SystemDataCreatedBy - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__trackedResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__trackedResource).SystemDataCreatedBy = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__trackedResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__trackedResource).SystemDataCreatedBy = value ?? null; } /// Internal Acessors for SystemDataCreatedByType - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__trackedResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__trackedResource).SystemDataCreatedByType = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__trackedResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__trackedResource).SystemDataCreatedByType = value ?? null; } /// Internal Acessors for SystemDataLastModifiedAt - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedAt = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } /// Internal Acessors for SystemDataLastModifiedBy - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedBy = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedBy = value ?? null; } /// Internal Acessors for SystemDataLastModifiedByType - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedByType = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedByType = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__trackedResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__trackedResource).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__trackedResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__trackedResource).Type = value ?? null; } /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Origin(Microsoft.Azure.PowerShell.Cmdlets.ScVmm.PropertyOrigin.Inherited)] diff --git a/generated/ScVmm/ScVmm.Autorest/generated/api/Models/Cloud.cs b/generated/ScVmm/ScVmm.Autorest/generated/api/Models/Cloud.cs index 54446cbf2c0c..fff3a09d6c3e 100644 --- a/generated/ScVmm/ScVmm.Autorest/generated/api/Models/Cloud.cs +++ b/generated/ScVmm/ScVmm.Autorest/generated/api/Models/Cloud.cs @@ -76,19 +76,19 @@ public partial class Cloud : public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ITrackedResourceInternal)__trackedResource).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ITrackedResourceInternal)__trackedResource).Location = value ?? null; } /// Internal Acessors for Capacity - Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ICloudCapacity Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ICloudInternal.Capacity { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ICloudPropertiesInternal)Property).CloudCapacity; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ICloudPropertiesInternal)Property).CloudCapacity = value; } + Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ICloudCapacity Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ICloudInternal.Capacity { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ICloudPropertiesInternal)Property).CloudCapacity; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ICloudPropertiesInternal)Property).CloudCapacity = value ?? null /* model class */; } /// Internal Acessors for CapacityCpuCount - long? Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ICloudInternal.CapacityCpuCount { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ICloudPropertiesInternal)Property).CloudCapacityCpuCount; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ICloudPropertiesInternal)Property).CloudCapacityCpuCount = value; } + long? Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ICloudInternal.CapacityCpuCount { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ICloudPropertiesInternal)Property).CloudCapacityCpuCount; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ICloudPropertiesInternal)Property).CloudCapacityCpuCount = value ?? default(long); } /// Internal Acessors for CapacityMemoryMb - long? Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ICloudInternal.CapacityMemoryMb { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ICloudPropertiesInternal)Property).CloudCapacityMemoryMb; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ICloudPropertiesInternal)Property).CloudCapacityMemoryMb = value; } + long? Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ICloudInternal.CapacityMemoryMb { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ICloudPropertiesInternal)Property).CloudCapacityMemoryMb; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ICloudPropertiesInternal)Property).CloudCapacityMemoryMb = value ?? default(long); } /// Internal Acessors for CapacityVMCount - long? Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ICloudInternal.CapacityVMCount { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ICloudPropertiesInternal)Property).CloudCapacityVMCount; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ICloudPropertiesInternal)Property).CloudCapacityVMCount = value; } + long? Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ICloudInternal.CapacityVMCount { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ICloudPropertiesInternal)Property).CloudCapacityVMCount; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ICloudPropertiesInternal)Property).CloudCapacityVMCount = value ?? default(long); } /// Internal Acessors for CloudName - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ICloudInternal.CloudName { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ICloudPropertiesInternal)Property).CloudName; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ICloudPropertiesInternal)Property).CloudName = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ICloudInternal.CloudName { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ICloudPropertiesInternal)Property).CloudName; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ICloudPropertiesInternal)Property).CloudName = value ?? null; } /// Internal Acessors for ExtendedLocation Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IExtendedLocation Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ICloudInternal.ExtendedLocation { get => (this._extendedLocation = this._extendedLocation ?? new Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ExtendedLocation()); set { {_extendedLocation = value;} } } @@ -97,40 +97,40 @@ public partial class Cloud : Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ICloudProperties Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ICloudInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.CloudProperties()); set { {_property = value;} } } /// Internal Acessors for ProvisioningState - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ICloudInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ICloudPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ICloudPropertiesInternal)Property).ProvisioningState = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ICloudInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ICloudPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ICloudPropertiesInternal)Property).ProvisioningState = value ?? null; } /// Internal Acessors for StorageQosPolicy - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ICloudInternal.StorageQosPolicy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ICloudPropertiesInternal)Property).StorageQosPolicy; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ICloudPropertiesInternal)Property).StorageQosPolicy = value; } + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ICloudInternal.StorageQosPolicy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ICloudPropertiesInternal)Property).StorageQosPolicy; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ICloudPropertiesInternal)Property).StorageQosPolicy = value ?? null /* arrayOf */; } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__trackedResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__trackedResource).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__trackedResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__trackedResource).Id = value ?? null; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__trackedResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__trackedResource).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__trackedResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__trackedResource).Name = value ?? null; } /// Internal Acessors for SystemData - Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__trackedResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__trackedResource).SystemData = value; } + Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__trackedResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__trackedResource).SystemData = value ?? null /* model class */; } /// Internal Acessors for SystemDataCreatedAt - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__trackedResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__trackedResource).SystemDataCreatedAt = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__trackedResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__trackedResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } /// Internal Acessors for SystemDataCreatedBy - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__trackedResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__trackedResource).SystemDataCreatedBy = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__trackedResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__trackedResource).SystemDataCreatedBy = value ?? null; } /// Internal Acessors for SystemDataCreatedByType - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__trackedResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__trackedResource).SystemDataCreatedByType = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__trackedResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__trackedResource).SystemDataCreatedByType = value ?? null; } /// Internal Acessors for SystemDataLastModifiedAt - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedAt = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } /// Internal Acessors for SystemDataLastModifiedBy - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedBy = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedBy = value ?? null; } /// Internal Acessors for SystemDataLastModifiedByType - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedByType = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedByType = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__trackedResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__trackedResource).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__trackedResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__trackedResource).Type = value ?? null; } /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Origin(Microsoft.Azure.PowerShell.Cmdlets.ScVmm.PropertyOrigin.Inherited)] diff --git a/generated/ScVmm/ScVmm.Autorest/generated/api/Models/CloudInventoryItem.cs b/generated/ScVmm/ScVmm.Autorest/generated/api/Models/CloudInventoryItem.cs index 5144ff69aa20..1b171a00eb54 100644 --- a/generated/ScVmm/ScVmm.Autorest/generated/api/Models/CloudInventoryItem.cs +++ b/generated/ScVmm/ScVmm.Autorest/generated/api/Models/CloudInventoryItem.cs @@ -33,16 +33,16 @@ public partial class CloudInventoryItem : public string ManagedResourceId { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IInventoryItemPropertiesInternal)__inventoryItemProperties).ManagedResourceId; } /// Internal Acessors for InventoryItemName - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IInventoryItemPropertiesInternal.InventoryItemName { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IInventoryItemPropertiesInternal)__inventoryItemProperties).InventoryItemName; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IInventoryItemPropertiesInternal)__inventoryItemProperties).InventoryItemName = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IInventoryItemPropertiesInternal.InventoryItemName { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IInventoryItemPropertiesInternal)__inventoryItemProperties).InventoryItemName; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IInventoryItemPropertiesInternal)__inventoryItemProperties).InventoryItemName = value ?? null; } /// Internal Acessors for ManagedResourceId - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IInventoryItemPropertiesInternal.ManagedResourceId { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IInventoryItemPropertiesInternal)__inventoryItemProperties).ManagedResourceId; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IInventoryItemPropertiesInternal)__inventoryItemProperties).ManagedResourceId = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IInventoryItemPropertiesInternal.ManagedResourceId { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IInventoryItemPropertiesInternal)__inventoryItemProperties).ManagedResourceId; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IInventoryItemPropertiesInternal)__inventoryItemProperties).ManagedResourceId = value ?? null; } /// Internal Acessors for ProvisioningState - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IInventoryItemPropertiesInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IInventoryItemPropertiesInternal)__inventoryItemProperties).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IInventoryItemPropertiesInternal)__inventoryItemProperties).ProvisioningState = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IInventoryItemPropertiesInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IInventoryItemPropertiesInternal)__inventoryItemProperties).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IInventoryItemPropertiesInternal)__inventoryItemProperties).ProvisioningState = value ?? null; } /// Internal Acessors for Uuid - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IInventoryItemPropertiesInternal.Uuid { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IInventoryItemPropertiesInternal)__inventoryItemProperties).Uuid; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IInventoryItemPropertiesInternal)__inventoryItemProperties).Uuid = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IInventoryItemPropertiesInternal.Uuid { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IInventoryItemPropertiesInternal)__inventoryItemProperties).Uuid; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IInventoryItemPropertiesInternal)__inventoryItemProperties).Uuid = value ?? null; } /// Provisioning state of the resource. [Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Origin(Microsoft.Azure.PowerShell.Cmdlets.ScVmm.PropertyOrigin.Inherited)] diff --git a/generated/ScVmm/ScVmm.Autorest/generated/api/Models/CloudProperties.cs b/generated/ScVmm/ScVmm.Autorest/generated/api/Models/CloudProperties.cs index f2178e3b16df..01ffc93e99d1 100644 --- a/generated/ScVmm/ScVmm.Autorest/generated/api/Models/CloudProperties.cs +++ b/generated/ScVmm/ScVmm.Autorest/generated/api/Models/CloudProperties.cs @@ -52,13 +52,13 @@ public partial class CloudProperties : Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ICloudCapacity Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ICloudPropertiesInternal.CloudCapacity { get => (this._cloudCapacity = this._cloudCapacity ?? new Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.CloudCapacity()); set { {_cloudCapacity = value;} } } /// Internal Acessors for CloudCapacityCpuCount - long? Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ICloudPropertiesInternal.CloudCapacityCpuCount { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ICloudCapacityInternal)CloudCapacity).CpuCount; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ICloudCapacityInternal)CloudCapacity).CpuCount = value; } + long? Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ICloudPropertiesInternal.CloudCapacityCpuCount { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ICloudCapacityInternal)CloudCapacity).CpuCount; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ICloudCapacityInternal)CloudCapacity).CpuCount = value ?? default(long); } /// Internal Acessors for CloudCapacityMemoryMb - long? Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ICloudPropertiesInternal.CloudCapacityMemoryMb { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ICloudCapacityInternal)CloudCapacity).MemoryMb; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ICloudCapacityInternal)CloudCapacity).MemoryMb = value; } + long? Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ICloudPropertiesInternal.CloudCapacityMemoryMb { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ICloudCapacityInternal)CloudCapacity).MemoryMb; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ICloudCapacityInternal)CloudCapacity).MemoryMb = value ?? default(long); } /// Internal Acessors for CloudCapacityVMCount - long? Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ICloudPropertiesInternal.CloudCapacityVMCount { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ICloudCapacityInternal)CloudCapacity).VMCount; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ICloudCapacityInternal)CloudCapacity).VMCount = value; } + long? Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ICloudPropertiesInternal.CloudCapacityVMCount { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ICloudCapacityInternal)CloudCapacity).VMCount; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ICloudCapacityInternal)CloudCapacity).VMCount = value ?? default(long); } /// Internal Acessors for CloudName string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ICloudPropertiesInternal.CloudName { get => this._cloudName; set { {_cloudName = value;} } } diff --git a/generated/ScVmm/ScVmm.Autorest/generated/api/Models/ErrorResponse.cs b/generated/ScVmm/ScVmm.Autorest/generated/api/Models/ErrorResponse.cs index 8b371512b9d6..242cd6a7c946 100644 --- a/generated/ScVmm/ScVmm.Autorest/generated/api/Models/ErrorResponse.cs +++ b/generated/ScVmm/ScVmm.Autorest/generated/api/Models/ErrorResponse.cs @@ -40,22 +40,22 @@ public partial class ErrorResponse : public string Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IErrorDetailInternal)Error).Message; } /// Internal Acessors for AdditionalInfo - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IErrorResponseInternal.AdditionalInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IErrorDetailInternal)Error).AdditionalInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IErrorDetailInternal)Error).AdditionalInfo = value; } + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IErrorResponseInternal.AdditionalInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IErrorDetailInternal)Error).AdditionalInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IErrorDetailInternal)Error).AdditionalInfo = value ?? null /* arrayOf */; } /// Internal Acessors for Code - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IErrorResponseInternal.Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IErrorDetailInternal)Error).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IErrorDetailInternal)Error).Code = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IErrorResponseInternal.Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IErrorDetailInternal)Error).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IErrorDetailInternal)Error).Code = value ?? null; } /// Internal Acessors for Detail - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IErrorResponseInternal.Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IErrorDetailInternal)Error).Detail; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IErrorDetailInternal)Error).Detail = value; } + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IErrorResponseInternal.Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IErrorDetailInternal)Error).Detail; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IErrorDetailInternal)Error).Detail = value ?? null /* arrayOf */; } /// Internal Acessors for Error Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IErrorDetail Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IErrorResponseInternal.Error { get => (this._error = this._error ?? new Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ErrorDetail()); set { {_error = value;} } } /// Internal Acessors for Message - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IErrorResponseInternal.Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IErrorDetailInternal)Error).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IErrorDetailInternal)Error).Message = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IErrorResponseInternal.Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IErrorDetailInternal)Error).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IErrorDetailInternal)Error).Message = value ?? null; } /// Internal Acessors for Target - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IErrorResponseInternal.Target { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IErrorDetailInternal)Error).Target; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IErrorDetailInternal)Error).Target = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IErrorResponseInternal.Target { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IErrorDetailInternal)Error).Target; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IErrorDetailInternal)Error).Target = value ?? null; } /// The error target. [Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Origin(Microsoft.Azure.PowerShell.Cmdlets.ScVmm.PropertyOrigin.Inlined)] diff --git a/generated/ScVmm/ScVmm.Autorest/generated/api/Models/ErrorResponseAutoGenerated.cs b/generated/ScVmm/ScVmm.Autorest/generated/api/Models/ErrorResponseAutoGenerated.cs index ff46f1fbc3c2..588dbdf6b5e9 100644 --- a/generated/ScVmm/ScVmm.Autorest/generated/api/Models/ErrorResponseAutoGenerated.cs +++ b/generated/ScVmm/ScVmm.Autorest/generated/api/Models/ErrorResponseAutoGenerated.cs @@ -40,22 +40,22 @@ public partial class ErrorResponseAutoGenerated : public string Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IErrorDetailAutoGeneratedInternal)Error).Message; } /// Internal Acessors for AdditionalInfo - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IErrorResponseAutoGeneratedInternal.AdditionalInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IErrorDetailAutoGeneratedInternal)Error).AdditionalInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IErrorDetailAutoGeneratedInternal)Error).AdditionalInfo = value; } + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IErrorResponseAutoGeneratedInternal.AdditionalInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IErrorDetailAutoGeneratedInternal)Error).AdditionalInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IErrorDetailAutoGeneratedInternal)Error).AdditionalInfo = value ?? null /* arrayOf */; } /// Internal Acessors for Code - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IErrorResponseAutoGeneratedInternal.Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IErrorDetailAutoGeneratedInternal)Error).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IErrorDetailAutoGeneratedInternal)Error).Code = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IErrorResponseAutoGeneratedInternal.Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IErrorDetailAutoGeneratedInternal)Error).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IErrorDetailAutoGeneratedInternal)Error).Code = value ?? null; } /// Internal Acessors for Detail - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IErrorResponseAutoGeneratedInternal.Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IErrorDetailAutoGeneratedInternal)Error).Detail; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IErrorDetailAutoGeneratedInternal)Error).Detail = value; } + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IErrorResponseAutoGeneratedInternal.Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IErrorDetailAutoGeneratedInternal)Error).Detail; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IErrorDetailAutoGeneratedInternal)Error).Detail = value ?? null /* arrayOf */; } /// Internal Acessors for Error Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IErrorDetailAutoGenerated Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IErrorResponseAutoGeneratedInternal.Error { get => (this._error = this._error ?? new Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ErrorDetailAutoGenerated()); set { {_error = value;} } } /// Internal Acessors for Message - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IErrorResponseAutoGeneratedInternal.Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IErrorDetailAutoGeneratedInternal)Error).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IErrorDetailAutoGeneratedInternal)Error).Message = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IErrorResponseAutoGeneratedInternal.Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IErrorDetailAutoGeneratedInternal)Error).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IErrorDetailAutoGeneratedInternal)Error).Message = value ?? null; } /// Internal Acessors for Target - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IErrorResponseAutoGeneratedInternal.Target { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IErrorDetailAutoGeneratedInternal)Error).Target; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IErrorDetailAutoGeneratedInternal)Error).Target = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IErrorResponseAutoGeneratedInternal.Target { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IErrorDetailAutoGeneratedInternal)Error).Target; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IErrorDetailAutoGeneratedInternal)Error).Target = value ?? null; } /// The error target. [Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Origin(Microsoft.Azure.PowerShell.Cmdlets.ScVmm.PropertyOrigin.Inlined)] diff --git a/generated/ScVmm/ScVmm.Autorest/generated/api/Models/ExtensionValue.cs b/generated/ScVmm/ScVmm.Autorest/generated/api/Models/ExtensionValue.cs index 32846d05a079..9a7f16d3d2ce 100644 --- a/generated/ScVmm/ScVmm.Autorest/generated/api/Models/ExtensionValue.cs +++ b/generated/ScVmm/ScVmm.Autorest/generated/api/Models/ExtensionValue.cs @@ -29,46 +29,46 @@ public partial class ExtensionValue : public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__proxyResource).Id; } /// Internal Acessors for ExtensionType - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IExtensionValueInternal.ExtensionType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IExtensionValuePropertiesInternal)Property).ExtensionType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IExtensionValuePropertiesInternal)Property).ExtensionType = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IExtensionValueInternal.ExtensionType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IExtensionValuePropertiesInternal)Property).ExtensionType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IExtensionValuePropertiesInternal)Property).ExtensionType = value ?? null; } /// Internal Acessors for Property Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IExtensionValueProperties Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IExtensionValueInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ExtensionValueProperties()); set { {_property = value;} } } /// Internal Acessors for Publisher - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IExtensionValueInternal.Publisher { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IExtensionValuePropertiesInternal)Property).Publisher; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IExtensionValuePropertiesInternal)Property).Publisher = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IExtensionValueInternal.Publisher { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IExtensionValuePropertiesInternal)Property).Publisher; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IExtensionValuePropertiesInternal)Property).Publisher = value ?? null; } /// Internal Acessors for Version - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IExtensionValueInternal.Version { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IExtensionValuePropertiesInternal)Property).Version; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IExtensionValuePropertiesInternal)Property).Version = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IExtensionValueInternal.Version { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IExtensionValuePropertiesInternal)Property).Version; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IExtensionValuePropertiesInternal)Property).Version = value ?? null; } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__proxyResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__proxyResource).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__proxyResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__proxyResource).Id = value ?? null; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__proxyResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__proxyResource).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__proxyResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__proxyResource).Name = value ?? null; } /// Internal Acessors for SystemData - Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__proxyResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__proxyResource).SystemData = value; } + Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__proxyResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__proxyResource).SystemData = value ?? null /* model class */; } /// Internal Acessors for SystemDataCreatedAt - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } /// Internal Acessors for SystemDataCreatedBy - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy = value ?? null; } /// Internal Acessors for SystemDataCreatedByType - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType = value ?? null; } /// Internal Acessors for SystemDataLastModifiedAt - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } /// Internal Acessors for SystemDataLastModifiedBy - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy = value ?? null; } /// Internal Acessors for SystemDataLastModifiedByType - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__proxyResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__proxyResource).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__proxyResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__proxyResource).Type = value ?? null; } /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Origin(Microsoft.Azure.PowerShell.Cmdlets.ScVmm.PropertyOrigin.Inherited)] diff --git a/generated/ScVmm/ScVmm.Autorest/generated/api/Models/GuestAgent.cs b/generated/ScVmm/ScVmm.Autorest/generated/api/Models/GuestAgent.cs index 8b85ab86e742..ced8dff416a3 100644 --- a/generated/ScVmm/ScVmm.Autorest/generated/api/Models/GuestAgent.cs +++ b/generated/ScVmm/ScVmm.Autorest/generated/api/Models/GuestAgent.cs @@ -41,55 +41,55 @@ public partial class GuestAgent : public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__proxyResource).Id; } /// Internal Acessors for Credentials - Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IGuestCredential Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IGuestAgentInternal.Credentials { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IGuestAgentPropertiesInternal)Property).Credentials; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IGuestAgentPropertiesInternal)Property).Credentials = value; } + Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IGuestCredential Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IGuestAgentInternal.Credentials { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IGuestAgentPropertiesInternal)Property).Credentials; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IGuestAgentPropertiesInternal)Property).Credentials = value ?? null /* model class */; } /// Internal Acessors for CustomResourceName - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IGuestAgentInternal.CustomResourceName { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IGuestAgentPropertiesInternal)Property).CustomResourceName; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IGuestAgentPropertiesInternal)Property).CustomResourceName = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IGuestAgentInternal.CustomResourceName { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IGuestAgentPropertiesInternal)Property).CustomResourceName; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IGuestAgentPropertiesInternal)Property).CustomResourceName = value ?? null; } /// Internal Acessors for HttpProxyConfig - Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IHttpProxyConfiguration Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IGuestAgentInternal.HttpProxyConfig { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IGuestAgentPropertiesInternal)Property).HttpProxyConfig; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IGuestAgentPropertiesInternal)Property).HttpProxyConfig = value; } + Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IHttpProxyConfiguration Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IGuestAgentInternal.HttpProxyConfig { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IGuestAgentPropertiesInternal)Property).HttpProxyConfig; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IGuestAgentPropertiesInternal)Property).HttpProxyConfig = value ?? null /* model class */; } /// Internal Acessors for Property Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IGuestAgentProperties Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IGuestAgentInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.GuestAgentProperties()); set { {_property = value;} } } /// Internal Acessors for ProvisioningState - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IGuestAgentInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IGuestAgentPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IGuestAgentPropertiesInternal)Property).ProvisioningState = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IGuestAgentInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IGuestAgentPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IGuestAgentPropertiesInternal)Property).ProvisioningState = value ?? null; } /// Internal Acessors for Status - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IGuestAgentInternal.Status { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IGuestAgentPropertiesInternal)Property).Status; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IGuestAgentPropertiesInternal)Property).Status = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IGuestAgentInternal.Status { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IGuestAgentPropertiesInternal)Property).Status; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IGuestAgentPropertiesInternal)Property).Status = value ?? null; } /// Internal Acessors for Uuid - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IGuestAgentInternal.Uuid { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IGuestAgentPropertiesInternal)Property).Uuid; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IGuestAgentPropertiesInternal)Property).Uuid = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IGuestAgentInternal.Uuid { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IGuestAgentPropertiesInternal)Property).Uuid; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IGuestAgentPropertiesInternal)Property).Uuid = value ?? null; } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__proxyResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__proxyResource).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__proxyResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__proxyResource).Id = value ?? null; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__proxyResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__proxyResource).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__proxyResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__proxyResource).Name = value ?? null; } /// Internal Acessors for SystemData - Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__proxyResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__proxyResource).SystemData = value; } + Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__proxyResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__proxyResource).SystemData = value ?? null /* model class */; } /// Internal Acessors for SystemDataCreatedAt - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } /// Internal Acessors for SystemDataCreatedBy - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy = value ?? null; } /// Internal Acessors for SystemDataCreatedByType - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType = value ?? null; } /// Internal Acessors for SystemDataLastModifiedAt - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } /// Internal Acessors for SystemDataLastModifiedBy - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy = value ?? null; } /// Internal Acessors for SystemDataLastModifiedByType - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__proxyResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__proxyResource).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__proxyResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__proxyResource).Type = value ?? null; } /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Origin(Microsoft.Azure.PowerShell.Cmdlets.ScVmm.PropertyOrigin.Inherited)] diff --git a/generated/ScVmm/ScVmm.Autorest/generated/api/Models/IPAddress.cs b/generated/ScVmm/ScVmm.Autorest/generated/api/Models/IPAddress.cs index 9878253915bd..e31eb847b58e 100644 --- a/generated/ScVmm/ScVmm.Autorest/generated/api/Models/IPAddress.cs +++ b/generated/ScVmm/ScVmm.Autorest/generated/api/Models/IPAddress.cs @@ -24,7 +24,7 @@ public partial class IPAddress : Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ISubnet Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IIPAddressInternal.Subnet { get => (this._subnet = this._subnet ?? new Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.Subnet()); set { {_subnet = value;} } } /// Internal Acessors for SubnetAddressPrefix - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IIPAddressInternal.SubnetAddressPrefix { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ISubnetInternal)Subnet).AddressPrefix; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ISubnetInternal)Subnet).AddressPrefix = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IIPAddressInternal.SubnetAddressPrefix { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ISubnetInternal)Subnet).AddressPrefix; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ISubnetInternal)Subnet).AddressPrefix = value ?? null; } /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ISubnet _subnet; diff --git a/generated/ScVmm/ScVmm.Autorest/generated/api/Models/InfrastructureProfile.cs b/generated/ScVmm/ScVmm.Autorest/generated/api/Models/InfrastructureProfile.cs index f645657476b9..897d7a78bbc5 100644 --- a/generated/ScVmm/ScVmm.Autorest/generated/api/Models/InfrastructureProfile.cs +++ b/generated/ScVmm/ScVmm.Autorest/generated/api/Models/InfrastructureProfile.cs @@ -87,16 +87,16 @@ public partial class InfrastructureProfile : Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ICheckpoint Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IInfrastructureProfileInternal.LastRestoredVMCheckpoint { get => (this._lastRestoredVMCheckpoint = this._lastRestoredVMCheckpoint ?? new Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.Checkpoint()); set { {_lastRestoredVMCheckpoint = value;} } } /// Internal Acessors for LastRestoredVMCheckpointDescription - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IInfrastructureProfileInternal.LastRestoredVMCheckpointDescription { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ICheckpointInternal)LastRestoredVMCheckpoint).Description; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ICheckpointInternal)LastRestoredVMCheckpoint).Description = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IInfrastructureProfileInternal.LastRestoredVMCheckpointDescription { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ICheckpointInternal)LastRestoredVMCheckpoint).Description; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ICheckpointInternal)LastRestoredVMCheckpoint).Description = value ?? null; } /// Internal Acessors for LastRestoredVMCheckpointId - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IInfrastructureProfileInternal.LastRestoredVMCheckpointId { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ICheckpointInternal)LastRestoredVMCheckpoint).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ICheckpointInternal)LastRestoredVMCheckpoint).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IInfrastructureProfileInternal.LastRestoredVMCheckpointId { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ICheckpointInternal)LastRestoredVMCheckpoint).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ICheckpointInternal)LastRestoredVMCheckpoint).Id = value ?? null; } /// Internal Acessors for LastRestoredVMCheckpointName - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IInfrastructureProfileInternal.LastRestoredVMCheckpointName { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ICheckpointInternal)LastRestoredVMCheckpoint).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ICheckpointInternal)LastRestoredVMCheckpoint).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IInfrastructureProfileInternal.LastRestoredVMCheckpointName { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ICheckpointInternal)LastRestoredVMCheckpoint).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ICheckpointInternal)LastRestoredVMCheckpoint).Name = value ?? null; } /// Internal Acessors for LastRestoredVMCheckpointParentCheckpointId - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IInfrastructureProfileInternal.LastRestoredVMCheckpointParentCheckpointId { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ICheckpointInternal)LastRestoredVMCheckpoint).ParentCheckpointId; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ICheckpointInternal)LastRestoredVMCheckpoint).ParentCheckpointId = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IInfrastructureProfileInternal.LastRestoredVMCheckpointParentCheckpointId { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ICheckpointInternal)LastRestoredVMCheckpoint).ParentCheckpointId; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ICheckpointInternal)LastRestoredVMCheckpoint).ParentCheckpointId = value ?? null; } /// Backing field for property. private string _templateId; diff --git a/generated/ScVmm/ScVmm.Autorest/generated/api/Models/InventoryItem.cs b/generated/ScVmm/ScVmm.Autorest/generated/api/Models/InventoryItem.cs index 731c922ba918..503ee98468b7 100644 --- a/generated/ScVmm/ScVmm.Autorest/generated/api/Models/InventoryItem.cs +++ b/generated/ScVmm/ScVmm.Autorest/generated/api/Models/InventoryItem.cs @@ -52,49 +52,49 @@ public partial class InventoryItem : public string ManagedResourceId { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IInventoryItemPropertiesInternal)Property).ManagedResourceId; } /// Internal Acessors for InventoryItemName - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IInventoryItemInternal.InventoryItemName { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IInventoryItemPropertiesInternal)Property).InventoryItemName; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IInventoryItemPropertiesInternal)Property).InventoryItemName = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IInventoryItemInternal.InventoryItemName { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IInventoryItemPropertiesInternal)Property).InventoryItemName; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IInventoryItemPropertiesInternal)Property).InventoryItemName = value ?? null; } /// Internal Acessors for ManagedResourceId - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IInventoryItemInternal.ManagedResourceId { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IInventoryItemPropertiesInternal)Property).ManagedResourceId; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IInventoryItemPropertiesInternal)Property).ManagedResourceId = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IInventoryItemInternal.ManagedResourceId { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IInventoryItemPropertiesInternal)Property).ManagedResourceId; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IInventoryItemPropertiesInternal)Property).ManagedResourceId = value ?? null; } /// Internal Acessors for Property Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IInventoryItemProperties Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IInventoryItemInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.InventoryItemProperties()); set { {_property = value;} } } /// Internal Acessors for ProvisioningState - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IInventoryItemInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IInventoryItemPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IInventoryItemPropertiesInternal)Property).ProvisioningState = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IInventoryItemInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IInventoryItemPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IInventoryItemPropertiesInternal)Property).ProvisioningState = value ?? null; } /// Internal Acessors for Uuid - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IInventoryItemInternal.Uuid { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IInventoryItemPropertiesInternal)Property).Uuid; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IInventoryItemPropertiesInternal)Property).Uuid = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IInventoryItemInternal.Uuid { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IInventoryItemPropertiesInternal)Property).Uuid; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IInventoryItemPropertiesInternal)Property).Uuid = value ?? null; } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__proxyResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__proxyResource).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__proxyResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__proxyResource).Id = value ?? null; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__proxyResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__proxyResource).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__proxyResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__proxyResource).Name = value ?? null; } /// Internal Acessors for SystemData - Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__proxyResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__proxyResource).SystemData = value; } + Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__proxyResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__proxyResource).SystemData = value ?? null /* model class */; } /// Internal Acessors for SystemDataCreatedAt - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } /// Internal Acessors for SystemDataCreatedBy - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy = value ?? null; } /// Internal Acessors for SystemDataCreatedByType - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType = value ?? null; } /// Internal Acessors for SystemDataLastModifiedAt - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } /// Internal Acessors for SystemDataLastModifiedBy - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy = value ?? null; } /// Internal Acessors for SystemDataLastModifiedByType - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__proxyResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__proxyResource).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__proxyResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__proxyResource).Type = value ?? null; } /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Origin(Microsoft.Azure.PowerShell.Cmdlets.ScVmm.PropertyOrigin.Inherited)] diff --git a/generated/ScVmm/ScVmm.Autorest/generated/api/Models/License.cs b/generated/ScVmm/ScVmm.Autorest/generated/api/Models/License.cs index a83200588f01..21e89bf26ec3 100644 --- a/generated/ScVmm/ScVmm.Autorest/generated/api/Models/License.cs +++ b/generated/ScVmm/ScVmm.Autorest/generated/api/Models/License.cs @@ -68,46 +68,46 @@ public partial class License : public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ITrackedResourceAutoGeneratedInternal)__trackedResourceAutoGenerated).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ITrackedResourceAutoGeneratedInternal)__trackedResourceAutoGenerated).Location = value ?? null; } /// Internal Acessors for Detail - Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseDetails Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseInternal.Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicensePropertiesInternal)Property).LicenseDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicensePropertiesInternal)Property).LicenseDetail = value; } + Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseDetails Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseInternal.Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicensePropertiesInternal)Property).LicenseDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicensePropertiesInternal)Property).LicenseDetail = value ?? null /* model class */; } /// Internal Acessors for DetailAssignedLicense - int? Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseInternal.DetailAssignedLicense { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicensePropertiesInternal)Property).LicenseDetailAssignedLicense; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicensePropertiesInternal)Property).LicenseDetailAssignedLicense = value; } + int? Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseInternal.DetailAssignedLicense { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicensePropertiesInternal)Property).LicenseDetailAssignedLicense; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicensePropertiesInternal)Property).LicenseDetailAssignedLicense = value ?? default(int); } /// Internal Acessors for DetailImmutableId - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseInternal.DetailImmutableId { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicensePropertiesInternal)Property).LicenseDetailImmutableId; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicensePropertiesInternal)Property).LicenseDetailImmutableId = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseInternal.DetailImmutableId { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicensePropertiesInternal)Property).LicenseDetailImmutableId; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicensePropertiesInternal)Property).LicenseDetailImmutableId = value ?? null; } /// Internal Acessors for Property Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProperties Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.LicenseProperties()); set { {_property = value;} } } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal)__trackedResourceAutoGenerated).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal)__trackedResourceAutoGenerated).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal)__trackedResourceAutoGenerated).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal)__trackedResourceAutoGenerated).Id = value ?? null; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal)__trackedResourceAutoGenerated).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal)__trackedResourceAutoGenerated).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal)__trackedResourceAutoGenerated).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal)__trackedResourceAutoGenerated).Name = value ?? null; } /// Internal Acessors for SystemData - Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal)__trackedResourceAutoGenerated).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal)__trackedResourceAutoGenerated).SystemData = value; } + Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal)__trackedResourceAutoGenerated).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal)__trackedResourceAutoGenerated).SystemData = value ?? null /* model class */; } /// Internal Acessors for SystemDataCreatedAt - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal)__trackedResourceAutoGenerated).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal)__trackedResourceAutoGenerated).SystemDataCreatedAt = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal)__trackedResourceAutoGenerated).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal)__trackedResourceAutoGenerated).SystemDataCreatedAt = value ?? default(global::System.DateTime); } /// Internal Acessors for SystemDataCreatedBy - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal)__trackedResourceAutoGenerated).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal)__trackedResourceAutoGenerated).SystemDataCreatedBy = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal)__trackedResourceAutoGenerated).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal)__trackedResourceAutoGenerated).SystemDataCreatedBy = value ?? null; } /// Internal Acessors for SystemDataCreatedByType - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal)__trackedResourceAutoGenerated).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal)__trackedResourceAutoGenerated).SystemDataCreatedByType = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal)__trackedResourceAutoGenerated).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal)__trackedResourceAutoGenerated).SystemDataCreatedByType = value ?? null; } /// Internal Acessors for SystemDataLastModifiedAt - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal)__trackedResourceAutoGenerated).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal)__trackedResourceAutoGenerated).SystemDataLastModifiedAt = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal)__trackedResourceAutoGenerated).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal)__trackedResourceAutoGenerated).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } /// Internal Acessors for SystemDataLastModifiedBy - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal)__trackedResourceAutoGenerated).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal)__trackedResourceAutoGenerated).SystemDataLastModifiedBy = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal)__trackedResourceAutoGenerated).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal)__trackedResourceAutoGenerated).SystemDataLastModifiedBy = value ?? null; } /// Internal Acessors for SystemDataLastModifiedByType - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal)__trackedResourceAutoGenerated).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal)__trackedResourceAutoGenerated).SystemDataLastModifiedByType = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal)__trackedResourceAutoGenerated).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal)__trackedResourceAutoGenerated).SystemDataLastModifiedByType = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal)__trackedResourceAutoGenerated).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal)__trackedResourceAutoGenerated).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal)__trackedResourceAutoGenerated).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal)__trackedResourceAutoGenerated).Type = value ?? null; } /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Origin(Microsoft.Azure.PowerShell.Cmdlets.ScVmm.PropertyOrigin.Inherited)] diff --git a/generated/ScVmm/ScVmm.Autorest/generated/api/Models/LicenseProfile.cs b/generated/ScVmm/ScVmm.Autorest/generated/api/Models/LicenseProfile.cs index af1935659eb4..155f3c407297 100644 --- a/generated/ScVmm/ScVmm.Autorest/generated/api/Models/LicenseProfile.cs +++ b/generated/ScVmm/ScVmm.Autorest/generated/api/Models/LicenseProfile.cs @@ -70,91 +70,91 @@ public partial class LicenseProfile : public string Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfilePropertiesInternal)Property).Message; } /// Internal Acessors for AdditionalInfo - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileInternal.AdditionalInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfilePropertiesInternal)Property).AdditionalInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfilePropertiesInternal)Property).AdditionalInfo = value; } + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileInternal.AdditionalInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfilePropertiesInternal)Property).AdditionalInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfilePropertiesInternal)Property).AdditionalInfo = value ?? null /* arrayOf */; } /// Internal Acessors for Code - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileInternal.Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfilePropertiesInternal)Property).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfilePropertiesInternal)Property).Code = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileInternal.Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfilePropertiesInternal)Property).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfilePropertiesInternal)Property).Code = value ?? null; } /// Internal Acessors for Detail - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileInternal.Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfilePropertiesInternal)Property).Detail; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfilePropertiesInternal)Property).Detail = value; } + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileInternal.Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfilePropertiesInternal)Property).Detail; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfilePropertiesInternal)Property).Detail = value ?? null /* arrayOf */; } /// Internal Acessors for EsuProfile - Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileArmEsuProperties Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileInternal.EsuProfile { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfilePropertiesInternal)Property).EsuProfile; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfilePropertiesInternal)Property).EsuProfile = value; } + Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileArmEsuProperties Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileInternal.EsuProfile { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfilePropertiesInternal)Property).EsuProfile; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfilePropertiesInternal)Property).EsuProfile = value ?? null /* model class */; } /// Internal Acessors for EsuProfileAssignedLicenseImmutableId - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileInternal.EsuProfileAssignedLicenseImmutableId { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfilePropertiesInternal)Property).EsuProfileAssignedLicenseImmutableId; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfilePropertiesInternal)Property).EsuProfileAssignedLicenseImmutableId = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileInternal.EsuProfileAssignedLicenseImmutableId { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfilePropertiesInternal)Property).EsuProfileAssignedLicenseImmutableId; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfilePropertiesInternal)Property).EsuProfileAssignedLicenseImmutableId = value ?? null; } /// Internal Acessors for EsuProfileEsuEligibility - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileInternal.EsuProfileEsuEligibility { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfilePropertiesInternal)Property).EsuProfileEsuEligibility; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfilePropertiesInternal)Property).EsuProfileEsuEligibility = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileInternal.EsuProfileEsuEligibility { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfilePropertiesInternal)Property).EsuProfileEsuEligibility; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfilePropertiesInternal)Property).EsuProfileEsuEligibility = value ?? null; } /// Internal Acessors for EsuProfileEsuKey - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileInternal.EsuProfileEsuKey { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfilePropertiesInternal)Property).EsuProfileEsuKey; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfilePropertiesInternal)Property).EsuProfileEsuKey = value; } + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileInternal.EsuProfileEsuKey { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfilePropertiesInternal)Property).EsuProfileEsuKey; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfilePropertiesInternal)Property).EsuProfileEsuKey = value ?? null /* arrayOf */; } /// Internal Acessors for EsuProfileEsuKeyState - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileInternal.EsuProfileEsuKeyState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfilePropertiesInternal)Property).EsuProfileEsuKeyState; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfilePropertiesInternal)Property).EsuProfileEsuKeyState = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileInternal.EsuProfileEsuKeyState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfilePropertiesInternal)Property).EsuProfileEsuKeyState; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfilePropertiesInternal)Property).EsuProfileEsuKeyState = value ?? null; } /// Internal Acessors for EsuProfileServerType - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileInternal.EsuProfileServerType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfilePropertiesInternal)Property).EsuProfileServerType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfilePropertiesInternal)Property).EsuProfileServerType = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileInternal.EsuProfileServerType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfilePropertiesInternal)Property).EsuProfileServerType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfilePropertiesInternal)Property).EsuProfileServerType = value ?? null; } /// Internal Acessors for Message - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileInternal.Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfilePropertiesInternal)Property).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfilePropertiesInternal)Property).Message = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileInternal.Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfilePropertiesInternal)Property).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfilePropertiesInternal)Property).Message = value ?? null; } /// Internal Acessors for ProductProfile - Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileArmProductProfileProperties Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileInternal.ProductProfile { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfilePropertiesInternal)Property).ProductProfile; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfilePropertiesInternal)Property).ProductProfile = value; } + Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileArmProductProfileProperties Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileInternal.ProductProfile { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfilePropertiesInternal)Property).ProductProfile; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfilePropertiesInternal)Property).ProductProfile = value ?? null /* model class */; } /// Internal Acessors for ProductProfileBillingEndDate - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileInternal.ProductProfileBillingEndDate { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfilePropertiesInternal)Property).ProductProfileBillingEndDate; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfilePropertiesInternal)Property).ProductProfileBillingEndDate = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileInternal.ProductProfileBillingEndDate { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfilePropertiesInternal)Property).ProductProfileBillingEndDate; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfilePropertiesInternal)Property).ProductProfileBillingEndDate = value ?? default(global::System.DateTime); } /// Internal Acessors for ProductProfileBillingStartDate - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileInternal.ProductProfileBillingStartDate { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfilePropertiesInternal)Property).ProductProfileBillingStartDate; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfilePropertiesInternal)Property).ProductProfileBillingStartDate = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileInternal.ProductProfileBillingStartDate { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfilePropertiesInternal)Property).ProductProfileBillingStartDate; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfilePropertiesInternal)Property).ProductProfileBillingStartDate = value ?? default(global::System.DateTime); } /// Internal Acessors for ProductProfileDisenrollmentDate - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileInternal.ProductProfileDisenrollmentDate { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfilePropertiesInternal)Property).ProductProfileDisenrollmentDate; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfilePropertiesInternal)Property).ProductProfileDisenrollmentDate = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileInternal.ProductProfileDisenrollmentDate { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfilePropertiesInternal)Property).ProductProfileDisenrollmentDate; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfilePropertiesInternal)Property).ProductProfileDisenrollmentDate = value ?? default(global::System.DateTime); } /// Internal Acessors for ProductProfileEnrollmentDate - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileInternal.ProductProfileEnrollmentDate { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfilePropertiesInternal)Property).ProductProfileEnrollmentDate; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfilePropertiesInternal)Property).ProductProfileEnrollmentDate = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileInternal.ProductProfileEnrollmentDate { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfilePropertiesInternal)Property).ProductProfileEnrollmentDate; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfilePropertiesInternal)Property).ProductProfileEnrollmentDate = value ?? default(global::System.DateTime); } /// Internal Acessors for ProductProfileError - Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IErrorDetailAutoGenerated Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileInternal.ProductProfileError { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfilePropertiesInternal)Property).ProductProfileError; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfilePropertiesInternal)Property).ProductProfileError = value; } + Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IErrorDetailAutoGenerated Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileInternal.ProductProfileError { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfilePropertiesInternal)Property).ProductProfileError; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfilePropertiesInternal)Property).ProductProfileError = value ?? null /* model class */; } /// Internal Acessors for Property Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileProperties Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.LicenseProfileProperties()); set { {_property = value;} } } /// Internal Acessors for SoftwareAssurance - Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfilePropertiesSoftwareAssurance Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileInternal.SoftwareAssurance { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfilePropertiesInternal)Property).SoftwareAssurance; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfilePropertiesInternal)Property).SoftwareAssurance = value; } + Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfilePropertiesSoftwareAssurance Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileInternal.SoftwareAssurance { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfilePropertiesInternal)Property).SoftwareAssurance; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfilePropertiesInternal)Property).SoftwareAssurance = value ?? null /* model class */; } /// Internal Acessors for Target - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileInternal.Target { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfilePropertiesInternal)Property).Target; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfilePropertiesInternal)Property).Target = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileInternal.Target { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfilePropertiesInternal)Property).Target; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfilePropertiesInternal)Property).Target = value ?? null; } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal)__trackedResourceAutoGenerated).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal)__trackedResourceAutoGenerated).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal)__trackedResourceAutoGenerated).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal)__trackedResourceAutoGenerated).Id = value ?? null; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal)__trackedResourceAutoGenerated).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal)__trackedResourceAutoGenerated).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal)__trackedResourceAutoGenerated).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal)__trackedResourceAutoGenerated).Name = value ?? null; } /// Internal Acessors for SystemData - Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal)__trackedResourceAutoGenerated).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal)__trackedResourceAutoGenerated).SystemData = value; } + Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal)__trackedResourceAutoGenerated).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal)__trackedResourceAutoGenerated).SystemData = value ?? null /* model class */; } /// Internal Acessors for SystemDataCreatedAt - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal)__trackedResourceAutoGenerated).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal)__trackedResourceAutoGenerated).SystemDataCreatedAt = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal)__trackedResourceAutoGenerated).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal)__trackedResourceAutoGenerated).SystemDataCreatedAt = value ?? default(global::System.DateTime); } /// Internal Acessors for SystemDataCreatedBy - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal)__trackedResourceAutoGenerated).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal)__trackedResourceAutoGenerated).SystemDataCreatedBy = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal)__trackedResourceAutoGenerated).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal)__trackedResourceAutoGenerated).SystemDataCreatedBy = value ?? null; } /// Internal Acessors for SystemDataCreatedByType - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal)__trackedResourceAutoGenerated).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal)__trackedResourceAutoGenerated).SystemDataCreatedByType = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal)__trackedResourceAutoGenerated).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal)__trackedResourceAutoGenerated).SystemDataCreatedByType = value ?? null; } /// Internal Acessors for SystemDataLastModifiedAt - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal)__trackedResourceAutoGenerated).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal)__trackedResourceAutoGenerated).SystemDataLastModifiedAt = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal)__trackedResourceAutoGenerated).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal)__trackedResourceAutoGenerated).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } /// Internal Acessors for SystemDataLastModifiedBy - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal)__trackedResourceAutoGenerated).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal)__trackedResourceAutoGenerated).SystemDataLastModifiedBy = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal)__trackedResourceAutoGenerated).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal)__trackedResourceAutoGenerated).SystemDataLastModifiedBy = value ?? null; } /// Internal Acessors for SystemDataLastModifiedByType - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal)__trackedResourceAutoGenerated).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal)__trackedResourceAutoGenerated).SystemDataLastModifiedByType = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal)__trackedResourceAutoGenerated).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal)__trackedResourceAutoGenerated).SystemDataLastModifiedByType = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal)__trackedResourceAutoGenerated).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal)__trackedResourceAutoGenerated).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal)__trackedResourceAutoGenerated).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal)__trackedResourceAutoGenerated).Type = value ?? null; } /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Origin(Microsoft.Azure.PowerShell.Cmdlets.ScVmm.PropertyOrigin.Inherited)] diff --git a/generated/ScVmm/ScVmm.Autorest/generated/api/Models/LicenseProfileArmEsuProperties.cs b/generated/ScVmm/ScVmm.Autorest/generated/api/Models/LicenseProfileArmEsuProperties.cs index 947e610cd3dd..343e3a8c6c3a 100644 --- a/generated/ScVmm/ScVmm.Autorest/generated/api/Models/LicenseProfileArmEsuProperties.cs +++ b/generated/ScVmm/ScVmm.Autorest/generated/api/Models/LicenseProfileArmEsuProperties.cs @@ -43,19 +43,19 @@ public partial class LicenseProfileArmEsuProperties : public string EsuKeyState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileArmEsuPropertiesWithoutAssignedLicenseInternal)__licenseProfileArmEsuPropertiesWithoutAssignedLicense).EsuKeyState; } /// Internal Acessors for EsuEligibility - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileArmEsuPropertiesWithoutAssignedLicenseInternal.EsuEligibility { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileArmEsuPropertiesWithoutAssignedLicenseInternal)__licenseProfileArmEsuPropertiesWithoutAssignedLicense).EsuEligibility; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileArmEsuPropertiesWithoutAssignedLicenseInternal)__licenseProfileArmEsuPropertiesWithoutAssignedLicense).EsuEligibility = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileArmEsuPropertiesWithoutAssignedLicenseInternal.EsuEligibility { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileArmEsuPropertiesWithoutAssignedLicenseInternal)__licenseProfileArmEsuPropertiesWithoutAssignedLicense).EsuEligibility; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileArmEsuPropertiesWithoutAssignedLicenseInternal)__licenseProfileArmEsuPropertiesWithoutAssignedLicense).EsuEligibility = value ?? null; } /// Internal Acessors for EsuKeyState - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileArmEsuPropertiesWithoutAssignedLicenseInternal.EsuKeyState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileArmEsuPropertiesWithoutAssignedLicenseInternal)__licenseProfileArmEsuPropertiesWithoutAssignedLicense).EsuKeyState; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileArmEsuPropertiesWithoutAssignedLicenseInternal)__licenseProfileArmEsuPropertiesWithoutAssignedLicense).EsuKeyState = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileArmEsuPropertiesWithoutAssignedLicenseInternal.EsuKeyState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileArmEsuPropertiesWithoutAssignedLicenseInternal)__licenseProfileArmEsuPropertiesWithoutAssignedLicense).EsuKeyState; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileArmEsuPropertiesWithoutAssignedLicenseInternal)__licenseProfileArmEsuPropertiesWithoutAssignedLicense).EsuKeyState = value ?? null; } /// Internal Acessors for ServerType - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileArmEsuPropertiesWithoutAssignedLicenseInternal.ServerType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileArmEsuPropertiesWithoutAssignedLicenseInternal)__licenseProfileArmEsuPropertiesWithoutAssignedLicense).ServerType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileArmEsuPropertiesWithoutAssignedLicenseInternal)__licenseProfileArmEsuPropertiesWithoutAssignedLicense).ServerType = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileArmEsuPropertiesWithoutAssignedLicenseInternal.ServerType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileArmEsuPropertiesWithoutAssignedLicenseInternal)__licenseProfileArmEsuPropertiesWithoutAssignedLicense).ServerType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileArmEsuPropertiesWithoutAssignedLicenseInternal)__licenseProfileArmEsuPropertiesWithoutAssignedLicense).ServerType = value ?? null; } /// Internal Acessors for AssignedLicenseImmutableId - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileStorageModelEsuPropertiesInternal.AssignedLicenseImmutableId { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileStorageModelEsuPropertiesInternal)__licenseProfileArmEsuPropertiesWithoutAssignedLicense).AssignedLicenseImmutableId; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileStorageModelEsuPropertiesInternal)__licenseProfileArmEsuPropertiesWithoutAssignedLicense).AssignedLicenseImmutableId = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileStorageModelEsuPropertiesInternal.AssignedLicenseImmutableId { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileStorageModelEsuPropertiesInternal)__licenseProfileArmEsuPropertiesWithoutAssignedLicense).AssignedLicenseImmutableId; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileStorageModelEsuPropertiesInternal)__licenseProfileArmEsuPropertiesWithoutAssignedLicense).AssignedLicenseImmutableId = value ?? null; } /// Internal Acessors for EsuKey - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileStorageModelEsuPropertiesInternal.EsuKey { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileStorageModelEsuPropertiesInternal)__licenseProfileArmEsuPropertiesWithoutAssignedLicense).EsuKey; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileStorageModelEsuPropertiesInternal)__licenseProfileArmEsuPropertiesWithoutAssignedLicense).EsuKey = value; } + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileStorageModelEsuPropertiesInternal.EsuKey { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileStorageModelEsuPropertiesInternal)__licenseProfileArmEsuPropertiesWithoutAssignedLicense).EsuKey; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileStorageModelEsuPropertiesInternal)__licenseProfileArmEsuPropertiesWithoutAssignedLicense).EsuKey = value ?? null /* arrayOf */; } /// The type of the Esu servers. [Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Origin(Microsoft.Azure.PowerShell.Cmdlets.ScVmm.PropertyOrigin.Inherited)] diff --git a/generated/ScVmm/ScVmm.Autorest/generated/api/Models/LicenseProfileArmEsuPropertiesWithoutAssignedLicense.cs b/generated/ScVmm/ScVmm.Autorest/generated/api/Models/LicenseProfileArmEsuPropertiesWithoutAssignedLicense.cs index b42e6ca79f68..2bc405162f59 100644 --- a/generated/ScVmm/ScVmm.Autorest/generated/api/Models/LicenseProfileArmEsuPropertiesWithoutAssignedLicense.cs +++ b/generated/ScVmm/ScVmm.Autorest/generated/api/Models/LicenseProfileArmEsuPropertiesWithoutAssignedLicense.cs @@ -51,10 +51,10 @@ public partial class LicenseProfileArmEsuPropertiesWithoutAssignedLicense : string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileArmEsuPropertiesWithoutAssignedLicenseInternal.ServerType { get => this._serverType; set { {_serverType = value;} } } /// Internal Acessors for AssignedLicenseImmutableId - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileStorageModelEsuPropertiesInternal.AssignedLicenseImmutableId { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileStorageModelEsuPropertiesInternal)__licenseProfileStorageModelEsuProperties).AssignedLicenseImmutableId; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileStorageModelEsuPropertiesInternal)__licenseProfileStorageModelEsuProperties).AssignedLicenseImmutableId = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileStorageModelEsuPropertiesInternal.AssignedLicenseImmutableId { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileStorageModelEsuPropertiesInternal)__licenseProfileStorageModelEsuProperties).AssignedLicenseImmutableId; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileStorageModelEsuPropertiesInternal)__licenseProfileStorageModelEsuProperties).AssignedLicenseImmutableId = value ?? null; } /// Internal Acessors for EsuKey - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileStorageModelEsuPropertiesInternal.EsuKey { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileStorageModelEsuPropertiesInternal)__licenseProfileStorageModelEsuProperties).EsuKey; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileStorageModelEsuPropertiesInternal)__licenseProfileStorageModelEsuProperties).EsuKey = value; } + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileStorageModelEsuPropertiesInternal.EsuKey { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileStorageModelEsuPropertiesInternal)__licenseProfileStorageModelEsuProperties).EsuKey; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileStorageModelEsuPropertiesInternal)__licenseProfileStorageModelEsuProperties).EsuKey = value ?? null /* arrayOf */; } /// Backing field for property. private string _serverType; diff --git a/generated/ScVmm/ScVmm.Autorest/generated/api/Models/LicenseProfileArmProductProfileProperties.cs b/generated/ScVmm/ScVmm.Autorest/generated/api/Models/LicenseProfileArmProductProfileProperties.cs index 664b91e14248..943ddad41258 100644 --- a/generated/ScVmm/ScVmm.Autorest/generated/api/Models/LicenseProfileArmProductProfileProperties.cs +++ b/generated/ScVmm/ScVmm.Autorest/generated/api/Models/LicenseProfileArmProductProfileProperties.cs @@ -67,7 +67,7 @@ public partial class LicenseProfileArmProductProfileProperties : public string Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IErrorDetailAutoGeneratedInternal)Error).Message; } /// Internal Acessors for AdditionalInfo - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileArmProductProfilePropertiesInternal.AdditionalInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IErrorDetailAutoGeneratedInternal)Error).AdditionalInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IErrorDetailAutoGeneratedInternal)Error).AdditionalInfo = value; } + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileArmProductProfilePropertiesInternal.AdditionalInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IErrorDetailAutoGeneratedInternal)Error).AdditionalInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IErrorDetailAutoGeneratedInternal)Error).AdditionalInfo = value ?? null /* arrayOf */; } /// Internal Acessors for BillingEndDate global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileArmProductProfilePropertiesInternal.BillingEndDate { get => this._billingEndDate; set { {_billingEndDate = value;} } } @@ -76,10 +76,10 @@ public partial class LicenseProfileArmProductProfileProperties : global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileArmProductProfilePropertiesInternal.BillingStartDate { get => this._billingStartDate; set { {_billingStartDate = value;} } } /// Internal Acessors for Code - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileArmProductProfilePropertiesInternal.Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IErrorDetailAutoGeneratedInternal)Error).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IErrorDetailAutoGeneratedInternal)Error).Code = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileArmProductProfilePropertiesInternal.Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IErrorDetailAutoGeneratedInternal)Error).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IErrorDetailAutoGeneratedInternal)Error).Code = value ?? null; } /// Internal Acessors for Detail - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileArmProductProfilePropertiesInternal.Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IErrorDetailAutoGeneratedInternal)Error).Detail; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IErrorDetailAutoGeneratedInternal)Error).Detail = value; } + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileArmProductProfilePropertiesInternal.Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IErrorDetailAutoGeneratedInternal)Error).Detail; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IErrorDetailAutoGeneratedInternal)Error).Detail = value ?? null /* arrayOf */; } /// Internal Acessors for DisenrollmentDate global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileArmProductProfilePropertiesInternal.DisenrollmentDate { get => this._disenrollmentDate; set { {_disenrollmentDate = value;} } } @@ -91,10 +91,10 @@ public partial class LicenseProfileArmProductProfileProperties : Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IErrorDetailAutoGenerated Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileArmProductProfilePropertiesInternal.Error { get => (this._error = this._error ?? new Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ErrorDetailAutoGenerated()); set { {_error = value;} } } /// Internal Acessors for Message - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileArmProductProfilePropertiesInternal.Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IErrorDetailAutoGeneratedInternal)Error).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IErrorDetailAutoGeneratedInternal)Error).Message = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileArmProductProfilePropertiesInternal.Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IErrorDetailAutoGeneratedInternal)Error).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IErrorDetailAutoGeneratedInternal)Error).Message = value ?? null; } /// Internal Acessors for Target - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileArmProductProfilePropertiesInternal.Target { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IErrorDetailAutoGeneratedInternal)Error).Target; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IErrorDetailAutoGeneratedInternal)Error).Target = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileArmProductProfilePropertiesInternal.Target { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IErrorDetailAutoGeneratedInternal)Error).Target; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IErrorDetailAutoGeneratedInternal)Error).Target = value ?? null; } /// Backing field for property. private System.Collections.Generic.List _productFeature; diff --git a/generated/ScVmm/ScVmm.Autorest/generated/api/Models/LicenseProfileMachineInstanceView.cs b/generated/ScVmm/ScVmm.Autorest/generated/api/Models/LicenseProfileMachineInstanceView.cs index 05b8ba00bd2d..86cb900fb022 100644 --- a/generated/ScVmm/ScVmm.Autorest/generated/api/Models/LicenseProfileMachineInstanceView.cs +++ b/generated/ScVmm/ScVmm.Autorest/generated/api/Models/LicenseProfileMachineInstanceView.cs @@ -79,31 +79,31 @@ public partial class LicenseProfileMachineInstanceView : public string Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileArmProductProfilePropertiesInternal)ProductProfile).Message; } /// Internal Acessors for AdditionalInfo - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileMachineInstanceViewInternal.AdditionalInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileArmProductProfilePropertiesInternal)ProductProfile).AdditionalInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileArmProductProfilePropertiesInternal)ProductProfile).AdditionalInfo = value; } + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileMachineInstanceViewInternal.AdditionalInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileArmProductProfilePropertiesInternal)ProductProfile).AdditionalInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileArmProductProfilePropertiesInternal)ProductProfile).AdditionalInfo = value ?? null /* arrayOf */; } /// Internal Acessors for Code - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileMachineInstanceViewInternal.Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileArmProductProfilePropertiesInternal)ProductProfile).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileArmProductProfilePropertiesInternal)ProductProfile).Code = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileMachineInstanceViewInternal.Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileArmProductProfilePropertiesInternal)ProductProfile).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileArmProductProfilePropertiesInternal)ProductProfile).Code = value ?? null; } /// Internal Acessors for Detail - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileMachineInstanceViewInternal.Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileArmProductProfilePropertiesInternal)ProductProfile).Detail; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileArmProductProfilePropertiesInternal)ProductProfile).Detail = value; } + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileMachineInstanceViewInternal.Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileArmProductProfilePropertiesInternal)ProductProfile).Detail; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileArmProductProfilePropertiesInternal)ProductProfile).Detail = value ?? null /* arrayOf */; } /// Internal Acessors for EsuProfile Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileMachineInstanceViewEsuProperties Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileMachineInstanceViewInternal.EsuProfile { get => (this._esuProfile = this._esuProfile ?? new Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.LicenseProfileMachineInstanceViewEsuProperties()); set { {_esuProfile = value;} } } /// Internal Acessors for EsuProfileAssignedLicenseImmutableId - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileMachineInstanceViewInternal.EsuProfileAssignedLicenseImmutableId { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileStorageModelEsuPropertiesInternal)EsuProfile).AssignedLicenseImmutableId; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileStorageModelEsuPropertiesInternal)EsuProfile).AssignedLicenseImmutableId = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileMachineInstanceViewInternal.EsuProfileAssignedLicenseImmutableId { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileStorageModelEsuPropertiesInternal)EsuProfile).AssignedLicenseImmutableId; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileStorageModelEsuPropertiesInternal)EsuProfile).AssignedLicenseImmutableId = value ?? null; } /// Internal Acessors for EsuProfileEsuEligibility - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileMachineInstanceViewInternal.EsuProfileEsuEligibility { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileArmEsuPropertiesWithoutAssignedLicenseInternal)EsuProfile).EsuEligibility; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileArmEsuPropertiesWithoutAssignedLicenseInternal)EsuProfile).EsuEligibility = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileMachineInstanceViewInternal.EsuProfileEsuEligibility { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileArmEsuPropertiesWithoutAssignedLicenseInternal)EsuProfile).EsuEligibility; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileArmEsuPropertiesWithoutAssignedLicenseInternal)EsuProfile).EsuEligibility = value ?? null; } /// Internal Acessors for EsuProfileEsuKey - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileMachineInstanceViewInternal.EsuProfileEsuKey { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileStorageModelEsuPropertiesInternal)EsuProfile).EsuKey; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileStorageModelEsuPropertiesInternal)EsuProfile).EsuKey = value; } + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileMachineInstanceViewInternal.EsuProfileEsuKey { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileStorageModelEsuPropertiesInternal)EsuProfile).EsuKey; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileStorageModelEsuPropertiesInternal)EsuProfile).EsuKey = value ?? null /* arrayOf */; } /// Internal Acessors for EsuProfileEsuKeyState - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileMachineInstanceViewInternal.EsuProfileEsuKeyState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileArmEsuPropertiesWithoutAssignedLicenseInternal)EsuProfile).EsuKeyState; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileArmEsuPropertiesWithoutAssignedLicenseInternal)EsuProfile).EsuKeyState = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileMachineInstanceViewInternal.EsuProfileEsuKeyState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileArmEsuPropertiesWithoutAssignedLicenseInternal)EsuProfile).EsuKeyState; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileArmEsuPropertiesWithoutAssignedLicenseInternal)EsuProfile).EsuKeyState = value ?? null; } /// Internal Acessors for EsuProfileServerType - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileMachineInstanceViewInternal.EsuProfileServerType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileArmEsuPropertiesWithoutAssignedLicenseInternal)EsuProfile).ServerType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileArmEsuPropertiesWithoutAssignedLicenseInternal)EsuProfile).ServerType = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileMachineInstanceViewInternal.EsuProfileServerType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileArmEsuPropertiesWithoutAssignedLicenseInternal)EsuProfile).ServerType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileArmEsuPropertiesWithoutAssignedLicenseInternal)EsuProfile).ServerType = value ?? null; } /// Internal Acessors for LicenseChannel string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileMachineInstanceViewInternal.LicenseChannel { get => this._licenseChannel; set { {_licenseChannel = value;} } } @@ -112,43 +112,43 @@ public partial class LicenseProfileMachineInstanceView : string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileMachineInstanceViewInternal.LicenseStatus { get => this._licenseStatus; set { {_licenseStatus = value;} } } /// Internal Acessors for Message - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileMachineInstanceViewInternal.Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileArmProductProfilePropertiesInternal)ProductProfile).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileArmProductProfilePropertiesInternal)ProductProfile).Message = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileMachineInstanceViewInternal.Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileArmProductProfilePropertiesInternal)ProductProfile).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileArmProductProfilePropertiesInternal)ProductProfile).Message = value ?? null; } /// Internal Acessors for ProductProfile Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileArmProductProfileProperties Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileMachineInstanceViewInternal.ProductProfile { get => (this._productProfile = this._productProfile ?? new Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.LicenseProfileArmProductProfileProperties()); set { {_productProfile = value;} } } /// Internal Acessors for ProductProfileBillingEndDate - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileMachineInstanceViewInternal.ProductProfileBillingEndDate { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileArmProductProfilePropertiesInternal)ProductProfile).BillingEndDate; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileArmProductProfilePropertiesInternal)ProductProfile).BillingEndDate = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileMachineInstanceViewInternal.ProductProfileBillingEndDate { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileArmProductProfilePropertiesInternal)ProductProfile).BillingEndDate; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileArmProductProfilePropertiesInternal)ProductProfile).BillingEndDate = value ?? default(global::System.DateTime); } /// Internal Acessors for ProductProfileBillingStartDate - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileMachineInstanceViewInternal.ProductProfileBillingStartDate { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileArmProductProfilePropertiesInternal)ProductProfile).BillingStartDate; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileArmProductProfilePropertiesInternal)ProductProfile).BillingStartDate = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileMachineInstanceViewInternal.ProductProfileBillingStartDate { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileArmProductProfilePropertiesInternal)ProductProfile).BillingStartDate; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileArmProductProfilePropertiesInternal)ProductProfile).BillingStartDate = value ?? default(global::System.DateTime); } /// Internal Acessors for ProductProfileDisenrollmentDate - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileMachineInstanceViewInternal.ProductProfileDisenrollmentDate { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileArmProductProfilePropertiesInternal)ProductProfile).DisenrollmentDate; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileArmProductProfilePropertiesInternal)ProductProfile).DisenrollmentDate = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileMachineInstanceViewInternal.ProductProfileDisenrollmentDate { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileArmProductProfilePropertiesInternal)ProductProfile).DisenrollmentDate; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileArmProductProfilePropertiesInternal)ProductProfile).DisenrollmentDate = value ?? default(global::System.DateTime); } /// Internal Acessors for ProductProfileEnrollmentDate - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileMachineInstanceViewInternal.ProductProfileEnrollmentDate { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileArmProductProfilePropertiesInternal)ProductProfile).EnrollmentDate; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileArmProductProfilePropertiesInternal)ProductProfile).EnrollmentDate = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileMachineInstanceViewInternal.ProductProfileEnrollmentDate { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileArmProductProfilePropertiesInternal)ProductProfile).EnrollmentDate; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileArmProductProfilePropertiesInternal)ProductProfile).EnrollmentDate = value ?? default(global::System.DateTime); } /// Internal Acessors for ProductProfileError - Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IErrorDetailAutoGenerated Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileMachineInstanceViewInternal.ProductProfileError { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileArmProductProfilePropertiesInternal)ProductProfile).Error; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileArmProductProfilePropertiesInternal)ProductProfile).Error = value; } + Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IErrorDetailAutoGenerated Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileMachineInstanceViewInternal.ProductProfileError { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileArmProductProfilePropertiesInternal)ProductProfile).Error; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileArmProductProfilePropertiesInternal)ProductProfile).Error = value ?? null /* model class */; } /// Internal Acessors for ProductProfileProductFeature - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileMachineInstanceViewInternal.ProductProfileProductFeature { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileArmProductProfilePropertiesInternal)ProductProfile).ProductFeature; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileArmProductProfilePropertiesInternal)ProductProfile).ProductFeature = value; } + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileMachineInstanceViewInternal.ProductProfileProductFeature { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileArmProductProfilePropertiesInternal)ProductProfile).ProductFeature; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileArmProductProfilePropertiesInternal)ProductProfile).ProductFeature = value ?? null /* arrayOf */; } /// Internal Acessors for ProductProfileProductType - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileMachineInstanceViewInternal.ProductProfileProductType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileArmProductProfilePropertiesInternal)ProductProfile).ProductType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileArmProductProfilePropertiesInternal)ProductProfile).ProductType = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileMachineInstanceViewInternal.ProductProfileProductType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileArmProductProfilePropertiesInternal)ProductProfile).ProductType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileArmProductProfilePropertiesInternal)ProductProfile).ProductType = value ?? null; } /// Internal Acessors for ProductProfileSubscriptionStatus - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileMachineInstanceViewInternal.ProductProfileSubscriptionStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileArmProductProfilePropertiesInternal)ProductProfile).SubscriptionStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileArmProductProfilePropertiesInternal)ProductProfile).SubscriptionStatus = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileMachineInstanceViewInternal.ProductProfileSubscriptionStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileArmProductProfilePropertiesInternal)ProductProfile).SubscriptionStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileArmProductProfilePropertiesInternal)ProductProfile).SubscriptionStatus = value ?? null; } /// Internal Acessors for SoftwareAssurance Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileMachineInstanceViewSoftwareAssurance Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileMachineInstanceViewInternal.SoftwareAssurance { get => (this._softwareAssurance = this._softwareAssurance ?? new Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.LicenseProfileMachineInstanceViewSoftwareAssurance()); set { {_softwareAssurance = value;} } } /// Internal Acessors for SoftwareAssuranceCustomer - bool? Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileMachineInstanceViewInternal.SoftwareAssuranceCustomer { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileMachineInstanceViewSoftwareAssuranceInternal)SoftwareAssurance).SoftwareAssuranceCustomer; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileMachineInstanceViewSoftwareAssuranceInternal)SoftwareAssurance).SoftwareAssuranceCustomer = value; } + bool? Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileMachineInstanceViewInternal.SoftwareAssuranceCustomer { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileMachineInstanceViewSoftwareAssuranceInternal)SoftwareAssurance).SoftwareAssuranceCustomer; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileMachineInstanceViewSoftwareAssuranceInternal)SoftwareAssurance).SoftwareAssuranceCustomer = value ?? default(bool); } /// Internal Acessors for Target - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileMachineInstanceViewInternal.Target { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileArmProductProfilePropertiesInternal)ProductProfile).Target; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileArmProductProfilePropertiesInternal)ProductProfile).Target = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileMachineInstanceViewInternal.Target { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileArmProductProfilePropertiesInternal)ProductProfile).Target; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileArmProductProfilePropertiesInternal)ProductProfile).Target = value ?? null; } /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileArmProductProfileProperties _productProfile; diff --git a/generated/ScVmm/ScVmm.Autorest/generated/api/Models/LicenseProfileMachineInstanceViewEsuProperties.cs b/generated/ScVmm/ScVmm.Autorest/generated/api/Models/LicenseProfileMachineInstanceViewEsuProperties.cs index 72034f1326ec..3152060634bd 100644 --- a/generated/ScVmm/ScVmm.Autorest/generated/api/Models/LicenseProfileMachineInstanceViewEsuProperties.cs +++ b/generated/ScVmm/ScVmm.Autorest/generated/api/Models/LicenseProfileMachineInstanceViewEsuProperties.cs @@ -50,19 +50,19 @@ public partial class LicenseProfileMachineInstanceViewEsuProperties : public string LicenseAssignmentState { get => this._licenseAssignmentState; set => this._licenseAssignmentState = value; } /// Internal Acessors for EsuEligibility - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileArmEsuPropertiesWithoutAssignedLicenseInternal.EsuEligibility { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileArmEsuPropertiesWithoutAssignedLicenseInternal)__licenseProfileArmEsuPropertiesWithoutAssignedLicense).EsuEligibility; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileArmEsuPropertiesWithoutAssignedLicenseInternal)__licenseProfileArmEsuPropertiesWithoutAssignedLicense).EsuEligibility = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileArmEsuPropertiesWithoutAssignedLicenseInternal.EsuEligibility { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileArmEsuPropertiesWithoutAssignedLicenseInternal)__licenseProfileArmEsuPropertiesWithoutAssignedLicense).EsuEligibility; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileArmEsuPropertiesWithoutAssignedLicenseInternal)__licenseProfileArmEsuPropertiesWithoutAssignedLicense).EsuEligibility = value ?? null; } /// Internal Acessors for EsuKeyState - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileArmEsuPropertiesWithoutAssignedLicenseInternal.EsuKeyState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileArmEsuPropertiesWithoutAssignedLicenseInternal)__licenseProfileArmEsuPropertiesWithoutAssignedLicense).EsuKeyState; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileArmEsuPropertiesWithoutAssignedLicenseInternal)__licenseProfileArmEsuPropertiesWithoutAssignedLicense).EsuKeyState = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileArmEsuPropertiesWithoutAssignedLicenseInternal.EsuKeyState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileArmEsuPropertiesWithoutAssignedLicenseInternal)__licenseProfileArmEsuPropertiesWithoutAssignedLicense).EsuKeyState; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileArmEsuPropertiesWithoutAssignedLicenseInternal)__licenseProfileArmEsuPropertiesWithoutAssignedLicense).EsuKeyState = value ?? null; } /// Internal Acessors for ServerType - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileArmEsuPropertiesWithoutAssignedLicenseInternal.ServerType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileArmEsuPropertiesWithoutAssignedLicenseInternal)__licenseProfileArmEsuPropertiesWithoutAssignedLicense).ServerType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileArmEsuPropertiesWithoutAssignedLicenseInternal)__licenseProfileArmEsuPropertiesWithoutAssignedLicense).ServerType = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileArmEsuPropertiesWithoutAssignedLicenseInternal.ServerType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileArmEsuPropertiesWithoutAssignedLicenseInternal)__licenseProfileArmEsuPropertiesWithoutAssignedLicense).ServerType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileArmEsuPropertiesWithoutAssignedLicenseInternal)__licenseProfileArmEsuPropertiesWithoutAssignedLicense).ServerType = value ?? null; } /// Internal Acessors for AssignedLicenseImmutableId - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileStorageModelEsuPropertiesInternal.AssignedLicenseImmutableId { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileStorageModelEsuPropertiesInternal)__licenseProfileArmEsuPropertiesWithoutAssignedLicense).AssignedLicenseImmutableId; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileStorageModelEsuPropertiesInternal)__licenseProfileArmEsuPropertiesWithoutAssignedLicense).AssignedLicenseImmutableId = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileStorageModelEsuPropertiesInternal.AssignedLicenseImmutableId { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileStorageModelEsuPropertiesInternal)__licenseProfileArmEsuPropertiesWithoutAssignedLicense).AssignedLicenseImmutableId; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileStorageModelEsuPropertiesInternal)__licenseProfileArmEsuPropertiesWithoutAssignedLicense).AssignedLicenseImmutableId = value ?? null; } /// Internal Acessors for EsuKey - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileStorageModelEsuPropertiesInternal.EsuKey { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileStorageModelEsuPropertiesInternal)__licenseProfileArmEsuPropertiesWithoutAssignedLicense).EsuKey; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileStorageModelEsuPropertiesInternal)__licenseProfileArmEsuPropertiesWithoutAssignedLicense).EsuKey = value; } + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileStorageModelEsuPropertiesInternal.EsuKey { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileStorageModelEsuPropertiesInternal)__licenseProfileArmEsuPropertiesWithoutAssignedLicense).EsuKey; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileStorageModelEsuPropertiesInternal)__licenseProfileArmEsuPropertiesWithoutAssignedLicense).EsuKey = value ?? null /* arrayOf */; } /// The type of the Esu servers. [Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Origin(Microsoft.Azure.PowerShell.Cmdlets.ScVmm.PropertyOrigin.Inherited)] diff --git a/generated/ScVmm/ScVmm.Autorest/generated/api/Models/LicenseProfileProperties.cs b/generated/ScVmm/ScVmm.Autorest/generated/api/Models/LicenseProfileProperties.cs index 679d11e12ec8..3e4635955271 100644 --- a/generated/ScVmm/ScVmm.Autorest/generated/api/Models/LicenseProfileProperties.cs +++ b/generated/ScVmm/ScVmm.Autorest/generated/api/Models/LicenseProfileProperties.cs @@ -61,58 +61,58 @@ public partial class LicenseProfileProperties : public string Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileArmProductProfilePropertiesInternal)ProductProfile).Message; } /// Internal Acessors for AdditionalInfo - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfilePropertiesInternal.AdditionalInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileArmProductProfilePropertiesInternal)ProductProfile).AdditionalInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileArmProductProfilePropertiesInternal)ProductProfile).AdditionalInfo = value; } + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfilePropertiesInternal.AdditionalInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileArmProductProfilePropertiesInternal)ProductProfile).AdditionalInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileArmProductProfilePropertiesInternal)ProductProfile).AdditionalInfo = value ?? null /* arrayOf */; } /// Internal Acessors for Code - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfilePropertiesInternal.Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileArmProductProfilePropertiesInternal)ProductProfile).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileArmProductProfilePropertiesInternal)ProductProfile).Code = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfilePropertiesInternal.Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileArmProductProfilePropertiesInternal)ProductProfile).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileArmProductProfilePropertiesInternal)ProductProfile).Code = value ?? null; } /// Internal Acessors for Detail - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfilePropertiesInternal.Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileArmProductProfilePropertiesInternal)ProductProfile).Detail; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileArmProductProfilePropertiesInternal)ProductProfile).Detail = value; } + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfilePropertiesInternal.Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileArmProductProfilePropertiesInternal)ProductProfile).Detail; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileArmProductProfilePropertiesInternal)ProductProfile).Detail = value ?? null /* arrayOf */; } /// Internal Acessors for EsuProfile Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileArmEsuProperties Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfilePropertiesInternal.EsuProfile { get => (this._esuProfile = this._esuProfile ?? new Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.LicenseProfileArmEsuProperties()); set { {_esuProfile = value;} } } /// Internal Acessors for EsuProfileAssignedLicenseImmutableId - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfilePropertiesInternal.EsuProfileAssignedLicenseImmutableId { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileStorageModelEsuPropertiesInternal)EsuProfile).AssignedLicenseImmutableId; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileStorageModelEsuPropertiesInternal)EsuProfile).AssignedLicenseImmutableId = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfilePropertiesInternal.EsuProfileAssignedLicenseImmutableId { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileStorageModelEsuPropertiesInternal)EsuProfile).AssignedLicenseImmutableId; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileStorageModelEsuPropertiesInternal)EsuProfile).AssignedLicenseImmutableId = value ?? null; } /// Internal Acessors for EsuProfileEsuEligibility - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfilePropertiesInternal.EsuProfileEsuEligibility { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileArmEsuPropertiesWithoutAssignedLicenseInternal)EsuProfile).EsuEligibility; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileArmEsuPropertiesWithoutAssignedLicenseInternal)EsuProfile).EsuEligibility = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfilePropertiesInternal.EsuProfileEsuEligibility { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileArmEsuPropertiesWithoutAssignedLicenseInternal)EsuProfile).EsuEligibility; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileArmEsuPropertiesWithoutAssignedLicenseInternal)EsuProfile).EsuEligibility = value ?? null; } /// Internal Acessors for EsuProfileEsuKey - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfilePropertiesInternal.EsuProfileEsuKey { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileStorageModelEsuPropertiesInternal)EsuProfile).EsuKey; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileStorageModelEsuPropertiesInternal)EsuProfile).EsuKey = value; } + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfilePropertiesInternal.EsuProfileEsuKey { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileStorageModelEsuPropertiesInternal)EsuProfile).EsuKey; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileStorageModelEsuPropertiesInternal)EsuProfile).EsuKey = value ?? null /* arrayOf */; } /// Internal Acessors for EsuProfileEsuKeyState - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfilePropertiesInternal.EsuProfileEsuKeyState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileArmEsuPropertiesWithoutAssignedLicenseInternal)EsuProfile).EsuKeyState; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileArmEsuPropertiesWithoutAssignedLicenseInternal)EsuProfile).EsuKeyState = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfilePropertiesInternal.EsuProfileEsuKeyState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileArmEsuPropertiesWithoutAssignedLicenseInternal)EsuProfile).EsuKeyState; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileArmEsuPropertiesWithoutAssignedLicenseInternal)EsuProfile).EsuKeyState = value ?? null; } /// Internal Acessors for EsuProfileServerType - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfilePropertiesInternal.EsuProfileServerType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileArmEsuPropertiesWithoutAssignedLicenseInternal)EsuProfile).ServerType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileArmEsuPropertiesWithoutAssignedLicenseInternal)EsuProfile).ServerType = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfilePropertiesInternal.EsuProfileServerType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileArmEsuPropertiesWithoutAssignedLicenseInternal)EsuProfile).ServerType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileArmEsuPropertiesWithoutAssignedLicenseInternal)EsuProfile).ServerType = value ?? null; } /// Internal Acessors for Message - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfilePropertiesInternal.Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileArmProductProfilePropertiesInternal)ProductProfile).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileArmProductProfilePropertiesInternal)ProductProfile).Message = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfilePropertiesInternal.Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileArmProductProfilePropertiesInternal)ProductProfile).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileArmProductProfilePropertiesInternal)ProductProfile).Message = value ?? null; } /// Internal Acessors for ProductProfile Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileArmProductProfileProperties Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfilePropertiesInternal.ProductProfile { get => (this._productProfile = this._productProfile ?? new Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.LicenseProfileArmProductProfileProperties()); set { {_productProfile = value;} } } /// Internal Acessors for ProductProfileBillingEndDate - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfilePropertiesInternal.ProductProfileBillingEndDate { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileArmProductProfilePropertiesInternal)ProductProfile).BillingEndDate; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileArmProductProfilePropertiesInternal)ProductProfile).BillingEndDate = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfilePropertiesInternal.ProductProfileBillingEndDate { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileArmProductProfilePropertiesInternal)ProductProfile).BillingEndDate; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileArmProductProfilePropertiesInternal)ProductProfile).BillingEndDate = value ?? default(global::System.DateTime); } /// Internal Acessors for ProductProfileBillingStartDate - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfilePropertiesInternal.ProductProfileBillingStartDate { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileArmProductProfilePropertiesInternal)ProductProfile).BillingStartDate; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileArmProductProfilePropertiesInternal)ProductProfile).BillingStartDate = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfilePropertiesInternal.ProductProfileBillingStartDate { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileArmProductProfilePropertiesInternal)ProductProfile).BillingStartDate; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileArmProductProfilePropertiesInternal)ProductProfile).BillingStartDate = value ?? default(global::System.DateTime); } /// Internal Acessors for ProductProfileDisenrollmentDate - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfilePropertiesInternal.ProductProfileDisenrollmentDate { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileArmProductProfilePropertiesInternal)ProductProfile).DisenrollmentDate; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileArmProductProfilePropertiesInternal)ProductProfile).DisenrollmentDate = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfilePropertiesInternal.ProductProfileDisenrollmentDate { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileArmProductProfilePropertiesInternal)ProductProfile).DisenrollmentDate; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileArmProductProfilePropertiesInternal)ProductProfile).DisenrollmentDate = value ?? default(global::System.DateTime); } /// Internal Acessors for ProductProfileEnrollmentDate - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfilePropertiesInternal.ProductProfileEnrollmentDate { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileArmProductProfilePropertiesInternal)ProductProfile).EnrollmentDate; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileArmProductProfilePropertiesInternal)ProductProfile).EnrollmentDate = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfilePropertiesInternal.ProductProfileEnrollmentDate { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileArmProductProfilePropertiesInternal)ProductProfile).EnrollmentDate; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileArmProductProfilePropertiesInternal)ProductProfile).EnrollmentDate = value ?? default(global::System.DateTime); } /// Internal Acessors for ProductProfileError - Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IErrorDetailAutoGenerated Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfilePropertiesInternal.ProductProfileError { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileArmProductProfilePropertiesInternal)ProductProfile).Error; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileArmProductProfilePropertiesInternal)ProductProfile).Error = value; } + Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IErrorDetailAutoGenerated Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfilePropertiesInternal.ProductProfileError { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileArmProductProfilePropertiesInternal)ProductProfile).Error; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileArmProductProfilePropertiesInternal)ProductProfile).Error = value ?? null /* model class */; } /// Internal Acessors for SoftwareAssurance Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfilePropertiesSoftwareAssurance Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfilePropertiesInternal.SoftwareAssurance { get => (this._softwareAssurance = this._softwareAssurance ?? new Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.LicenseProfilePropertiesSoftwareAssurance()); set { {_softwareAssurance = value;} } } /// Internal Acessors for Target - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfilePropertiesInternal.Target { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileArmProductProfilePropertiesInternal)ProductProfile).Target; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileArmProductProfilePropertiesInternal)ProductProfile).Target = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfilePropertiesInternal.Target { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileArmProductProfilePropertiesInternal)ProductProfile).Target; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileArmProductProfilePropertiesInternal)ProductProfile).Target = value ?? null; } /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileArmProductProfileProperties _productProfile; diff --git a/generated/ScVmm/ScVmm.Autorest/generated/api/Models/LicenseProfileUpdate.cs b/generated/ScVmm/ScVmm.Autorest/generated/api/Models/LicenseProfileUpdate.cs index 113dd4426319..eecb75eac889 100644 --- a/generated/ScVmm/ScVmm.Autorest/generated/api/Models/LicenseProfileUpdate.cs +++ b/generated/ScVmm/ScVmm.Autorest/generated/api/Models/LicenseProfileUpdate.cs @@ -23,16 +23,16 @@ public partial class LicenseProfileUpdate : public string EsuProfileAssignedLicense { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileUpdatePropertiesInternal)Property).EsuProfileAssignedLicense; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileUpdatePropertiesInternal)Property).EsuProfileAssignedLicense = value ?? null; } /// Internal Acessors for EsuProfile - Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IEsuProfileUpdateProperties Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileUpdateInternal.EsuProfile { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileUpdatePropertiesInternal)Property).EsuProfile; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileUpdatePropertiesInternal)Property).EsuProfile = value; } + Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IEsuProfileUpdateProperties Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileUpdateInternal.EsuProfile { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileUpdatePropertiesInternal)Property).EsuProfile; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileUpdatePropertiesInternal)Property).EsuProfile = value ?? null /* model class */; } /// Internal Acessors for ProductProfile - Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IProductProfileUpdateProperties Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileUpdateInternal.ProductProfile { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileUpdatePropertiesInternal)Property).ProductProfile; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileUpdatePropertiesInternal)Property).ProductProfile = value; } + Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IProductProfileUpdateProperties Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileUpdateInternal.ProductProfile { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileUpdatePropertiesInternal)Property).ProductProfile; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileUpdatePropertiesInternal)Property).ProductProfile = value ?? null /* model class */; } /// Internal Acessors for Property Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileUpdateProperties Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileUpdateInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.LicenseProfileUpdateProperties()); set { {_property = value;} } } /// Internal Acessors for SoftwareAssurance - Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileUpdatePropertiesSoftwareAssurance Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileUpdateInternal.SoftwareAssurance { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileUpdatePropertiesInternal)Property).SoftwareAssurance; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileUpdatePropertiesInternal)Property).SoftwareAssurance = value; } + Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileUpdatePropertiesSoftwareAssurance Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileUpdateInternal.SoftwareAssurance { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileUpdatePropertiesInternal)Property).SoftwareAssurance; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseProfileUpdatePropertiesInternal)Property).SoftwareAssurance = value ?? null /* model class */; } /// The list of product feature updates. [Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Origin(Microsoft.Azure.PowerShell.Cmdlets.ScVmm.PropertyOrigin.Inlined)] diff --git a/generated/ScVmm/ScVmm.Autorest/generated/api/Models/LicenseProperties.cs b/generated/ScVmm/ScVmm.Autorest/generated/api/Models/LicenseProperties.cs index d34ae4f1aee8..501b98606520 100644 --- a/generated/ScVmm/ScVmm.Autorest/generated/api/Models/LicenseProperties.cs +++ b/generated/ScVmm/ScVmm.Autorest/generated/api/Models/LicenseProperties.cs @@ -65,10 +65,10 @@ public partial class LicenseProperties : Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseDetails Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicensePropertiesInternal.LicenseDetail { get => (this._licenseDetail = this._licenseDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.LicenseDetails()); set { {_licenseDetail = value;} } } /// Internal Acessors for LicenseDetailAssignedLicense - int? Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicensePropertiesInternal.LicenseDetailAssignedLicense { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseDetailsInternal)LicenseDetail).AssignedLicense; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseDetailsInternal)LicenseDetail).AssignedLicense = value; } + int? Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicensePropertiesInternal.LicenseDetailAssignedLicense { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseDetailsInternal)LicenseDetail).AssignedLicense; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseDetailsInternal)LicenseDetail).AssignedLicense = value ?? default(int); } /// Internal Acessors for LicenseDetailImmutableId - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicensePropertiesInternal.LicenseDetailImmutableId { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseDetailsInternal)LicenseDetail).ImmutableId; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseDetailsInternal)LicenseDetail).ImmutableId = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicensePropertiesInternal.LicenseDetailImmutableId { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseDetailsInternal)LicenseDetail).ImmutableId; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseDetailsInternal)LicenseDetail).ImmutableId = value ?? null; } /// Backing field for property. private string _provisioningState; diff --git a/generated/ScVmm/ScVmm.Autorest/generated/api/Models/LicenseUpdate.cs b/generated/ScVmm/ScVmm.Autorest/generated/api/Models/LicenseUpdate.cs index c3194ed73802..fe70c03af143 100644 --- a/generated/ScVmm/ScVmm.Autorest/generated/api/Models/LicenseUpdate.cs +++ b/generated/ScVmm/ScVmm.Autorest/generated/api/Models/LicenseUpdate.cs @@ -45,7 +45,7 @@ public partial class LicenseUpdate : public string LicenseType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseUpdatePropertiesInternal)Property).LicenseType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseUpdatePropertiesInternal)Property).LicenseType = value ?? null; } /// Internal Acessors for LicenseDetail - Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseUpdatePropertiesLicenseDetails Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseUpdateInternal.LicenseDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseUpdatePropertiesInternal)Property).LicenseDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseUpdatePropertiesInternal)Property).LicenseDetail = value; } + Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseUpdatePropertiesLicenseDetails Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseUpdateInternal.LicenseDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseUpdatePropertiesInternal)Property).LicenseDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseUpdatePropertiesInternal)Property).LicenseDetail = value ?? null /* model class */; } /// Internal Acessors for Property Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseUpdateProperties Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILicenseUpdateInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.LicenseUpdateProperties()); set { {_property = value;} } } diff --git a/generated/ScVmm/ScVmm.Autorest/generated/api/Models/Machine.cs b/generated/ScVmm/ScVmm.Autorest/generated/api/Models/Machine.cs index 5ab1b5c3215f..6f9239de7fd8 100644 --- a/generated/ScVmm/ScVmm.Autorest/generated/api/Models/Machine.cs +++ b/generated/ScVmm/ScVmm.Autorest/generated/api/Models/Machine.cs @@ -207,163 +207,163 @@ public partial class Machine : public string LocationDataName { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachinePropertiesInternal)Property).LocationDataName; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachinePropertiesInternal)Property).LocationDataName = value ?? null; } /// Internal Acessors for AdFqdn - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachineInternal.AdFqdn { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachinePropertiesInternal)Property).AdFqdn; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachinePropertiesInternal)Property).AdFqdn = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachineInternal.AdFqdn { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachinePropertiesInternal)Property).AdFqdn; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachinePropertiesInternal)Property).AdFqdn = value ?? null; } /// Internal Acessors for AgentConfiguration - Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IAgentConfiguration Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachineInternal.AgentConfiguration { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachinePropertiesInternal)Property).AgentConfiguration; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachinePropertiesInternal)Property).AgentConfiguration = value; } + Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IAgentConfiguration Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachineInternal.AgentConfiguration { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachinePropertiesInternal)Property).AgentConfiguration; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachinePropertiesInternal)Property).AgentConfiguration = value ?? null /* model class */; } /// Internal Acessors for AgentConfigurationConfigMode - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachineInternal.AgentConfigurationConfigMode { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachinePropertiesInternal)Property).AgentConfigurationConfigMode; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachinePropertiesInternal)Property).AgentConfigurationConfigMode = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachineInternal.AgentConfigurationConfigMode { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachinePropertiesInternal)Property).AgentConfigurationConfigMode; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachinePropertiesInternal)Property).AgentConfigurationConfigMode = value ?? null; } /// Internal Acessors for AgentConfigurationExtensionsAllowList - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachineInternal.AgentConfigurationExtensionsAllowList { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachinePropertiesInternal)Property).AgentConfigurationExtensionsAllowList; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachinePropertiesInternal)Property).AgentConfigurationExtensionsAllowList = value; } + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachineInternal.AgentConfigurationExtensionsAllowList { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachinePropertiesInternal)Property).AgentConfigurationExtensionsAllowList; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachinePropertiesInternal)Property).AgentConfigurationExtensionsAllowList = value ?? null /* arrayOf */; } /// Internal Acessors for AgentConfigurationExtensionsBlockList - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachineInternal.AgentConfigurationExtensionsBlockList { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachinePropertiesInternal)Property).AgentConfigurationExtensionsBlockList; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachinePropertiesInternal)Property).AgentConfigurationExtensionsBlockList = value; } + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachineInternal.AgentConfigurationExtensionsBlockList { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachinePropertiesInternal)Property).AgentConfigurationExtensionsBlockList; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachinePropertiesInternal)Property).AgentConfigurationExtensionsBlockList = value ?? null /* arrayOf */; } /// Internal Acessors for AgentConfigurationExtensionsEnabled - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachineInternal.AgentConfigurationExtensionsEnabled { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachinePropertiesInternal)Property).AgentConfigurationExtensionsEnabled; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachinePropertiesInternal)Property).AgentConfigurationExtensionsEnabled = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachineInternal.AgentConfigurationExtensionsEnabled { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachinePropertiesInternal)Property).AgentConfigurationExtensionsEnabled; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachinePropertiesInternal)Property).AgentConfigurationExtensionsEnabled = value ?? null; } /// Internal Acessors for AgentConfigurationGuestConfigurationEnabled - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachineInternal.AgentConfigurationGuestConfigurationEnabled { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachinePropertiesInternal)Property).AgentConfigurationGuestConfigurationEnabled; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachinePropertiesInternal)Property).AgentConfigurationGuestConfigurationEnabled = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachineInternal.AgentConfigurationGuestConfigurationEnabled { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachinePropertiesInternal)Property).AgentConfigurationGuestConfigurationEnabled; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachinePropertiesInternal)Property).AgentConfigurationGuestConfigurationEnabled = value ?? null; } /// Internal Acessors for AgentConfigurationIncomingConnectionsPort - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachineInternal.AgentConfigurationIncomingConnectionsPort { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachinePropertiesInternal)Property).AgentConfigurationIncomingConnectionsPort; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachinePropertiesInternal)Property).AgentConfigurationIncomingConnectionsPort = value; } + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachineInternal.AgentConfigurationIncomingConnectionsPort { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachinePropertiesInternal)Property).AgentConfigurationIncomingConnectionsPort; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachinePropertiesInternal)Property).AgentConfigurationIncomingConnectionsPort = value ?? null /* arrayOf */; } /// Internal Acessors for AgentConfigurationProxyBypass - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachineInternal.AgentConfigurationProxyBypass { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachinePropertiesInternal)Property).AgentConfigurationProxyBypass; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachinePropertiesInternal)Property).AgentConfigurationProxyBypass = value; } + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachineInternal.AgentConfigurationProxyBypass { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachinePropertiesInternal)Property).AgentConfigurationProxyBypass; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachinePropertiesInternal)Property).AgentConfigurationProxyBypass = value ?? null /* arrayOf */; } /// Internal Acessors for AgentConfigurationProxyUrl - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachineInternal.AgentConfigurationProxyUrl { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachinePropertiesInternal)Property).AgentConfigurationProxyUrl; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachinePropertiesInternal)Property).AgentConfigurationProxyUrl = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachineInternal.AgentConfigurationProxyUrl { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachinePropertiesInternal)Property).AgentConfigurationProxyUrl; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachinePropertiesInternal)Property).AgentConfigurationProxyUrl = value ?? null; } /// Internal Acessors for AgentUpgrade - Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IAgentUpgrade Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachineInternal.AgentUpgrade { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachinePropertiesInternal)Property).AgentUpgrade; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachinePropertiesInternal)Property).AgentUpgrade = value; } + Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IAgentUpgrade Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachineInternal.AgentUpgrade { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachinePropertiesInternal)Property).AgentUpgrade; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachinePropertiesInternal)Property).AgentUpgrade = value ?? null /* model class */; } /// Internal Acessors for AgentUpgradeLastAttemptDesiredVersion - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachineInternal.AgentUpgradeLastAttemptDesiredVersion { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachinePropertiesInternal)Property).AgentUpgradeLastAttemptDesiredVersion; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachinePropertiesInternal)Property).AgentUpgradeLastAttemptDesiredVersion = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachineInternal.AgentUpgradeLastAttemptDesiredVersion { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachinePropertiesInternal)Property).AgentUpgradeLastAttemptDesiredVersion; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachinePropertiesInternal)Property).AgentUpgradeLastAttemptDesiredVersion = value ?? null; } /// Internal Acessors for AgentUpgradeLastAttemptMessage - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachineInternal.AgentUpgradeLastAttemptMessage { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachinePropertiesInternal)Property).AgentUpgradeLastAttemptMessage; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachinePropertiesInternal)Property).AgentUpgradeLastAttemptMessage = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachineInternal.AgentUpgradeLastAttemptMessage { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachinePropertiesInternal)Property).AgentUpgradeLastAttemptMessage; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachinePropertiesInternal)Property).AgentUpgradeLastAttemptMessage = value ?? null; } /// Internal Acessors for AgentUpgradeLastAttemptStatus - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachineInternal.AgentUpgradeLastAttemptStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachinePropertiesInternal)Property).AgentUpgradeLastAttemptStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachinePropertiesInternal)Property).AgentUpgradeLastAttemptStatus = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachineInternal.AgentUpgradeLastAttemptStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachinePropertiesInternal)Property).AgentUpgradeLastAttemptStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachinePropertiesInternal)Property).AgentUpgradeLastAttemptStatus = value ?? null; } /// Internal Acessors for AgentUpgradeLastAttemptTimestamp - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachineInternal.AgentUpgradeLastAttemptTimestamp { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachinePropertiesInternal)Property).AgentUpgradeLastAttemptTimestamp; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachinePropertiesInternal)Property).AgentUpgradeLastAttemptTimestamp = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachineInternal.AgentUpgradeLastAttemptTimestamp { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachinePropertiesInternal)Property).AgentUpgradeLastAttemptTimestamp; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachinePropertiesInternal)Property).AgentUpgradeLastAttemptTimestamp = value ?? null; } /// Internal Acessors for AgentVersion - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachineInternal.AgentVersion { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachinePropertiesInternal)Property).AgentVersion; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachinePropertiesInternal)Property).AgentVersion = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachineInternal.AgentVersion { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachinePropertiesInternal)Property).AgentVersion; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachinePropertiesInternal)Property).AgentVersion = value ?? null; } /// Internal Acessors for CloudMetadata - Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ICloudMetadata Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachineInternal.CloudMetadata { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachinePropertiesInternal)Property).CloudMetadata; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachinePropertiesInternal)Property).CloudMetadata = value; } + Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ICloudMetadata Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachineInternal.CloudMetadata { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachinePropertiesInternal)Property).CloudMetadata; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachinePropertiesInternal)Property).CloudMetadata = value ?? null /* model class */; } /// Internal Acessors for CloudMetadataProvider - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachineInternal.CloudMetadataProvider { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachinePropertiesInternal)Property).CloudMetadataProvider; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachinePropertiesInternal)Property).CloudMetadataProvider = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachineInternal.CloudMetadataProvider { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachinePropertiesInternal)Property).CloudMetadataProvider; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachinePropertiesInternal)Property).CloudMetadataProvider = value ?? null; } /// Internal Acessors for DetectedProperty - Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IDetectedProperties Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachineInternal.DetectedProperty { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachinePropertiesInternal)Property).DetectedProperty; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachinePropertiesInternal)Property).DetectedProperty = value; } + Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IDetectedProperties Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachineInternal.DetectedProperty { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachinePropertiesInternal)Property).DetectedProperty; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachinePropertiesInternal)Property).DetectedProperty = value ?? null /* model class */; } /// Internal Acessors for DisplayName - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachineInternal.DisplayName { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachinePropertiesInternal)Property).DisplayName; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachinePropertiesInternal)Property).DisplayName = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachineInternal.DisplayName { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachinePropertiesInternal)Property).DisplayName; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachinePropertiesInternal)Property).DisplayName = value ?? null; } /// Internal Acessors for DnsFqdn - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachineInternal.DnsFqdn { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachinePropertiesInternal)Property).DnsFqdn; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachinePropertiesInternal)Property).DnsFqdn = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachineInternal.DnsFqdn { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachinePropertiesInternal)Property).DnsFqdn; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachinePropertiesInternal)Property).DnsFqdn = value ?? null; } /// Internal Acessors for DomainName - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachineInternal.DomainName { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachinePropertiesInternal)Property).DomainName; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachinePropertiesInternal)Property).DomainName = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachineInternal.DomainName { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachinePropertiesInternal)Property).DomainName; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachinePropertiesInternal)Property).DomainName = value ?? null; } /// Internal Acessors for ErrorDetail - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachineInternal.ErrorDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachinePropertiesInternal)Property).ErrorDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachinePropertiesInternal)Property).ErrorDetail = value; } + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachineInternal.ErrorDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachinePropertiesInternal)Property).ErrorDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachinePropertiesInternal)Property).ErrorDetail = value ?? null /* arrayOf */; } /// Internal Acessors for Fqdn - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachineInternal.Fqdn { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachinePropertiesInternal)Property).MachineFqdn; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachinePropertiesInternal)Property).MachineFqdn = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachineInternal.Fqdn { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachinePropertiesInternal)Property).MachineFqdn; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachinePropertiesInternal)Property).MachineFqdn = value ?? null; } /// Internal Acessors for Identity Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IIdentity Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachineInternal.Identity { get => (this._identity = this._identity ?? new Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.Identity()); set { {_identity = value;} } } /// Internal Acessors for IdentityPrincipalId - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachineInternal.IdentityPrincipalId { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IIdentityInternal)Identity).PrincipalId; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IIdentityInternal)Identity).PrincipalId = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachineInternal.IdentityPrincipalId { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IIdentityInternal)Identity).PrincipalId; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IIdentityInternal)Identity).PrincipalId = value ?? null; } /// Internal Acessors for IdentityTenantId - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachineInternal.IdentityTenantId { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IIdentityInternal)Identity).TenantId; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IIdentityInternal)Identity).TenantId = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachineInternal.IdentityTenantId { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IIdentityInternal)Identity).TenantId; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IIdentityInternal)Identity).TenantId = value ?? null; } /// Internal Acessors for LastStatusChange - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachineInternal.LastStatusChange { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachinePropertiesInternal)Property).LastStatusChange; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachinePropertiesInternal)Property).LastStatusChange = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachineInternal.LastStatusChange { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachinePropertiesInternal)Property).LastStatusChange; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachinePropertiesInternal)Property).LastStatusChange = value ?? default(global::System.DateTime); } /// Internal Acessors for LocationData - Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILocationData Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachineInternal.LocationData { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachinePropertiesInternal)Property).LocationData; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachinePropertiesInternal)Property).LocationData = value; } + Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILocationData Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachineInternal.LocationData { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachinePropertiesInternal)Property).LocationData; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachinePropertiesInternal)Property).LocationData = value ?? null /* model class */; } /// Internal Acessors for NetworkProfile - Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.INetworkProfileAutoGenerated Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachineInternal.NetworkProfile { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachinePropertiesInternal)Property).NetworkProfile; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachinePropertiesInternal)Property).NetworkProfile = value; } + Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.INetworkProfileAutoGenerated Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachineInternal.NetworkProfile { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachinePropertiesInternal)Property).NetworkProfile; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachinePropertiesInternal)Property).NetworkProfile = value ?? null /* model class */; } /// Internal Acessors for NetworkProfileNetworkInterface - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachineInternal.NetworkProfileNetworkInterface { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachinePropertiesInternal)Property).NetworkProfileNetworkInterface; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachinePropertiesInternal)Property).NetworkProfileNetworkInterface = value; } + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachineInternal.NetworkProfileNetworkInterface { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachinePropertiesInternal)Property).NetworkProfileNetworkInterface; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachinePropertiesInternal)Property).NetworkProfileNetworkInterface = value ?? null /* arrayOf */; } /// Internal Acessors for OSEdition - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachineInternal.OSEdition { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachinePropertiesInternal)Property).OSEdition; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachinePropertiesInternal)Property).OSEdition = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachineInternal.OSEdition { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachinePropertiesInternal)Property).OSEdition; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachinePropertiesInternal)Property).OSEdition = value ?? null; } /// Internal Acessors for OSName - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachineInternal.OSName { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachinePropertiesInternal)Property).OSName; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachinePropertiesInternal)Property).OSName = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachineInternal.OSName { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachinePropertiesInternal)Property).OSName; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachinePropertiesInternal)Property).OSName = value ?? null; } /// Internal Acessors for OSSku - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachineInternal.OSSku { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachinePropertiesInternal)Property).OSSku; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachinePropertiesInternal)Property).OSSku = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachineInternal.OSSku { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachinePropertiesInternal)Property).OSSku; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachinePropertiesInternal)Property).OSSku = value ?? null; } /// Internal Acessors for OSVersion - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachineInternal.OSVersion { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachinePropertiesInternal)Property).OSVersion; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachinePropertiesInternal)Property).OSVersion = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachineInternal.OSVersion { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachinePropertiesInternal)Property).OSVersion; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachinePropertiesInternal)Property).OSVersion = value ?? null; } /// Internal Acessors for Property Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachineProperties Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachineInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.MachineProperties()); set { {_property = value;} } } /// Internal Acessors for ProvisioningState - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachineInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachinePropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachinePropertiesInternal)Property).ProvisioningState = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachineInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachinePropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachinePropertiesInternal)Property).ProvisioningState = value ?? null; } /// Internal Acessors for Resource System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachineInternal.Resource { get => this._resource; set { {_resource = value;} } } /// Internal Acessors for ServiceStatuses - Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IServiceStatuses Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachineInternal.ServiceStatuses { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachinePropertiesInternal)Property).ServiceStatuses; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachinePropertiesInternal)Property).ServiceStatuses = value; } + Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IServiceStatuses Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachineInternal.ServiceStatuses { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachinePropertiesInternal)Property).ServiceStatuses; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachinePropertiesInternal)Property).ServiceStatuses = value ?? null /* model class */; } /// Internal Acessors for ServiceStatusesExtensionService - Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IServiceStatus Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachineInternal.ServiceStatusesExtensionService { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachinePropertiesInternal)Property).ServiceStatusesExtensionService; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachinePropertiesInternal)Property).ServiceStatusesExtensionService = value; } + Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IServiceStatus Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachineInternal.ServiceStatusesExtensionService { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachinePropertiesInternal)Property).ServiceStatusesExtensionService; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachinePropertiesInternal)Property).ServiceStatusesExtensionService = value ?? null /* model class */; } /// Internal Acessors for ServiceStatusesGuestConfigurationService - Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IServiceStatus Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachineInternal.ServiceStatusesGuestConfigurationService { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachinePropertiesInternal)Property).ServiceStatusesGuestConfigurationService; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachinePropertiesInternal)Property).ServiceStatusesGuestConfigurationService = value; } + Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IServiceStatus Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachineInternal.ServiceStatusesGuestConfigurationService { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachinePropertiesInternal)Property).ServiceStatusesGuestConfigurationService; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachinePropertiesInternal)Property).ServiceStatusesGuestConfigurationService = value ?? null /* model class */; } /// Internal Acessors for Status - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachineInternal.Status { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachinePropertiesInternal)Property).Status; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachinePropertiesInternal)Property).Status = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachineInternal.Status { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachinePropertiesInternal)Property).Status; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachinePropertiesInternal)Property).Status = value ?? null; } /// Internal Acessors for VMUuid - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachineInternal.VMUuid { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachinePropertiesInternal)Property).VMUuid; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachinePropertiesInternal)Property).VMUuid = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachineInternal.VMUuid { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachinePropertiesInternal)Property).VMUuid; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachinePropertiesInternal)Property).VMUuid = value ?? null; } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal)__trackedResourceAutoGenerated).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal)__trackedResourceAutoGenerated).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal)__trackedResourceAutoGenerated).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal)__trackedResourceAutoGenerated).Id = value ?? null; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal)__trackedResourceAutoGenerated).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal)__trackedResourceAutoGenerated).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal)__trackedResourceAutoGenerated).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal)__trackedResourceAutoGenerated).Name = value ?? null; } /// Internal Acessors for SystemData - Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal)__trackedResourceAutoGenerated).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal)__trackedResourceAutoGenerated).SystemData = value; } + Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal)__trackedResourceAutoGenerated).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal)__trackedResourceAutoGenerated).SystemData = value ?? null /* model class */; } /// Internal Acessors for SystemDataCreatedAt - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal)__trackedResourceAutoGenerated).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal)__trackedResourceAutoGenerated).SystemDataCreatedAt = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal)__trackedResourceAutoGenerated).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal)__trackedResourceAutoGenerated).SystemDataCreatedAt = value ?? default(global::System.DateTime); } /// Internal Acessors for SystemDataCreatedBy - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal)__trackedResourceAutoGenerated).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal)__trackedResourceAutoGenerated).SystemDataCreatedBy = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal)__trackedResourceAutoGenerated).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal)__trackedResourceAutoGenerated).SystemDataCreatedBy = value ?? null; } /// Internal Acessors for SystemDataCreatedByType - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal)__trackedResourceAutoGenerated).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal)__trackedResourceAutoGenerated).SystemDataCreatedByType = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal)__trackedResourceAutoGenerated).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal)__trackedResourceAutoGenerated).SystemDataCreatedByType = value ?? null; } /// Internal Acessors for SystemDataLastModifiedAt - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal)__trackedResourceAutoGenerated).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal)__trackedResourceAutoGenerated).SystemDataLastModifiedAt = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal)__trackedResourceAutoGenerated).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal)__trackedResourceAutoGenerated).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } /// Internal Acessors for SystemDataLastModifiedBy - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal)__trackedResourceAutoGenerated).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal)__trackedResourceAutoGenerated).SystemDataLastModifiedBy = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal)__trackedResourceAutoGenerated).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal)__trackedResourceAutoGenerated).SystemDataLastModifiedBy = value ?? null; } /// Internal Acessors for SystemDataLastModifiedByType - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal)__trackedResourceAutoGenerated).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal)__trackedResourceAutoGenerated).SystemDataLastModifiedByType = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal)__trackedResourceAutoGenerated).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal)__trackedResourceAutoGenerated).SystemDataLastModifiedByType = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal)__trackedResourceAutoGenerated).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal)__trackedResourceAutoGenerated).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal)__trackedResourceAutoGenerated).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal)__trackedResourceAutoGenerated).Type = value ?? null; } /// Specifies whether any MS SQL instance is discovered on the machine. [Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Origin(Microsoft.Azure.PowerShell.Cmdlets.ScVmm.PropertyOrigin.Inlined)] diff --git a/generated/ScVmm/ScVmm.Autorest/generated/api/Models/MachineAssessPatchesResult.cs b/generated/ScVmm/ScVmm.Autorest/generated/api/Models/MachineAssessPatchesResult.cs index ec4c9b8e28bb..30c8dd45d68b 100644 --- a/generated/ScVmm/ScVmm.Autorest/generated/api/Models/MachineAssessPatchesResult.cs +++ b/generated/ScVmm/ScVmm.Autorest/generated/api/Models/MachineAssessPatchesResult.cs @@ -108,49 +108,49 @@ public partial class MachineAssessPatchesResult : Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IAvailablePatchCountByClassification Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachineAssessPatchesResultInternal.AvailablePatchCountByClassification { get => (this._availablePatchCountByClassification = this._availablePatchCountByClassification ?? new Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.AvailablePatchCountByClassification()); set { {_availablePatchCountByClassification = value;} } } /// Internal Acessors for AvailablePatchCountByClassificationCritical - int? Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachineAssessPatchesResultInternal.AvailablePatchCountByClassificationCritical { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IAvailablePatchCountByClassificationInternal)AvailablePatchCountByClassification).Critical; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IAvailablePatchCountByClassificationInternal)AvailablePatchCountByClassification).Critical = value; } + int? Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachineAssessPatchesResultInternal.AvailablePatchCountByClassificationCritical { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IAvailablePatchCountByClassificationInternal)AvailablePatchCountByClassification).Critical; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IAvailablePatchCountByClassificationInternal)AvailablePatchCountByClassification).Critical = value ?? default(int); } /// Internal Acessors for AvailablePatchCountByClassificationDefinition - int? Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachineAssessPatchesResultInternal.AvailablePatchCountByClassificationDefinition { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IAvailablePatchCountByClassificationInternal)AvailablePatchCountByClassification).Definition; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IAvailablePatchCountByClassificationInternal)AvailablePatchCountByClassification).Definition = value; } + int? Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachineAssessPatchesResultInternal.AvailablePatchCountByClassificationDefinition { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IAvailablePatchCountByClassificationInternal)AvailablePatchCountByClassification).Definition; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IAvailablePatchCountByClassificationInternal)AvailablePatchCountByClassification).Definition = value ?? default(int); } /// Internal Acessors for AvailablePatchCountByClassificationFeaturePack - int? Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachineAssessPatchesResultInternal.AvailablePatchCountByClassificationFeaturePack { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IAvailablePatchCountByClassificationInternal)AvailablePatchCountByClassification).FeaturePack; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IAvailablePatchCountByClassificationInternal)AvailablePatchCountByClassification).FeaturePack = value; } + int? Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachineAssessPatchesResultInternal.AvailablePatchCountByClassificationFeaturePack { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IAvailablePatchCountByClassificationInternal)AvailablePatchCountByClassification).FeaturePack; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IAvailablePatchCountByClassificationInternal)AvailablePatchCountByClassification).FeaturePack = value ?? default(int); } /// Internal Acessors for AvailablePatchCountByClassificationOther - int? Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachineAssessPatchesResultInternal.AvailablePatchCountByClassificationOther { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IAvailablePatchCountByClassificationInternal)AvailablePatchCountByClassification).Other; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IAvailablePatchCountByClassificationInternal)AvailablePatchCountByClassification).Other = value; } + int? Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachineAssessPatchesResultInternal.AvailablePatchCountByClassificationOther { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IAvailablePatchCountByClassificationInternal)AvailablePatchCountByClassification).Other; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IAvailablePatchCountByClassificationInternal)AvailablePatchCountByClassification).Other = value ?? default(int); } /// Internal Acessors for AvailablePatchCountByClassificationSecurity - int? Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachineAssessPatchesResultInternal.AvailablePatchCountByClassificationSecurity { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IAvailablePatchCountByClassificationInternal)AvailablePatchCountByClassification).Security; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IAvailablePatchCountByClassificationInternal)AvailablePatchCountByClassification).Security = value; } + int? Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachineAssessPatchesResultInternal.AvailablePatchCountByClassificationSecurity { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IAvailablePatchCountByClassificationInternal)AvailablePatchCountByClassification).Security; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IAvailablePatchCountByClassificationInternal)AvailablePatchCountByClassification).Security = value ?? default(int); } /// Internal Acessors for AvailablePatchCountByClassificationServicePack - int? Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachineAssessPatchesResultInternal.AvailablePatchCountByClassificationServicePack { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IAvailablePatchCountByClassificationInternal)AvailablePatchCountByClassification).ServicePack; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IAvailablePatchCountByClassificationInternal)AvailablePatchCountByClassification).ServicePack = value; } + int? Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachineAssessPatchesResultInternal.AvailablePatchCountByClassificationServicePack { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IAvailablePatchCountByClassificationInternal)AvailablePatchCountByClassification).ServicePack; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IAvailablePatchCountByClassificationInternal)AvailablePatchCountByClassification).ServicePack = value ?? default(int); } /// Internal Acessors for AvailablePatchCountByClassificationTool - int? Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachineAssessPatchesResultInternal.AvailablePatchCountByClassificationTool { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IAvailablePatchCountByClassificationInternal)AvailablePatchCountByClassification).Tool; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IAvailablePatchCountByClassificationInternal)AvailablePatchCountByClassification).Tool = value; } + int? Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachineAssessPatchesResultInternal.AvailablePatchCountByClassificationTool { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IAvailablePatchCountByClassificationInternal)AvailablePatchCountByClassification).Tool; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IAvailablePatchCountByClassificationInternal)AvailablePatchCountByClassification).Tool = value ?? default(int); } /// Internal Acessors for AvailablePatchCountByClassificationUpdate - int? Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachineAssessPatchesResultInternal.AvailablePatchCountByClassificationUpdate { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IAvailablePatchCountByClassificationInternal)AvailablePatchCountByClassification).Update; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IAvailablePatchCountByClassificationInternal)AvailablePatchCountByClassification).Update = value; } + int? Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachineAssessPatchesResultInternal.AvailablePatchCountByClassificationUpdate { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IAvailablePatchCountByClassificationInternal)AvailablePatchCountByClassification).Update; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IAvailablePatchCountByClassificationInternal)AvailablePatchCountByClassification).Update = value ?? default(int); } /// Internal Acessors for AvailablePatchCountByClassificationUpdateRollup - int? Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachineAssessPatchesResultInternal.AvailablePatchCountByClassificationUpdateRollup { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IAvailablePatchCountByClassificationInternal)AvailablePatchCountByClassification).UpdateRollup; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IAvailablePatchCountByClassificationInternal)AvailablePatchCountByClassification).UpdateRollup = value; } + int? Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachineAssessPatchesResultInternal.AvailablePatchCountByClassificationUpdateRollup { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IAvailablePatchCountByClassificationInternal)AvailablePatchCountByClassification).UpdateRollup; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IAvailablePatchCountByClassificationInternal)AvailablePatchCountByClassification).UpdateRollup = value ?? default(int); } /// Internal Acessors for ErrorDetail Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IErrorDetailAutoGenerated Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachineAssessPatchesResultInternal.ErrorDetail { get => (this._errorDetail = this._errorDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ErrorDetailAutoGenerated()); set { {_errorDetail = value;} } } /// Internal Acessors for ErrorDetailAdditionalInfo - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachineAssessPatchesResultInternal.ErrorDetailAdditionalInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IErrorDetailAutoGeneratedInternal)ErrorDetail).AdditionalInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IErrorDetailAutoGeneratedInternal)ErrorDetail).AdditionalInfo = value; } + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachineAssessPatchesResultInternal.ErrorDetailAdditionalInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IErrorDetailAutoGeneratedInternal)ErrorDetail).AdditionalInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IErrorDetailAutoGeneratedInternal)ErrorDetail).AdditionalInfo = value ?? null /* arrayOf */; } /// Internal Acessors for ErrorDetailCode - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachineAssessPatchesResultInternal.ErrorDetailCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IErrorDetailAutoGeneratedInternal)ErrorDetail).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IErrorDetailAutoGeneratedInternal)ErrorDetail).Code = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachineAssessPatchesResultInternal.ErrorDetailCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IErrorDetailAutoGeneratedInternal)ErrorDetail).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IErrorDetailAutoGeneratedInternal)ErrorDetail).Code = value ?? null; } /// Internal Acessors for ErrorDetailDetails - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachineAssessPatchesResultInternal.ErrorDetailDetails { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IErrorDetailAutoGeneratedInternal)ErrorDetail).Detail; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IErrorDetailAutoGeneratedInternal)ErrorDetail).Detail = value; } + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachineAssessPatchesResultInternal.ErrorDetailDetails { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IErrorDetailAutoGeneratedInternal)ErrorDetail).Detail; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IErrorDetailAutoGeneratedInternal)ErrorDetail).Detail = value ?? null /* arrayOf */; } /// Internal Acessors for ErrorDetailMessage - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachineAssessPatchesResultInternal.ErrorDetailMessage { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IErrorDetailAutoGeneratedInternal)ErrorDetail).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IErrorDetailAutoGeneratedInternal)ErrorDetail).Message = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachineAssessPatchesResultInternal.ErrorDetailMessage { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IErrorDetailAutoGeneratedInternal)ErrorDetail).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IErrorDetailAutoGeneratedInternal)ErrorDetail).Message = value ?? null; } /// Internal Acessors for ErrorDetailTarget - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachineAssessPatchesResultInternal.ErrorDetailTarget { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IErrorDetailAutoGeneratedInternal)ErrorDetail).Target; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IErrorDetailAutoGeneratedInternal)ErrorDetail).Target = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachineAssessPatchesResultInternal.ErrorDetailTarget { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IErrorDetailAutoGeneratedInternal)ErrorDetail).Target; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IErrorDetailAutoGeneratedInternal)ErrorDetail).Target = value ?? null; } /// Internal Acessors for LastModifiedDateTime global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachineAssessPatchesResultInternal.LastModifiedDateTime { get => this._lastModifiedDateTime; set { {_lastModifiedDateTime = value;} } } diff --git a/generated/ScVmm/ScVmm.Autorest/generated/api/Models/MachineExtension.cs b/generated/ScVmm/ScVmm.Autorest/generated/api/Models/MachineExtension.cs index 954072521043..59860baf89a2 100644 --- a/generated/ScVmm/ScVmm.Autorest/generated/api/Models/MachineExtension.cs +++ b/generated/ScVmm/ScVmm.Autorest/generated/api/Models/MachineExtension.cs @@ -69,46 +69,46 @@ public partial class MachineExtension : public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ITrackedResourceAutoGeneratedInternal)__trackedResourceAutoGenerated).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ITrackedResourceAutoGeneratedInternal)__trackedResourceAutoGenerated).Location = value ?? null; } /// Internal Acessors for InstanceView - Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachineExtensionInstanceView Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachineExtensionInternal.InstanceView { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachineExtensionPropertiesInternal)Property).InstanceView; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachineExtensionPropertiesInternal)Property).InstanceView = value; } + Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachineExtensionInstanceView Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachineExtensionInternal.InstanceView { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachineExtensionPropertiesInternal)Property).InstanceView; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachineExtensionPropertiesInternal)Property).InstanceView = value ?? null /* model class */; } /// Internal Acessors for InstanceViewStatus - Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachineExtensionInstanceViewStatus Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachineExtensionInternal.InstanceViewStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachineExtensionPropertiesInternal)Property).InstanceViewStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachineExtensionPropertiesInternal)Property).InstanceViewStatus = value; } + Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachineExtensionInstanceViewStatus Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachineExtensionInternal.InstanceViewStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachineExtensionPropertiesInternal)Property).InstanceViewStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachineExtensionPropertiesInternal)Property).InstanceViewStatus = value ?? null /* model class */; } /// Internal Acessors for Property Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachineExtensionProperties Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachineExtensionInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.MachineExtensionProperties()); set { {_property = value;} } } /// Internal Acessors for ProvisioningState - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachineExtensionInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachineExtensionPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachineExtensionPropertiesInternal)Property).ProvisioningState = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachineExtensionInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachineExtensionPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachineExtensionPropertiesInternal)Property).ProvisioningState = value ?? null; } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal)__trackedResourceAutoGenerated).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal)__trackedResourceAutoGenerated).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal)__trackedResourceAutoGenerated).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal)__trackedResourceAutoGenerated).Id = value ?? null; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal)__trackedResourceAutoGenerated).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal)__trackedResourceAutoGenerated).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal)__trackedResourceAutoGenerated).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal)__trackedResourceAutoGenerated).Name = value ?? null; } /// Internal Acessors for SystemData - Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal)__trackedResourceAutoGenerated).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal)__trackedResourceAutoGenerated).SystemData = value; } + Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal)__trackedResourceAutoGenerated).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal)__trackedResourceAutoGenerated).SystemData = value ?? null /* model class */; } /// Internal Acessors for SystemDataCreatedAt - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal)__trackedResourceAutoGenerated).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal)__trackedResourceAutoGenerated).SystemDataCreatedAt = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal)__trackedResourceAutoGenerated).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal)__trackedResourceAutoGenerated).SystemDataCreatedAt = value ?? default(global::System.DateTime); } /// Internal Acessors for SystemDataCreatedBy - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal)__trackedResourceAutoGenerated).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal)__trackedResourceAutoGenerated).SystemDataCreatedBy = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal)__trackedResourceAutoGenerated).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal)__trackedResourceAutoGenerated).SystemDataCreatedBy = value ?? null; } /// Internal Acessors for SystemDataCreatedByType - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal)__trackedResourceAutoGenerated).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal)__trackedResourceAutoGenerated).SystemDataCreatedByType = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal)__trackedResourceAutoGenerated).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal)__trackedResourceAutoGenerated).SystemDataCreatedByType = value ?? null; } /// Internal Acessors for SystemDataLastModifiedAt - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal)__trackedResourceAutoGenerated).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal)__trackedResourceAutoGenerated).SystemDataLastModifiedAt = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal)__trackedResourceAutoGenerated).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal)__trackedResourceAutoGenerated).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } /// Internal Acessors for SystemDataLastModifiedBy - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal)__trackedResourceAutoGenerated).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal)__trackedResourceAutoGenerated).SystemDataLastModifiedBy = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal)__trackedResourceAutoGenerated).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal)__trackedResourceAutoGenerated).SystemDataLastModifiedBy = value ?? null; } /// Internal Acessors for SystemDataLastModifiedByType - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal)__trackedResourceAutoGenerated).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal)__trackedResourceAutoGenerated).SystemDataLastModifiedByType = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal)__trackedResourceAutoGenerated).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal)__trackedResourceAutoGenerated).SystemDataLastModifiedByType = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal)__trackedResourceAutoGenerated).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal)__trackedResourceAutoGenerated).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal)__trackedResourceAutoGenerated).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal)__trackedResourceAutoGenerated).Type = value ?? null; } /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Origin(Microsoft.Azure.PowerShell.Cmdlets.ScVmm.PropertyOrigin.Inherited)] diff --git a/generated/ScVmm/ScVmm.Autorest/generated/api/Models/MachineExtensionProperties.cs b/generated/ScVmm/ScVmm.Autorest/generated/api/Models/MachineExtensionProperties.cs index 7c70921cfbd0..fde5f0248e50 100644 --- a/generated/ScVmm/ScVmm.Autorest/generated/api/Models/MachineExtensionProperties.cs +++ b/generated/ScVmm/ScVmm.Autorest/generated/api/Models/MachineExtensionProperties.cs @@ -64,7 +64,7 @@ public partial class MachineExtensionProperties : Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachineExtensionInstanceView Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachineExtensionPropertiesInternal.InstanceView { get => (this._instanceView = this._instanceView ?? new Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.MachineExtensionInstanceView()); set { {_instanceView = value;} } } /// Internal Acessors for InstanceViewStatus - Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachineExtensionInstanceViewStatus Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachineExtensionPropertiesInternal.InstanceViewStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachineExtensionInstanceViewInternal)InstanceView).Status; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachineExtensionInstanceViewInternal)InstanceView).Status = value; } + Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachineExtensionInstanceViewStatus Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachineExtensionPropertiesInternal.InstanceViewStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachineExtensionInstanceViewInternal)InstanceView).Status; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachineExtensionInstanceViewInternal)InstanceView).Status = value ?? null /* model class */; } /// Internal Acessors for ProvisioningState string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachineExtensionPropertiesInternal.ProvisioningState { get => this._provisioningState; set { {_provisioningState = value;} } } diff --git a/generated/ScVmm/ScVmm.Autorest/generated/api/Models/MachineInstallPatchesResult.cs b/generated/ScVmm/ScVmm.Autorest/generated/api/Models/MachineInstallPatchesResult.cs index 7da33c89d47c..9f70ed05eb78 100644 --- a/generated/ScVmm/ScVmm.Autorest/generated/api/Models/MachineInstallPatchesResult.cs +++ b/generated/ScVmm/ScVmm.Autorest/generated/api/Models/MachineInstallPatchesResult.cs @@ -94,19 +94,19 @@ public partial class MachineInstallPatchesResult : Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IErrorDetailAutoGenerated Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachineInstallPatchesResultInternal.ErrorDetail { get => (this._errorDetail = this._errorDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ErrorDetailAutoGenerated()); set { {_errorDetail = value;} } } /// Internal Acessors for ErrorDetailAdditionalInfo - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachineInstallPatchesResultInternal.ErrorDetailAdditionalInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IErrorDetailAutoGeneratedInternal)ErrorDetail).AdditionalInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IErrorDetailAutoGeneratedInternal)ErrorDetail).AdditionalInfo = value; } + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachineInstallPatchesResultInternal.ErrorDetailAdditionalInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IErrorDetailAutoGeneratedInternal)ErrorDetail).AdditionalInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IErrorDetailAutoGeneratedInternal)ErrorDetail).AdditionalInfo = value ?? null /* arrayOf */; } /// Internal Acessors for ErrorDetailCode - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachineInstallPatchesResultInternal.ErrorDetailCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IErrorDetailAutoGeneratedInternal)ErrorDetail).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IErrorDetailAutoGeneratedInternal)ErrorDetail).Code = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachineInstallPatchesResultInternal.ErrorDetailCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IErrorDetailAutoGeneratedInternal)ErrorDetail).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IErrorDetailAutoGeneratedInternal)ErrorDetail).Code = value ?? null; } /// Internal Acessors for ErrorDetailDetails - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachineInstallPatchesResultInternal.ErrorDetailDetails { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IErrorDetailAutoGeneratedInternal)ErrorDetail).Detail; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IErrorDetailAutoGeneratedInternal)ErrorDetail).Detail = value; } + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachineInstallPatchesResultInternal.ErrorDetailDetails { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IErrorDetailAutoGeneratedInternal)ErrorDetail).Detail; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IErrorDetailAutoGeneratedInternal)ErrorDetail).Detail = value ?? null /* arrayOf */; } /// Internal Acessors for ErrorDetailMessage - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachineInstallPatchesResultInternal.ErrorDetailMessage { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IErrorDetailAutoGeneratedInternal)ErrorDetail).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IErrorDetailAutoGeneratedInternal)ErrorDetail).Message = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachineInstallPatchesResultInternal.ErrorDetailMessage { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IErrorDetailAutoGeneratedInternal)ErrorDetail).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IErrorDetailAutoGeneratedInternal)ErrorDetail).Message = value ?? null; } /// Internal Acessors for ErrorDetailTarget - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachineInstallPatchesResultInternal.ErrorDetailTarget { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IErrorDetailAutoGeneratedInternal)ErrorDetail).Target; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IErrorDetailAutoGeneratedInternal)ErrorDetail).Target = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachineInstallPatchesResultInternal.ErrorDetailTarget { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IErrorDetailAutoGeneratedInternal)ErrorDetail).Target; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IErrorDetailAutoGeneratedInternal)ErrorDetail).Target = value ?? null; } /// Internal Acessors for ExcludedPatchCount int? Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachineInstallPatchesResultInternal.ExcludedPatchCount { get => this._excludedPatchCount; set { {_excludedPatchCount = value;} } } diff --git a/generated/ScVmm/ScVmm.Autorest/generated/api/Models/MachineProperties.cs b/generated/ScVmm/ScVmm.Autorest/generated/api/Models/MachineProperties.cs index f7f2391c61a8..4d6289423862 100644 --- a/generated/ScVmm/ScVmm.Autorest/generated/api/Models/MachineProperties.cs +++ b/generated/ScVmm/ScVmm.Autorest/generated/api/Models/MachineProperties.cs @@ -235,43 +235,43 @@ public partial class MachineProperties : Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IAgentConfiguration Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachinePropertiesInternal.AgentConfiguration { get => (this._agentConfiguration = this._agentConfiguration ?? new Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.AgentConfiguration()); set { {_agentConfiguration = value;} } } /// Internal Acessors for AgentConfigurationConfigMode - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachinePropertiesInternal.AgentConfigurationConfigMode { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IAgentConfigurationInternal)AgentConfiguration).ConfigMode; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IAgentConfigurationInternal)AgentConfiguration).ConfigMode = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachinePropertiesInternal.AgentConfigurationConfigMode { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IAgentConfigurationInternal)AgentConfiguration).ConfigMode; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IAgentConfigurationInternal)AgentConfiguration).ConfigMode = value ?? null; } /// Internal Acessors for AgentConfigurationExtensionsAllowList - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachinePropertiesInternal.AgentConfigurationExtensionsAllowList { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IAgentConfigurationInternal)AgentConfiguration).ExtensionsAllowList; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IAgentConfigurationInternal)AgentConfiguration).ExtensionsAllowList = value; } + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachinePropertiesInternal.AgentConfigurationExtensionsAllowList { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IAgentConfigurationInternal)AgentConfiguration).ExtensionsAllowList; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IAgentConfigurationInternal)AgentConfiguration).ExtensionsAllowList = value ?? null /* arrayOf */; } /// Internal Acessors for AgentConfigurationExtensionsBlockList - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachinePropertiesInternal.AgentConfigurationExtensionsBlockList { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IAgentConfigurationInternal)AgentConfiguration).ExtensionsBlockList; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IAgentConfigurationInternal)AgentConfiguration).ExtensionsBlockList = value; } + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachinePropertiesInternal.AgentConfigurationExtensionsBlockList { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IAgentConfigurationInternal)AgentConfiguration).ExtensionsBlockList; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IAgentConfigurationInternal)AgentConfiguration).ExtensionsBlockList = value ?? null /* arrayOf */; } /// Internal Acessors for AgentConfigurationExtensionsEnabled - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachinePropertiesInternal.AgentConfigurationExtensionsEnabled { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IAgentConfigurationInternal)AgentConfiguration).ExtensionsEnabled; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IAgentConfigurationInternal)AgentConfiguration).ExtensionsEnabled = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachinePropertiesInternal.AgentConfigurationExtensionsEnabled { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IAgentConfigurationInternal)AgentConfiguration).ExtensionsEnabled; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IAgentConfigurationInternal)AgentConfiguration).ExtensionsEnabled = value ?? null; } /// Internal Acessors for AgentConfigurationGuestConfigurationEnabled - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachinePropertiesInternal.AgentConfigurationGuestConfigurationEnabled { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IAgentConfigurationInternal)AgentConfiguration).GuestConfigurationEnabled; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IAgentConfigurationInternal)AgentConfiguration).GuestConfigurationEnabled = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachinePropertiesInternal.AgentConfigurationGuestConfigurationEnabled { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IAgentConfigurationInternal)AgentConfiguration).GuestConfigurationEnabled; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IAgentConfigurationInternal)AgentConfiguration).GuestConfigurationEnabled = value ?? null; } /// Internal Acessors for AgentConfigurationIncomingConnectionsPort - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachinePropertiesInternal.AgentConfigurationIncomingConnectionsPort { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IAgentConfigurationInternal)AgentConfiguration).IncomingConnectionsPort; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IAgentConfigurationInternal)AgentConfiguration).IncomingConnectionsPort = value; } + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachinePropertiesInternal.AgentConfigurationIncomingConnectionsPort { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IAgentConfigurationInternal)AgentConfiguration).IncomingConnectionsPort; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IAgentConfigurationInternal)AgentConfiguration).IncomingConnectionsPort = value ?? null /* arrayOf */; } /// Internal Acessors for AgentConfigurationProxyBypass - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachinePropertiesInternal.AgentConfigurationProxyBypass { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IAgentConfigurationInternal)AgentConfiguration).ProxyBypass; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IAgentConfigurationInternal)AgentConfiguration).ProxyBypass = value; } + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachinePropertiesInternal.AgentConfigurationProxyBypass { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IAgentConfigurationInternal)AgentConfiguration).ProxyBypass; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IAgentConfigurationInternal)AgentConfiguration).ProxyBypass = value ?? null /* arrayOf */; } /// Internal Acessors for AgentConfigurationProxyUrl - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachinePropertiesInternal.AgentConfigurationProxyUrl { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IAgentConfigurationInternal)AgentConfiguration).ProxyUrl; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IAgentConfigurationInternal)AgentConfiguration).ProxyUrl = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachinePropertiesInternal.AgentConfigurationProxyUrl { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IAgentConfigurationInternal)AgentConfiguration).ProxyUrl; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IAgentConfigurationInternal)AgentConfiguration).ProxyUrl = value ?? null; } /// Internal Acessors for AgentUpgrade Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IAgentUpgrade Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachinePropertiesInternal.AgentUpgrade { get => (this._agentUpgrade = this._agentUpgrade ?? new Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.AgentUpgrade()); set { {_agentUpgrade = value;} } } /// Internal Acessors for AgentUpgradeLastAttemptDesiredVersion - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachinePropertiesInternal.AgentUpgradeLastAttemptDesiredVersion { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IAgentUpgradeInternal)AgentUpgrade).LastAttemptDesiredVersion; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IAgentUpgradeInternal)AgentUpgrade).LastAttemptDesiredVersion = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachinePropertiesInternal.AgentUpgradeLastAttemptDesiredVersion { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IAgentUpgradeInternal)AgentUpgrade).LastAttemptDesiredVersion; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IAgentUpgradeInternal)AgentUpgrade).LastAttemptDesiredVersion = value ?? null; } /// Internal Acessors for AgentUpgradeLastAttemptMessage - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachinePropertiesInternal.AgentUpgradeLastAttemptMessage { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IAgentUpgradeInternal)AgentUpgrade).LastAttemptMessage; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IAgentUpgradeInternal)AgentUpgrade).LastAttemptMessage = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachinePropertiesInternal.AgentUpgradeLastAttemptMessage { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IAgentUpgradeInternal)AgentUpgrade).LastAttemptMessage; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IAgentUpgradeInternal)AgentUpgrade).LastAttemptMessage = value ?? null; } /// Internal Acessors for AgentUpgradeLastAttemptStatus - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachinePropertiesInternal.AgentUpgradeLastAttemptStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IAgentUpgradeInternal)AgentUpgrade).LastAttemptStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IAgentUpgradeInternal)AgentUpgrade).LastAttemptStatus = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachinePropertiesInternal.AgentUpgradeLastAttemptStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IAgentUpgradeInternal)AgentUpgrade).LastAttemptStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IAgentUpgradeInternal)AgentUpgrade).LastAttemptStatus = value ?? null; } /// Internal Acessors for AgentUpgradeLastAttemptTimestamp - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachinePropertiesInternal.AgentUpgradeLastAttemptTimestamp { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IAgentUpgradeInternal)AgentUpgrade).LastAttemptTimestamp; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IAgentUpgradeInternal)AgentUpgrade).LastAttemptTimestamp = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachinePropertiesInternal.AgentUpgradeLastAttemptTimestamp { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IAgentUpgradeInternal)AgentUpgrade).LastAttemptTimestamp; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IAgentUpgradeInternal)AgentUpgrade).LastAttemptTimestamp = value ?? null; } /// Internal Acessors for AgentVersion string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachinePropertiesInternal.AgentVersion { get => this._agentVersion; set { {_agentVersion = value;} } } @@ -280,7 +280,7 @@ public partial class MachineProperties : Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ICloudMetadata Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachinePropertiesInternal.CloudMetadata { get => (this._cloudMetadata = this._cloudMetadata ?? new Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.CloudMetadata()); set { {_cloudMetadata = value;} } } /// Internal Acessors for CloudMetadataProvider - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachinePropertiesInternal.CloudMetadataProvider { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ICloudMetadataInternal)CloudMetadata).Provider; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ICloudMetadataInternal)CloudMetadata).Provider = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachinePropertiesInternal.CloudMetadataProvider { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ICloudMetadataInternal)CloudMetadata).Provider; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ICloudMetadataInternal)CloudMetadata).Provider = value ?? null; } /// Internal Acessors for DetectedProperty Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IDetectedProperties Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachinePropertiesInternal.DetectedProperty { get => (this._detectedProperty = this._detectedProperty ?? new Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.DetectedProperties()); set { {_detectedProperty = value;} } } @@ -310,7 +310,7 @@ public partial class MachineProperties : Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.INetworkProfileAutoGenerated Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachinePropertiesInternal.NetworkProfile { get => (this._networkProfile = this._networkProfile ?? new Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.NetworkProfileAutoGenerated()); set { {_networkProfile = value;} } } /// Internal Acessors for NetworkProfileNetworkInterface - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachinePropertiesInternal.NetworkProfileNetworkInterface { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.INetworkProfileAutoGeneratedInternal)NetworkProfile).NetworkInterface; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.INetworkProfileAutoGeneratedInternal)NetworkProfile).NetworkInterface = value; } + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachinePropertiesInternal.NetworkProfileNetworkInterface { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.INetworkProfileAutoGeneratedInternal)NetworkProfile).NetworkInterface; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.INetworkProfileAutoGeneratedInternal)NetworkProfile).NetworkInterface = value ?? null /* arrayOf */; } /// Internal Acessors for OSEdition string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachinePropertiesInternal.OSEdition { get => this._oSEdition; set { {_oSEdition = value;} } } @@ -331,10 +331,10 @@ public partial class MachineProperties : Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IServiceStatuses Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachinePropertiesInternal.ServiceStatuses { get => (this._serviceStatuses = this._serviceStatuses ?? new Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ServiceStatuses()); set { {_serviceStatuses = value;} } } /// Internal Acessors for ServiceStatusesExtensionService - Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IServiceStatus Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachinePropertiesInternal.ServiceStatusesExtensionService { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IServiceStatusesInternal)ServiceStatuses).ExtensionService; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IServiceStatusesInternal)ServiceStatuses).ExtensionService = value; } + Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IServiceStatus Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachinePropertiesInternal.ServiceStatusesExtensionService { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IServiceStatusesInternal)ServiceStatuses).ExtensionService; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IServiceStatusesInternal)ServiceStatuses).ExtensionService = value ?? null /* model class */; } /// Internal Acessors for ServiceStatusesGuestConfigurationService - Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IServiceStatus Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachinePropertiesInternal.ServiceStatusesGuestConfigurationService { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IServiceStatusesInternal)ServiceStatuses).GuestConfigurationService; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IServiceStatusesInternal)ServiceStatuses).GuestConfigurationService = value; } + Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IServiceStatus Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachinePropertiesInternal.ServiceStatusesGuestConfigurationService { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IServiceStatusesInternal)ServiceStatuses).GuestConfigurationService; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IServiceStatusesInternal)ServiceStatuses).GuestConfigurationService = value ?? null /* model class */; } /// Internal Acessors for Status string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachinePropertiesInternal.Status { get => this._status; set { {_status = value;} } } diff --git a/generated/ScVmm/ScVmm.Autorest/generated/api/Models/MachineUpdate.cs b/generated/ScVmm/ScVmm.Autorest/generated/api/Models/MachineUpdate.cs index ef192cd132f3..a54f8fecbd12 100644 --- a/generated/ScVmm/ScVmm.Autorest/generated/api/Models/MachineUpdate.cs +++ b/generated/ScVmm/ScVmm.Autorest/generated/api/Models/MachineUpdate.cs @@ -95,37 +95,37 @@ public partial class MachineUpdate : public string LocationDataName { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachineUpdatePropertiesInternal)Property).LocationDataName; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachineUpdatePropertiesInternal)Property).LocationDataName = value ?? null; } /// Internal Acessors for AgentUpgrade - Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IAgentUpgrade Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachineUpdateInternal.AgentUpgrade { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachineUpdatePropertiesInternal)Property).AgentUpgrade; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachineUpdatePropertiesInternal)Property).AgentUpgrade = value; } + Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IAgentUpgrade Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachineUpdateInternal.AgentUpgrade { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachineUpdatePropertiesInternal)Property).AgentUpgrade; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachineUpdatePropertiesInternal)Property).AgentUpgrade = value ?? null /* model class */; } /// Internal Acessors for AgentUpgradeLastAttemptDesiredVersion - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachineUpdateInternal.AgentUpgradeLastAttemptDesiredVersion { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachineUpdatePropertiesInternal)Property).AgentUpgradeLastAttemptDesiredVersion; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachineUpdatePropertiesInternal)Property).AgentUpgradeLastAttemptDesiredVersion = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachineUpdateInternal.AgentUpgradeLastAttemptDesiredVersion { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachineUpdatePropertiesInternal)Property).AgentUpgradeLastAttemptDesiredVersion; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachineUpdatePropertiesInternal)Property).AgentUpgradeLastAttemptDesiredVersion = value ?? null; } /// Internal Acessors for AgentUpgradeLastAttemptMessage - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachineUpdateInternal.AgentUpgradeLastAttemptMessage { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachineUpdatePropertiesInternal)Property).AgentUpgradeLastAttemptMessage; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachineUpdatePropertiesInternal)Property).AgentUpgradeLastAttemptMessage = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachineUpdateInternal.AgentUpgradeLastAttemptMessage { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachineUpdatePropertiesInternal)Property).AgentUpgradeLastAttemptMessage; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachineUpdatePropertiesInternal)Property).AgentUpgradeLastAttemptMessage = value ?? null; } /// Internal Acessors for AgentUpgradeLastAttemptStatus - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachineUpdateInternal.AgentUpgradeLastAttemptStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachineUpdatePropertiesInternal)Property).AgentUpgradeLastAttemptStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachineUpdatePropertiesInternal)Property).AgentUpgradeLastAttemptStatus = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachineUpdateInternal.AgentUpgradeLastAttemptStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachineUpdatePropertiesInternal)Property).AgentUpgradeLastAttemptStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachineUpdatePropertiesInternal)Property).AgentUpgradeLastAttemptStatus = value ?? null; } /// Internal Acessors for AgentUpgradeLastAttemptTimestamp - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachineUpdateInternal.AgentUpgradeLastAttemptTimestamp { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachineUpdatePropertiesInternal)Property).AgentUpgradeLastAttemptTimestamp; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachineUpdatePropertiesInternal)Property).AgentUpgradeLastAttemptTimestamp = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachineUpdateInternal.AgentUpgradeLastAttemptTimestamp { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachineUpdatePropertiesInternal)Property).AgentUpgradeLastAttemptTimestamp; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachineUpdatePropertiesInternal)Property).AgentUpgradeLastAttemptTimestamp = value ?? null; } /// Internal Acessors for CloudMetadata - Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ICloudMetadata Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachineUpdateInternal.CloudMetadata { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachineUpdatePropertiesInternal)Property).CloudMetadata; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachineUpdatePropertiesInternal)Property).CloudMetadata = value; } + Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ICloudMetadata Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachineUpdateInternal.CloudMetadata { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachineUpdatePropertiesInternal)Property).CloudMetadata; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachineUpdatePropertiesInternal)Property).CloudMetadata = value ?? null /* model class */; } /// Internal Acessors for CloudMetadataProvider - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachineUpdateInternal.CloudMetadataProvider { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachineUpdatePropertiesInternal)Property).CloudMetadataProvider; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachineUpdatePropertiesInternal)Property).CloudMetadataProvider = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachineUpdateInternal.CloudMetadataProvider { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachineUpdatePropertiesInternal)Property).CloudMetadataProvider; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachineUpdatePropertiesInternal)Property).CloudMetadataProvider = value ?? null; } /// Internal Acessors for Identity Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IIdentity Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachineUpdateInternal.Identity { get => (this._identity = this._identity ?? new Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.Identity()); set { {_identity = value;} } } /// Internal Acessors for IdentityPrincipalId - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachineUpdateInternal.IdentityPrincipalId { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IIdentityInternal)Identity).PrincipalId; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IIdentityInternal)Identity).PrincipalId = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachineUpdateInternal.IdentityPrincipalId { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IIdentityInternal)Identity).PrincipalId; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IIdentityInternal)Identity).PrincipalId = value ?? null; } /// Internal Acessors for IdentityTenantId - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachineUpdateInternal.IdentityTenantId { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IIdentityInternal)Identity).TenantId; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IIdentityInternal)Identity).TenantId = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachineUpdateInternal.IdentityTenantId { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IIdentityInternal)Identity).TenantId; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IIdentityInternal)Identity).TenantId = value ?? null; } /// Internal Acessors for LocationData - Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILocationData Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachineUpdateInternal.LocationData { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachineUpdatePropertiesInternal)Property).LocationData; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachineUpdatePropertiesInternal)Property).LocationData = value; } + Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILocationData Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachineUpdateInternal.LocationData { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachineUpdatePropertiesInternal)Property).LocationData; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachineUpdatePropertiesInternal)Property).LocationData = value ?? null /* model class */; } /// Internal Acessors for Property Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachineUpdateProperties Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachineUpdateInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.MachineUpdateProperties()); set { {_property = value;} } } diff --git a/generated/ScVmm/ScVmm.Autorest/generated/api/Models/MachineUpdateProperties.cs b/generated/ScVmm/ScVmm.Autorest/generated/api/Models/MachineUpdateProperties.cs index fd2c7a8f17f2..bd7fd7c236f9 100644 --- a/generated/ScVmm/ScVmm.Autorest/generated/api/Models/MachineUpdateProperties.cs +++ b/generated/ScVmm/ScVmm.Autorest/generated/api/Models/MachineUpdateProperties.cs @@ -86,22 +86,22 @@ public partial class MachineUpdateProperties : Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IAgentUpgrade Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachineUpdatePropertiesInternal.AgentUpgrade { get => (this._agentUpgrade = this._agentUpgrade ?? new Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.AgentUpgrade()); set { {_agentUpgrade = value;} } } /// Internal Acessors for AgentUpgradeLastAttemptDesiredVersion - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachineUpdatePropertiesInternal.AgentUpgradeLastAttemptDesiredVersion { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IAgentUpgradeInternal)AgentUpgrade).LastAttemptDesiredVersion; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IAgentUpgradeInternal)AgentUpgrade).LastAttemptDesiredVersion = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachineUpdatePropertiesInternal.AgentUpgradeLastAttemptDesiredVersion { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IAgentUpgradeInternal)AgentUpgrade).LastAttemptDesiredVersion; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IAgentUpgradeInternal)AgentUpgrade).LastAttemptDesiredVersion = value ?? null; } /// Internal Acessors for AgentUpgradeLastAttemptMessage - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachineUpdatePropertiesInternal.AgentUpgradeLastAttemptMessage { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IAgentUpgradeInternal)AgentUpgrade).LastAttemptMessage; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IAgentUpgradeInternal)AgentUpgrade).LastAttemptMessage = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachineUpdatePropertiesInternal.AgentUpgradeLastAttemptMessage { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IAgentUpgradeInternal)AgentUpgrade).LastAttemptMessage; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IAgentUpgradeInternal)AgentUpgrade).LastAttemptMessage = value ?? null; } /// Internal Acessors for AgentUpgradeLastAttemptStatus - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachineUpdatePropertiesInternal.AgentUpgradeLastAttemptStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IAgentUpgradeInternal)AgentUpgrade).LastAttemptStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IAgentUpgradeInternal)AgentUpgrade).LastAttemptStatus = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachineUpdatePropertiesInternal.AgentUpgradeLastAttemptStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IAgentUpgradeInternal)AgentUpgrade).LastAttemptStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IAgentUpgradeInternal)AgentUpgrade).LastAttemptStatus = value ?? null; } /// Internal Acessors for AgentUpgradeLastAttemptTimestamp - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachineUpdatePropertiesInternal.AgentUpgradeLastAttemptTimestamp { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IAgentUpgradeInternal)AgentUpgrade).LastAttemptTimestamp; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IAgentUpgradeInternal)AgentUpgrade).LastAttemptTimestamp = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachineUpdatePropertiesInternal.AgentUpgradeLastAttemptTimestamp { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IAgentUpgradeInternal)AgentUpgrade).LastAttemptTimestamp; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IAgentUpgradeInternal)AgentUpgrade).LastAttemptTimestamp = value ?? null; } /// Internal Acessors for CloudMetadata Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ICloudMetadata Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachineUpdatePropertiesInternal.CloudMetadata { get => (this._cloudMetadata = this._cloudMetadata ?? new Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.CloudMetadata()); set { {_cloudMetadata = value;} } } /// Internal Acessors for CloudMetadataProvider - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachineUpdatePropertiesInternal.CloudMetadataProvider { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ICloudMetadataInternal)CloudMetadata).Provider; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ICloudMetadataInternal)CloudMetadata).Provider = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachineUpdatePropertiesInternal.CloudMetadataProvider { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ICloudMetadataInternal)CloudMetadata).Provider; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ICloudMetadataInternal)CloudMetadata).Provider = value ?? null; } /// Internal Acessors for LocationData Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ILocationData Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachineUpdatePropertiesInternal.LocationData { get => (this._locationData = this._locationData ?? new Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.LocationData()); set { {_locationData = value;} } } diff --git a/generated/ScVmm/ScVmm.Autorest/generated/api/Models/OSProfile.cs b/generated/ScVmm/ScVmm.Autorest/generated/api/Models/OSProfile.cs index e9c5bcfd3f06..48fdd707e863 100644 --- a/generated/ScVmm/ScVmm.Autorest/generated/api/Models/OSProfile.cs +++ b/generated/ScVmm/ScVmm.Autorest/generated/api/Models/OSProfile.cs @@ -73,67 +73,67 @@ public partial class OSProfile : Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IOSProfileLinuxConfiguration Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IOSProfileInternal.LinuxConfiguration { get => (this._linuxConfiguration = this._linuxConfiguration ?? new Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.OSProfileLinuxConfiguration()); set { {_linuxConfiguration = value;} } } /// Internal Acessors for LinuxConfigurationPatchSetting - Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IPatchSettings Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IOSProfileInternal.LinuxConfigurationPatchSetting { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IOSProfileLinuxConfigurationInternal)LinuxConfiguration).PatchSetting; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IOSProfileLinuxConfigurationInternal)LinuxConfiguration).PatchSetting = value; } + Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IPatchSettings Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IOSProfileInternal.LinuxConfigurationPatchSetting { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IOSProfileLinuxConfigurationInternal)LinuxConfiguration).PatchSetting; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IOSProfileLinuxConfigurationInternal)LinuxConfiguration).PatchSetting = value ?? null /* model class */; } /// Internal Acessors for LinuxConfigurationPatchSettingsStatus - Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IPatchSettingsStatus Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IOSProfileInternal.LinuxConfigurationPatchSettingsStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IOSProfileLinuxConfigurationInternal)LinuxConfiguration).PatchSettingStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IOSProfileLinuxConfigurationInternal)LinuxConfiguration).PatchSettingStatus = value; } + Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IPatchSettingsStatus Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IOSProfileInternal.LinuxConfigurationPatchSettingsStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IOSProfileLinuxConfigurationInternal)LinuxConfiguration).PatchSettingStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IOSProfileLinuxConfigurationInternal)LinuxConfiguration).PatchSettingStatus = value ?? null /* model class */; } /// Internal Acessors for LinuxConfigurationPatchSettingsStatusError - Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IErrorDetailAutoGenerated Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IOSProfileInternal.LinuxConfigurationPatchSettingsStatusError { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IOSProfileLinuxConfigurationInternal)LinuxConfiguration).StatusError; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IOSProfileLinuxConfigurationInternal)LinuxConfiguration).StatusError = value; } + Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IErrorDetailAutoGenerated Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IOSProfileInternal.LinuxConfigurationPatchSettingsStatusError { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IOSProfileLinuxConfigurationInternal)LinuxConfiguration).StatusError; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IOSProfileLinuxConfigurationInternal)LinuxConfiguration).StatusError = value ?? null /* model class */; } /// Internal Acessors for LinuxConfigurationPatchSettingsStatusErrorAdditionalInfo - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IOSProfileInternal.LinuxConfigurationPatchSettingsStatusErrorAdditionalInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IOSProfileLinuxConfigurationInternal)LinuxConfiguration).AdditionalInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IOSProfileLinuxConfigurationInternal)LinuxConfiguration).AdditionalInfo = value; } + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IOSProfileInternal.LinuxConfigurationPatchSettingsStatusErrorAdditionalInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IOSProfileLinuxConfigurationInternal)LinuxConfiguration).AdditionalInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IOSProfileLinuxConfigurationInternal)LinuxConfiguration).AdditionalInfo = value ?? null /* arrayOf */; } /// Internal Acessors for LinuxConfigurationPatchSettingsStatusErrorCode - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IOSProfileInternal.LinuxConfigurationPatchSettingsStatusErrorCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IOSProfileLinuxConfigurationInternal)LinuxConfiguration).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IOSProfileLinuxConfigurationInternal)LinuxConfiguration).Code = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IOSProfileInternal.LinuxConfigurationPatchSettingsStatusErrorCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IOSProfileLinuxConfigurationInternal)LinuxConfiguration).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IOSProfileLinuxConfigurationInternal)LinuxConfiguration).Code = value ?? null; } /// Internal Acessors for LinuxConfigurationPatchSettingsStatusErrorDetail - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IOSProfileInternal.LinuxConfigurationPatchSettingsStatusErrorDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IOSProfileLinuxConfigurationInternal)LinuxConfiguration).Detail; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IOSProfileLinuxConfigurationInternal)LinuxConfiguration).Detail = value; } + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IOSProfileInternal.LinuxConfigurationPatchSettingsStatusErrorDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IOSProfileLinuxConfigurationInternal)LinuxConfiguration).Detail; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IOSProfileLinuxConfigurationInternal)LinuxConfiguration).Detail = value ?? null /* arrayOf */; } /// Internal Acessors for LinuxConfigurationPatchSettingsStatusErrorMessage - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IOSProfileInternal.LinuxConfigurationPatchSettingsStatusErrorMessage { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IOSProfileLinuxConfigurationInternal)LinuxConfiguration).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IOSProfileLinuxConfigurationInternal)LinuxConfiguration).Message = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IOSProfileInternal.LinuxConfigurationPatchSettingsStatusErrorMessage { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IOSProfileLinuxConfigurationInternal)LinuxConfiguration).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IOSProfileLinuxConfigurationInternal)LinuxConfiguration).Message = value ?? null; } /// Internal Acessors for LinuxConfigurationPatchSettingsStatusErrorTarget - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IOSProfileInternal.LinuxConfigurationPatchSettingsStatusErrorTarget { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IOSProfileLinuxConfigurationInternal)LinuxConfiguration).Target; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IOSProfileLinuxConfigurationInternal)LinuxConfiguration).Target = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IOSProfileInternal.LinuxConfigurationPatchSettingsStatusErrorTarget { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IOSProfileLinuxConfigurationInternal)LinuxConfiguration).Target; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IOSProfileLinuxConfigurationInternal)LinuxConfiguration).Target = value ?? null; } /// /// Internal Acessors for LinuxConfigurationPatchSettingsStatusHotpatchEnablementStatus /// - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IOSProfileInternal.LinuxConfigurationPatchSettingsStatusHotpatchEnablementStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IOSProfileLinuxConfigurationInternal)LinuxConfiguration).StatusHotpatchEnablementStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IOSProfileLinuxConfigurationInternal)LinuxConfiguration).StatusHotpatchEnablementStatus = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IOSProfileInternal.LinuxConfigurationPatchSettingsStatusHotpatchEnablementStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IOSProfileLinuxConfigurationInternal)LinuxConfiguration).StatusHotpatchEnablementStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IOSProfileLinuxConfigurationInternal)LinuxConfiguration).StatusHotpatchEnablementStatus = value ?? null; } /// Internal Acessors for WindowConfigurationPatchSetting - Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IPatchSettings Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IOSProfileInternal.WindowConfigurationPatchSetting { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IOSProfileWindowsConfigurationInternal)WindowsConfiguration).PatchSetting; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IOSProfileWindowsConfigurationInternal)WindowsConfiguration).PatchSetting = value; } + Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IPatchSettings Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IOSProfileInternal.WindowConfigurationPatchSetting { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IOSProfileWindowsConfigurationInternal)WindowsConfiguration).PatchSetting; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IOSProfileWindowsConfigurationInternal)WindowsConfiguration).PatchSetting = value ?? null /* model class */; } /// Internal Acessors for WindowsConfiguration Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IOSProfileWindowsConfiguration Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IOSProfileInternal.WindowsConfiguration { get => (this._windowsConfiguration = this._windowsConfiguration ?? new Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.OSProfileWindowsConfiguration()); set { {_windowsConfiguration = value;} } } /// Internal Acessors for WindowsConfigurationPatchSettingsStatus - Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IPatchSettingsStatus Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IOSProfileInternal.WindowsConfigurationPatchSettingsStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IOSProfileWindowsConfigurationInternal)WindowsConfiguration).PatchSettingStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IOSProfileWindowsConfigurationInternal)WindowsConfiguration).PatchSettingStatus = value; } + Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IPatchSettingsStatus Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IOSProfileInternal.WindowsConfigurationPatchSettingsStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IOSProfileWindowsConfigurationInternal)WindowsConfiguration).PatchSettingStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IOSProfileWindowsConfigurationInternal)WindowsConfiguration).PatchSettingStatus = value ?? null /* model class */; } /// Internal Acessors for WindowsConfigurationPatchSettingsStatusError - Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IErrorDetailAutoGenerated Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IOSProfileInternal.WindowsConfigurationPatchSettingsStatusError { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IOSProfileWindowsConfigurationInternal)WindowsConfiguration).StatusError; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IOSProfileWindowsConfigurationInternal)WindowsConfiguration).StatusError = value; } + Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IErrorDetailAutoGenerated Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IOSProfileInternal.WindowsConfigurationPatchSettingsStatusError { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IOSProfileWindowsConfigurationInternal)WindowsConfiguration).StatusError; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IOSProfileWindowsConfigurationInternal)WindowsConfiguration).StatusError = value ?? null /* model class */; } /// /// Internal Acessors for WindowsConfigurationPatchSettingsStatusErrorAdditionalInfo /// - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IOSProfileInternal.WindowsConfigurationPatchSettingsStatusErrorAdditionalInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IOSProfileWindowsConfigurationInternal)WindowsConfiguration).AdditionalInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IOSProfileWindowsConfigurationInternal)WindowsConfiguration).AdditionalInfo = value; } + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IOSProfileInternal.WindowsConfigurationPatchSettingsStatusErrorAdditionalInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IOSProfileWindowsConfigurationInternal)WindowsConfiguration).AdditionalInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IOSProfileWindowsConfigurationInternal)WindowsConfiguration).AdditionalInfo = value ?? null /* arrayOf */; } /// Internal Acessors for WindowsConfigurationPatchSettingsStatusErrorCode - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IOSProfileInternal.WindowsConfigurationPatchSettingsStatusErrorCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IOSProfileWindowsConfigurationInternal)WindowsConfiguration).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IOSProfileWindowsConfigurationInternal)WindowsConfiguration).Code = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IOSProfileInternal.WindowsConfigurationPatchSettingsStatusErrorCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IOSProfileWindowsConfigurationInternal)WindowsConfiguration).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IOSProfileWindowsConfigurationInternal)WindowsConfiguration).Code = value ?? null; } /// Internal Acessors for WindowsConfigurationPatchSettingsStatusErrorDetail - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IOSProfileInternal.WindowsConfigurationPatchSettingsStatusErrorDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IOSProfileWindowsConfigurationInternal)WindowsConfiguration).Detail; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IOSProfileWindowsConfigurationInternal)WindowsConfiguration).Detail = value; } + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IOSProfileInternal.WindowsConfigurationPatchSettingsStatusErrorDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IOSProfileWindowsConfigurationInternal)WindowsConfiguration).Detail; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IOSProfileWindowsConfigurationInternal)WindowsConfiguration).Detail = value ?? null /* arrayOf */; } /// Internal Acessors for WindowsConfigurationPatchSettingsStatusErrorMessage - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IOSProfileInternal.WindowsConfigurationPatchSettingsStatusErrorMessage { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IOSProfileWindowsConfigurationInternal)WindowsConfiguration).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IOSProfileWindowsConfigurationInternal)WindowsConfiguration).Message = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IOSProfileInternal.WindowsConfigurationPatchSettingsStatusErrorMessage { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IOSProfileWindowsConfigurationInternal)WindowsConfiguration).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IOSProfileWindowsConfigurationInternal)WindowsConfiguration).Message = value ?? null; } /// Internal Acessors for WindowsConfigurationPatchSettingsStatusErrorTarget - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IOSProfileInternal.WindowsConfigurationPatchSettingsStatusErrorTarget { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IOSProfileWindowsConfigurationInternal)WindowsConfiguration).Target; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IOSProfileWindowsConfigurationInternal)WindowsConfiguration).Target = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IOSProfileInternal.WindowsConfigurationPatchSettingsStatusErrorTarget { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IOSProfileWindowsConfigurationInternal)WindowsConfiguration).Target; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IOSProfileWindowsConfigurationInternal)WindowsConfiguration).Target = value ?? null; } /// /// Internal Acessors for WindowsConfigurationPatchSettingsStatusHotpatchEnablementStatus /// - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IOSProfileInternal.WindowsConfigurationPatchSettingsStatusHotpatchEnablementStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IOSProfileWindowsConfigurationInternal)WindowsConfiguration).StatusHotpatchEnablementStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IOSProfileWindowsConfigurationInternal)WindowsConfiguration).StatusHotpatchEnablementStatus = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IOSProfileInternal.WindowsConfigurationPatchSettingsStatusHotpatchEnablementStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IOSProfileWindowsConfigurationInternal)WindowsConfiguration).StatusHotpatchEnablementStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IOSProfileWindowsConfigurationInternal)WindowsConfiguration).StatusHotpatchEnablementStatus = value ?? null; } /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IOSProfileWindowsConfiguration _windowsConfiguration; diff --git a/generated/ScVmm/ScVmm.Autorest/generated/api/Models/OSProfileLinuxConfiguration.cs b/generated/ScVmm/ScVmm.Autorest/generated/api/Models/OSProfileLinuxConfiguration.cs index 3a84cceee6bf..4fad007568cb 100644 --- a/generated/ScVmm/ScVmm.Autorest/generated/api/Models/OSProfileLinuxConfiguration.cs +++ b/generated/ScVmm/ScVmm.Autorest/generated/api/Models/OSProfileLinuxConfiguration.cs @@ -30,31 +30,31 @@ public partial class OSProfileLinuxConfiguration : public string Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IPatchSettingsInternal)PatchSetting).Message; } /// Internal Acessors for AdditionalInfo - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IOSProfileLinuxConfigurationInternal.AdditionalInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IPatchSettingsInternal)PatchSetting).AdditionalInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IPatchSettingsInternal)PatchSetting).AdditionalInfo = value; } + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IOSProfileLinuxConfigurationInternal.AdditionalInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IPatchSettingsInternal)PatchSetting).AdditionalInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IPatchSettingsInternal)PatchSetting).AdditionalInfo = value ?? null /* arrayOf */; } /// Internal Acessors for Code - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IOSProfileLinuxConfigurationInternal.Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IPatchSettingsInternal)PatchSetting).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IPatchSettingsInternal)PatchSetting).Code = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IOSProfileLinuxConfigurationInternal.Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IPatchSettingsInternal)PatchSetting).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IPatchSettingsInternal)PatchSetting).Code = value ?? null; } /// Internal Acessors for Detail - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IOSProfileLinuxConfigurationInternal.Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IPatchSettingsInternal)PatchSetting).Detail; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IPatchSettingsInternal)PatchSetting).Detail = value; } + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IOSProfileLinuxConfigurationInternal.Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IPatchSettingsInternal)PatchSetting).Detail; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IPatchSettingsInternal)PatchSetting).Detail = value ?? null /* arrayOf */; } /// Internal Acessors for Message - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IOSProfileLinuxConfigurationInternal.Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IPatchSettingsInternal)PatchSetting).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IPatchSettingsInternal)PatchSetting).Message = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IOSProfileLinuxConfigurationInternal.Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IPatchSettingsInternal)PatchSetting).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IPatchSettingsInternal)PatchSetting).Message = value ?? null; } /// Internal Acessors for PatchSetting Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IPatchSettings Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IOSProfileLinuxConfigurationInternal.PatchSetting { get => (this._patchSetting = this._patchSetting ?? new Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.PatchSettings()); set { {_patchSetting = value;} } } /// Internal Acessors for PatchSettingStatus - Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IPatchSettingsStatus Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IOSProfileLinuxConfigurationInternal.PatchSettingStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IPatchSettingsInternal)PatchSetting).Status; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IPatchSettingsInternal)PatchSetting).Status = value; } + Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IPatchSettingsStatus Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IOSProfileLinuxConfigurationInternal.PatchSettingStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IPatchSettingsInternal)PatchSetting).Status; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IPatchSettingsInternal)PatchSetting).Status = value ?? null /* model class */; } /// Internal Acessors for StatusError - Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IErrorDetailAutoGenerated Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IOSProfileLinuxConfigurationInternal.StatusError { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IPatchSettingsInternal)PatchSetting).StatusError; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IPatchSettingsInternal)PatchSetting).StatusError = value; } + Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IErrorDetailAutoGenerated Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IOSProfileLinuxConfigurationInternal.StatusError { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IPatchSettingsInternal)PatchSetting).StatusError; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IPatchSettingsInternal)PatchSetting).StatusError = value ?? null /* model class */; } /// Internal Acessors for StatusHotpatchEnablementStatus - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IOSProfileLinuxConfigurationInternal.StatusHotpatchEnablementStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IPatchSettingsInternal)PatchSetting).StatusHotpatchEnablementStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IPatchSettingsInternal)PatchSetting).StatusHotpatchEnablementStatus = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IOSProfileLinuxConfigurationInternal.StatusHotpatchEnablementStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IPatchSettingsInternal)PatchSetting).StatusHotpatchEnablementStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IPatchSettingsInternal)PatchSetting).StatusHotpatchEnablementStatus = value ?? null; } /// Internal Acessors for Target - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IOSProfileLinuxConfigurationInternal.Target { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IPatchSettingsInternal)PatchSetting).Target; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IPatchSettingsInternal)PatchSetting).Target = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IOSProfileLinuxConfigurationInternal.Target { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IPatchSettingsInternal)PatchSetting).Target; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IPatchSettingsInternal)PatchSetting).Target = value ?? null; } /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IPatchSettings _patchSetting; diff --git a/generated/ScVmm/ScVmm.Autorest/generated/api/Models/OSProfileWindowsConfiguration.cs b/generated/ScVmm/ScVmm.Autorest/generated/api/Models/OSProfileWindowsConfiguration.cs index c4bc64d0fc57..fdf8240de72d 100644 --- a/generated/ScVmm/ScVmm.Autorest/generated/api/Models/OSProfileWindowsConfiguration.cs +++ b/generated/ScVmm/ScVmm.Autorest/generated/api/Models/OSProfileWindowsConfiguration.cs @@ -30,31 +30,31 @@ public partial class OSProfileWindowsConfiguration : public string Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IPatchSettingsInternal)PatchSetting).Message; } /// Internal Acessors for AdditionalInfo - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IOSProfileWindowsConfigurationInternal.AdditionalInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IPatchSettingsInternal)PatchSetting).AdditionalInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IPatchSettingsInternal)PatchSetting).AdditionalInfo = value; } + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IOSProfileWindowsConfigurationInternal.AdditionalInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IPatchSettingsInternal)PatchSetting).AdditionalInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IPatchSettingsInternal)PatchSetting).AdditionalInfo = value ?? null /* arrayOf */; } /// Internal Acessors for Code - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IOSProfileWindowsConfigurationInternal.Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IPatchSettingsInternal)PatchSetting).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IPatchSettingsInternal)PatchSetting).Code = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IOSProfileWindowsConfigurationInternal.Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IPatchSettingsInternal)PatchSetting).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IPatchSettingsInternal)PatchSetting).Code = value ?? null; } /// Internal Acessors for Detail - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IOSProfileWindowsConfigurationInternal.Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IPatchSettingsInternal)PatchSetting).Detail; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IPatchSettingsInternal)PatchSetting).Detail = value; } + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IOSProfileWindowsConfigurationInternal.Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IPatchSettingsInternal)PatchSetting).Detail; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IPatchSettingsInternal)PatchSetting).Detail = value ?? null /* arrayOf */; } /// Internal Acessors for Message - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IOSProfileWindowsConfigurationInternal.Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IPatchSettingsInternal)PatchSetting).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IPatchSettingsInternal)PatchSetting).Message = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IOSProfileWindowsConfigurationInternal.Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IPatchSettingsInternal)PatchSetting).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IPatchSettingsInternal)PatchSetting).Message = value ?? null; } /// Internal Acessors for PatchSetting Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IPatchSettings Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IOSProfileWindowsConfigurationInternal.PatchSetting { get => (this._patchSetting = this._patchSetting ?? new Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.PatchSettings()); set { {_patchSetting = value;} } } /// Internal Acessors for PatchSettingStatus - Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IPatchSettingsStatus Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IOSProfileWindowsConfigurationInternal.PatchSettingStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IPatchSettingsInternal)PatchSetting).Status; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IPatchSettingsInternal)PatchSetting).Status = value; } + Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IPatchSettingsStatus Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IOSProfileWindowsConfigurationInternal.PatchSettingStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IPatchSettingsInternal)PatchSetting).Status; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IPatchSettingsInternal)PatchSetting).Status = value ?? null /* model class */; } /// Internal Acessors for StatusError - Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IErrorDetailAutoGenerated Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IOSProfileWindowsConfigurationInternal.StatusError { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IPatchSettingsInternal)PatchSetting).StatusError; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IPatchSettingsInternal)PatchSetting).StatusError = value; } + Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IErrorDetailAutoGenerated Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IOSProfileWindowsConfigurationInternal.StatusError { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IPatchSettingsInternal)PatchSetting).StatusError; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IPatchSettingsInternal)PatchSetting).StatusError = value ?? null /* model class */; } /// Internal Acessors for StatusHotpatchEnablementStatus - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IOSProfileWindowsConfigurationInternal.StatusHotpatchEnablementStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IPatchSettingsInternal)PatchSetting).StatusHotpatchEnablementStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IPatchSettingsInternal)PatchSetting).StatusHotpatchEnablementStatus = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IOSProfileWindowsConfigurationInternal.StatusHotpatchEnablementStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IPatchSettingsInternal)PatchSetting).StatusHotpatchEnablementStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IPatchSettingsInternal)PatchSetting).StatusHotpatchEnablementStatus = value ?? null; } /// Internal Acessors for Target - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IOSProfileWindowsConfigurationInternal.Target { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IPatchSettingsInternal)PatchSetting).Target; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IPatchSettingsInternal)PatchSetting).Target = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IOSProfileWindowsConfigurationInternal.Target { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IPatchSettingsInternal)PatchSetting).Target; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IPatchSettingsInternal)PatchSetting).Target = value ?? null; } /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IPatchSettings _patchSetting; diff --git a/generated/ScVmm/ScVmm.Autorest/generated/api/Models/Operation.cs b/generated/ScVmm/ScVmm.Autorest/generated/api/Models/Operation.cs index 8bb714bb8bb0..a60dbf89e160 100644 --- a/generated/ScVmm/ScVmm.Autorest/generated/api/Models/Operation.cs +++ b/generated/ScVmm/ScVmm.Autorest/generated/api/Models/Operation.cs @@ -73,16 +73,16 @@ public partial class Operation : Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IOperationDisplay Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IOperationInternal.Display { get => (this._display = this._display ?? new Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.OperationDisplay()); set { {_display = value;} } } /// Internal Acessors for DisplayDescription - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IOperationInternal.DisplayDescription { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IOperationDisplayInternal)Display).Description; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IOperationDisplayInternal)Display).Description = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IOperationInternal.DisplayDescription { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IOperationDisplayInternal)Display).Description; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IOperationDisplayInternal)Display).Description = value ?? null; } /// Internal Acessors for DisplayOperation - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IOperationInternal.DisplayOperation { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IOperationDisplayInternal)Display).Operation; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IOperationDisplayInternal)Display).Operation = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IOperationInternal.DisplayOperation { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IOperationDisplayInternal)Display).Operation; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IOperationDisplayInternal)Display).Operation = value ?? null; } /// Internal Acessors for DisplayProvider - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IOperationInternal.DisplayProvider { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IOperationDisplayInternal)Display).Provider; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IOperationDisplayInternal)Display).Provider = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IOperationInternal.DisplayProvider { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IOperationDisplayInternal)Display).Provider; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IOperationDisplayInternal)Display).Provider = value ?? null; } /// Internal Acessors for DisplayResource - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IOperationInternal.DisplayResource { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IOperationDisplayInternal)Display).Resource; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IOperationDisplayInternal)Display).Resource = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IOperationInternal.DisplayResource { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IOperationDisplayInternal)Display).Resource; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IOperationDisplayInternal)Display).Resource = value ?? null; } /// Internal Acessors for IsDataAction bool? Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IOperationInternal.IsDataAction { get => this._isDataAction; set { {_isDataAction = value;} } } diff --git a/generated/ScVmm/ScVmm.Autorest/generated/api/Models/OperationValue.cs b/generated/ScVmm/ScVmm.Autorest/generated/api/Models/OperationValue.cs index f7d7c0e00ad1..6aad9849f303 100644 --- a/generated/ScVmm/ScVmm.Autorest/generated/api/Models/OperationValue.cs +++ b/generated/ScVmm/ScVmm.Autorest/generated/api/Models/OperationValue.cs @@ -47,16 +47,16 @@ public partial class OperationValue : Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IOperationValueDisplay Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IOperationValueInternal.Display { get => (this._display = this._display ?? new Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.OperationValueDisplay()); set { {_display = value;} } } /// Internal Acessors for DisplayDescription - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IOperationValueInternal.DisplayDescription { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IOperationValueDisplayInternal)Display).Description; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IOperationValueDisplayInternal)Display).Description = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IOperationValueInternal.DisplayDescription { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IOperationValueDisplayInternal)Display).Description; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IOperationValueDisplayInternal)Display).Description = value ?? null; } /// Internal Acessors for DisplayOperation - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IOperationValueInternal.DisplayOperation { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IOperationValueDisplayInternal)Display).Operation; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IOperationValueDisplayInternal)Display).Operation = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IOperationValueInternal.DisplayOperation { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IOperationValueDisplayInternal)Display).Operation; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IOperationValueDisplayInternal)Display).Operation = value ?? null; } /// Internal Acessors for DisplayProvider - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IOperationValueInternal.DisplayProvider { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IOperationValueDisplayInternal)Display).Provider; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IOperationValueDisplayInternal)Display).Provider = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IOperationValueInternal.DisplayProvider { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IOperationValueDisplayInternal)Display).Provider; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IOperationValueDisplayInternal)Display).Provider = value ?? null; } /// Internal Acessors for DisplayResource - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IOperationValueInternal.DisplayResource { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IOperationValueDisplayInternal)Display).Resource; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IOperationValueDisplayInternal)Display).Resource = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IOperationValueInternal.DisplayResource { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IOperationValueDisplayInternal)Display).Resource; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IOperationValueDisplayInternal)Display).Resource = value ?? null; } /// Internal Acessors for IsDataAction bool? Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IOperationValueInternal.IsDataAction { get => this._isDataAction; set { {_isDataAction = value;} } } diff --git a/generated/ScVmm/ScVmm.Autorest/generated/api/Models/PatchSettings.cs b/generated/ScVmm/ScVmm.Autorest/generated/api/Models/PatchSettings.cs index 7dfb2f0d7a0c..2923b48ce648 100644 --- a/generated/ScVmm/ScVmm.Autorest/generated/api/Models/PatchSettings.cs +++ b/generated/ScVmm/ScVmm.Autorest/generated/api/Models/PatchSettings.cs @@ -47,28 +47,28 @@ public partial class PatchSettings : public string Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IPatchSettingsStatusInternal)Status).Message; } /// Internal Acessors for AdditionalInfo - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IPatchSettingsInternal.AdditionalInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IPatchSettingsStatusInternal)Status).AdditionalInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IPatchSettingsStatusInternal)Status).AdditionalInfo = value; } + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IPatchSettingsInternal.AdditionalInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IPatchSettingsStatusInternal)Status).AdditionalInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IPatchSettingsStatusInternal)Status).AdditionalInfo = value ?? null /* arrayOf */; } /// Internal Acessors for Code - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IPatchSettingsInternal.Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IPatchSettingsStatusInternal)Status).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IPatchSettingsStatusInternal)Status).Code = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IPatchSettingsInternal.Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IPatchSettingsStatusInternal)Status).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IPatchSettingsStatusInternal)Status).Code = value ?? null; } /// Internal Acessors for Detail - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IPatchSettingsInternal.Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IPatchSettingsStatusInternal)Status).Detail; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IPatchSettingsStatusInternal)Status).Detail = value; } + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IPatchSettingsInternal.Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IPatchSettingsStatusInternal)Status).Detail; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IPatchSettingsStatusInternal)Status).Detail = value ?? null /* arrayOf */; } /// Internal Acessors for Message - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IPatchSettingsInternal.Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IPatchSettingsStatusInternal)Status).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IPatchSettingsStatusInternal)Status).Message = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IPatchSettingsInternal.Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IPatchSettingsStatusInternal)Status).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IPatchSettingsStatusInternal)Status).Message = value ?? null; } /// Internal Acessors for Status Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IPatchSettingsStatus Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IPatchSettingsInternal.Status { get => (this._status = this._status ?? new Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.PatchSettingsStatus()); set { {_status = value;} } } /// Internal Acessors for StatusError - Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IErrorDetailAutoGenerated Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IPatchSettingsInternal.StatusError { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IPatchSettingsStatusInternal)Status).Error; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IPatchSettingsStatusInternal)Status).Error = value; } + Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IErrorDetailAutoGenerated Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IPatchSettingsInternal.StatusError { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IPatchSettingsStatusInternal)Status).Error; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IPatchSettingsStatusInternal)Status).Error = value ?? null /* model class */; } /// Internal Acessors for StatusHotpatchEnablementStatus - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IPatchSettingsInternal.StatusHotpatchEnablementStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IPatchSettingsStatusInternal)Status).HotpatchEnablementStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IPatchSettingsStatusInternal)Status).HotpatchEnablementStatus = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IPatchSettingsInternal.StatusHotpatchEnablementStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IPatchSettingsStatusInternal)Status).HotpatchEnablementStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IPatchSettingsStatusInternal)Status).HotpatchEnablementStatus = value ?? null; } /// Internal Acessors for Target - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IPatchSettingsInternal.Target { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IPatchSettingsStatusInternal)Status).Target; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IPatchSettingsStatusInternal)Status).Target = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IPatchSettingsInternal.Target { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IPatchSettingsStatusInternal)Status).Target; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IPatchSettingsStatusInternal)Status).Target = value ?? null; } /// Backing field for property. private string _patchMode; diff --git a/generated/ScVmm/ScVmm.Autorest/generated/api/Models/PatchSettingsStatus.cs b/generated/ScVmm/ScVmm.Autorest/generated/api/Models/PatchSettingsStatus.cs index e90db02a6ae0..9ea94ccdeaff 100644 --- a/generated/ScVmm/ScVmm.Autorest/generated/api/Models/PatchSettingsStatus.cs +++ b/generated/ScVmm/ScVmm.Autorest/generated/api/Models/PatchSettingsStatus.cs @@ -46,22 +46,22 @@ public partial class PatchSettingsStatus : public string Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IErrorDetailAutoGeneratedInternal)Error).Message; } /// Internal Acessors for AdditionalInfo - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IPatchSettingsStatusInternal.AdditionalInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IErrorDetailAutoGeneratedInternal)Error).AdditionalInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IErrorDetailAutoGeneratedInternal)Error).AdditionalInfo = value; } + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IPatchSettingsStatusInternal.AdditionalInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IErrorDetailAutoGeneratedInternal)Error).AdditionalInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IErrorDetailAutoGeneratedInternal)Error).AdditionalInfo = value ?? null /* arrayOf */; } /// Internal Acessors for Code - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IPatchSettingsStatusInternal.Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IErrorDetailAutoGeneratedInternal)Error).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IErrorDetailAutoGeneratedInternal)Error).Code = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IPatchSettingsStatusInternal.Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IErrorDetailAutoGeneratedInternal)Error).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IErrorDetailAutoGeneratedInternal)Error).Code = value ?? null; } /// Internal Acessors for Detail - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IPatchSettingsStatusInternal.Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IErrorDetailAutoGeneratedInternal)Error).Detail; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IErrorDetailAutoGeneratedInternal)Error).Detail = value; } + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IPatchSettingsStatusInternal.Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IErrorDetailAutoGeneratedInternal)Error).Detail; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IErrorDetailAutoGeneratedInternal)Error).Detail = value ?? null /* arrayOf */; } /// Internal Acessors for Error Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IErrorDetailAutoGenerated Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IPatchSettingsStatusInternal.Error { get => (this._error = this._error ?? new Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ErrorDetailAutoGenerated()); set { {_error = value;} } } /// Internal Acessors for Message - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IPatchSettingsStatusInternal.Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IErrorDetailAutoGeneratedInternal)Error).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IErrorDetailAutoGeneratedInternal)Error).Message = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IPatchSettingsStatusInternal.Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IErrorDetailAutoGeneratedInternal)Error).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IErrorDetailAutoGeneratedInternal)Error).Message = value ?? null; } /// Internal Acessors for Target - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IPatchSettingsStatusInternal.Target { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IErrorDetailAutoGeneratedInternal)Error).Target; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IErrorDetailAutoGeneratedInternal)Error).Target = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IPatchSettingsStatusInternal.Target { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IErrorDetailAutoGeneratedInternal)Error).Target; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IErrorDetailAutoGeneratedInternal)Error).Target = value ?? null; } /// The error target. [Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Origin(Microsoft.Azure.PowerShell.Cmdlets.ScVmm.PropertyOrigin.Inlined)] diff --git a/generated/ScVmm/ScVmm.Autorest/generated/api/Models/ProductFeature.cs b/generated/ScVmm/ScVmm.Autorest/generated/api/Models/ProductFeature.cs index 6d1203d89670..916bb6dd65ed 100644 --- a/generated/ScVmm/ScVmm.Autorest/generated/api/Models/ProductFeature.cs +++ b/generated/ScVmm/ScVmm.Autorest/generated/api/Models/ProductFeature.cs @@ -67,7 +67,7 @@ public partial class ProductFeature : public string Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IErrorDetailAutoGeneratedInternal)Error).Message; } /// Internal Acessors for AdditionalInfo - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IProductFeatureInternal.AdditionalInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IErrorDetailAutoGeneratedInternal)Error).AdditionalInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IErrorDetailAutoGeneratedInternal)Error).AdditionalInfo = value; } + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IProductFeatureInternal.AdditionalInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IErrorDetailAutoGeneratedInternal)Error).AdditionalInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IErrorDetailAutoGeneratedInternal)Error).AdditionalInfo = value ?? null /* arrayOf */; } /// Internal Acessors for BillingEndDate global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IProductFeatureInternal.BillingEndDate { get => this._billingEndDate; set { {_billingEndDate = value;} } } @@ -76,10 +76,10 @@ public partial class ProductFeature : global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IProductFeatureInternal.BillingStartDate { get => this._billingStartDate; set { {_billingStartDate = value;} } } /// Internal Acessors for Code - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IProductFeatureInternal.Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IErrorDetailAutoGeneratedInternal)Error).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IErrorDetailAutoGeneratedInternal)Error).Code = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IProductFeatureInternal.Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IErrorDetailAutoGeneratedInternal)Error).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IErrorDetailAutoGeneratedInternal)Error).Code = value ?? null; } /// Internal Acessors for Detail - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IProductFeatureInternal.Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IErrorDetailAutoGeneratedInternal)Error).Detail; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IErrorDetailAutoGeneratedInternal)Error).Detail = value; } + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IProductFeatureInternal.Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IErrorDetailAutoGeneratedInternal)Error).Detail; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IErrorDetailAutoGeneratedInternal)Error).Detail = value ?? null /* arrayOf */; } /// Internal Acessors for DisenrollmentDate global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IProductFeatureInternal.DisenrollmentDate { get => this._disenrollmentDate; set { {_disenrollmentDate = value;} } } @@ -91,10 +91,10 @@ public partial class ProductFeature : Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IErrorDetailAutoGenerated Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IProductFeatureInternal.Error { get => (this._error = this._error ?? new Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ErrorDetailAutoGenerated()); set { {_error = value;} } } /// Internal Acessors for Message - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IProductFeatureInternal.Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IErrorDetailAutoGeneratedInternal)Error).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IErrorDetailAutoGeneratedInternal)Error).Message = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IProductFeatureInternal.Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IErrorDetailAutoGeneratedInternal)Error).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IErrorDetailAutoGeneratedInternal)Error).Message = value ?? null; } /// Internal Acessors for Target - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IProductFeatureInternal.Target { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IErrorDetailAutoGeneratedInternal)Error).Target; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IErrorDetailAutoGeneratedInternal)Error).Target = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IProductFeatureInternal.Target { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IErrorDetailAutoGeneratedInternal)Error).Target; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IErrorDetailAutoGeneratedInternal)Error).Target = value ?? null; } /// Backing field for property. private string _name; diff --git a/generated/ScVmm/ScVmm.Autorest/generated/api/Models/ProxyResource.cs b/generated/ScVmm/ScVmm.Autorest/generated/api/Models/ProxyResource.cs index e96c34151fda..419d077a9576 100644 --- a/generated/ScVmm/ScVmm.Autorest/generated/api/Models/ProxyResource.cs +++ b/generated/ScVmm/ScVmm.Autorest/generated/api/Models/ProxyResource.cs @@ -27,34 +27,34 @@ public partial class ProxyResource : public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__resource).Id; } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__resource).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__resource).Id = value ?? null; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__resource).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__resource).Name = value ?? null; } /// Internal Acessors for SystemData - Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__resource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__resource).SystemData = value; } + Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__resource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__resource).SystemData = value ?? null /* model class */; } /// Internal Acessors for SystemDataCreatedAt - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__resource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__resource).SystemDataCreatedAt = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__resource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__resource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } /// Internal Acessors for SystemDataCreatedBy - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__resource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__resource).SystemDataCreatedBy = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__resource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__resource).SystemDataCreatedBy = value ?? null; } /// Internal Acessors for SystemDataCreatedByType - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__resource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__resource).SystemDataCreatedByType = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__resource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__resource).SystemDataCreatedByType = value ?? null; } /// Internal Acessors for SystemDataLastModifiedAt - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__resource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__resource).SystemDataLastModifiedAt = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__resource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__resource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } /// Internal Acessors for SystemDataLastModifiedBy - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__resource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__resource).SystemDataLastModifiedBy = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__resource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__resource).SystemDataLastModifiedBy = value ?? null; } /// Internal Acessors for SystemDataLastModifiedByType - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__resource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__resource).SystemDataLastModifiedByType = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__resource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__resource).SystemDataLastModifiedByType = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__resource).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__resource).Type = value ?? null; } /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Origin(Microsoft.Azure.PowerShell.Cmdlets.ScVmm.PropertyOrigin.Inherited)] diff --git a/generated/ScVmm/ScVmm.Autorest/generated/api/Models/Resource.cs b/generated/ScVmm/ScVmm.Autorest/generated/api/Models/Resource.cs index eda7ab403b82..21b44aee5baf 100644 --- a/generated/ScVmm/ScVmm.Autorest/generated/api/Models/Resource.cs +++ b/generated/ScVmm/ScVmm.Autorest/generated/api/Models/Resource.cs @@ -34,22 +34,22 @@ public partial class Resource : Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal.SystemData { get => (this._systemData = this._systemData ?? new Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.SystemData()); set { {_systemData = value;} } } /// Internal Acessors for SystemDataCreatedAt - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ISystemDataInternal)SystemData).CreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ISystemDataInternal)SystemData).CreatedAt = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ISystemDataInternal)SystemData).CreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ISystemDataInternal)SystemData).CreatedAt = value ?? default(global::System.DateTime); } /// Internal Acessors for SystemDataCreatedBy - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ISystemDataInternal)SystemData).CreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ISystemDataInternal)SystemData).CreatedBy = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ISystemDataInternal)SystemData).CreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ISystemDataInternal)SystemData).CreatedBy = value ?? null; } /// Internal Acessors for SystemDataCreatedByType - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ISystemDataInternal)SystemData).CreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ISystemDataInternal)SystemData).CreatedByType = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ISystemDataInternal)SystemData).CreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ISystemDataInternal)SystemData).CreatedByType = value ?? null; } /// Internal Acessors for SystemDataLastModifiedAt - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ISystemDataInternal)SystemData).LastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ISystemDataInternal)SystemData).LastModifiedAt = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ISystemDataInternal)SystemData).LastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ISystemDataInternal)SystemData).LastModifiedAt = value ?? default(global::System.DateTime); } /// Internal Acessors for SystemDataLastModifiedBy - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ISystemDataInternal)SystemData).LastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ISystemDataInternal)SystemData).LastModifiedBy = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ISystemDataInternal)SystemData).LastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ISystemDataInternal)SystemData).LastModifiedBy = value ?? null; } /// Internal Acessors for SystemDataLastModifiedByType - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ISystemDataInternal)SystemData).LastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ISystemDataInternal)SystemData).LastModifiedByType = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ISystemDataInternal)SystemData).LastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ISystemDataInternal)SystemData).LastModifiedByType = value ?? null; } /// Internal Acessors for Type string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal.Type { get => this._type; set { {_type = value;} } } diff --git a/generated/ScVmm/ScVmm.Autorest/generated/api/Models/ResourceAutoGenerated.cs b/generated/ScVmm/ScVmm.Autorest/generated/api/Models/ResourceAutoGenerated.cs index e94991a15d9e..a955a0ae8d34 100644 --- a/generated/ScVmm/ScVmm.Autorest/generated/api/Models/ResourceAutoGenerated.cs +++ b/generated/ScVmm/ScVmm.Autorest/generated/api/Models/ResourceAutoGenerated.cs @@ -34,22 +34,22 @@ public partial class ResourceAutoGenerated : Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal.SystemData { get => (this._systemData = this._systemData ?? new Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.SystemData()); set { {_systemData = value;} } } /// Internal Acessors for SystemDataCreatedAt - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ISystemDataInternal)SystemData).CreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ISystemDataInternal)SystemData).CreatedAt = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ISystemDataInternal)SystemData).CreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ISystemDataInternal)SystemData).CreatedAt = value ?? default(global::System.DateTime); } /// Internal Acessors for SystemDataCreatedBy - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ISystemDataInternal)SystemData).CreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ISystemDataInternal)SystemData).CreatedBy = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ISystemDataInternal)SystemData).CreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ISystemDataInternal)SystemData).CreatedBy = value ?? null; } /// Internal Acessors for SystemDataCreatedByType - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ISystemDataInternal)SystemData).CreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ISystemDataInternal)SystemData).CreatedByType = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ISystemDataInternal)SystemData).CreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ISystemDataInternal)SystemData).CreatedByType = value ?? null; } /// Internal Acessors for SystemDataLastModifiedAt - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ISystemDataInternal)SystemData).LastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ISystemDataInternal)SystemData).LastModifiedAt = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ISystemDataInternal)SystemData).LastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ISystemDataInternal)SystemData).LastModifiedAt = value ?? default(global::System.DateTime); } /// Internal Acessors for SystemDataLastModifiedBy - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ISystemDataInternal)SystemData).LastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ISystemDataInternal)SystemData).LastModifiedBy = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ISystemDataInternal)SystemData).LastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ISystemDataInternal)SystemData).LastModifiedBy = value ?? null; } /// Internal Acessors for SystemDataLastModifiedByType - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ISystemDataInternal)SystemData).LastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ISystemDataInternal)SystemData).LastModifiedByType = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ISystemDataInternal)SystemData).LastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ISystemDataInternal)SystemData).LastModifiedByType = value ?? null; } /// Internal Acessors for Type string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal.Type { get => this._type; set { {_type = value;} } } diff --git a/generated/ScVmm/ScVmm.Autorest/generated/api/Models/TrackedResource.cs b/generated/ScVmm/ScVmm.Autorest/generated/api/Models/TrackedResource.cs index 1955caa842d3..d75f0e073cbe 100644 --- a/generated/ScVmm/ScVmm.Autorest/generated/api/Models/TrackedResource.cs +++ b/generated/ScVmm/ScVmm.Autorest/generated/api/Models/TrackedResource.cs @@ -34,34 +34,34 @@ public partial class TrackedResource : public string Location { get => this._location; set => this._location = value; } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__resource).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__resource).Id = value ?? null; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__resource).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__resource).Name = value ?? null; } /// Internal Acessors for SystemData - Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__resource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__resource).SystemData = value; } + Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__resource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__resource).SystemData = value ?? null /* model class */; } /// Internal Acessors for SystemDataCreatedAt - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__resource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__resource).SystemDataCreatedAt = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__resource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__resource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } /// Internal Acessors for SystemDataCreatedBy - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__resource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__resource).SystemDataCreatedBy = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__resource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__resource).SystemDataCreatedBy = value ?? null; } /// Internal Acessors for SystemDataCreatedByType - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__resource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__resource).SystemDataCreatedByType = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__resource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__resource).SystemDataCreatedByType = value ?? null; } /// Internal Acessors for SystemDataLastModifiedAt - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__resource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__resource).SystemDataLastModifiedAt = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__resource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__resource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } /// Internal Acessors for SystemDataLastModifiedBy - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__resource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__resource).SystemDataLastModifiedBy = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__resource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__resource).SystemDataLastModifiedBy = value ?? null; } /// Internal Acessors for SystemDataLastModifiedByType - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__resource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__resource).SystemDataLastModifiedByType = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__resource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__resource).SystemDataLastModifiedByType = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__resource).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__resource).Type = value ?? null; } /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Origin(Microsoft.Azure.PowerShell.Cmdlets.ScVmm.PropertyOrigin.Inherited)] diff --git a/generated/ScVmm/ScVmm.Autorest/generated/api/Models/TrackedResourceAutoGenerated.cs b/generated/ScVmm/ScVmm.Autorest/generated/api/Models/TrackedResourceAutoGenerated.cs index 934b14720c69..6da411459bb9 100644 --- a/generated/ScVmm/ScVmm.Autorest/generated/api/Models/TrackedResourceAutoGenerated.cs +++ b/generated/ScVmm/ScVmm.Autorest/generated/api/Models/TrackedResourceAutoGenerated.cs @@ -35,34 +35,34 @@ public partial class TrackedResourceAutoGenerated : public string Location { get => this._location; set => this._location = value; } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal)__resourceAutoGenerated).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal)__resourceAutoGenerated).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal)__resourceAutoGenerated).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal)__resourceAutoGenerated).Id = value ?? null; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal)__resourceAutoGenerated).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal)__resourceAutoGenerated).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal)__resourceAutoGenerated).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal)__resourceAutoGenerated).Name = value ?? null; } /// Internal Acessors for SystemData - Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal)__resourceAutoGenerated).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal)__resourceAutoGenerated).SystemData = value; } + Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal)__resourceAutoGenerated).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal)__resourceAutoGenerated).SystemData = value ?? null /* model class */; } /// Internal Acessors for SystemDataCreatedAt - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal)__resourceAutoGenerated).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal)__resourceAutoGenerated).SystemDataCreatedAt = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal)__resourceAutoGenerated).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal)__resourceAutoGenerated).SystemDataCreatedAt = value ?? default(global::System.DateTime); } /// Internal Acessors for SystemDataCreatedBy - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal)__resourceAutoGenerated).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal)__resourceAutoGenerated).SystemDataCreatedBy = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal)__resourceAutoGenerated).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal)__resourceAutoGenerated).SystemDataCreatedBy = value ?? null; } /// Internal Acessors for SystemDataCreatedByType - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal)__resourceAutoGenerated).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal)__resourceAutoGenerated).SystemDataCreatedByType = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal)__resourceAutoGenerated).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal)__resourceAutoGenerated).SystemDataCreatedByType = value ?? null; } /// Internal Acessors for SystemDataLastModifiedAt - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal)__resourceAutoGenerated).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal)__resourceAutoGenerated).SystemDataLastModifiedAt = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal)__resourceAutoGenerated).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal)__resourceAutoGenerated).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } /// Internal Acessors for SystemDataLastModifiedBy - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal)__resourceAutoGenerated).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal)__resourceAutoGenerated).SystemDataLastModifiedBy = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal)__resourceAutoGenerated).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal)__resourceAutoGenerated).SystemDataLastModifiedBy = value ?? null; } /// Internal Acessors for SystemDataLastModifiedByType - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal)__resourceAutoGenerated).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal)__resourceAutoGenerated).SystemDataLastModifiedByType = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal)__resourceAutoGenerated).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal)__resourceAutoGenerated).SystemDataLastModifiedByType = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal)__resourceAutoGenerated).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal)__resourceAutoGenerated).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal)__resourceAutoGenerated).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceAutoGeneratedInternal)__resourceAutoGenerated).Type = value ?? null; } /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Origin(Microsoft.Azure.PowerShell.Cmdlets.ScVmm.PropertyOrigin.Inherited)] diff --git a/generated/ScVmm/ScVmm.Autorest/generated/api/Models/VMInstanceHybridIdentityMetadata.cs b/generated/ScVmm/ScVmm.Autorest/generated/api/Models/VMInstanceHybridIdentityMetadata.cs index b4e6ac2ebe26..38e7c0bec05e 100644 --- a/generated/ScVmm/ScVmm.Autorest/generated/api/Models/VMInstanceHybridIdentityMetadata.cs +++ b/generated/ScVmm/ScVmm.Autorest/generated/api/Models/VMInstanceHybridIdentityMetadata.cs @@ -25,40 +25,40 @@ public partial class VMInstanceHybridIdentityMetadata : public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__proxyResource).Id; } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__proxyResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__proxyResource).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__proxyResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__proxyResource).Id = value ?? null; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__proxyResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__proxyResource).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__proxyResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__proxyResource).Name = value ?? null; } /// Internal Acessors for SystemData - Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__proxyResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__proxyResource).SystemData = value; } + Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__proxyResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__proxyResource).SystemData = value ?? null /* model class */; } /// Internal Acessors for SystemDataCreatedAt - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } /// Internal Acessors for SystemDataCreatedBy - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy = value ?? null; } /// Internal Acessors for SystemDataCreatedByType - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType = value ?? null; } /// Internal Acessors for SystemDataLastModifiedAt - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } /// Internal Acessors for SystemDataLastModifiedBy - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy = value ?? null; } /// Internal Acessors for SystemDataLastModifiedByType - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__proxyResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__proxyResource).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__proxyResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__proxyResource).Type = value ?? null; } /// Internal Acessors for Property Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVMInstanceHybridIdentityMetadataProperties Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVMInstanceHybridIdentityMetadataInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.VMInstanceHybridIdentityMetadataProperties()); set { {_property = value;} } } /// Internal Acessors for ProvisioningState - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVMInstanceHybridIdentityMetadataInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVMInstanceHybridIdentityMetadataPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVMInstanceHybridIdentityMetadataPropertiesInternal)Property).ProvisioningState = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVMInstanceHybridIdentityMetadataInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVMInstanceHybridIdentityMetadataPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVMInstanceHybridIdentityMetadataPropertiesInternal)Property).ProvisioningState = value ?? null; } /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Origin(Microsoft.Azure.PowerShell.Cmdlets.ScVmm.PropertyOrigin.Inherited)] diff --git a/generated/ScVmm/ScVmm.Autorest/generated/api/Models/VirtualMachineInstance.cs b/generated/ScVmm/ScVmm.Autorest/generated/api/Models/VirtualMachineInstance.cs index 27dc96e56965..93985741b9eb 100644 --- a/generated/ScVmm/ScVmm.Autorest/generated/api/Models/VirtualMachineInstance.cs +++ b/generated/ScVmm/ScVmm.Autorest/generated/api/Models/VirtualMachineInstance.cs @@ -130,91 +130,91 @@ public partial class VirtualMachineInstance : public string LastRestoredVMCheckpointParentCheckpointId { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVirtualMachineInstancePropertiesInternal)Property).LastRestoredVMCheckpointParentCheckpointId; } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__proxyResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__proxyResource).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__proxyResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__proxyResource).Id = value ?? null; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__proxyResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__proxyResource).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__proxyResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__proxyResource).Name = value ?? null; } /// Internal Acessors for SystemData - Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__proxyResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__proxyResource).SystemData = value; } + Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__proxyResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__proxyResource).SystemData = value ?? null /* model class */; } /// Internal Acessors for SystemDataCreatedAt - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } /// Internal Acessors for SystemDataCreatedBy - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy = value ?? null; } /// Internal Acessors for SystemDataCreatedByType - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType = value ?? null; } /// Internal Acessors for SystemDataLastModifiedAt - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } /// Internal Acessors for SystemDataLastModifiedBy - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy = value ?? null; } /// Internal Acessors for SystemDataLastModifiedByType - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__proxyResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__proxyResource).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__proxyResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__proxyResource).Type = value ?? null; } /// Internal Acessors for ExtendedLocation Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IExtendedLocation Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVirtualMachineInstanceInternal.ExtendedLocation { get => (this._extendedLocation = this._extendedLocation ?? new Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ExtendedLocation()); set { {_extendedLocation = value;} } } /// Internal Acessors for HardwareProfile - Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IHardwareProfile Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVirtualMachineInstanceInternal.HardwareProfile { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVirtualMachineInstancePropertiesInternal)Property).HardwareProfile; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVirtualMachineInstancePropertiesInternal)Property).HardwareProfile = value; } + Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IHardwareProfile Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVirtualMachineInstanceInternal.HardwareProfile { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVirtualMachineInstancePropertiesInternal)Property).HardwareProfile; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVirtualMachineInstancePropertiesInternal)Property).HardwareProfile = value ?? null /* model class */; } /// Internal Acessors for HardwareProfileIsHighlyAvailable - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVirtualMachineInstanceInternal.HardwareProfileIsHighlyAvailable { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVirtualMachineInstancePropertiesInternal)Property).HardwareProfileIsHighlyAvailable; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVirtualMachineInstancePropertiesInternal)Property).HardwareProfileIsHighlyAvailable = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVirtualMachineInstanceInternal.HardwareProfileIsHighlyAvailable { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVirtualMachineInstancePropertiesInternal)Property).HardwareProfileIsHighlyAvailable; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVirtualMachineInstancePropertiesInternal)Property).HardwareProfileIsHighlyAvailable = value ?? null; } /// Internal Acessors for InfrastructureProfile - Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IInfrastructureProfile Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVirtualMachineInstanceInternal.InfrastructureProfile { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVirtualMachineInstancePropertiesInternal)Property).InfrastructureProfile; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVirtualMachineInstancePropertiesInternal)Property).InfrastructureProfile = value; } + Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IInfrastructureProfile Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVirtualMachineInstanceInternal.InfrastructureProfile { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVirtualMachineInstancePropertiesInternal)Property).InfrastructureProfile; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVirtualMachineInstancePropertiesInternal)Property).InfrastructureProfile = value ?? null /* model class */; } /// Internal Acessors for InfrastructureProfileCheckpoint - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVirtualMachineInstanceInternal.InfrastructureProfileCheckpoint { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVirtualMachineInstancePropertiesInternal)Property).InfrastructureProfileCheckpoint; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVirtualMachineInstancePropertiesInternal)Property).InfrastructureProfileCheckpoint = value; } + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVirtualMachineInstanceInternal.InfrastructureProfileCheckpoint { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVirtualMachineInstancePropertiesInternal)Property).InfrastructureProfileCheckpoint; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVirtualMachineInstancePropertiesInternal)Property).InfrastructureProfileCheckpoint = value ?? null /* arrayOf */; } /// Internal Acessors for InfrastructureProfileLastRestoredVMCheckpoint - Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ICheckpoint Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVirtualMachineInstanceInternal.InfrastructureProfileLastRestoredVMCheckpoint { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVirtualMachineInstancePropertiesInternal)Property).InfrastructureProfileLastRestoredVMCheckpoint; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVirtualMachineInstancePropertiesInternal)Property).InfrastructureProfileLastRestoredVMCheckpoint = value; } + Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ICheckpoint Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVirtualMachineInstanceInternal.InfrastructureProfileLastRestoredVMCheckpoint { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVirtualMachineInstancePropertiesInternal)Property).InfrastructureProfileLastRestoredVMCheckpoint; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVirtualMachineInstancePropertiesInternal)Property).InfrastructureProfileLastRestoredVMCheckpoint = value ?? null /* model class */; } /// Internal Acessors for LastRestoredVMCheckpointDescription - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVirtualMachineInstanceInternal.LastRestoredVMCheckpointDescription { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVirtualMachineInstancePropertiesInternal)Property).LastRestoredVMCheckpointDescription; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVirtualMachineInstancePropertiesInternal)Property).LastRestoredVMCheckpointDescription = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVirtualMachineInstanceInternal.LastRestoredVMCheckpointDescription { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVirtualMachineInstancePropertiesInternal)Property).LastRestoredVMCheckpointDescription; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVirtualMachineInstancePropertiesInternal)Property).LastRestoredVMCheckpointDescription = value ?? null; } /// Internal Acessors for LastRestoredVMCheckpointId - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVirtualMachineInstanceInternal.LastRestoredVMCheckpointId { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVirtualMachineInstancePropertiesInternal)Property).LastRestoredVMCheckpointId; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVirtualMachineInstancePropertiesInternal)Property).LastRestoredVMCheckpointId = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVirtualMachineInstanceInternal.LastRestoredVMCheckpointId { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVirtualMachineInstancePropertiesInternal)Property).LastRestoredVMCheckpointId; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVirtualMachineInstancePropertiesInternal)Property).LastRestoredVMCheckpointId = value ?? null; } /// Internal Acessors for LastRestoredVMCheckpointName - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVirtualMachineInstanceInternal.LastRestoredVMCheckpointName { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVirtualMachineInstancePropertiesInternal)Property).LastRestoredVMCheckpointName; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVirtualMachineInstancePropertiesInternal)Property).LastRestoredVMCheckpointName = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVirtualMachineInstanceInternal.LastRestoredVMCheckpointName { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVirtualMachineInstancePropertiesInternal)Property).LastRestoredVMCheckpointName; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVirtualMachineInstancePropertiesInternal)Property).LastRestoredVMCheckpointName = value ?? null; } /// Internal Acessors for LastRestoredVMCheckpointParentCheckpointId - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVirtualMachineInstanceInternal.LastRestoredVMCheckpointParentCheckpointId { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVirtualMachineInstancePropertiesInternal)Property).LastRestoredVMCheckpointParentCheckpointId; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVirtualMachineInstancePropertiesInternal)Property).LastRestoredVMCheckpointParentCheckpointId = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVirtualMachineInstanceInternal.LastRestoredVMCheckpointParentCheckpointId { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVirtualMachineInstancePropertiesInternal)Property).LastRestoredVMCheckpointParentCheckpointId; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVirtualMachineInstancePropertiesInternal)Property).LastRestoredVMCheckpointParentCheckpointId = value ?? null; } /// Internal Acessors for NetworkProfile - Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.INetworkProfile Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVirtualMachineInstanceInternal.NetworkProfile { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVirtualMachineInstancePropertiesInternal)Property).NetworkProfile; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVirtualMachineInstancePropertiesInternal)Property).NetworkProfile = value; } + Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.INetworkProfile Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVirtualMachineInstanceInternal.NetworkProfile { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVirtualMachineInstancePropertiesInternal)Property).NetworkProfile; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVirtualMachineInstancePropertiesInternal)Property).NetworkProfile = value ?? null /* model class */; } /// Internal Acessors for OSProfile - Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IOSProfileForVminstance Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVirtualMachineInstanceInternal.OSProfile { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVirtualMachineInstancePropertiesInternal)Property).OSProfile; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVirtualMachineInstancePropertiesInternal)Property).OSProfile = value; } + Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IOSProfileForVminstance Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVirtualMachineInstanceInternal.OSProfile { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVirtualMachineInstancePropertiesInternal)Property).OSProfile; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVirtualMachineInstancePropertiesInternal)Property).OSProfile = value ?? null /* model class */; } /// Internal Acessors for OSProfileOssku - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVirtualMachineInstanceInternal.OSProfileOssku { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVirtualMachineInstancePropertiesInternal)Property).OSProfileOssku; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVirtualMachineInstancePropertiesInternal)Property).OSProfileOssku = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVirtualMachineInstanceInternal.OSProfileOssku { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVirtualMachineInstancePropertiesInternal)Property).OSProfileOssku; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVirtualMachineInstancePropertiesInternal)Property).OSProfileOssku = value ?? null; } /// Internal Acessors for OSProfileOstype - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVirtualMachineInstanceInternal.OSProfileOstype { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVirtualMachineInstancePropertiesInternal)Property).OSProfileOstype; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVirtualMachineInstancePropertiesInternal)Property).OSProfileOstype = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVirtualMachineInstanceInternal.OSProfileOstype { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVirtualMachineInstancePropertiesInternal)Property).OSProfileOstype; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVirtualMachineInstancePropertiesInternal)Property).OSProfileOstype = value ?? null; } /// Internal Acessors for OSProfileOsversion - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVirtualMachineInstanceInternal.OSProfileOsversion { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVirtualMachineInstancePropertiesInternal)Property).OSProfileOsversion; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVirtualMachineInstancePropertiesInternal)Property).OSProfileOsversion = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVirtualMachineInstanceInternal.OSProfileOsversion { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVirtualMachineInstancePropertiesInternal)Property).OSProfileOsversion; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVirtualMachineInstancePropertiesInternal)Property).OSProfileOsversion = value ?? null; } /// Internal Acessors for PowerState - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVirtualMachineInstanceInternal.PowerState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVirtualMachineInstancePropertiesInternal)Property).PowerState; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVirtualMachineInstancePropertiesInternal)Property).PowerState = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVirtualMachineInstanceInternal.PowerState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVirtualMachineInstancePropertiesInternal)Property).PowerState; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVirtualMachineInstancePropertiesInternal)Property).PowerState = value ?? null; } /// Internal Acessors for Property Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVirtualMachineInstanceProperties Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVirtualMachineInstanceInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.VirtualMachineInstanceProperties()); set { {_property = value;} } } /// Internal Acessors for ProvisioningState - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVirtualMachineInstanceInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVirtualMachineInstancePropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVirtualMachineInstancePropertiesInternal)Property).ProvisioningState = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVirtualMachineInstanceInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVirtualMachineInstancePropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVirtualMachineInstancePropertiesInternal)Property).ProvisioningState = value ?? null; } /// Internal Acessors for StorageProfile - Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IStorageProfile Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVirtualMachineInstanceInternal.StorageProfile { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVirtualMachineInstancePropertiesInternal)Property).StorageProfile; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVirtualMachineInstancePropertiesInternal)Property).StorageProfile = value; } + Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IStorageProfile Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVirtualMachineInstanceInternal.StorageProfile { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVirtualMachineInstancePropertiesInternal)Property).StorageProfile; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVirtualMachineInstancePropertiesInternal)Property).StorageProfile = value ?? null /* model class */; } /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Origin(Microsoft.Azure.PowerShell.Cmdlets.ScVmm.PropertyOrigin.Inherited)] diff --git a/generated/ScVmm/ScVmm.Autorest/generated/api/Models/VirtualMachineInstanceProperties.cs b/generated/ScVmm/ScVmm.Autorest/generated/api/Models/VirtualMachineInstanceProperties.cs index 3eb62878fbf7..ab831c916690 100644 --- a/generated/ScVmm/ScVmm.Autorest/generated/api/Models/VirtualMachineInstanceProperties.cs +++ b/generated/ScVmm/ScVmm.Autorest/generated/api/Models/VirtualMachineInstanceProperties.cs @@ -124,28 +124,28 @@ public partial class VirtualMachineInstanceProperties : Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IHardwareProfile Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVirtualMachineInstancePropertiesInternal.HardwareProfile { get => (this._hardwareProfile = this._hardwareProfile ?? new Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.HardwareProfile()); set { {_hardwareProfile = value;} } } /// Internal Acessors for HardwareProfileIsHighlyAvailable - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVirtualMachineInstancePropertiesInternal.HardwareProfileIsHighlyAvailable { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IHardwareProfileInternal)HardwareProfile).IsHighlyAvailable; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IHardwareProfileInternal)HardwareProfile).IsHighlyAvailable = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVirtualMachineInstancePropertiesInternal.HardwareProfileIsHighlyAvailable { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IHardwareProfileInternal)HardwareProfile).IsHighlyAvailable; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IHardwareProfileInternal)HardwareProfile).IsHighlyAvailable = value ?? null; } /// Internal Acessors for InfrastructureProfile Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IInfrastructureProfile Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVirtualMachineInstancePropertiesInternal.InfrastructureProfile { get => (this._infrastructureProfile = this._infrastructureProfile ?? new Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.InfrastructureProfile()); set { {_infrastructureProfile = value;} } } /// Internal Acessors for InfrastructureProfileCheckpoint - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVirtualMachineInstancePropertiesInternal.InfrastructureProfileCheckpoint { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IInfrastructureProfileInternal)InfrastructureProfile).Checkpoint; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IInfrastructureProfileInternal)InfrastructureProfile).Checkpoint = value; } + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVirtualMachineInstancePropertiesInternal.InfrastructureProfileCheckpoint { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IInfrastructureProfileInternal)InfrastructureProfile).Checkpoint; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IInfrastructureProfileInternal)InfrastructureProfile).Checkpoint = value ?? null /* arrayOf */; } /// Internal Acessors for InfrastructureProfileLastRestoredVMCheckpoint - Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ICheckpoint Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVirtualMachineInstancePropertiesInternal.InfrastructureProfileLastRestoredVMCheckpoint { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IInfrastructureProfileInternal)InfrastructureProfile).LastRestoredVMCheckpoint; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IInfrastructureProfileInternal)InfrastructureProfile).LastRestoredVMCheckpoint = value; } + Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ICheckpoint Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVirtualMachineInstancePropertiesInternal.InfrastructureProfileLastRestoredVMCheckpoint { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IInfrastructureProfileInternal)InfrastructureProfile).LastRestoredVMCheckpoint; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IInfrastructureProfileInternal)InfrastructureProfile).LastRestoredVMCheckpoint = value ?? null /* model class */; } /// Internal Acessors for LastRestoredVMCheckpointDescription - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVirtualMachineInstancePropertiesInternal.LastRestoredVMCheckpointDescription { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IInfrastructureProfileInternal)InfrastructureProfile).LastRestoredVMCheckpointDescription; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IInfrastructureProfileInternal)InfrastructureProfile).LastRestoredVMCheckpointDescription = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVirtualMachineInstancePropertiesInternal.LastRestoredVMCheckpointDescription { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IInfrastructureProfileInternal)InfrastructureProfile).LastRestoredVMCheckpointDescription; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IInfrastructureProfileInternal)InfrastructureProfile).LastRestoredVMCheckpointDescription = value ?? null; } /// Internal Acessors for LastRestoredVMCheckpointId - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVirtualMachineInstancePropertiesInternal.LastRestoredVMCheckpointId { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IInfrastructureProfileInternal)InfrastructureProfile).LastRestoredVMCheckpointId; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IInfrastructureProfileInternal)InfrastructureProfile).LastRestoredVMCheckpointId = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVirtualMachineInstancePropertiesInternal.LastRestoredVMCheckpointId { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IInfrastructureProfileInternal)InfrastructureProfile).LastRestoredVMCheckpointId; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IInfrastructureProfileInternal)InfrastructureProfile).LastRestoredVMCheckpointId = value ?? null; } /// Internal Acessors for LastRestoredVMCheckpointName - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVirtualMachineInstancePropertiesInternal.LastRestoredVMCheckpointName { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IInfrastructureProfileInternal)InfrastructureProfile).LastRestoredVMCheckpointName; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IInfrastructureProfileInternal)InfrastructureProfile).LastRestoredVMCheckpointName = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVirtualMachineInstancePropertiesInternal.LastRestoredVMCheckpointName { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IInfrastructureProfileInternal)InfrastructureProfile).LastRestoredVMCheckpointName; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IInfrastructureProfileInternal)InfrastructureProfile).LastRestoredVMCheckpointName = value ?? null; } /// Internal Acessors for LastRestoredVMCheckpointParentCheckpointId - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVirtualMachineInstancePropertiesInternal.LastRestoredVMCheckpointParentCheckpointId { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IInfrastructureProfileInternal)InfrastructureProfile).LastRestoredVMCheckpointParentCheckpointId; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IInfrastructureProfileInternal)InfrastructureProfile).LastRestoredVMCheckpointParentCheckpointId = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVirtualMachineInstancePropertiesInternal.LastRestoredVMCheckpointParentCheckpointId { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IInfrastructureProfileInternal)InfrastructureProfile).LastRestoredVMCheckpointParentCheckpointId; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IInfrastructureProfileInternal)InfrastructureProfile).LastRestoredVMCheckpointParentCheckpointId = value ?? null; } /// Internal Acessors for NetworkProfile Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.INetworkProfile Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVirtualMachineInstancePropertiesInternal.NetworkProfile { get => (this._networkProfile = this._networkProfile ?? new Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.NetworkProfile()); set { {_networkProfile = value;} } } @@ -154,13 +154,13 @@ public partial class VirtualMachineInstanceProperties : Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IOSProfileForVminstance Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVirtualMachineInstancePropertiesInternal.OSProfile { get => (this._oSProfile = this._oSProfile ?? new Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.OSProfileForVminstance()); set { {_oSProfile = value;} } } /// Internal Acessors for OSProfileOssku - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVirtualMachineInstancePropertiesInternal.OSProfileOssku { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IOSProfileForVminstanceInternal)OSProfile).OSSku; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IOSProfileForVminstanceInternal)OSProfile).OSSku = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVirtualMachineInstancePropertiesInternal.OSProfileOssku { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IOSProfileForVminstanceInternal)OSProfile).OSSku; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IOSProfileForVminstanceInternal)OSProfile).OSSku = value ?? null; } /// Internal Acessors for OSProfileOstype - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVirtualMachineInstancePropertiesInternal.OSProfileOstype { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IOSProfileForVminstanceInternal)OSProfile).OSType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IOSProfileForVminstanceInternal)OSProfile).OSType = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVirtualMachineInstancePropertiesInternal.OSProfileOstype { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IOSProfileForVminstanceInternal)OSProfile).OSType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IOSProfileForVminstanceInternal)OSProfile).OSType = value ?? null; } /// Internal Acessors for OSProfileOsversion - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVirtualMachineInstancePropertiesInternal.OSProfileOsversion { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IOSProfileForVminstanceInternal)OSProfile).OSVersion; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IOSProfileForVminstanceInternal)OSProfile).OSVersion = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVirtualMachineInstancePropertiesInternal.OSProfileOsversion { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IOSProfileForVminstanceInternal)OSProfile).OSVersion; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IOSProfileForVminstanceInternal)OSProfile).OSVersion = value ?? null; } /// Internal Acessors for PowerState string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVirtualMachineInstancePropertiesInternal.PowerState { get => this._powerState; set { {_powerState = value;} } } diff --git a/generated/ScVmm/ScVmm.Autorest/generated/api/Models/VirtualMachineInstanceUpdate.cs b/generated/ScVmm/ScVmm.Autorest/generated/api/Models/VirtualMachineInstanceUpdate.cs index f54b82abda03..5d8e82fcbb0f 100644 --- a/generated/ScVmm/ScVmm.Autorest/generated/api/Models/VirtualMachineInstanceUpdate.cs +++ b/generated/ScVmm/ScVmm.Autorest/generated/api/Models/VirtualMachineInstanceUpdate.cs @@ -48,19 +48,19 @@ public partial class VirtualMachineInstanceUpdate : public string InfrastructureProfileCheckpointType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVirtualMachineInstanceUpdatePropertiesInternal)Property).InfrastructureProfileCheckpointType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVirtualMachineInstanceUpdatePropertiesInternal)Property).InfrastructureProfileCheckpointType = value ?? null; } /// Internal Acessors for HardwareProfile - Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IHardwareProfileUpdate Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVirtualMachineInstanceUpdateInternal.HardwareProfile { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVirtualMachineInstanceUpdatePropertiesInternal)Property).HardwareProfile; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVirtualMachineInstanceUpdatePropertiesInternal)Property).HardwareProfile = value; } + Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IHardwareProfileUpdate Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVirtualMachineInstanceUpdateInternal.HardwareProfile { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVirtualMachineInstanceUpdatePropertiesInternal)Property).HardwareProfile; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVirtualMachineInstanceUpdatePropertiesInternal)Property).HardwareProfile = value ?? null /* model class */; } /// Internal Acessors for InfrastructureProfile - Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IInfrastructureProfileUpdate Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVirtualMachineInstanceUpdateInternal.InfrastructureProfile { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVirtualMachineInstanceUpdatePropertiesInternal)Property).InfrastructureProfile; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVirtualMachineInstanceUpdatePropertiesInternal)Property).InfrastructureProfile = value; } + Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IInfrastructureProfileUpdate Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVirtualMachineInstanceUpdateInternal.InfrastructureProfile { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVirtualMachineInstanceUpdatePropertiesInternal)Property).InfrastructureProfile; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVirtualMachineInstanceUpdatePropertiesInternal)Property).InfrastructureProfile = value ?? null /* model class */; } /// Internal Acessors for NetworkProfile - Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.INetworkProfileUpdate Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVirtualMachineInstanceUpdateInternal.NetworkProfile { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVirtualMachineInstanceUpdatePropertiesInternal)Property).NetworkProfile; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVirtualMachineInstanceUpdatePropertiesInternal)Property).NetworkProfile = value; } + Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.INetworkProfileUpdate Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVirtualMachineInstanceUpdateInternal.NetworkProfile { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVirtualMachineInstanceUpdatePropertiesInternal)Property).NetworkProfile; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVirtualMachineInstanceUpdatePropertiesInternal)Property).NetworkProfile = value ?? null /* model class */; } /// Internal Acessors for Property Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVirtualMachineInstanceUpdateProperties Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVirtualMachineInstanceUpdateInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.VirtualMachineInstanceUpdateProperties()); set { {_property = value;} } } /// Internal Acessors for StorageProfile - Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IStorageProfileUpdate Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVirtualMachineInstanceUpdateInternal.StorageProfile { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVirtualMachineInstanceUpdatePropertiesInternal)Property).StorageProfile; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVirtualMachineInstanceUpdatePropertiesInternal)Property).StorageProfile = value; } + Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IStorageProfileUpdate Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVirtualMachineInstanceUpdateInternal.StorageProfile { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVirtualMachineInstanceUpdatePropertiesInternal)Property).StorageProfile; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVirtualMachineInstanceUpdatePropertiesInternal)Property).StorageProfile = value ?? null /* model class */; } /// /// Gets or sets the list of network interfaces associated with the virtual machine. diff --git a/generated/ScVmm/ScVmm.Autorest/generated/api/Models/VirtualMachineInventoryItem.cs b/generated/ScVmm/ScVmm.Autorest/generated/api/Models/VirtualMachineInventoryItem.cs index f677a022bf66..bf14edfc37a1 100644 --- a/generated/ScVmm/ScVmm.Autorest/generated/api/Models/VirtualMachineInventoryItem.cs +++ b/generated/ScVmm/ScVmm.Autorest/generated/api/Models/VirtualMachineInventoryItem.cs @@ -69,16 +69,16 @@ public partial class VirtualMachineInventoryItem : public string ManagedResourceId { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IInventoryItemPropertiesInternal)__inventoryItemProperties).ManagedResourceId; } /// Internal Acessors for InventoryItemName - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IInventoryItemPropertiesInternal.InventoryItemName { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IInventoryItemPropertiesInternal)__inventoryItemProperties).InventoryItemName; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IInventoryItemPropertiesInternal)__inventoryItemProperties).InventoryItemName = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IInventoryItemPropertiesInternal.InventoryItemName { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IInventoryItemPropertiesInternal)__inventoryItemProperties).InventoryItemName; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IInventoryItemPropertiesInternal)__inventoryItemProperties).InventoryItemName = value ?? null; } /// Internal Acessors for ManagedResourceId - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IInventoryItemPropertiesInternal.ManagedResourceId { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IInventoryItemPropertiesInternal)__inventoryItemProperties).ManagedResourceId; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IInventoryItemPropertiesInternal)__inventoryItemProperties).ManagedResourceId = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IInventoryItemPropertiesInternal.ManagedResourceId { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IInventoryItemPropertiesInternal)__inventoryItemProperties).ManagedResourceId; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IInventoryItemPropertiesInternal)__inventoryItemProperties).ManagedResourceId = value ?? null; } /// Internal Acessors for ProvisioningState - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IInventoryItemPropertiesInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IInventoryItemPropertiesInternal)__inventoryItemProperties).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IInventoryItemPropertiesInternal)__inventoryItemProperties).ProvisioningState = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IInventoryItemPropertiesInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IInventoryItemPropertiesInternal)__inventoryItemProperties).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IInventoryItemPropertiesInternal)__inventoryItemProperties).ProvisioningState = value ?? null; } /// Internal Acessors for Uuid - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IInventoryItemPropertiesInternal.Uuid { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IInventoryItemPropertiesInternal)__inventoryItemProperties).Uuid; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IInventoryItemPropertiesInternal)__inventoryItemProperties).Uuid = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IInventoryItemPropertiesInternal.Uuid { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IInventoryItemPropertiesInternal)__inventoryItemProperties).Uuid; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IInventoryItemPropertiesInternal)__inventoryItemProperties).Uuid = value ?? null; } /// Internal Acessors for BiosGuid string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVirtualMachineInventoryItemInternal.BiosGuid { get => this._biosGuid; set { {_biosGuid = value;} } } diff --git a/generated/ScVmm/ScVmm.Autorest/generated/api/Models/VirtualMachineTemplate.cs b/generated/ScVmm/ScVmm.Autorest/generated/api/Models/VirtualMachineTemplate.cs index 0a9ca03430d2..d10a91c0388e 100644 --- a/generated/ScVmm/ScVmm.Autorest/generated/api/Models/VirtualMachineTemplate.cs +++ b/generated/ScVmm/ScVmm.Autorest/generated/api/Models/VirtualMachineTemplate.cs @@ -111,85 +111,85 @@ public partial class VirtualMachineTemplate : public int? MemoryMb { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVirtualMachineTemplatePropertiesInternal)Property).MemoryMb; } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__trackedResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__trackedResource).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__trackedResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__trackedResource).Id = value ?? null; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__trackedResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__trackedResource).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__trackedResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__trackedResource).Name = value ?? null; } /// Internal Acessors for SystemData - Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__trackedResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__trackedResource).SystemData = value; } + Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__trackedResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__trackedResource).SystemData = value ?? null /* model class */; } /// Internal Acessors for SystemDataCreatedAt - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__trackedResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__trackedResource).SystemDataCreatedAt = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__trackedResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__trackedResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } /// Internal Acessors for SystemDataCreatedBy - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__trackedResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__trackedResource).SystemDataCreatedBy = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__trackedResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__trackedResource).SystemDataCreatedBy = value ?? null; } /// Internal Acessors for SystemDataCreatedByType - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__trackedResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__trackedResource).SystemDataCreatedByType = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__trackedResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__trackedResource).SystemDataCreatedByType = value ?? null; } /// Internal Acessors for SystemDataLastModifiedAt - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedAt = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } /// Internal Acessors for SystemDataLastModifiedBy - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedBy = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedBy = value ?? null; } /// Internal Acessors for SystemDataLastModifiedByType - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedByType = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedByType = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__trackedResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__trackedResource).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__trackedResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__trackedResource).Type = value ?? null; } /// Internal Acessors for ComputerName - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVirtualMachineTemplateInternal.ComputerName { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVirtualMachineTemplatePropertiesInternal)Property).ComputerName; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVirtualMachineTemplatePropertiesInternal)Property).ComputerName = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVirtualMachineTemplateInternal.ComputerName { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVirtualMachineTemplatePropertiesInternal)Property).ComputerName; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVirtualMachineTemplatePropertiesInternal)Property).ComputerName = value ?? null; } /// Internal Acessors for CpuCount - int? Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVirtualMachineTemplateInternal.CpuCount { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVirtualMachineTemplatePropertiesInternal)Property).CpuCount; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVirtualMachineTemplatePropertiesInternal)Property).CpuCount = value; } + int? Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVirtualMachineTemplateInternal.CpuCount { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVirtualMachineTemplatePropertiesInternal)Property).CpuCount; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVirtualMachineTemplatePropertiesInternal)Property).CpuCount = value ?? default(int); } /// Internal Acessors for Disk - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVirtualMachineTemplateInternal.Disk { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVirtualMachineTemplatePropertiesInternal)Property).Disk; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVirtualMachineTemplatePropertiesInternal)Property).Disk = value; } + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVirtualMachineTemplateInternal.Disk { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVirtualMachineTemplatePropertiesInternal)Property).Disk; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVirtualMachineTemplatePropertiesInternal)Property).Disk = value ?? null /* arrayOf */; } /// Internal Acessors for DynamicMemoryEnabled - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVirtualMachineTemplateInternal.DynamicMemoryEnabled { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVirtualMachineTemplatePropertiesInternal)Property).DynamicMemoryEnabled; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVirtualMachineTemplatePropertiesInternal)Property).DynamicMemoryEnabled = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVirtualMachineTemplateInternal.DynamicMemoryEnabled { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVirtualMachineTemplatePropertiesInternal)Property).DynamicMemoryEnabled; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVirtualMachineTemplatePropertiesInternal)Property).DynamicMemoryEnabled = value ?? null; } /// Internal Acessors for DynamicMemoryMaxMb - int? Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVirtualMachineTemplateInternal.DynamicMemoryMaxMb { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVirtualMachineTemplatePropertiesInternal)Property).DynamicMemoryMaxMb; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVirtualMachineTemplatePropertiesInternal)Property).DynamicMemoryMaxMb = value; } + int? Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVirtualMachineTemplateInternal.DynamicMemoryMaxMb { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVirtualMachineTemplatePropertiesInternal)Property).DynamicMemoryMaxMb; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVirtualMachineTemplatePropertiesInternal)Property).DynamicMemoryMaxMb = value ?? default(int); } /// Internal Acessors for DynamicMemoryMinMb - int? Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVirtualMachineTemplateInternal.DynamicMemoryMinMb { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVirtualMachineTemplatePropertiesInternal)Property).DynamicMemoryMinMb; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVirtualMachineTemplatePropertiesInternal)Property).DynamicMemoryMinMb = value; } + int? Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVirtualMachineTemplateInternal.DynamicMemoryMinMb { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVirtualMachineTemplatePropertiesInternal)Property).DynamicMemoryMinMb; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVirtualMachineTemplatePropertiesInternal)Property).DynamicMemoryMinMb = value ?? default(int); } /// Internal Acessors for ExtendedLocation Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IExtendedLocation Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVirtualMachineTemplateInternal.ExtendedLocation { get => (this._extendedLocation = this._extendedLocation ?? new Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ExtendedLocation()); set { {_extendedLocation = value;} } } /// Internal Acessors for Generation - int? Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVirtualMachineTemplateInternal.Generation { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVirtualMachineTemplatePropertiesInternal)Property).Generation; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVirtualMachineTemplatePropertiesInternal)Property).Generation = value; } + int? Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVirtualMachineTemplateInternal.Generation { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVirtualMachineTemplatePropertiesInternal)Property).Generation; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVirtualMachineTemplatePropertiesInternal)Property).Generation = value ?? default(int); } /// Internal Acessors for IsCustomizable - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVirtualMachineTemplateInternal.IsCustomizable { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVirtualMachineTemplatePropertiesInternal)Property).IsCustomizable; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVirtualMachineTemplatePropertiesInternal)Property).IsCustomizable = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVirtualMachineTemplateInternal.IsCustomizable { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVirtualMachineTemplatePropertiesInternal)Property).IsCustomizable; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVirtualMachineTemplatePropertiesInternal)Property).IsCustomizable = value ?? null; } /// Internal Acessors for IsHighlyAvailable - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVirtualMachineTemplateInternal.IsHighlyAvailable { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVirtualMachineTemplatePropertiesInternal)Property).IsHighlyAvailable; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVirtualMachineTemplatePropertiesInternal)Property).IsHighlyAvailable = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVirtualMachineTemplateInternal.IsHighlyAvailable { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVirtualMachineTemplatePropertiesInternal)Property).IsHighlyAvailable; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVirtualMachineTemplatePropertiesInternal)Property).IsHighlyAvailable = value ?? null; } /// Internal Acessors for LimitCpuForMigration - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVirtualMachineTemplateInternal.LimitCpuForMigration { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVirtualMachineTemplatePropertiesInternal)Property).LimitCpuForMigration; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVirtualMachineTemplatePropertiesInternal)Property).LimitCpuForMigration = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVirtualMachineTemplateInternal.LimitCpuForMigration { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVirtualMachineTemplatePropertiesInternal)Property).LimitCpuForMigration; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVirtualMachineTemplatePropertiesInternal)Property).LimitCpuForMigration = value ?? null; } /// Internal Acessors for MemoryMb - int? Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVirtualMachineTemplateInternal.MemoryMb { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVirtualMachineTemplatePropertiesInternal)Property).MemoryMb; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVirtualMachineTemplatePropertiesInternal)Property).MemoryMb = value; } + int? Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVirtualMachineTemplateInternal.MemoryMb { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVirtualMachineTemplatePropertiesInternal)Property).MemoryMb; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVirtualMachineTemplatePropertiesInternal)Property).MemoryMb = value ?? default(int); } /// Internal Acessors for NetworkInterface - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVirtualMachineTemplateInternal.NetworkInterface { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVirtualMachineTemplatePropertiesInternal)Property).NetworkInterface; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVirtualMachineTemplatePropertiesInternal)Property).NetworkInterface = value; } + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVirtualMachineTemplateInternal.NetworkInterface { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVirtualMachineTemplatePropertiesInternal)Property).NetworkInterface; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVirtualMachineTemplatePropertiesInternal)Property).NetworkInterface = value ?? null /* arrayOf */; } /// Internal Acessors for OSName - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVirtualMachineTemplateInternal.OSName { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVirtualMachineTemplatePropertiesInternal)Property).OSName; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVirtualMachineTemplatePropertiesInternal)Property).OSName = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVirtualMachineTemplateInternal.OSName { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVirtualMachineTemplatePropertiesInternal)Property).OSName; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVirtualMachineTemplatePropertiesInternal)Property).OSName = value ?? null; } /// Internal Acessors for OSType - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVirtualMachineTemplateInternal.OSType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVirtualMachineTemplatePropertiesInternal)Property).OSType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVirtualMachineTemplatePropertiesInternal)Property).OSType = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVirtualMachineTemplateInternal.OSType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVirtualMachineTemplatePropertiesInternal)Property).OSType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVirtualMachineTemplatePropertiesInternal)Property).OSType = value ?? null; } /// Internal Acessors for Property Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVirtualMachineTemplateProperties Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVirtualMachineTemplateInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.VirtualMachineTemplateProperties()); set { {_property = value;} } } /// Internal Acessors for ProvisioningState - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVirtualMachineTemplateInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVirtualMachineTemplatePropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVirtualMachineTemplatePropertiesInternal)Property).ProvisioningState = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVirtualMachineTemplateInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVirtualMachineTemplatePropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVirtualMachineTemplatePropertiesInternal)Property).ProvisioningState = value ?? null; } /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Origin(Microsoft.Azure.PowerShell.Cmdlets.ScVmm.PropertyOrigin.Inherited)] diff --git a/generated/ScVmm/ScVmm.Autorest/generated/api/Models/VirtualMachineTemplateInventoryItem.cs b/generated/ScVmm/ScVmm.Autorest/generated/api/Models/VirtualMachineTemplateInventoryItem.cs index 240437e53838..3d86ad4cae07 100644 --- a/generated/ScVmm/ScVmm.Autorest/generated/api/Models/VirtualMachineTemplateInventoryItem.cs +++ b/generated/ScVmm/ScVmm.Autorest/generated/api/Models/VirtualMachineTemplateInventoryItem.cs @@ -47,16 +47,16 @@ public partial class VirtualMachineTemplateInventoryItem : public int? MemoryMb { get => this._memoryMb; } /// Internal Acessors for InventoryItemName - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IInventoryItemPropertiesInternal.InventoryItemName { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IInventoryItemPropertiesInternal)__inventoryItemProperties).InventoryItemName; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IInventoryItemPropertiesInternal)__inventoryItemProperties).InventoryItemName = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IInventoryItemPropertiesInternal.InventoryItemName { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IInventoryItemPropertiesInternal)__inventoryItemProperties).InventoryItemName; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IInventoryItemPropertiesInternal)__inventoryItemProperties).InventoryItemName = value ?? null; } /// Internal Acessors for ManagedResourceId - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IInventoryItemPropertiesInternal.ManagedResourceId { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IInventoryItemPropertiesInternal)__inventoryItemProperties).ManagedResourceId; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IInventoryItemPropertiesInternal)__inventoryItemProperties).ManagedResourceId = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IInventoryItemPropertiesInternal.ManagedResourceId { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IInventoryItemPropertiesInternal)__inventoryItemProperties).ManagedResourceId; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IInventoryItemPropertiesInternal)__inventoryItemProperties).ManagedResourceId = value ?? null; } /// Internal Acessors for ProvisioningState - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IInventoryItemPropertiesInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IInventoryItemPropertiesInternal)__inventoryItemProperties).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IInventoryItemPropertiesInternal)__inventoryItemProperties).ProvisioningState = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IInventoryItemPropertiesInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IInventoryItemPropertiesInternal)__inventoryItemProperties).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IInventoryItemPropertiesInternal)__inventoryItemProperties).ProvisioningState = value ?? null; } /// Internal Acessors for Uuid - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IInventoryItemPropertiesInternal.Uuid { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IInventoryItemPropertiesInternal)__inventoryItemProperties).Uuid; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IInventoryItemPropertiesInternal)__inventoryItemProperties).Uuid = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IInventoryItemPropertiesInternal.Uuid { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IInventoryItemPropertiesInternal)__inventoryItemProperties).Uuid; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IInventoryItemPropertiesInternal)__inventoryItemProperties).Uuid = value ?? null; } /// Internal Acessors for CpuCount int? Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVirtualMachineTemplateInventoryItemInternal.CpuCount { get => this._cpuCount; set { {_cpuCount = value;} } } diff --git a/generated/ScVmm/ScVmm.Autorest/generated/api/Models/VirtualNetwork.cs b/generated/ScVmm/ScVmm.Autorest/generated/api/Models/VirtualNetwork.cs index 31df0c20003c..e483ffbeab79 100644 --- a/generated/ScVmm/ScVmm.Autorest/generated/api/Models/VirtualNetwork.cs +++ b/generated/ScVmm/ScVmm.Autorest/generated/api/Models/VirtualNetwork.cs @@ -54,46 +54,46 @@ public partial class VirtualNetwork : public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ITrackedResourceInternal)__trackedResource).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ITrackedResourceInternal)__trackedResource).Location = value ?? null; } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__trackedResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__trackedResource).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__trackedResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__trackedResource).Id = value ?? null; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__trackedResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__trackedResource).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__trackedResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__trackedResource).Name = value ?? null; } /// Internal Acessors for SystemData - Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__trackedResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__trackedResource).SystemData = value; } + Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__trackedResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__trackedResource).SystemData = value ?? null /* model class */; } /// Internal Acessors for SystemDataCreatedAt - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__trackedResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__trackedResource).SystemDataCreatedAt = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__trackedResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__trackedResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } /// Internal Acessors for SystemDataCreatedBy - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__trackedResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__trackedResource).SystemDataCreatedBy = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__trackedResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__trackedResource).SystemDataCreatedBy = value ?? null; } /// Internal Acessors for SystemDataCreatedByType - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__trackedResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__trackedResource).SystemDataCreatedByType = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__trackedResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__trackedResource).SystemDataCreatedByType = value ?? null; } /// Internal Acessors for SystemDataLastModifiedAt - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedAt = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } /// Internal Acessors for SystemDataLastModifiedBy - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedBy = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedBy = value ?? null; } /// Internal Acessors for SystemDataLastModifiedByType - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedByType = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedByType = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__trackedResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__trackedResource).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__trackedResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__trackedResource).Type = value ?? null; } /// Internal Acessors for ExtendedLocation Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IExtendedLocation Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVirtualNetworkInternal.ExtendedLocation { get => (this._extendedLocation = this._extendedLocation ?? new Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ExtendedLocation()); set { {_extendedLocation = value;} } } /// Internal Acessors for NetworkName - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVirtualNetworkInternal.NetworkName { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVirtualNetworkPropertiesInternal)Property).NetworkName; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVirtualNetworkPropertiesInternal)Property).NetworkName = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVirtualNetworkInternal.NetworkName { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVirtualNetworkPropertiesInternal)Property).NetworkName; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVirtualNetworkPropertiesInternal)Property).NetworkName = value ?? null; } /// Internal Acessors for Property Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVirtualNetworkProperties Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVirtualNetworkInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.VirtualNetworkProperties()); set { {_property = value;} } } /// Internal Acessors for ProvisioningState - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVirtualNetworkInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVirtualNetworkPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVirtualNetworkPropertiesInternal)Property).ProvisioningState = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVirtualNetworkInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVirtualNetworkPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVirtualNetworkPropertiesInternal)Property).ProvisioningState = value ?? null; } /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Origin(Microsoft.Azure.PowerShell.Cmdlets.ScVmm.PropertyOrigin.Inherited)] diff --git a/generated/ScVmm/ScVmm.Autorest/generated/api/Models/VirtualNetworkInventoryItem.cs b/generated/ScVmm/ScVmm.Autorest/generated/api/Models/VirtualNetworkInventoryItem.cs index 07d8d948c28f..3572d01f32b0 100644 --- a/generated/ScVmm/ScVmm.Autorest/generated/api/Models/VirtualNetworkInventoryItem.cs +++ b/generated/ScVmm/ScVmm.Autorest/generated/api/Models/VirtualNetworkInventoryItem.cs @@ -33,16 +33,16 @@ public partial class VirtualNetworkInventoryItem : public string ManagedResourceId { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IInventoryItemPropertiesInternal)__inventoryItemProperties).ManagedResourceId; } /// Internal Acessors for InventoryItemName - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IInventoryItemPropertiesInternal.InventoryItemName { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IInventoryItemPropertiesInternal)__inventoryItemProperties).InventoryItemName; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IInventoryItemPropertiesInternal)__inventoryItemProperties).InventoryItemName = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IInventoryItemPropertiesInternal.InventoryItemName { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IInventoryItemPropertiesInternal)__inventoryItemProperties).InventoryItemName; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IInventoryItemPropertiesInternal)__inventoryItemProperties).InventoryItemName = value ?? null; } /// Internal Acessors for ManagedResourceId - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IInventoryItemPropertiesInternal.ManagedResourceId { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IInventoryItemPropertiesInternal)__inventoryItemProperties).ManagedResourceId; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IInventoryItemPropertiesInternal)__inventoryItemProperties).ManagedResourceId = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IInventoryItemPropertiesInternal.ManagedResourceId { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IInventoryItemPropertiesInternal)__inventoryItemProperties).ManagedResourceId; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IInventoryItemPropertiesInternal)__inventoryItemProperties).ManagedResourceId = value ?? null; } /// Internal Acessors for ProvisioningState - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IInventoryItemPropertiesInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IInventoryItemPropertiesInternal)__inventoryItemProperties).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IInventoryItemPropertiesInternal)__inventoryItemProperties).ProvisioningState = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IInventoryItemPropertiesInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IInventoryItemPropertiesInternal)__inventoryItemProperties).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IInventoryItemPropertiesInternal)__inventoryItemProperties).ProvisioningState = value ?? null; } /// Internal Acessors for Uuid - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IInventoryItemPropertiesInternal.Uuid { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IInventoryItemPropertiesInternal)__inventoryItemProperties).Uuid; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IInventoryItemPropertiesInternal)__inventoryItemProperties).Uuid = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IInventoryItemPropertiesInternal.Uuid { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IInventoryItemPropertiesInternal)__inventoryItemProperties).Uuid; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IInventoryItemPropertiesInternal)__inventoryItemProperties).Uuid = value ?? null; } /// Provisioning state of the resource. [Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Origin(Microsoft.Azure.PowerShell.Cmdlets.ScVmm.PropertyOrigin.Inherited)] diff --git a/generated/ScVmm/ScVmm.Autorest/generated/api/Models/VmmServer.cs b/generated/ScVmm/ScVmm.Autorest/generated/api/Models/VmmServer.cs index 36b8932f3ddd..2cbcba9ff055 100644 --- a/generated/ScVmm/ScVmm.Autorest/generated/api/Models/VmmServer.cs +++ b/generated/ScVmm/ScVmm.Autorest/generated/api/Models/VmmServer.cs @@ -74,43 +74,43 @@ public partial class VmmServer : public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ITrackedResourceInternal)__trackedResource).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ITrackedResourceInternal)__trackedResource).Location = value ?? null; } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__trackedResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__trackedResource).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__trackedResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__trackedResource).Id = value ?? null; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__trackedResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__trackedResource).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__trackedResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__trackedResource).Name = value ?? null; } /// Internal Acessors for SystemData - Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__trackedResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__trackedResource).SystemData = value; } + Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__trackedResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__trackedResource).SystemData = value ?? null /* model class */; } /// Internal Acessors for SystemDataCreatedAt - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__trackedResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__trackedResource).SystemDataCreatedAt = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__trackedResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__trackedResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } /// Internal Acessors for SystemDataCreatedBy - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__trackedResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__trackedResource).SystemDataCreatedBy = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__trackedResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__trackedResource).SystemDataCreatedBy = value ?? null; } /// Internal Acessors for SystemDataCreatedByType - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__trackedResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__trackedResource).SystemDataCreatedByType = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__trackedResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__trackedResource).SystemDataCreatedByType = value ?? null; } /// Internal Acessors for SystemDataLastModifiedAt - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedAt = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } /// Internal Acessors for SystemDataLastModifiedBy - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedBy = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedBy = value ?? null; } /// Internal Acessors for SystemDataLastModifiedByType - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedByType = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedByType = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__trackedResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__trackedResource).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__trackedResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IResourceInternal)__trackedResource).Type = value ?? null; } /// Internal Acessors for ConnectionStatus - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVmmServerInternal.ConnectionStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVmmServerPropertiesInternal)Property).ConnectionStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVmmServerPropertiesInternal)Property).ConnectionStatus = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVmmServerInternal.ConnectionStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVmmServerPropertiesInternal)Property).ConnectionStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVmmServerPropertiesInternal)Property).ConnectionStatus = value ?? null; } /// Internal Acessors for Credentials - Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVmmCredential Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVmmServerInternal.Credentials { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVmmServerPropertiesInternal)Property).Credentials; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVmmServerPropertiesInternal)Property).Credentials = value; } + Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVmmCredential Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVmmServerInternal.Credentials { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVmmServerPropertiesInternal)Property).Credentials; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVmmServerPropertiesInternal)Property).Credentials = value ?? null /* model class */; } /// Internal Acessors for ErrorMessage - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVmmServerInternal.ErrorMessage { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVmmServerPropertiesInternal)Property).ErrorMessage; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVmmServerPropertiesInternal)Property).ErrorMessage = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVmmServerInternal.ErrorMessage { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVmmServerPropertiesInternal)Property).ErrorMessage; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVmmServerPropertiesInternal)Property).ErrorMessage = value ?? null; } /// Internal Acessors for ExtendedLocation Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IExtendedLocation Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVmmServerInternal.ExtendedLocation { get => (this._extendedLocation = this._extendedLocation ?? new Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ExtendedLocation()); set { {_extendedLocation = value;} } } @@ -119,13 +119,13 @@ public partial class VmmServer : Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVmmServerProperties Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVmmServerInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.VmmServerProperties()); set { {_property = value;} } } /// Internal Acessors for ProvisioningState - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVmmServerInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVmmServerPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVmmServerPropertiesInternal)Property).ProvisioningState = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVmmServerInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVmmServerPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVmmServerPropertiesInternal)Property).ProvisioningState = value ?? null; } /// Internal Acessors for Uuid - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVmmServerInternal.Uuid { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVmmServerPropertiesInternal)Property).Uuid; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVmmServerPropertiesInternal)Property).Uuid = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVmmServerInternal.Uuid { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVmmServerPropertiesInternal)Property).Uuid; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVmmServerPropertiesInternal)Property).Uuid = value ?? null; } /// Internal Acessors for Version - string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVmmServerInternal.Version { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVmmServerPropertiesInternal)Property).Version; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVmmServerPropertiesInternal)Property).Version = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVmmServerInternal.Version { get => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVmmServerPropertiesInternal)Property).Version; set => ((Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVmmServerPropertiesInternal)Property).Version = value ?? null; } /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Origin(Microsoft.Azure.PowerShell.Cmdlets.ScVmm.PropertyOrigin.Inherited)] diff --git a/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/NewAzScVmmAvailabilitySet_CreateExpanded.cs b/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/NewAzScVmmAvailabilitySet_CreateExpanded.cs index 9a836558b986..35009180ba0d 100644 --- a/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/NewAzScVmmAvailabilitySet_CreateExpanded.cs +++ b/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/NewAzScVmmAvailabilitySet_CreateExpanded.cs @@ -41,18 +41,9 @@ public partial class NewAzScVmmAvailabilitySet_CreateExpanded : global::System.M /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - /// The AvailabilitySets resource definition. private Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IAvailabilitySet _resourceBody = new Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.AvailabilitySet(); - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] [global::Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ScVmm.ParameterCategory.Runtime)] @@ -318,11 +309,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Cmdlets.NewAzScVmmAvailabilitySe /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -638,24 +624,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IAvailabilitySet var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/NewAzScVmmAvailabilitySet_CreateViaIdentityExpanded.cs b/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/NewAzScVmmAvailabilitySet_CreateViaIdentityExpanded.cs index 4b4a4c06263b..b2b360a8795a 100644 --- a/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/NewAzScVmmAvailabilitySet_CreateViaIdentityExpanded.cs +++ b/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/NewAzScVmmAvailabilitySet_CreateViaIdentityExpanded.cs @@ -41,18 +41,9 @@ public partial class NewAzScVmmAvailabilitySet_CreateViaIdentityExpanded : globa /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - /// The AvailabilitySets resource definition. private Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IAvailabilitySet _resourceBody = new Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.AvailabilitySet(); - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] [global::Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ScVmm.ParameterCategory.Runtime)] @@ -275,11 +266,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Cmdlets.NewAzScVmmAvailabilitySe /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -615,24 +601,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IAvailabilitySet var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/NewAzScVmmAvailabilitySet_CreateViaJsonFilePath.cs b/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/NewAzScVmmAvailabilitySet_CreateViaJsonFilePath.cs index cca920dfa7bb..8925d0cf5ff1 100644 --- a/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/NewAzScVmmAvailabilitySet_CreateViaJsonFilePath.cs +++ b/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/NewAzScVmmAvailabilitySet_CreateViaJsonFilePath.cs @@ -42,17 +42,8 @@ public partial class NewAzScVmmAvailabilitySet_CreateViaJsonFilePath : global::S /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - public global::System.String _jsonString; - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] [global::Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ScVmm.ParameterCategory.Runtime)] @@ -264,11 +255,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Cmdlets.NewAzScVmmAvailabilitySe /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -584,24 +570,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IAvailabilitySet var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/NewAzScVmmAvailabilitySet_CreateViaJsonString.cs b/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/NewAzScVmmAvailabilitySet_CreateViaJsonString.cs index 236a46890c71..fe310ba98111 100644 --- a/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/NewAzScVmmAvailabilitySet_CreateViaJsonString.cs +++ b/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/NewAzScVmmAvailabilitySet_CreateViaJsonString.cs @@ -42,15 +42,6 @@ public partial class NewAzScVmmAvailabilitySet_CreateViaJsonString : global::Sys /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] [global::Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ScVmm.ParameterCategory.Runtime)] @@ -262,11 +253,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Cmdlets.NewAzScVmmAvailabilitySe /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -582,24 +568,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IAvailabilitySet var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/NewAzScVmmCloud_CreateExpanded.cs b/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/NewAzScVmmCloud_CreateExpanded.cs index c2a95f6a2878..e1d30b136c23 100644 --- a/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/NewAzScVmmCloud_CreateExpanded.cs +++ b/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/NewAzScVmmCloud_CreateExpanded.cs @@ -41,18 +41,9 @@ public partial class NewAzScVmmCloud_CreateExpanded : global::System.Management. /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - /// The Clouds resource definition. private Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ICloud _resourceBody = new Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.Cloud(); - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] [global::Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ScVmm.ParameterCategory.Runtime)] @@ -329,11 +320,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Cmdlets.NewAzScVmmCloud_CreateEx /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -649,24 +635,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ICloud var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/NewAzScVmmCloud_CreateViaIdentityExpanded.cs b/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/NewAzScVmmCloud_CreateViaIdentityExpanded.cs index 9a9969a1f264..959dac29ed43 100644 --- a/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/NewAzScVmmCloud_CreateViaIdentityExpanded.cs +++ b/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/NewAzScVmmCloud_CreateViaIdentityExpanded.cs @@ -41,18 +41,9 @@ public partial class NewAzScVmmCloud_CreateViaIdentityExpanded : global::System. /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - /// The Clouds resource definition. private Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ICloud _resourceBody = new Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.Cloud(); - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] [global::Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ScVmm.ParameterCategory.Runtime)] @@ -286,11 +277,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Cmdlets.NewAzScVmmCloud_CreateVi /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -626,24 +612,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ICloud var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/NewAzScVmmCloud_CreateViaJsonFilePath.cs b/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/NewAzScVmmCloud_CreateViaJsonFilePath.cs index 93d532782f04..22eefa0f3915 100644 --- a/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/NewAzScVmmCloud_CreateViaJsonFilePath.cs +++ b/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/NewAzScVmmCloud_CreateViaJsonFilePath.cs @@ -42,17 +42,8 @@ public partial class NewAzScVmmCloud_CreateViaJsonFilePath : global::System.Mana /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - public global::System.String _jsonString; - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] [global::Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ScVmm.ParameterCategory.Runtime)] @@ -264,11 +255,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Cmdlets.NewAzScVmmCloud_CreateVi /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -584,24 +570,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ICloud var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/NewAzScVmmCloud_CreateViaJsonString.cs b/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/NewAzScVmmCloud_CreateViaJsonString.cs index eb7b6b951b32..84d705aa0318 100644 --- a/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/NewAzScVmmCloud_CreateViaJsonString.cs +++ b/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/NewAzScVmmCloud_CreateViaJsonString.cs @@ -42,15 +42,6 @@ public partial class NewAzScVmmCloud_CreateViaJsonString : global::System.Manage /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] [global::Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ScVmm.ParameterCategory.Runtime)] @@ -262,11 +253,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Cmdlets.NewAzScVmmCloud_CreateVi /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -582,24 +568,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ICloud var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/NewAzScVmmServer_CreateExpanded.cs b/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/NewAzScVmmServer_CreateExpanded.cs index 0cb6263e6822..2e30a21b3f42 100644 --- a/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/NewAzScVmmServer_CreateExpanded.cs +++ b/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/NewAzScVmmServer_CreateExpanded.cs @@ -41,18 +41,9 @@ public partial class NewAzScVmmServer_CreateExpanded : global::System.Management /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - /// The VmmServers resource definition. private Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVmmServer _resourceBody = new Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.VmmServer(); - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] [global::Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ScVmm.ParameterCategory.Runtime)] @@ -340,11 +331,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Cmdlets.NewAzScVmmServer_CreateE /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -660,24 +646,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVmmServer var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/NewAzScVmmServer_CreateViaIdentityExpanded.cs b/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/NewAzScVmmServer_CreateViaIdentityExpanded.cs index 36fe96249c70..52860c2b322d 100644 --- a/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/NewAzScVmmServer_CreateViaIdentityExpanded.cs +++ b/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/NewAzScVmmServer_CreateViaIdentityExpanded.cs @@ -41,18 +41,9 @@ public partial class NewAzScVmmServer_CreateViaIdentityExpanded : global::System /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - /// The VmmServers resource definition. private Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVmmServer _resourceBody = new Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.VmmServer(); - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] [global::Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ScVmm.ParameterCategory.Runtime)] @@ -297,11 +288,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Cmdlets.NewAzScVmmServer_CreateV /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -637,24 +623,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVmmServer var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/NewAzScVmmServer_CreateViaJsonFilePath.cs b/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/NewAzScVmmServer_CreateViaJsonFilePath.cs index 660ce06b016d..2fcd810cbcdd 100644 --- a/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/NewAzScVmmServer_CreateViaJsonFilePath.cs +++ b/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/NewAzScVmmServer_CreateViaJsonFilePath.cs @@ -42,17 +42,8 @@ public partial class NewAzScVmmServer_CreateViaJsonFilePath : global::System.Man /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - public global::System.String _jsonString; - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] [global::Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ScVmm.ParameterCategory.Runtime)] @@ -264,11 +255,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Cmdlets.NewAzScVmmServer_CreateV /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -584,24 +570,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVmmServer var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/NewAzScVmmServer_CreateViaJsonString.cs b/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/NewAzScVmmServer_CreateViaJsonString.cs index 3d86bb44f3ac..d17b3b86fd03 100644 --- a/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/NewAzScVmmServer_CreateViaJsonString.cs +++ b/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/NewAzScVmmServer_CreateViaJsonString.cs @@ -42,15 +42,6 @@ public partial class NewAzScVmmServer_CreateViaJsonString : global::System.Manag /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] [global::Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ScVmm.ParameterCategory.Runtime)] @@ -262,11 +253,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Cmdlets.NewAzScVmmServer_CreateV /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -582,24 +568,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVmmServer var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/NewAzScVmmVMCheckpoint_CreateExpanded.cs b/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/NewAzScVmmVMCheckpoint_CreateExpanded.cs index 9bdc0d9ca61c..ad2dc9f46283 100644 --- a/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/NewAzScVmmVMCheckpoint_CreateExpanded.cs +++ b/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/NewAzScVmmVMCheckpoint_CreateExpanded.cs @@ -44,15 +44,6 @@ public partial class NewAzScVmmVMCheckpoint_CreateExpanded : global::System.Mana /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] [global::Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ScVmm.ParameterCategory.Runtime)] @@ -242,11 +233,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Cmdlets.NewAzScVmmVMCheckpoint_C /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -558,7 +544,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/NewAzScVmmVMCheckpoint_CreateViaJsonFilePath.cs b/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/NewAzScVmmVMCheckpoint_CreateViaJsonFilePath.cs index fa9c3bbf922c..9d7c3b944f86 100644 --- a/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/NewAzScVmmVMCheckpoint_CreateViaJsonFilePath.cs +++ b/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/NewAzScVmmVMCheckpoint_CreateViaJsonFilePath.cs @@ -42,17 +42,8 @@ public partial class NewAzScVmmVMCheckpoint_CreateViaJsonFilePath : global::Syst /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - public global::System.String _jsonString; - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] [global::Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ScVmm.ParameterCategory.Runtime)] @@ -233,11 +224,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Cmdlets.NewAzScVmmVMCheckpoint_C /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -549,7 +535,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/NewAzScVmmVMCheckpoint_CreateViaJsonString.cs b/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/NewAzScVmmVMCheckpoint_CreateViaJsonString.cs index 0cbcd7f20d9f..af204e27b01d 100644 --- a/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/NewAzScVmmVMCheckpoint_CreateViaJsonString.cs +++ b/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/NewAzScVmmVMCheckpoint_CreateViaJsonString.cs @@ -42,15 +42,6 @@ public partial class NewAzScVmmVMCheckpoint_CreateViaJsonString : global::System /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] [global::Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ScVmm.ParameterCategory.Runtime)] @@ -231,11 +222,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Cmdlets.NewAzScVmmVMCheckpoint_C /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -547,7 +533,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/NewAzScVmmVMExtension_CreateExpanded.cs b/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/NewAzScVmmVMExtension_CreateExpanded.cs index 81f936aa221d..ef38940a6567 100644 --- a/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/NewAzScVmmVMExtension_CreateExpanded.cs +++ b/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/NewAzScVmmVMExtension_CreateExpanded.cs @@ -44,15 +44,6 @@ public partial class NewAzScVmmVMExtension_CreateExpanded : global::System.Manag /// Describes a Machine Extension. private Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachineExtension _extensionParametersBody = new Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.MachineExtension(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] [global::Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ScVmm.ParameterCategory.Runtime)] @@ -476,11 +467,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Cmdlets.NewAzScVmmVMExtension_Cr /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -796,24 +782,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachineExtension var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/NewAzScVmmVMExtension_CreateViaIdentityExpanded.cs b/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/NewAzScVmmVMExtension_CreateViaIdentityExpanded.cs index 238dcd515d75..f43bbb3a85ec 100644 --- a/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/NewAzScVmmVMExtension_CreateViaIdentityExpanded.cs +++ b/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/NewAzScVmmVMExtension_CreateViaIdentityExpanded.cs @@ -44,15 +44,6 @@ public partial class NewAzScVmmVMExtension_CreateViaIdentityExpanded : global::S /// Describes a Machine Extension. private Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachineExtension _extensionParametersBody = new Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.MachineExtension(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] [global::Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ScVmm.ParameterCategory.Runtime)] @@ -419,11 +410,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Cmdlets.NewAzScVmmVMExtension_Cr /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -763,24 +749,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachineExtension var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/NewAzScVmmVMExtension_CreateViaIdentityMachineExpanded.cs b/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/NewAzScVmmVMExtension_CreateViaIdentityMachineExpanded.cs index cd6f38bf71c0..b07e810181ce 100644 --- a/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/NewAzScVmmVMExtension_CreateViaIdentityMachineExpanded.cs +++ b/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/NewAzScVmmVMExtension_CreateViaIdentityMachineExpanded.cs @@ -44,15 +44,6 @@ public partial class NewAzScVmmVMExtension_CreateViaIdentityMachineExpanded : gl /// Describes a Machine Extension. private Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachineExtension _extensionParametersBody = new Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.MachineExtension(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] [global::Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ScVmm.ParameterCategory.Runtime)] @@ -434,11 +425,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Cmdlets.NewAzScVmmVMExtension_Cr /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -775,24 +761,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachineExtension var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/NewAzScVmmVMExtension_CreateViaJsonFilePath.cs b/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/NewAzScVmmVMExtension_CreateViaJsonFilePath.cs index 2c80e98a9969..2787c825231a 100644 --- a/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/NewAzScVmmVMExtension_CreateViaJsonFilePath.cs +++ b/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/NewAzScVmmVMExtension_CreateViaJsonFilePath.cs @@ -42,17 +42,8 @@ public partial class NewAzScVmmVMExtension_CreateViaJsonFilePath : global::Syste /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - public global::System.String _jsonString; - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] [global::Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ScVmm.ParameterCategory.Runtime)] @@ -278,11 +269,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Cmdlets.NewAzScVmmVMExtension_Cr /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -598,24 +584,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachineExtension var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/NewAzScVmmVMExtension_CreateViaJsonString.cs b/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/NewAzScVmmVMExtension_CreateViaJsonString.cs index 642a85515cf4..f889ad9a85f2 100644 --- a/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/NewAzScVmmVMExtension_CreateViaJsonString.cs +++ b/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/NewAzScVmmVMExtension_CreateViaJsonString.cs @@ -42,15 +42,6 @@ public partial class NewAzScVmmVMExtension_CreateViaJsonString : global::System. /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] [global::Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ScVmm.ParameterCategory.Runtime)] @@ -276,11 +267,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Cmdlets.NewAzScVmmVMExtension_Cr /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -596,24 +582,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachineExtension var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/NewAzScVmmVMGuestAgent_CreateExpanded.cs b/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/NewAzScVmmVMGuestAgent_CreateExpanded.cs index e7dd2b642dd9..ff0b48f77926 100644 --- a/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/NewAzScVmmVMGuestAgent_CreateExpanded.cs +++ b/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/NewAzScVmmVMGuestAgent_CreateExpanded.cs @@ -41,18 +41,9 @@ public partial class NewAzScVmmVMGuestAgent_CreateExpanded : global::System.Mana /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - /// Defines the GuestAgent. private Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IGuestAgent _resourceBody = new Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.GuestAgent(); - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] [global::Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ScVmm.ParameterCategory.Runtime)] @@ -260,11 +251,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Cmdlets.NewAzScVmmVMGuestAgent_C /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -580,24 +566,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IGuestAgent var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/NewAzScVmmVMGuestAgent_CreateViaJsonFilePath.cs b/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/NewAzScVmmVMGuestAgent_CreateViaJsonFilePath.cs index 39d3f71cc1c6..a0ec3b35b37f 100644 --- a/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/NewAzScVmmVMGuestAgent_CreateViaJsonFilePath.cs +++ b/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/NewAzScVmmVMGuestAgent_CreateViaJsonFilePath.cs @@ -42,17 +42,8 @@ public partial class NewAzScVmmVMGuestAgent_CreateViaJsonFilePath : global::Syst /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - public global::System.String _jsonString; - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] [global::Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ScVmm.ParameterCategory.Runtime)] @@ -228,11 +219,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Cmdlets.NewAzScVmmVMGuestAgent_C /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -548,24 +534,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IGuestAgent var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/NewAzScVmmVMGuestAgent_CreateViaJsonString.cs b/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/NewAzScVmmVMGuestAgent_CreateViaJsonString.cs index f6c5f9fc63d4..436b470d1f45 100644 --- a/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/NewAzScVmmVMGuestAgent_CreateViaJsonString.cs +++ b/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/NewAzScVmmVMGuestAgent_CreateViaJsonString.cs @@ -42,15 +42,6 @@ public partial class NewAzScVmmVMGuestAgent_CreateViaJsonString : global::System /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] [global::Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ScVmm.ParameterCategory.Runtime)] @@ -226,11 +217,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Cmdlets.NewAzScVmmVMGuestAgent_C /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -546,24 +532,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IGuestAgent var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/NewAzScVmmVMTemplate_CreateExpanded.cs b/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/NewAzScVmmVMTemplate_CreateExpanded.cs index 1b9b723feaea..38fbd7952116 100644 --- a/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/NewAzScVmmVMTemplate_CreateExpanded.cs +++ b/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/NewAzScVmmVMTemplate_CreateExpanded.cs @@ -41,18 +41,9 @@ public partial class NewAzScVmmVMTemplate_CreateExpanded : global::System.Manage /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - /// The VirtualMachineTemplates resource definition. private Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVirtualMachineTemplate _resourceBody = new Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.VirtualMachineTemplate(); - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] [global::Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ScVmm.ParameterCategory.Runtime)] @@ -329,11 +320,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Cmdlets.NewAzScVmmVMTemplate_Cre /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -649,24 +635,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVirtualMachineTemplate var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/NewAzScVmmVMTemplate_CreateViaIdentityExpanded.cs b/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/NewAzScVmmVMTemplate_CreateViaIdentityExpanded.cs index c76c81a4ef21..89f893dbe5af 100644 --- a/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/NewAzScVmmVMTemplate_CreateViaIdentityExpanded.cs +++ b/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/NewAzScVmmVMTemplate_CreateViaIdentityExpanded.cs @@ -41,18 +41,9 @@ public partial class NewAzScVmmVMTemplate_CreateViaIdentityExpanded : global::Sy /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - /// The VirtualMachineTemplates resource definition. private Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVirtualMachineTemplate _resourceBody = new Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.VirtualMachineTemplate(); - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] [global::Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ScVmm.ParameterCategory.Runtime)] @@ -286,11 +277,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Cmdlets.NewAzScVmmVMTemplate_Cre /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -626,24 +612,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVirtualMachineTemplate var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/NewAzScVmmVMTemplate_CreateViaJsonFilePath.cs b/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/NewAzScVmmVMTemplate_CreateViaJsonFilePath.cs index 92da2cac1896..085d643b4f51 100644 --- a/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/NewAzScVmmVMTemplate_CreateViaJsonFilePath.cs +++ b/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/NewAzScVmmVMTemplate_CreateViaJsonFilePath.cs @@ -42,17 +42,8 @@ public partial class NewAzScVmmVMTemplate_CreateViaJsonFilePath : global::System /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - public global::System.String _jsonString; - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] [global::Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ScVmm.ParameterCategory.Runtime)] @@ -264,11 +255,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Cmdlets.NewAzScVmmVMTemplate_Cre /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -584,24 +570,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVirtualMachineTemplate var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/NewAzScVmmVMTemplate_CreateViaJsonString.cs b/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/NewAzScVmmVMTemplate_CreateViaJsonString.cs index 149f5544a374..0be20d0c9467 100644 --- a/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/NewAzScVmmVMTemplate_CreateViaJsonString.cs +++ b/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/NewAzScVmmVMTemplate_CreateViaJsonString.cs @@ -42,15 +42,6 @@ public partial class NewAzScVmmVMTemplate_CreateViaJsonString : global::System.M /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] [global::Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ScVmm.ParameterCategory.Runtime)] @@ -262,11 +253,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Cmdlets.NewAzScVmmVMTemplate_Cre /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -582,24 +568,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVirtualMachineTemplate var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/NewAzScVmmVM_CreateExpanded.cs b/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/NewAzScVmmVM_CreateExpanded.cs index 6b78da9d6121..19a65ca99ded 100644 --- a/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/NewAzScVmmVM_CreateExpanded.cs +++ b/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/NewAzScVmmVM_CreateExpanded.cs @@ -44,18 +44,9 @@ public partial class NewAzScVmmVM_CreateExpanded : global::System.Management.Aut /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - /// Define the virtualMachineInstance. private Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVirtualMachineInstance _resourceBody = new Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.VirtualMachineInstance(); - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] [global::Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ScVmm.ParameterCategory.Runtime)] @@ -469,11 +460,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Cmdlets.NewAzScVmmVM_CreateExpan /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -789,24 +775,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVirtualMachineInstance var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/NewAzScVmmVM_CreateViaJsonFilePath.cs b/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/NewAzScVmmVM_CreateViaJsonFilePath.cs index 3ca8d30e9138..d5492ea31b18 100644 --- a/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/NewAzScVmmVM_CreateViaJsonFilePath.cs +++ b/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/NewAzScVmmVM_CreateViaJsonFilePath.cs @@ -45,17 +45,8 @@ public partial class NewAzScVmmVM_CreateViaJsonFilePath : global::System.Managem /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - public global::System.String _jsonString; - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] [global::Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ScVmm.ParameterCategory.Runtime)] @@ -231,11 +222,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Cmdlets.NewAzScVmmVM_CreateViaJs /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -551,24 +537,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVirtualMachineInstance var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/NewAzScVmmVM_CreateViaJsonString.cs b/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/NewAzScVmmVM_CreateViaJsonString.cs index d63ebe7fbfc3..2c06eb0f2d88 100644 --- a/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/NewAzScVmmVM_CreateViaJsonString.cs +++ b/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/NewAzScVmmVM_CreateViaJsonString.cs @@ -45,15 +45,6 @@ public partial class NewAzScVmmVM_CreateViaJsonString : global::System.Managemen /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] [global::Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ScVmm.ParameterCategory.Runtime)] @@ -229,11 +220,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Cmdlets.NewAzScVmmVM_CreateViaJs /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -549,24 +535,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVirtualMachineInstance var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/NewAzScVmmVirtualNetwork_CreateExpanded.cs b/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/NewAzScVmmVirtualNetwork_CreateExpanded.cs index 80b951b5aabf..48fd47d3445d 100644 --- a/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/NewAzScVmmVirtualNetwork_CreateExpanded.cs +++ b/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/NewAzScVmmVirtualNetwork_CreateExpanded.cs @@ -41,18 +41,9 @@ public partial class NewAzScVmmVirtualNetwork_CreateExpanded : global::System.Ma /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - /// The VirtualNetworks resource definition. private Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVirtualNetwork _resourceBody = new Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.VirtualNetwork(); - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] [global::Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ScVmm.ParameterCategory.Runtime)] @@ -329,11 +320,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Cmdlets.NewAzScVmmVirtualNetwork /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -649,24 +635,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVirtualNetwork var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/NewAzScVmmVirtualNetwork_CreateViaIdentityExpanded.cs b/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/NewAzScVmmVirtualNetwork_CreateViaIdentityExpanded.cs index 425d46f71cb9..90a8aa0f16be 100644 --- a/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/NewAzScVmmVirtualNetwork_CreateViaIdentityExpanded.cs +++ b/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/NewAzScVmmVirtualNetwork_CreateViaIdentityExpanded.cs @@ -41,18 +41,9 @@ public partial class NewAzScVmmVirtualNetwork_CreateViaIdentityExpanded : global /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - /// The VirtualNetworks resource definition. private Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVirtualNetwork _resourceBody = new Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.VirtualNetwork(); - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] [global::Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ScVmm.ParameterCategory.Runtime)] @@ -286,11 +277,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Cmdlets.NewAzScVmmVirtualNetwork /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -626,24 +612,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVirtualNetwork var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/NewAzScVmmVirtualNetwork_CreateViaJsonFilePath.cs b/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/NewAzScVmmVirtualNetwork_CreateViaJsonFilePath.cs index a3f7bc78a786..36378fa99772 100644 --- a/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/NewAzScVmmVirtualNetwork_CreateViaJsonFilePath.cs +++ b/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/NewAzScVmmVirtualNetwork_CreateViaJsonFilePath.cs @@ -42,17 +42,8 @@ public partial class NewAzScVmmVirtualNetwork_CreateViaJsonFilePath : global::Sy /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - public global::System.String _jsonString; - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] [global::Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ScVmm.ParameterCategory.Runtime)] @@ -264,11 +255,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Cmdlets.NewAzScVmmVirtualNetwork /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -584,24 +570,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVirtualNetwork var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/NewAzScVmmVirtualNetwork_CreateViaJsonString.cs b/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/NewAzScVmmVirtualNetwork_CreateViaJsonString.cs index e73d45c8d600..ddfc307063b6 100644 --- a/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/NewAzScVmmVirtualNetwork_CreateViaJsonString.cs +++ b/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/NewAzScVmmVirtualNetwork_CreateViaJsonString.cs @@ -42,15 +42,6 @@ public partial class NewAzScVmmVirtualNetwork_CreateViaJsonString : global::Syst /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] [global::Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ScVmm.ParameterCategory.Runtime)] @@ -262,11 +253,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Cmdlets.NewAzScVmmVirtualNetwork /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -582,24 +568,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVirtualNetwork var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/RemoveAzScVmmAvailabilitySet_Delete.cs b/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/RemoveAzScVmmAvailabilitySet_Delete.cs index b598587a1887..f5c9ee088f8c 100644 --- a/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/RemoveAzScVmmAvailabilitySet_Delete.cs +++ b/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/RemoveAzScVmmAvailabilitySet_Delete.cs @@ -40,15 +40,6 @@ public partial class RemoveAzScVmmAvailabilitySet_Delete : global::System.Manage /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] [global::Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ScVmm.ParameterCategory.Runtime)] @@ -277,11 +268,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Cmdlets.RemoveAzScVmmAvailabilit /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -593,7 +579,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -617,7 +603,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/RemoveAzScVmmAvailabilitySet_DeleteViaIdentity.cs b/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/RemoveAzScVmmAvailabilitySet_DeleteViaIdentity.cs index 203e2278d881..c191e11d6afa 100644 --- a/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/RemoveAzScVmmAvailabilitySet_DeleteViaIdentity.cs +++ b/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/RemoveAzScVmmAvailabilitySet_DeleteViaIdentity.cs @@ -40,15 +40,6 @@ public partial class RemoveAzScVmmAvailabilitySet_DeleteViaIdentity : global::Sy /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] [global::Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ScVmm.ParameterCategory.Runtime)] @@ -234,11 +225,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Cmdlets.RemoveAzScVmmAvailabilit /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -570,7 +556,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -594,7 +580,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/RemoveAzScVmmCloud_Delete.cs b/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/RemoveAzScVmmCloud_Delete.cs index 5654e02b29de..f75acfb74f14 100644 --- a/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/RemoveAzScVmmCloud_Delete.cs +++ b/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/RemoveAzScVmmCloud_Delete.cs @@ -40,15 +40,6 @@ public partial class RemoveAzScVmmCloud_Delete : global::System.Management.Autom /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] [global::Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ScVmm.ParameterCategory.Runtime)] @@ -277,11 +268,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Cmdlets.RemoveAzScVmmCloud_Delet /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -593,7 +579,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -617,7 +603,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/RemoveAzScVmmCloud_DeleteViaIdentity.cs b/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/RemoveAzScVmmCloud_DeleteViaIdentity.cs index 0aa9b18886d6..03d62ec31d44 100644 --- a/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/RemoveAzScVmmCloud_DeleteViaIdentity.cs +++ b/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/RemoveAzScVmmCloud_DeleteViaIdentity.cs @@ -40,15 +40,6 @@ public partial class RemoveAzScVmmCloud_DeleteViaIdentity : global::System.Manag /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] [global::Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ScVmm.ParameterCategory.Runtime)] @@ -234,11 +225,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Cmdlets.RemoveAzScVmmCloud_Delet /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -570,7 +556,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -594,7 +580,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/RemoveAzScVmmMachine_Delete.cs b/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/RemoveAzScVmmMachine_Delete.cs index 0cd0f9dbc52a..409849a8dd06 100644 --- a/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/RemoveAzScVmmMachine_Delete.cs +++ b/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/RemoveAzScVmmMachine_Delete.cs @@ -496,7 +496,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -520,7 +520,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/RemoveAzScVmmMachine_DeleteViaIdentity.cs b/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/RemoveAzScVmmMachine_DeleteViaIdentity.cs index 5f793d183713..f2abf38ec477 100644 --- a/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/RemoveAzScVmmMachine_DeleteViaIdentity.cs +++ b/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/RemoveAzScVmmMachine_DeleteViaIdentity.cs @@ -476,7 +476,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -500,7 +500,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/RemoveAzScVmmServer_Delete.cs b/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/RemoveAzScVmmServer_Delete.cs index 5c0336ef003d..b8fa28d4aee4 100644 --- a/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/RemoveAzScVmmServer_Delete.cs +++ b/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/RemoveAzScVmmServer_Delete.cs @@ -40,15 +40,6 @@ public partial class RemoveAzScVmmServer_Delete : global::System.Management.Auto /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] [global::Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ScVmm.ParameterCategory.Runtime)] @@ -277,11 +268,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Cmdlets.RemoveAzScVmmServer_Dele /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -593,7 +579,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -617,7 +603,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/RemoveAzScVmmServer_DeleteViaIdentity.cs b/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/RemoveAzScVmmServer_DeleteViaIdentity.cs index e4e5a0163302..f2f60490d356 100644 --- a/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/RemoveAzScVmmServer_DeleteViaIdentity.cs +++ b/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/RemoveAzScVmmServer_DeleteViaIdentity.cs @@ -40,15 +40,6 @@ public partial class RemoveAzScVmmServer_DeleteViaIdentity : global::System.Mana /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] [global::Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ScVmm.ParameterCategory.Runtime)] @@ -234,11 +225,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Cmdlets.RemoveAzScVmmServer_Dele /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -570,7 +556,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -594,7 +580,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/RemoveAzScVmmVMCheckpoint_Delete.cs b/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/RemoveAzScVmmVMCheckpoint_Delete.cs index a6b1e52513d2..c28a6f46b1d0 100644 --- a/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/RemoveAzScVmmVMCheckpoint_Delete.cs +++ b/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/RemoveAzScVmmVMCheckpoint_Delete.cs @@ -41,15 +41,6 @@ public partial class RemoveAzScVmmVMCheckpoint_Delete : global::System.Managemen /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] [global::Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ScVmm.ParameterCategory.Runtime)] @@ -231,11 +222,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Cmdlets.RemoveAzScVmmVMCheckpoin /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -547,7 +533,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/RemoveAzScVmmVMCheckpoint_DeleteExpanded.cs b/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/RemoveAzScVmmVMCheckpoint_DeleteExpanded.cs index 425817af66e7..b6f7cc72ac87 100644 --- a/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/RemoveAzScVmmVMCheckpoint_DeleteExpanded.cs +++ b/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/RemoveAzScVmmVMCheckpoint_DeleteExpanded.cs @@ -44,15 +44,6 @@ public partial class RemoveAzScVmmVMCheckpoint_DeleteExpanded : global::System.M /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] [global::Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ScVmm.ParameterCategory.Runtime)] @@ -231,11 +222,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Cmdlets.RemoveAzScVmmVMCheckpoin /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -547,7 +533,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/RemoveAzScVmmVMCheckpoint_DeleteViaJsonFilePath.cs b/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/RemoveAzScVmmVMCheckpoint_DeleteViaJsonFilePath.cs index b992756850c9..10fbad097a9f 100644 --- a/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/RemoveAzScVmmVMCheckpoint_DeleteViaJsonFilePath.cs +++ b/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/RemoveAzScVmmVMCheckpoint_DeleteViaJsonFilePath.cs @@ -42,17 +42,8 @@ public partial class RemoveAzScVmmVMCheckpoint_DeleteViaJsonFilePath : global::S /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - public global::System.String _jsonString; - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] [global::Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ScVmm.ParameterCategory.Runtime)] @@ -233,11 +224,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Cmdlets.RemoveAzScVmmVMCheckpoin /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -549,7 +535,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/RemoveAzScVmmVMCheckpoint_DeleteViaJsonString.cs b/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/RemoveAzScVmmVMCheckpoint_DeleteViaJsonString.cs index 1e21c4964963..b176e14f6526 100644 --- a/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/RemoveAzScVmmVMCheckpoint_DeleteViaJsonString.cs +++ b/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/RemoveAzScVmmVMCheckpoint_DeleteViaJsonString.cs @@ -42,15 +42,6 @@ public partial class RemoveAzScVmmVMCheckpoint_DeleteViaJsonString : global::Sys /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] [global::Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ScVmm.ParameterCategory.Runtime)] @@ -231,11 +222,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Cmdlets.RemoveAzScVmmVMCheckpoin /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -547,7 +533,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/RemoveAzScVmmVMExtension_Delete.cs b/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/RemoveAzScVmmVMExtension_Delete.cs index 02a74c653c6e..db9737d47748 100644 --- a/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/RemoveAzScVmmVMExtension_Delete.cs +++ b/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/RemoveAzScVmmVMExtension_Delete.cs @@ -41,15 +41,6 @@ public partial class RemoveAzScVmmVMExtension_Delete : global::System.Management /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] [global::Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ScVmm.ParameterCategory.Runtime)] @@ -276,11 +267,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Cmdlets.RemoveAzScVmmVMExtension /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -592,7 +578,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -616,7 +602,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/RemoveAzScVmmVMExtension_DeleteViaIdentity.cs b/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/RemoveAzScVmmVMExtension_DeleteViaIdentity.cs index 6cb42903a07d..84fd4a16dbd6 100644 --- a/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/RemoveAzScVmmVMExtension_DeleteViaIdentity.cs +++ b/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/RemoveAzScVmmVMExtension_DeleteViaIdentity.cs @@ -41,15 +41,6 @@ public partial class RemoveAzScVmmVMExtension_DeleteViaIdentity : global::System /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] [global::Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ScVmm.ParameterCategory.Runtime)] @@ -219,11 +210,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Cmdlets.RemoveAzScVmmVMExtension /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -559,7 +545,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -583,7 +569,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/RemoveAzScVmmVMExtension_DeleteViaIdentityMachine.cs b/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/RemoveAzScVmmVMExtension_DeleteViaIdentityMachine.cs index ac58dfe86a6f..6f8285f0eb10 100644 --- a/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/RemoveAzScVmmVMExtension_DeleteViaIdentityMachine.cs +++ b/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/RemoveAzScVmmVMExtension_DeleteViaIdentityMachine.cs @@ -41,15 +41,6 @@ public partial class RemoveAzScVmmVMExtension_DeleteViaIdentityMachine : global: /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] [global::Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ScVmm.ParameterCategory.Runtime)] @@ -234,11 +225,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Cmdlets.RemoveAzScVmmVMExtension /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -571,7 +557,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -595,7 +581,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/RemoveAzScVmmVMTemplate_Delete.cs b/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/RemoveAzScVmmVMTemplate_Delete.cs index 6ade3b8fa7fd..f47e9f6d4261 100644 --- a/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/RemoveAzScVmmVMTemplate_Delete.cs +++ b/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/RemoveAzScVmmVMTemplate_Delete.cs @@ -40,15 +40,6 @@ public partial class RemoveAzScVmmVMTemplate_Delete : global::System.Management. /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] [global::Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ScVmm.ParameterCategory.Runtime)] @@ -277,11 +268,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Cmdlets.RemoveAzScVmmVMTemplate_ /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -593,7 +579,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -617,7 +603,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/RemoveAzScVmmVMTemplate_DeleteViaIdentity.cs b/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/RemoveAzScVmmVMTemplate_DeleteViaIdentity.cs index 819a8ea5989f..50a20ae524be 100644 --- a/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/RemoveAzScVmmVMTemplate_DeleteViaIdentity.cs +++ b/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/RemoveAzScVmmVMTemplate_DeleteViaIdentity.cs @@ -40,15 +40,6 @@ public partial class RemoveAzScVmmVMTemplate_DeleteViaIdentity : global::System. /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] [global::Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ScVmm.ParameterCategory.Runtime)] @@ -234,11 +225,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Cmdlets.RemoveAzScVmmVMTemplate_ /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -570,7 +556,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -594,7 +580,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/RemoveAzScVmmVM_Delete.cs b/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/RemoveAzScVmmVM_Delete.cs index 3db3a2046464..4cd36fc9f313 100644 --- a/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/RemoveAzScVmmVM_Delete.cs +++ b/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/RemoveAzScVmmVM_Delete.cs @@ -41,15 +41,6 @@ public partial class RemoveAzScVmmVM_Delete : global::System.Management.Automati /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] [global::Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ScVmm.ParameterCategory.Runtime)] @@ -258,11 +249,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Cmdlets.RemoveAzScVmmVM_Delete C /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -574,7 +560,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -598,7 +584,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/RemoveAzScVmmVirtualNetwork_Delete.cs b/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/RemoveAzScVmmVirtualNetwork_Delete.cs index 0f8b0369b742..110a5d3634b6 100644 --- a/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/RemoveAzScVmmVirtualNetwork_Delete.cs +++ b/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/RemoveAzScVmmVirtualNetwork_Delete.cs @@ -40,15 +40,6 @@ public partial class RemoveAzScVmmVirtualNetwork_Delete : global::System.Managem /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] [global::Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ScVmm.ParameterCategory.Runtime)] @@ -277,11 +268,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Cmdlets.RemoveAzScVmmVirtualNetw /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -593,7 +579,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -617,7 +603,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/RemoveAzScVmmVirtualNetwork_DeleteViaIdentity.cs b/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/RemoveAzScVmmVirtualNetwork_DeleteViaIdentity.cs index c7e432fa51b3..4a30e734617a 100644 --- a/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/RemoveAzScVmmVirtualNetwork_DeleteViaIdentity.cs +++ b/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/RemoveAzScVmmVirtualNetwork_DeleteViaIdentity.cs @@ -40,15 +40,6 @@ public partial class RemoveAzScVmmVirtualNetwork_DeleteViaIdentity : global::Sys /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] [global::Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ScVmm.ParameterCategory.Runtime)] @@ -234,11 +225,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Cmdlets.RemoveAzScVmmVirtualNetw /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -570,7 +556,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -594,7 +580,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/RestartAzScVmmVM_Restart.cs b/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/RestartAzScVmmVM_Restart.cs index e7e658743ffa..af9c3f696f07 100644 --- a/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/RestartAzScVmmVM_Restart.cs +++ b/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/RestartAzScVmmVM_Restart.cs @@ -41,15 +41,6 @@ public partial class RestartAzScVmmVM_Restart : global::System.Management.Automa /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] [global::Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ScVmm.ParameterCategory.Runtime)] @@ -216,11 +207,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Cmdlets.RestartAzScVmmVM_Restart /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -532,7 +518,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/RestoreAzScVmmVMCheckpoint_Restore.cs b/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/RestoreAzScVmmVMCheckpoint_Restore.cs index 2ef4e67600a5..861df8234def 100644 --- a/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/RestoreAzScVmmVMCheckpoint_Restore.cs +++ b/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/RestoreAzScVmmVMCheckpoint_Restore.cs @@ -41,15 +41,6 @@ public partial class RestoreAzScVmmVMCheckpoint_Restore : global::System.Managem /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] [global::Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ScVmm.ParameterCategory.Runtime)] @@ -231,11 +222,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Cmdlets.RestoreAzScVmmVMCheckpoi /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -547,7 +533,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/RestoreAzScVmmVMCheckpoint_RestoreExpanded.cs b/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/RestoreAzScVmmVMCheckpoint_RestoreExpanded.cs index 120b007ae50b..8af3fa0c2ba2 100644 --- a/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/RestoreAzScVmmVMCheckpoint_RestoreExpanded.cs +++ b/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/RestoreAzScVmmVMCheckpoint_RestoreExpanded.cs @@ -44,15 +44,6 @@ public partial class RestoreAzScVmmVMCheckpoint_RestoreExpanded : global::System /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] [global::Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ScVmm.ParameterCategory.Runtime)] @@ -231,11 +222,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Cmdlets.RestoreAzScVmmVMCheckpoi /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -547,7 +533,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/RestoreAzScVmmVMCheckpoint_RestoreViaJsonFilePath.cs b/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/RestoreAzScVmmVMCheckpoint_RestoreViaJsonFilePath.cs index ff7044435456..2aa079b0b222 100644 --- a/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/RestoreAzScVmmVMCheckpoint_RestoreViaJsonFilePath.cs +++ b/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/RestoreAzScVmmVMCheckpoint_RestoreViaJsonFilePath.cs @@ -42,17 +42,8 @@ public partial class RestoreAzScVmmVMCheckpoint_RestoreViaJsonFilePath : global: /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - public global::System.String _jsonString; - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] [global::Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ScVmm.ParameterCategory.Runtime)] @@ -233,11 +224,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Cmdlets.RestoreAzScVmmVMCheckpoi /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -549,7 +535,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/RestoreAzScVmmVMCheckpoint_RestoreViaJsonString.cs b/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/RestoreAzScVmmVMCheckpoint_RestoreViaJsonString.cs index f851f872e6a5..bb330553eeb4 100644 --- a/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/RestoreAzScVmmVMCheckpoint_RestoreViaJsonString.cs +++ b/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/RestoreAzScVmmVMCheckpoint_RestoreViaJsonString.cs @@ -42,15 +42,6 @@ public partial class RestoreAzScVmmVMCheckpoint_RestoreViaJsonString : global::S /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] [global::Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ScVmm.ParameterCategory.Runtime)] @@ -231,11 +222,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Cmdlets.RestoreAzScVmmVMCheckpoi /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -547,7 +533,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/StartAzScVmmVM_Start.cs b/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/StartAzScVmmVM_Start.cs index d545868c0f79..f74668a99207 100644 --- a/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/StartAzScVmmVM_Start.cs +++ b/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/StartAzScVmmVM_Start.cs @@ -41,15 +41,6 @@ public partial class StartAzScVmmVM_Start : global::System.Management.Automation /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] [global::Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ScVmm.ParameterCategory.Runtime)] @@ -216,11 +207,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Cmdlets.StartAzScVmmVM_Start Clo /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -532,7 +518,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/StopAzScVmmVM_Stop.cs b/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/StopAzScVmmVM_Stop.cs index 4a8d7bd19b70..3a137b651390 100644 --- a/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/StopAzScVmmVM_Stop.cs +++ b/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/StopAzScVmmVM_Stop.cs @@ -41,15 +41,6 @@ public partial class StopAzScVmmVM_Stop : global::System.Management.Automation.P /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] [global::Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ScVmm.ParameterCategory.Runtime)] @@ -231,11 +222,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Cmdlets.StopAzScVmmVM_Stop Clone /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -547,7 +533,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/StopAzScVmmVM_StopExpanded.cs b/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/StopAzScVmmVM_StopExpanded.cs index c34b197f4ca6..0e9008b69ef5 100644 --- a/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/StopAzScVmmVM_StopExpanded.cs +++ b/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/StopAzScVmmVM_StopExpanded.cs @@ -44,15 +44,6 @@ public partial class StopAzScVmmVM_StopExpanded : global::System.Management.Auto /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] [global::Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ScVmm.ParameterCategory.Runtime)] @@ -235,11 +226,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Cmdlets.StopAzScVmmVM_StopExpand /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -551,7 +537,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/StopAzScVmmVM_StopViaJsonFilePath.cs b/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/StopAzScVmmVM_StopViaJsonFilePath.cs index 66998b40fe77..a08297fad0e3 100644 --- a/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/StopAzScVmmVM_StopViaJsonFilePath.cs +++ b/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/StopAzScVmmVM_StopViaJsonFilePath.cs @@ -42,17 +42,8 @@ public partial class StopAzScVmmVM_StopViaJsonFilePath : global::System.Manageme /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - public global::System.String _jsonString; - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] [global::Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ScVmm.ParameterCategory.Runtime)] @@ -233,11 +224,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Cmdlets.StopAzScVmmVM_StopViaJso /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -549,7 +535,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/StopAzScVmmVM_StopViaJsonString.cs b/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/StopAzScVmmVM_StopViaJsonString.cs index 9ed8b518a273..80ff614e1f53 100644 --- a/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/StopAzScVmmVM_StopViaJsonString.cs +++ b/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/StopAzScVmmVM_StopViaJsonString.cs @@ -42,15 +42,6 @@ public partial class StopAzScVmmVM_StopViaJsonString : global::System.Management /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] [global::Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ScVmm.ParameterCategory.Runtime)] @@ -231,11 +222,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Cmdlets.StopAzScVmmVM_StopViaJso /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -547,7 +533,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/UpdateAzScVmmAvailabilitySet_UpdateExpanded.cs b/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/UpdateAzScVmmAvailabilitySet_UpdateExpanded.cs index ae23f5f2a32f..0927d8981148 100644 --- a/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/UpdateAzScVmmAvailabilitySet_UpdateExpanded.cs +++ b/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/UpdateAzScVmmAvailabilitySet_UpdateExpanded.cs @@ -40,18 +40,9 @@ public partial class UpdateAzScVmmAvailabilitySet_UpdateExpanded : global::Syste /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - /// The type used for updating tags in AvailabilitySet resources. private Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IAvailabilitySetTagsUpdate _propertiesBody = new Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.AvailabilitySetTagsUpdate(); - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] [global::Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ScVmm.ParameterCategory.Runtime)] @@ -262,11 +253,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Cmdlets.UpdateAzScVmmAvailabilit /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -582,24 +568,7 @@ public UpdateAzScVmmAvailabilitySet_UpdateExpanded() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IAvailabilitySet var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/UpdateAzScVmmAvailabilitySet_UpdateViaIdentityExpanded.cs b/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/UpdateAzScVmmAvailabilitySet_UpdateViaIdentityExpanded.cs index 7cbda8654f8f..11dc988f0cc2 100644 --- a/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/UpdateAzScVmmAvailabilitySet_UpdateViaIdentityExpanded.cs +++ b/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/UpdateAzScVmmAvailabilitySet_UpdateViaIdentityExpanded.cs @@ -40,18 +40,9 @@ public partial class UpdateAzScVmmAvailabilitySet_UpdateViaIdentityExpanded : gl /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - /// The type used for updating tags in AvailabilitySet resources. private Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IAvailabilitySetTagsUpdate _propertiesBody = new Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.AvailabilitySetTagsUpdate(); - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] [global::Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ScVmm.ParameterCategory.Runtime)] @@ -219,11 +210,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Cmdlets.UpdateAzScVmmAvailabilit /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -559,24 +545,7 @@ public UpdateAzScVmmAvailabilitySet_UpdateViaIdentityExpanded() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IAvailabilitySet var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/UpdateAzScVmmAvailabilitySet_UpdateViaJsonFilePath.cs b/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/UpdateAzScVmmAvailabilitySet_UpdateViaJsonFilePath.cs index 9a4b819f19e6..f35a644d6dc4 100644 --- a/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/UpdateAzScVmmAvailabilitySet_UpdateViaJsonFilePath.cs +++ b/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/UpdateAzScVmmAvailabilitySet_UpdateViaJsonFilePath.cs @@ -41,17 +41,8 @@ public partial class UpdateAzScVmmAvailabilitySet_UpdateViaJsonFilePath : global /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - public global::System.String _jsonString; - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] [global::Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ScVmm.ParameterCategory.Runtime)] @@ -263,11 +254,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Cmdlets.UpdateAzScVmmAvailabilit /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -583,24 +569,7 @@ public UpdateAzScVmmAvailabilitySet_UpdateViaJsonFilePath() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IAvailabilitySet var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/UpdateAzScVmmAvailabilitySet_UpdateViaJsonString.cs b/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/UpdateAzScVmmAvailabilitySet_UpdateViaJsonString.cs index da0cdf84009a..39e7d02d401d 100644 --- a/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/UpdateAzScVmmAvailabilitySet_UpdateViaJsonString.cs +++ b/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/UpdateAzScVmmAvailabilitySet_UpdateViaJsonString.cs @@ -41,15 +41,6 @@ public partial class UpdateAzScVmmAvailabilitySet_UpdateViaJsonString : global:: /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] [global::Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ScVmm.ParameterCategory.Runtime)] @@ -261,11 +252,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Cmdlets.UpdateAzScVmmAvailabilit /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -581,24 +567,7 @@ public UpdateAzScVmmAvailabilitySet_UpdateViaJsonString() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IAvailabilitySet var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/UpdateAzScVmmCloud_UpdateExpanded.cs b/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/UpdateAzScVmmCloud_UpdateExpanded.cs index 000386f64815..1689e68cfa17 100644 --- a/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/UpdateAzScVmmCloud_UpdateExpanded.cs +++ b/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/UpdateAzScVmmCloud_UpdateExpanded.cs @@ -40,18 +40,9 @@ public partial class UpdateAzScVmmCloud_UpdateExpanded : global::System.Manageme /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - /// The type used for updating tags in Cloud resources. private Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ICloudTagsUpdate _propertiesBody = new Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.CloudTagsUpdate(); - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] [global::Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ScVmm.ParameterCategory.Runtime)] @@ -262,11 +253,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Cmdlets.UpdateAzScVmmCloud_Updat /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -582,24 +568,7 @@ public UpdateAzScVmmCloud_UpdateExpanded() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ICloud var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/UpdateAzScVmmCloud_UpdateViaIdentityExpanded.cs b/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/UpdateAzScVmmCloud_UpdateViaIdentityExpanded.cs index 0a50ab1f4d80..c62bdfbfe079 100644 --- a/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/UpdateAzScVmmCloud_UpdateViaIdentityExpanded.cs +++ b/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/UpdateAzScVmmCloud_UpdateViaIdentityExpanded.cs @@ -40,18 +40,9 @@ public partial class UpdateAzScVmmCloud_UpdateViaIdentityExpanded : global::Syst /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - /// The type used for updating tags in Cloud resources. private Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ICloudTagsUpdate _propertiesBody = new Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.CloudTagsUpdate(); - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] [global::Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ScVmm.ParameterCategory.Runtime)] @@ -219,11 +210,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Cmdlets.UpdateAzScVmmCloud_Updat /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -559,24 +545,7 @@ public UpdateAzScVmmCloud_UpdateViaIdentityExpanded() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ICloud var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/UpdateAzScVmmCloud_UpdateViaJsonFilePath.cs b/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/UpdateAzScVmmCloud_UpdateViaJsonFilePath.cs index 44eca995a869..12bf7f851711 100644 --- a/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/UpdateAzScVmmCloud_UpdateViaJsonFilePath.cs +++ b/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/UpdateAzScVmmCloud_UpdateViaJsonFilePath.cs @@ -41,17 +41,8 @@ public partial class UpdateAzScVmmCloud_UpdateViaJsonFilePath : global::System.M /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - public global::System.String _jsonString; - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] [global::Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ScVmm.ParameterCategory.Runtime)] @@ -263,11 +254,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Cmdlets.UpdateAzScVmmCloud_Updat /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -583,24 +569,7 @@ public UpdateAzScVmmCloud_UpdateViaJsonFilePath() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ICloud var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/UpdateAzScVmmCloud_UpdateViaJsonString.cs b/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/UpdateAzScVmmCloud_UpdateViaJsonString.cs index 7639d11e38fb..6b2dc30b140b 100644 --- a/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/UpdateAzScVmmCloud_UpdateViaJsonString.cs +++ b/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/UpdateAzScVmmCloud_UpdateViaJsonString.cs @@ -41,15 +41,6 @@ public partial class UpdateAzScVmmCloud_UpdateViaJsonString : global::System.Man /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] [global::Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ScVmm.ParameterCategory.Runtime)] @@ -261,11 +252,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Cmdlets.UpdateAzScVmmCloud_Updat /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -581,24 +567,7 @@ public UpdateAzScVmmCloud_UpdateViaJsonString() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.ICloud var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/UpdateAzScVmmExtension_Upgrade.cs b/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/UpdateAzScVmmExtension_Upgrade.cs index 2d0bd7e60d3f..f534821381ac 100644 --- a/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/UpdateAzScVmmExtension_Upgrade.cs +++ b/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/UpdateAzScVmmExtension_Upgrade.cs @@ -41,15 +41,6 @@ public partial class UpdateAzScVmmExtension_Upgrade : global::System.Management. /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] [global::Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ScVmm.ParameterCategory.Runtime)] @@ -266,11 +257,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Cmdlets.UpdateAzScVmmExtension_U /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -582,7 +568,7 @@ public UpdateAzScVmmExtension_Upgrade() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/UpdateAzScVmmExtension_UpgradeExpanded.cs b/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/UpdateAzScVmmExtension_UpgradeExpanded.cs index 14c8a501447c..e131ce08b5bd 100644 --- a/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/UpdateAzScVmmExtension_UpgradeExpanded.cs +++ b/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/UpdateAzScVmmExtension_UpgradeExpanded.cs @@ -44,15 +44,6 @@ public partial class UpdateAzScVmmExtension_UpgradeExpanded : global::System.Man /// Describes the Machine Extension Upgrade Properties. private Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachineExtensionUpgrade _extensionUpgradeParametersBody = new Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.MachineExtensionUpgrade(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] [global::Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ScVmm.ParameterCategory.Runtime)] @@ -267,11 +258,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Cmdlets.UpdateAzScVmmExtension_U /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -583,7 +569,7 @@ public UpdateAzScVmmExtension_UpgradeExpanded() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/UpdateAzScVmmExtension_UpgradeViaIdentity.cs b/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/UpdateAzScVmmExtension_UpgradeViaIdentity.cs index 4ee6c7d5e597..0c40d7b14a11 100644 --- a/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/UpdateAzScVmmExtension_UpgradeViaIdentity.cs +++ b/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/UpdateAzScVmmExtension_UpgradeViaIdentity.cs @@ -41,15 +41,6 @@ public partial class UpdateAzScVmmExtension_UpgradeViaIdentity : global::System. /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] [global::Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ScVmm.ParameterCategory.Runtime)] @@ -224,11 +215,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Cmdlets.UpdateAzScVmmExtension_U /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -560,7 +546,7 @@ public UpdateAzScVmmExtension_UpgradeViaIdentity() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/UpdateAzScVmmExtension_UpgradeViaIdentityExpanded.cs b/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/UpdateAzScVmmExtension_UpgradeViaIdentityExpanded.cs index cc34d23a2edf..287ae284e9da 100644 --- a/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/UpdateAzScVmmExtension_UpgradeViaIdentityExpanded.cs +++ b/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/UpdateAzScVmmExtension_UpgradeViaIdentityExpanded.cs @@ -44,15 +44,6 @@ public partial class UpdateAzScVmmExtension_UpgradeViaIdentityExpanded : global: /// Describes the Machine Extension Upgrade Properties. private Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachineExtensionUpgrade _extensionUpgradeParametersBody = new Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.MachineExtensionUpgrade(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] [global::Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ScVmm.ParameterCategory.Runtime)] @@ -225,11 +216,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Cmdlets.UpdateAzScVmmExtension_U /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -561,7 +547,7 @@ public UpdateAzScVmmExtension_UpgradeViaIdentityExpanded() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/UpdateAzScVmmExtension_UpgradeViaJsonFilePath.cs b/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/UpdateAzScVmmExtension_UpgradeViaJsonFilePath.cs index b0b20a6127f6..6554990f8242 100644 --- a/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/UpdateAzScVmmExtension_UpgradeViaJsonFilePath.cs +++ b/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/UpdateAzScVmmExtension_UpgradeViaJsonFilePath.cs @@ -42,17 +42,8 @@ public partial class UpdateAzScVmmExtension_UpgradeViaJsonFilePath : global::Sys /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - public global::System.String _jsonString; - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] [global::Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ScVmm.ParameterCategory.Runtime)] @@ -268,11 +259,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Cmdlets.UpdateAzScVmmExtension_U /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -584,7 +570,7 @@ public UpdateAzScVmmExtension_UpgradeViaJsonFilePath() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/UpdateAzScVmmExtension_UpgradeViaJsonString.cs b/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/UpdateAzScVmmExtension_UpgradeViaJsonString.cs index 70f8058659cf..e39263a35a95 100644 --- a/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/UpdateAzScVmmExtension_UpgradeViaJsonString.cs +++ b/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/UpdateAzScVmmExtension_UpgradeViaJsonString.cs @@ -42,15 +42,6 @@ public partial class UpdateAzScVmmExtension_UpgradeViaJsonString : global::Syste /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] [global::Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ScVmm.ParameterCategory.Runtime)] @@ -266,11 +257,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Cmdlets.UpdateAzScVmmExtension_U /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -582,7 +568,7 @@ public UpdateAzScVmmExtension_UpgradeViaJsonString() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/UpdateAzScVmmServer_UpdateExpanded.cs b/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/UpdateAzScVmmServer_UpdateExpanded.cs index f8188b40cccc..f0f51167d72e 100644 --- a/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/UpdateAzScVmmServer_UpdateExpanded.cs +++ b/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/UpdateAzScVmmServer_UpdateExpanded.cs @@ -40,18 +40,9 @@ public partial class UpdateAzScVmmServer_UpdateExpanded : global::System.Managem /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - /// The type used for updating tags in VmmServer resources. private Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVmmServerTagsUpdate _propertiesBody = new Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.VmmServerTagsUpdate(); - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] [global::Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ScVmm.ParameterCategory.Runtime)] @@ -262,11 +253,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Cmdlets.UpdateAzScVmmServer_Upda /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -582,24 +568,7 @@ public UpdateAzScVmmServer_UpdateExpanded() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVmmServer var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/UpdateAzScVmmServer_UpdateViaIdentityExpanded.cs b/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/UpdateAzScVmmServer_UpdateViaIdentityExpanded.cs index 46d34e341623..ec22ea9743c4 100644 --- a/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/UpdateAzScVmmServer_UpdateViaIdentityExpanded.cs +++ b/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/UpdateAzScVmmServer_UpdateViaIdentityExpanded.cs @@ -40,18 +40,9 @@ public partial class UpdateAzScVmmServer_UpdateViaIdentityExpanded : global::Sys /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - /// The type used for updating tags in VmmServer resources. private Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVmmServerTagsUpdate _propertiesBody = new Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.VmmServerTagsUpdate(); - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] [global::Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ScVmm.ParameterCategory.Runtime)] @@ -219,11 +210,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Cmdlets.UpdateAzScVmmServer_Upda /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -559,24 +545,7 @@ public UpdateAzScVmmServer_UpdateViaIdentityExpanded() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVmmServer var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/UpdateAzScVmmServer_UpdateViaJsonFilePath.cs b/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/UpdateAzScVmmServer_UpdateViaJsonFilePath.cs index 7541723f4466..73d72beb6bf6 100644 --- a/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/UpdateAzScVmmServer_UpdateViaJsonFilePath.cs +++ b/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/UpdateAzScVmmServer_UpdateViaJsonFilePath.cs @@ -41,17 +41,8 @@ public partial class UpdateAzScVmmServer_UpdateViaJsonFilePath : global::System. /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - public global::System.String _jsonString; - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] [global::Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ScVmm.ParameterCategory.Runtime)] @@ -263,11 +254,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Cmdlets.UpdateAzScVmmServer_Upda /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -583,24 +569,7 @@ public UpdateAzScVmmServer_UpdateViaJsonFilePath() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVmmServer var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/UpdateAzScVmmServer_UpdateViaJsonString.cs b/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/UpdateAzScVmmServer_UpdateViaJsonString.cs index 52da7dbc9c91..329e763d74fb 100644 --- a/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/UpdateAzScVmmServer_UpdateViaJsonString.cs +++ b/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/UpdateAzScVmmServer_UpdateViaJsonString.cs @@ -41,15 +41,6 @@ public partial class UpdateAzScVmmServer_UpdateViaJsonString : global::System.Ma /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] [global::Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ScVmm.ParameterCategory.Runtime)] @@ -261,11 +252,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Cmdlets.UpdateAzScVmmServer_Upda /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -581,24 +567,7 @@ public UpdateAzScVmmServer_UpdateViaJsonString() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVmmServer var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/UpdateAzScVmmVMExtension_UpdateExpanded.cs b/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/UpdateAzScVmmVMExtension_UpdateExpanded.cs index 36eeb3448404..e71c3c040834 100644 --- a/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/UpdateAzScVmmVMExtension_UpdateExpanded.cs +++ b/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/UpdateAzScVmmVMExtension_UpdateExpanded.cs @@ -44,15 +44,6 @@ public partial class UpdateAzScVmmVMExtension_UpdateExpanded : global::System.Ma /// Describes a Machine Extension Update. private Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachineExtensionUpdate _extensionParametersBody = new Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.MachineExtensionUpdate(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] [global::Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ScVmm.ParameterCategory.Runtime)] @@ -376,11 +367,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Cmdlets.UpdateAzScVmmVMExtension /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -696,24 +682,7 @@ public UpdateAzScVmmVMExtension_UpdateExpanded() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachineExtension var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/UpdateAzScVmmVMExtension_UpdateViaIdentityExpanded.cs b/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/UpdateAzScVmmVMExtension_UpdateViaIdentityExpanded.cs index 417403e606f1..998a3e1eabbe 100644 --- a/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/UpdateAzScVmmVMExtension_UpdateViaIdentityExpanded.cs +++ b/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/UpdateAzScVmmVMExtension_UpdateViaIdentityExpanded.cs @@ -44,15 +44,6 @@ public partial class UpdateAzScVmmVMExtension_UpdateViaIdentityExpanded : global /// Describes a Machine Extension Update. private Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachineExtensionUpdate _extensionParametersBody = new Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.MachineExtensionUpdate(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] [global::Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ScVmm.ParameterCategory.Runtime)] @@ -319,11 +310,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Cmdlets.UpdateAzScVmmVMExtension /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -663,24 +649,7 @@ public UpdateAzScVmmVMExtension_UpdateViaIdentityExpanded() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachineExtension var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/UpdateAzScVmmVMExtension_UpdateViaIdentityMachineExpanded.cs b/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/UpdateAzScVmmVMExtension_UpdateViaIdentityMachineExpanded.cs index a0f1dacdb507..87872823de82 100644 --- a/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/UpdateAzScVmmVMExtension_UpdateViaIdentityMachineExpanded.cs +++ b/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/UpdateAzScVmmVMExtension_UpdateViaIdentityMachineExpanded.cs @@ -44,15 +44,6 @@ public partial class UpdateAzScVmmVMExtension_UpdateViaIdentityMachineExpanded : /// Describes a Machine Extension Update. private Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachineExtensionUpdate _extensionParametersBody = new Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.MachineExtensionUpdate(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] [global::Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ScVmm.ParameterCategory.Runtime)] @@ -336,11 +327,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Cmdlets.UpdateAzScVmmVMExtension /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -677,24 +663,7 @@ public UpdateAzScVmmVMExtension_UpdateViaIdentityMachineExpanded() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachineExtension var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/UpdateAzScVmmVMExtension_UpdateViaJsonFilePath.cs b/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/UpdateAzScVmmVMExtension_UpdateViaJsonFilePath.cs index e13ac293dfb0..7f5f6118307e 100644 --- a/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/UpdateAzScVmmVMExtension_UpdateViaJsonFilePath.cs +++ b/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/UpdateAzScVmmVMExtension_UpdateViaJsonFilePath.cs @@ -42,17 +42,8 @@ public partial class UpdateAzScVmmVMExtension_UpdateViaJsonFilePath : global::Sy /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - public global::System.String _jsonString; - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] [global::Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ScVmm.ParameterCategory.Runtime)] @@ -278,11 +269,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Cmdlets.UpdateAzScVmmVMExtension /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -598,24 +584,7 @@ public UpdateAzScVmmVMExtension_UpdateViaJsonFilePath() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachineExtension var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/UpdateAzScVmmVMExtension_UpdateViaJsonString.cs b/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/UpdateAzScVmmVMExtension_UpdateViaJsonString.cs index 1f554ccef3d1..b33e295267b9 100644 --- a/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/UpdateAzScVmmVMExtension_UpdateViaJsonString.cs +++ b/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/UpdateAzScVmmVMExtension_UpdateViaJsonString.cs @@ -42,15 +42,6 @@ public partial class UpdateAzScVmmVMExtension_UpdateViaJsonString : global::Syst /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] [global::Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ScVmm.ParameterCategory.Runtime)] @@ -276,11 +267,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Cmdlets.UpdateAzScVmmVMExtension /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -596,24 +582,7 @@ public UpdateAzScVmmVMExtension_UpdateViaJsonString() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IMachineExtension var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/UpdateAzScVmmVMTemplate_UpdateExpanded.cs b/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/UpdateAzScVmmVMTemplate_UpdateExpanded.cs index 5630155db943..5774365a31fa 100644 --- a/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/UpdateAzScVmmVMTemplate_UpdateExpanded.cs +++ b/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/UpdateAzScVmmVMTemplate_UpdateExpanded.cs @@ -40,18 +40,9 @@ public partial class UpdateAzScVmmVMTemplate_UpdateExpanded : global::System.Man /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - /// The type used for updating tags in VirtualMachineTemplate resources. private Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVirtualMachineTemplateTagsUpdate _propertiesBody = new Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.VirtualMachineTemplateTagsUpdate(); - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] [global::Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ScVmm.ParameterCategory.Runtime)] @@ -262,11 +253,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Cmdlets.UpdateAzScVmmVMTemplate_ /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -582,24 +568,7 @@ public UpdateAzScVmmVMTemplate_UpdateExpanded() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVirtualMachineTemplate var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/UpdateAzScVmmVMTemplate_UpdateViaIdentityExpanded.cs b/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/UpdateAzScVmmVMTemplate_UpdateViaIdentityExpanded.cs index bd00b105cc18..655c9d74b0ee 100644 --- a/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/UpdateAzScVmmVMTemplate_UpdateViaIdentityExpanded.cs +++ b/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/UpdateAzScVmmVMTemplate_UpdateViaIdentityExpanded.cs @@ -40,18 +40,9 @@ public partial class UpdateAzScVmmVMTemplate_UpdateViaIdentityExpanded : global: /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - /// The type used for updating tags in VirtualMachineTemplate resources. private Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVirtualMachineTemplateTagsUpdate _propertiesBody = new Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.VirtualMachineTemplateTagsUpdate(); - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] [global::Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ScVmm.ParameterCategory.Runtime)] @@ -219,11 +210,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Cmdlets.UpdateAzScVmmVMTemplate_ /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -559,24 +545,7 @@ public UpdateAzScVmmVMTemplate_UpdateViaIdentityExpanded() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVirtualMachineTemplate var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/UpdateAzScVmmVMTemplate_UpdateViaJsonFilePath.cs b/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/UpdateAzScVmmVMTemplate_UpdateViaJsonFilePath.cs index f83f0f8526d8..2f55f79cd9c0 100644 --- a/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/UpdateAzScVmmVMTemplate_UpdateViaJsonFilePath.cs +++ b/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/UpdateAzScVmmVMTemplate_UpdateViaJsonFilePath.cs @@ -41,17 +41,8 @@ public partial class UpdateAzScVmmVMTemplate_UpdateViaJsonFilePath : global::Sys /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - public global::System.String _jsonString; - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] [global::Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ScVmm.ParameterCategory.Runtime)] @@ -263,11 +254,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Cmdlets.UpdateAzScVmmVMTemplate_ /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -583,24 +569,7 @@ public UpdateAzScVmmVMTemplate_UpdateViaJsonFilePath() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVirtualMachineTemplate var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/UpdateAzScVmmVMTemplate_UpdateViaJsonString.cs b/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/UpdateAzScVmmVMTemplate_UpdateViaJsonString.cs index 81776262b7a7..db5029b361f4 100644 --- a/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/UpdateAzScVmmVMTemplate_UpdateViaJsonString.cs +++ b/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/UpdateAzScVmmVMTemplate_UpdateViaJsonString.cs @@ -41,15 +41,6 @@ public partial class UpdateAzScVmmVMTemplate_UpdateViaJsonString : global::Syste /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] [global::Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ScVmm.ParameterCategory.Runtime)] @@ -261,11 +252,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Cmdlets.UpdateAzScVmmVMTemplate_ /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -581,24 +567,7 @@ public UpdateAzScVmmVMTemplate_UpdateViaJsonString() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVirtualMachineTemplate var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/UpdateAzScVmmVM_UpdateExpanded.cs b/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/UpdateAzScVmmVM_UpdateExpanded.cs index 1b21a50b7278..19edeff13d7a 100644 --- a/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/UpdateAzScVmmVM_UpdateExpanded.cs +++ b/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/UpdateAzScVmmVM_UpdateExpanded.cs @@ -41,18 +41,9 @@ public partial class UpdateAzScVmmVM_UpdateExpanded : global::System.Management. /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - /// The type used for update operations of the VirtualMachineInstance. private Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVirtualMachineInstanceUpdate _propertiesBody = new Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.VirtualMachineInstanceUpdate(); - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] [global::Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ScVmm.ParameterCategory.Runtime)] @@ -334,11 +325,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Cmdlets.UpdateAzScVmmVM_UpdateEx /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -654,24 +640,7 @@ public UpdateAzScVmmVM_UpdateExpanded() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVirtualMachineInstance var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/UpdateAzScVmmVM_UpdateViaJsonFilePath.cs b/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/UpdateAzScVmmVM_UpdateViaJsonFilePath.cs index b5bf44adc4b0..ae8cc7697b88 100644 --- a/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/UpdateAzScVmmVM_UpdateViaJsonFilePath.cs +++ b/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/UpdateAzScVmmVM_UpdateViaJsonFilePath.cs @@ -42,17 +42,8 @@ public partial class UpdateAzScVmmVM_UpdateViaJsonFilePath : global::System.Mana /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - public global::System.String _jsonString; - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] [global::Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ScVmm.ParameterCategory.Runtime)] @@ -228,11 +219,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Cmdlets.UpdateAzScVmmVM_UpdateVi /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -548,24 +534,7 @@ public UpdateAzScVmmVM_UpdateViaJsonFilePath() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVirtualMachineInstance var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/UpdateAzScVmmVM_UpdateViaJsonString.cs b/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/UpdateAzScVmmVM_UpdateViaJsonString.cs index 2761e9c1594b..645aac02efa4 100644 --- a/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/UpdateAzScVmmVM_UpdateViaJsonString.cs +++ b/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/UpdateAzScVmmVM_UpdateViaJsonString.cs @@ -42,15 +42,6 @@ public partial class UpdateAzScVmmVM_UpdateViaJsonString : global::System.Manage /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] [global::Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ScVmm.ParameterCategory.Runtime)] @@ -226,11 +217,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Cmdlets.UpdateAzScVmmVM_UpdateVi /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -546,24 +532,7 @@ public UpdateAzScVmmVM_UpdateViaJsonString() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVirtualMachineInstance var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/UpdateAzScVmmVirtualNetwork_UpdateExpanded.cs b/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/UpdateAzScVmmVirtualNetwork_UpdateExpanded.cs index 194ef749fd0d..2448af18114c 100644 --- a/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/UpdateAzScVmmVirtualNetwork_UpdateExpanded.cs +++ b/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/UpdateAzScVmmVirtualNetwork_UpdateExpanded.cs @@ -40,18 +40,9 @@ public partial class UpdateAzScVmmVirtualNetwork_UpdateExpanded : global::System /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - /// The type used for updating tags in VirtualNetwork resources. private Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVirtualNetworkTagsUpdate _propertiesBody = new Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.VirtualNetworkTagsUpdate(); - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] [global::Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ScVmm.ParameterCategory.Runtime)] @@ -262,11 +253,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Cmdlets.UpdateAzScVmmVirtualNetw /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -582,24 +568,7 @@ public UpdateAzScVmmVirtualNetwork_UpdateExpanded() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVirtualNetwork var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/UpdateAzScVmmVirtualNetwork_UpdateViaIdentityExpanded.cs b/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/UpdateAzScVmmVirtualNetwork_UpdateViaIdentityExpanded.cs index f3563db127af..d85f24fbddd5 100644 --- a/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/UpdateAzScVmmVirtualNetwork_UpdateViaIdentityExpanded.cs +++ b/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/UpdateAzScVmmVirtualNetwork_UpdateViaIdentityExpanded.cs @@ -40,18 +40,9 @@ public partial class UpdateAzScVmmVirtualNetwork_UpdateViaIdentityExpanded : glo /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - /// The type used for updating tags in VirtualNetwork resources. private Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVirtualNetworkTagsUpdate _propertiesBody = new Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.VirtualNetworkTagsUpdate(); - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] [global::Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ScVmm.ParameterCategory.Runtime)] @@ -219,11 +210,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Cmdlets.UpdateAzScVmmVirtualNetw /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -559,24 +545,7 @@ public UpdateAzScVmmVirtualNetwork_UpdateViaIdentityExpanded() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVirtualNetwork var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/UpdateAzScVmmVirtualNetwork_UpdateViaJsonFilePath.cs b/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/UpdateAzScVmmVirtualNetwork_UpdateViaJsonFilePath.cs index 0d7ce04dafc3..a9aaf325e600 100644 --- a/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/UpdateAzScVmmVirtualNetwork_UpdateViaJsonFilePath.cs +++ b/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/UpdateAzScVmmVirtualNetwork_UpdateViaJsonFilePath.cs @@ -41,17 +41,8 @@ public partial class UpdateAzScVmmVirtualNetwork_UpdateViaJsonFilePath : global: /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - public global::System.String _jsonString; - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] [global::Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ScVmm.ParameterCategory.Runtime)] @@ -263,11 +254,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Cmdlets.UpdateAzScVmmVirtualNetw /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -583,24 +569,7 @@ public UpdateAzScVmmVirtualNetwork_UpdateViaJsonFilePath() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVirtualNetwork var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/UpdateAzScVmmVirtualNetwork_UpdateViaJsonString.cs b/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/UpdateAzScVmmVirtualNetwork_UpdateViaJsonString.cs index a4eb9f6a1608..9a7a794e08ee 100644 --- a/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/UpdateAzScVmmVirtualNetwork_UpdateViaJsonString.cs +++ b/generated/ScVmm/ScVmm.Autorest/generated/cmdlets/UpdateAzScVmmVirtualNetwork_UpdateViaJsonString.cs @@ -41,15 +41,6 @@ public partial class UpdateAzScVmmVirtualNetwork_UpdateViaJsonString : global::S /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] [global::Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ScVmm.ParameterCategory.Runtime)] @@ -261,11 +252,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Cmdlets.UpdateAzScVmmVirtualNetw /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -581,24 +567,7 @@ public UpdateAzScVmmVirtualNetwork_UpdateViaJsonString() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Models.IVirtualNetwork var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/ScVmm/ScVmm.Autorest/generated/runtime/BuildTime/Models/PsHelpTypes.cs b/generated/ScVmm/ScVmm.Autorest/generated/runtime/BuildTime/Models/PsHelpTypes.cs index c4a4a10d4655..33144813e56e 100644 --- a/generated/ScVmm/ScVmm.Autorest/generated/runtime/BuildTime/Models/PsHelpTypes.cs +++ b/generated/ScVmm/ScVmm.Autorest/generated/runtime/BuildTime/Models/PsHelpTypes.cs @@ -36,14 +36,23 @@ internal class PsHelpInfo public object Role { get; } public string NonTerminatingErrors { get; } + public static string CapitalizeFirstLetter(string text) + { + if (string.IsNullOrEmpty(text)) + return text; + + return char.ToUpper(text[0]) + text.Substring(1); + } + public PsHelpInfo(PSObject helpObject = null) { helpObject = helpObject ?? new PSObject(); CmdletName = helpObject.GetProperty("Name").NullIfEmpty() ?? helpObject.GetNestedProperty("details", "name"); ModuleName = helpObject.GetProperty("ModuleName"); - Synopsis = helpObject.GetProperty("Synopsis"); + Synopsis = CapitalizeFirstLetter(helpObject.GetProperty("Synopsis")); Description = helpObject.GetProperty("description").EmptyIfNull().ToDescriptionText().NullIfEmpty() ?? helpObject.GetNestedProperty("details", "description").EmptyIfNull().ToDescriptionText(); + Description = CapitalizeFirstLetter(Description); AlertText = helpObject.GetNestedProperty("alertSet", "alert").EmptyIfNull().ToDescriptionText(); Category = helpObject.GetProperty("Category"); HasCommonParameters = helpObject.GetProperty("CommonParameters").ToNullableBool(); diff --git a/generated/ScVmm/ScVmm.Autorest/generated/runtime/BuildTime/Models/PsProxyTypes.cs b/generated/ScVmm/ScVmm.Autorest/generated/runtime/BuildTime/Models/PsProxyTypes.cs index f15a0bfd1495..c1afb70b0a52 100644 --- a/generated/ScVmm/ScVmm.Autorest/generated/runtime/BuildTime/Models/PsProxyTypes.cs +++ b/generated/ScVmm/ScVmm.Autorest/generated/runtime/BuildTime/Models/PsProxyTypes.cs @@ -392,6 +392,7 @@ public CommentInfo(VariantGroup variantGroup) var helpInfo = variantGroup.HelpInfo; Description = variantGroup.Variants.SelectMany(v => v.Attributes).OfType().FirstOrDefault()?.Description.NullIfEmpty() ?? helpInfo.Description.EmptyIfNull(); + Description = PsHelpInfo.CapitalizeFirstLetter(Description); // If there is no Synopsis, PowerShell may put in the Syntax string as the Synopsis. This seems unintended, so we remove the Synopsis in this situation. var synopsis = helpInfo.Synopsis.EmptyIfNull().Trim().StartsWith(variantGroup.CmdletName) ? String.Empty : helpInfo.Synopsis; Synopsis = synopsis.NullIfEmpty() ?? Description; diff --git a/generated/ScVmm/ScVmm.Autorest/generated/runtime/MessageAttribute.cs b/generated/ScVmm/ScVmm.Autorest/generated/runtime/MessageAttribute.cs index d3bec7cc17b6..dfe310480833 100644 --- a/generated/ScVmm/ScVmm.Autorest/generated/runtime/MessageAttribute.cs +++ b/generated/ScVmm/ScVmm.Autorest/generated/runtime/MessageAttribute.cs @@ -16,9 +16,12 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Runtime public class GenericBreakingChangeAttribute : Attribute { private string _message; - //A dexcription of what the change is about, non mandatory + //A description of what the change is about, non mandatory public string ChangeDescription { get; set; } = null; + //Name of the module that is being deprecated + public string moduleName { get; set; } = String.IsNullOrEmpty(@"") ? @"Az.ScVmm" : @""; + //The version the change is effective from, non mandatory public string DeprecateByVersion { get; } public string DeprecateByAzVersion { get; } @@ -82,7 +85,7 @@ public void PrintCustomAttributeInfo(Action writeOutput) } writeOutput(string.Format(Resources.BreakingChangesAttributesInEffectByAzVersion, this.DeprecateByAzVersion)); - writeOutput(string.Format(Resources.BreakingChangesAttributesInEffectByVersion, this.DeprecateByVersion)); + writeOutput(string.Format(Resources.BreakingChangesAttributesInEffectByVersion, this.moduleName, this.DeprecateByVersion)); if (OldWay != null && NewWay != null) { @@ -191,11 +194,11 @@ public PreviewMessageAttribute(string message, string estimatedDateOfGa) : this( this.IsEstimatedGaDateSet = true; } } - + public void PrintCustomAttributeInfo(Action writeOutput) { writeOutput(this._message); - + if (IsEstimatedGaDateSet) { writeOutput(string.Format(Resources.PreviewCmdletETAMessage, this.EstimatedGaDate.ToShortDateString())); diff --git a/generated/ScVmm/ScVmm.Autorest/generated/runtime/Properties/Resources.resx b/generated/ScVmm/ScVmm.Autorest/generated/runtime/Properties/Resources.resx index a08a2e50172b..4ef90b70573d 100644 --- a/generated/ScVmm/ScVmm.Autorest/generated/runtime/Properties/Resources.resx +++ b/generated/ScVmm/ScVmm.Autorest/generated/runtime/Properties/Resources.resx @@ -1705,7 +1705,7 @@ Use the Enable-AzureDataCollection cmdlet to turn the feature On. The cmdlet can -- The change is expected to take effect from version : '{0}' +- The change is expected to take effect in '{0}' from version : '{1}' ```powershell diff --git a/generated/ScVmm/ScVmm.Autorest/internal/New-AzScVmmVMCheckpoint.ps1 b/generated/ScVmm/ScVmm.Autorest/internal/New-AzScVmmVMCheckpoint.ps1 index 8e4e80bcb9eb..df60391c9004 100644 --- a/generated/ScVmm/ScVmm.Autorest/internal/New-AzScVmmVMCheckpoint.ps1 +++ b/generated/ScVmm/ScVmm.Autorest/internal/New-AzScVmmVMCheckpoint.ps1 @@ -16,9 +16,9 @@ <# .Synopsis -create a checkpoint in virtual machine instance. +Create a checkpoint in virtual machine instance. .Description -create a checkpoint in virtual machine instance. +Create a checkpoint in virtual machine instance. .Example New-AzScVmmVMCheckpoint -Name "test-vm" -ResourceGroupName "test-rg-01" -CheckpointName "Test-01" -CheckpointDescription "Test-Desc-01" .Example diff --git a/generated/ScVmm/ScVmm.Autorest/internal/New-AzScVmmVMGuestAgent.ps1 b/generated/ScVmm/ScVmm.Autorest/internal/New-AzScVmmVMGuestAgent.ps1 index e0a63be4bce8..c239fb7f8968 100644 --- a/generated/ScVmm/ScVmm.Autorest/internal/New-AzScVmmVMGuestAgent.ps1 +++ b/generated/ScVmm/ScVmm.Autorest/internal/New-AzScVmmVMGuestAgent.ps1 @@ -16,9 +16,9 @@ <# .Synopsis -create GuestAgent. +Create GuestAgent. .Description -create GuestAgent. +Create GuestAgent. .Example $securePassword = ConvertTo-SecureString "*****" -AsPlainText -Force New-AzScVmmVMGuestAgent -Name "test-vm" -ResourceGroupName "test-rg-01" -CredentialsPassword $securePassword -CredentialsUsername 'testUser' diff --git a/generated/ScVmm/ScVmm.Autorest/internal/ProxyCmdletDefinitions.ps1 b/generated/ScVmm/ScVmm.Autorest/internal/ProxyCmdletDefinitions.ps1 index 614e1cbe6950..9019b53cb58f 100644 --- a/generated/ScVmm/ScVmm.Autorest/internal/ProxyCmdletDefinitions.ps1 +++ b/generated/ScVmm/ScVmm.Autorest/internal/ProxyCmdletDefinitions.ps1 @@ -2244,9 +2244,9 @@ end { <# .Synopsis -create a checkpoint in virtual machine instance. +Create a checkpoint in virtual machine instance. .Description -create a checkpoint in virtual machine instance. +Create a checkpoint in virtual machine instance. .Example New-AzScVmmVMCheckpoint -Name "test-vm" -ResourceGroupName "test-rg-01" -CheckpointName "Test-01" -CheckpointDescription "Test-Desc-01" .Example @@ -2808,9 +2808,9 @@ end { <# .Synopsis -create GuestAgent. +Create GuestAgent. .Description -create GuestAgent. +Create GuestAgent. .Example $securePassword = ConvertTo-SecureString "*****" -AsPlainText -Force New-AzScVmmVMGuestAgent -Name "test-vm" -ResourceGroupName "test-rg-01" -CredentialsPassword $securePassword -CredentialsUsername 'testUser' diff --git a/generated/StorageMover/StorageMover.Autorest/Az.StorageMover.format.ps1xml b/generated/StorageMover/StorageMover.Autorest/Az.StorageMover.format.ps1xml index 70bf603927f6..c22328398035 100644 --- a/generated/StorageMover/StorageMover.Autorest/Az.StorageMover.format.ps1xml +++ b/generated/StorageMover/StorageMover.Autorest/Az.StorageMover.format.ps1xml @@ -35,6 +35,34 @@ + + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.ManagedServiceIdentity + + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.ManagedServiceIdentity + + + + + + + + + + + + + + + PrincipalId + + + TenantId + + + + + + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.Operation @@ -356,27 +384,27 @@ - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.AzureKeyVaultSmbCredentials + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.UserAssignedIdentity - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.AzureKeyVaultSmbCredentials + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.UserAssignedIdentity - + - + - PasswordUri + ClientId - UsernameUri + PrincipalId @@ -384,21 +412,27 @@ - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.StorageMoverUpdateParametersTags + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.AzureKeyVaultSmbCredentials - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.StorageMoverUpdateParametersTags + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.AzureKeyVaultSmbCredentials - + + + + - Item + PasswordUri + + + UsernameUri @@ -406,27 +440,21 @@ - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.Time + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.StorageMoverUpdateParametersTags - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.Time + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.StorageMoverUpdateParametersTags - - - - + - Hour - - - Minute + Item @@ -434,21 +462,27 @@ - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.UploadLimit + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.Time - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.UploadLimit + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.Time - + + + + - LimitInMbps + Hour + + + Minute @@ -456,9 +490,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.UploadLimitWeeklyRecurrence + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.UploadLimitWeeklyRecurrence - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.UploadLimitWeeklyRecurrence + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.UploadLimitWeeklyRecurrence @@ -471,15 +505,15 @@ - - - + + + @@ -493,24 +527,24 @@ EndTimeMinute - - LimitInMbps - StartTimeHour StartTimeMinute + + LimitInMbps + - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.WeeklyRecurrence + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.WeeklyRecurrence - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.WeeklyRecurrence + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.WeeklyRecurrence diff --git a/generated/StorageMover/StorageMover.Autorest/Az.StorageMover.psd1 b/generated/StorageMover/StorageMover.Autorest/Az.StorageMover.psd1 index bd2a534acd92..aed282bdfe07 100644 --- a/generated/StorageMover/StorageMover.Autorest/Az.StorageMover.psd1 +++ b/generated/StorageMover/StorageMover.Autorest/Az.StorageMover.psd1 @@ -1,7 +1,7 @@ @{ GUID = 'd6053d97-1a9b-4fc6-9bd2-09c5b23b34db' RootModule = './Az.StorageMover.psm1' - ModuleVersion = '1.2.0' + ModuleVersion = '1.6.0' CompatiblePSEditions = 'Core', 'Desktop' Author = 'Microsoft Corporation' CompanyName = 'Microsoft Corporation' @@ -11,7 +11,7 @@ DotNetFrameworkVersion = '4.7.2' RequiredAssemblies = './bin/Az.StorageMover.private.dll' FormatsToProcess = './Az.StorageMover.format.ps1xml' - FunctionsToExport = 'Get-AzStorageMover', 'Get-AzStorageMoverAgent', 'Get-AzStorageMoverEndpoint', 'Get-AzStorageMoverJobDefinition', 'Get-AzStorageMoverJobRun', 'Get-AzStorageMoverProject', 'New-AzStorageMover', 'New-AzStorageMoverAzSmbFileShareEndpoint', 'New-AzStorageMoverAzStorageContainerEndpoint', 'New-AzStorageMoverJobDefinition', 'New-AzStorageMoverNfsEndpoint', 'New-AzStorageMoverProject', 'New-AzStorageMoverSmbEndpoint', 'New-AzStorageMoverUploadLimitWeeklyRecurrenceObject', 'Remove-AzStorageMover', 'Remove-AzStorageMoverEndpoint', 'Remove-AzStorageMoverJobDefinition', 'Remove-AzStorageMoverProject', 'Start-AzStorageMoverJobDefinition', 'Stop-AzStorageMoverJobDefinition', 'Unregister-AzStorageMoverAgent', 'Update-AzStorageMover', 'Update-AzStorageMoverAgent', 'Update-AzStorageMoverAzSmbFileShareEndpoint', 'Update-AzStorageMoverAzStorageContainerEndpoint', 'Update-AzStorageMoverJobDefinition', 'Update-AzStorageMoverNfsEndpoint', 'Update-AzStorageMoverProject', 'Update-AzStorageMoverSmbEndpoint', '*' + FunctionsToExport = 'Get-AzStorageMover', 'Get-AzStorageMoverAgent', 'Get-AzStorageMoverEndpoint', 'Get-AzStorageMoverJobDefinition', 'Get-AzStorageMoverJobRun', 'Get-AzStorageMoverProject', 'New-AzStorageMover', 'New-AzStorageMoverAzNfsFileShareEndpoint', 'New-AzStorageMoverAzSmbFileShareEndpoint', 'New-AzStorageMoverAzStorageContainerEndpoint', 'New-AzStorageMoverJobDefinition', 'New-AzStorageMoverMultiCloudConnectorEndpoint', 'New-AzStorageMoverNfsEndpoint', 'New-AzStorageMoverProject', 'New-AzStorageMoverSmbEndpoint', 'New-AzStorageMoverUploadLimitWeeklyRecurrenceObject', 'Remove-AzStorageMover', 'Remove-AzStorageMoverEndpoint', 'Remove-AzStorageMoverJobDefinition', 'Remove-AzStorageMoverProject', 'Start-AzStorageMoverJobDefinition', 'Stop-AzStorageMoverJobDefinition', 'Unregister-AzStorageMoverAgent', 'Update-AzStorageMover', 'Update-AzStorageMoverAgent', 'Update-AzStorageMoverAzNfsFileShareEndpoint', 'Update-AzStorageMoverAzSmbFileShareEndpoint', 'Update-AzStorageMoverAzStorageContainerEndpoint', 'Update-AzStorageMoverJobDefinition', 'Update-AzStorageMoverMultiCloudConnectorEndpoint', 'Update-AzStorageMoverNfsEndpoint', 'Update-AzStorageMoverProject', 'Update-AzStorageMoverSmbEndpoint', '*' AliasesToExport = 'New-AzStorageMoverSmbFileShareEndpoint', 'Update-AzStorageMoverSmbFileShareEndpoint', '*' PrivateData = @{ PSData = @{ diff --git a/generated/StorageMover/StorageMover.Autorest/Properties/AssemblyInfo.cs b/generated/StorageMover/StorageMover.Autorest/Properties/AssemblyInfo.cs index 79f0b710be51..e13980bc3139 100644 --- a/generated/StorageMover/StorageMover.Autorest/Properties/AssemblyInfo.cs +++ b/generated/StorageMover/StorageMover.Autorest/Properties/AssemblyInfo.cs @@ -24,3 +24,6 @@ [assembly: System.Reflection.AssemblyVersionAttribute("1.5.0")] [assembly: System.Runtime.InteropServices.ComVisibleAttribute(false)] [assembly: System.CLSCompliantAttribute(false)] + + + diff --git a/generated/StorageMover/StorageMover.Autorest/exports/Get-AzStorageMover.ps1 b/generated/StorageMover/StorageMover.Autorest/exports/Get-AzStorageMover.ps1 index 493bd4202c17..bdffbe4e9046 100644 --- a/generated/StorageMover/StorageMover.Autorest/exports/Get-AzStorageMover.ps1 +++ b/generated/StorageMover/StorageMover.Autorest/exports/Get-AzStorageMover.ps1 @@ -29,7 +29,7 @@ Get-AzStorageMover -ResourceGroupName myResourceGroup -Name myStorageMover1 .Inputs Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.IStorageMoverIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IStorageMover +Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IStorageMover .Notes COMPLEX PARAMETER PROPERTIES @@ -49,7 +49,7 @@ INPUTOBJECT : Identity Parameter https://learn.microsoft.com/powershell/module/az.storagemover/get-azstoragemover #> function Get-AzStorageMover { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IStorageMover])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IStorageMover])] [CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] param( [Parameter(ParameterSetName='Get', Mandatory)] diff --git a/generated/StorageMover/StorageMover.Autorest/exports/Get-AzStorageMoverAgent.ps1 b/generated/StorageMover/StorageMover.Autorest/exports/Get-AzStorageMoverAgent.ps1 index d1065e907974..c40c96d74f35 100644 --- a/generated/StorageMover/StorageMover.Autorest/exports/Get-AzStorageMoverAgent.ps1 +++ b/generated/StorageMover/StorageMover.Autorest/exports/Get-AzStorageMoverAgent.ps1 @@ -27,7 +27,7 @@ Get-AzStorageMoverAgent -ResourceGroupName myResourceGroup -StorageMoverName myS .Inputs Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.IStorageMoverIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgent +Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgent .Notes COMPLEX PARAMETER PROPERTIES @@ -47,7 +47,7 @@ INPUTOBJECT : Identity Parameter https://learn.microsoft.com/powershell/module/az.storagemover/get-azstoragemoveragent #> function Get-AzStorageMoverAgent { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgent])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgent])] [CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] param( [Parameter(ParameterSetName='Get', Mandatory)] diff --git a/generated/StorageMover/StorageMover.Autorest/exports/Get-AzStorageMoverEndpoint.ps1 b/generated/StorageMover/StorageMover.Autorest/exports/Get-AzStorageMoverEndpoint.ps1 index 7e87dc00ccd8..89e4899aa8b0 100644 --- a/generated/StorageMover/StorageMover.Autorest/exports/Get-AzStorageMoverEndpoint.ps1 +++ b/generated/StorageMover/StorageMover.Autorest/exports/Get-AzStorageMoverEndpoint.ps1 @@ -27,7 +27,7 @@ Get-AzStorageMoverEndpoint -ResourceGroupName myResourceGroupName -StorageMoverN .Inputs Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.IStorageMoverIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpoint +Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpoint .Notes COMPLEX PARAMETER PROPERTIES @@ -47,7 +47,7 @@ INPUTOBJECT : Identity Parameter https://learn.microsoft.com/powershell/module/az.storagemover/get-azstoragemoverendpoint #> function Get-AzStorageMoverEndpoint { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpoint])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpoint])] [CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] param( [Parameter(ParameterSetName='Get', Mandatory)] diff --git a/generated/StorageMover/StorageMover.Autorest/exports/Get-AzStorageMoverJobDefinition.ps1 b/generated/StorageMover/StorageMover.Autorest/exports/Get-AzStorageMoverJobDefinition.ps1 index d8a1a5ebe8e8..efe334b0c87c 100644 --- a/generated/StorageMover/StorageMover.Autorest/exports/Get-AzStorageMoverJobDefinition.ps1 +++ b/generated/StorageMover/StorageMover.Autorest/exports/Get-AzStorageMoverJobDefinition.ps1 @@ -27,7 +27,7 @@ Get-AzStorageMoverJobDefinition -ProjectName myProject -ResourceGroupName myReso .Inputs Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.IStorageMoverIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinition +Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinition .Notes COMPLEX PARAMETER PROPERTIES @@ -47,7 +47,7 @@ INPUTOBJECT : Identity Parameter https://learn.microsoft.com/powershell/module/az.storagemover/get-azstoragemoverjobdefinition #> function Get-AzStorageMoverJobDefinition { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinition])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinition])] [CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] param( [Parameter(ParameterSetName='Get', Mandatory)] diff --git a/generated/StorageMover/StorageMover.Autorest/exports/Get-AzStorageMoverJobRun.ps1 b/generated/StorageMover/StorageMover.Autorest/exports/Get-AzStorageMoverJobRun.ps1 index f202d5ef45ae..53a6ea06e622 100644 --- a/generated/StorageMover/StorageMover.Autorest/exports/Get-AzStorageMoverJobRun.ps1 +++ b/generated/StorageMover/StorageMover.Autorest/exports/Get-AzStorageMoverJobRun.ps1 @@ -27,7 +27,7 @@ Get-AzStorageMoverJobRun -Name myJobRun -JobDefinitionName myJobDefinition -Reso .Inputs Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.IStorageMoverIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRun +Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRun .Notes COMPLEX PARAMETER PROPERTIES @@ -47,7 +47,7 @@ INPUTOBJECT : Identity Parameter https://learn.microsoft.com/powershell/module/az.storagemover/get-azstoragemoverjobrun #> function Get-AzStorageMoverJobRun { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRun])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRun])] [CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] param( [Parameter(ParameterSetName='Get', Mandatory)] diff --git a/generated/StorageMover/StorageMover.Autorest/exports/Get-AzStorageMoverProject.ps1 b/generated/StorageMover/StorageMover.Autorest/exports/Get-AzStorageMoverProject.ps1 index 5aa9a75084d9..982a54fb1c3f 100644 --- a/generated/StorageMover/StorageMover.Autorest/exports/Get-AzStorageMoverProject.ps1 +++ b/generated/StorageMover/StorageMover.Autorest/exports/Get-AzStorageMoverProject.ps1 @@ -27,7 +27,7 @@ $projectList = Get-AzStorageMoverProject -ResourceGroupName myResourceGroup -Sto .Inputs Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.IStorageMoverIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IProject +Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IProject .Notes COMPLEX PARAMETER PROPERTIES @@ -47,7 +47,7 @@ INPUTOBJECT : Identity Parameter https://learn.microsoft.com/powershell/module/az.storagemover/get-azstoragemoverproject #> function Get-AzStorageMoverProject { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IProject])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IProject])] [CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] param( [Parameter(ParameterSetName='Get', Mandatory)] diff --git a/generated/StorageMover/StorageMover.Autorest/exports/New-AzStorageMover.ps1 b/generated/StorageMover/StorageMover.Autorest/exports/New-AzStorageMover.ps1 index e9c018275ca3..04b021225222 100644 --- a/generated/StorageMover/StorageMover.Autorest/exports/New-AzStorageMover.ps1 +++ b/generated/StorageMover/StorageMover.Autorest/exports/New-AzStorageMover.ps1 @@ -23,9 +23,9 @@ Creates or updates a top-level Storage Mover resource. New-AzStorageMover -ResourceGroupName myResourceGroup -Name myStorageMover -Location eastus -Description "Description" .Inputs -Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IStorageMover +Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IStorageMover .Outputs -Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IStorageMover +Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IStorageMover .Notes COMPLEX PARAMETER PROPERTIES @@ -46,7 +46,7 @@ STORAGEMOVER : The Storage Mover resource, which is a container f https://learn.microsoft.com/powershell/module/az.storagemover/new-azstoragemover #> function New-AzStorageMover { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IStorageMover])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IStorageMover])] [CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(Mandatory)] @@ -72,7 +72,7 @@ param( [Parameter(ParameterSetName='Create', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IStorageMover] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IStorageMover] # The Storage Mover resource, which is a container for a group of Agents, Projects, and Endpoints. # To construct, see NOTES section for STORAGEMOVER properties and create a hash table. ${StorageMover}, diff --git a/generated/StorageMover/StorageMover.Autorest/exports/New-AzStorageMoverAzNfsFileShareEndpoint.ps1 b/generated/StorageMover/StorageMover.Autorest/exports/New-AzStorageMoverAzNfsFileShareEndpoint.ps1 new file mode 100644 index 000000000000..f4099eecc3dd --- /dev/null +++ b/generated/StorageMover/StorageMover.Autorest/exports/New-AzStorageMoverAzNfsFileShareEndpoint.ps1 @@ -0,0 +1,216 @@ + +# ---------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code +# is regenerated. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Creates a Nfs file share endpoint resource, which represents a data transfer source or destination. +.Description +Creates a Nfs file share endpoint resource, which represents a data transfer source or destination. +.Example +New-AzStorageMoverAzNfsFileShareEndpoint -Name "my-nfs-endpoint" -ResourceGroupName "my-resource-group" -StorageMoverName "my-storage-mover" -FileShareName "10.0.0.1" -Description "My NFS endpoint" + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpoint +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.IStorageMoverIdentity +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpoint +.Link +https://learn.microsoft.com/powershell/module/az.storagemover/new-azstoragemoveraznfsfileshareendpoint +#> +function New-AzStorageMoverAzNfsFileShareEndpoint { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpoint])] +[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(Mandatory)] + [Alias('EndpointName')] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Path')] + [System.String] + # The name of the endpoint resource. + ${Name}, + + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Path')] + [System.String] + # The name of the resource group. + # The name is case insensitive. + ${ResourceGroupName}, + + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Path')] + [System.String] + # The name of the Storage Mover resource. + ${StorageMoverName}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String] + # The ID of the target subscription. + ${SubscriptionId}, + + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Body')] + [System.String] + # The Azure Resource ID of the storage account that is the target destination. + ${StorageAccountResourceId}, + + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Body')] + [System.String] + # The name of the Azure Storage file share. + ${FileShareName}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Body')] + [System.String] + # A description for the endpoint. + ${Description}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Azure')] + [System.Management.Automation.PSObject] + # The credentials, account, tenant, and subscription used for communication with Azure. + ${DefaultProfile}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + + $mapping = @{ + CreateExpanded = 'Az.StorageMover.custom\New-AzStorageMoverAzNfsFileShareEndpoint'; + } + if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + } + $cmdInfo = Get-Command -Name $mapping[$parameterSet] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } + + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} +end { + try { + $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} +} diff --git a/generated/StorageMover/StorageMover.Autorest/exports/New-AzStorageMoverAzSmbFileShareEndpoint.ps1 b/generated/StorageMover/StorageMover.Autorest/exports/New-AzStorageMoverAzSmbFileShareEndpoint.ps1 index 8e10ccd50f75..80338cda1c75 100644 --- a/generated/StorageMover/StorageMover.Autorest/exports/New-AzStorageMoverAzSmbFileShareEndpoint.ps1 +++ b/generated/StorageMover/StorageMover.Autorest/exports/New-AzStorageMoverAzSmbFileShareEndpoint.ps1 @@ -23,17 +23,17 @@ Creates a Smb file share endpoint resource, which represents a data transfer sou New-AzStorageMoverAzSmbFileShareEndpoint -Name "myendpoint" -ResourceGroupName "myresourcegroup" -StorageMoverName "mystoragemover" -StorageAccountResourceId $accountresourceid -FileShareName testfs -Description "New smb file share endpoint" .Inputs -Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpoint +Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpoint .Inputs Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.IStorageMoverIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpoint +Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpoint .Link https://learn.microsoft.com/powershell/module/az.storagemover/new-azstoragemoverazsmbfileshareendpoint #> function New-AzStorageMoverAzSmbFileShareEndpoint { [Alias('New-AzStorageMoverSmbFileShareEndpoint')] -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpoint])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpoint])] [CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(Mandatory)] diff --git a/generated/StorageMover/StorageMover.Autorest/exports/New-AzStorageMoverAzStorageContainerEndpoint.ps1 b/generated/StorageMover/StorageMover.Autorest/exports/New-AzStorageMoverAzStorageContainerEndpoint.ps1 index 6dba0df51472..f00b6d1ede60 100644 --- a/generated/StorageMover/StorageMover.Autorest/exports/New-AzStorageMoverAzStorageContainerEndpoint.ps1 +++ b/generated/StorageMover/StorageMover.Autorest/exports/New-AzStorageMoverAzStorageContainerEndpoint.ps1 @@ -23,16 +23,16 @@ Creates an AzStorageContainer endpoint resource, which represents a data transfe New-AzStorageMoverAzStorageContainerEndpoint -Name myEndpoint -ResourceGroupName myResourceGroup -BlobContainerName myContainer -StorageMoverName myStorageMover -StorageAccountResourceId myAccountResourceId .Inputs -Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpoint +Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpoint .Inputs Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.IStorageMoverIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpoint +Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpoint .Link https://learn.microsoft.com/powershell/module/az.storagemover/new-azstoragemoverazstoragecontainerendpoint #> function New-AzStorageMoverAzStorageContainerEndpoint { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpoint])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpoint])] [CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(Mandatory)] diff --git a/generated/StorageMover/StorageMover.Autorest/exports/New-AzStorageMoverJobDefinition.ps1 b/generated/StorageMover/StorageMover.Autorest/exports/New-AzStorageMoverJobDefinition.ps1 index fb33d75c2ba3..6c9bca4bc33d 100644 --- a/generated/StorageMover/StorageMover.Autorest/exports/New-AzStorageMoverJobDefinition.ps1 +++ b/generated/StorageMover/StorageMover.Autorest/exports/New-AzStorageMoverJobDefinition.ps1 @@ -23,9 +23,9 @@ Creates or updates a Job Definition resource, which contains configuration for a New-AzStorageMoverJobDefinition -Name myJob -ProjectName myProject -ResourceGroupName myResourceGroup -StorageMoverName myStorageMover -AgentName myAgent -SourceName myNfsEndpoint -TargetName myContainerEndpoint -CopyMode "Additive" -Description "job definition" .Inputs -Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinition +Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinition .Outputs -Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinition +Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinition .Notes COMPLEX PARAMETER PROPERTIES @@ -42,14 +42,15 @@ JOBDEFINITION : The Job Definition resource. [SystemDataLastModifiedBy ]: The identity that last modified the resource. [SystemDataLastModifiedByType ]: The type of identity that last modified the resource. [AgentName ]: Name of the Agent to assign for new Job Runs of this Job Definition. - [Description ]: A description for the Job Definition. + [Description ]: A description for the Job Definition. OnPremToCloud is for migrating data from on-premises to cloud. CloudToCloud is for migrating data between cloud to cloud. + [JobType ]: The type of the Job. [SourceSubpath ]: The subpath to use when reading from the source Endpoint. [TargetSubpath ]: The subpath to use when writing to the target Endpoint. .Link https://learn.microsoft.com/powershell/module/az.storagemover/new-azstoragemoverjobdefinition #> function New-AzStorageMoverJobDefinition { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinition])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinition])] [CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(Mandatory)] @@ -87,7 +88,7 @@ param( [Parameter(ParameterSetName='Create', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinition] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinition] # The Job Definition resource. # To construct, see NOTES section for JOBDEFINITION properties and create a hash table. ${JobDefinition}, @@ -121,8 +122,17 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Body')] [System.String] # A description for the Job Definition. + # OnPremToCloud is for migrating data from on-premises to cloud. + # CloudToCloud is for migrating data between cloud to cloud. ${Description}, + [Parameter(ParameterSetName='CreateExpanded')] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.JobType])] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.JobType] + # The type of the Job. + ${JobType}, + [Parameter(ParameterSetName='CreateExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Body')] [System.String] diff --git a/generated/StorageMover/StorageMover.Autorest/exports/New-AzStorageMoverMultiCloudConnectorEndpoint.ps1 b/generated/StorageMover/StorageMover.Autorest/exports/New-AzStorageMoverMultiCloudConnectorEndpoint.ps1 new file mode 100644 index 000000000000..2adb2a4555cd --- /dev/null +++ b/generated/StorageMover/StorageMover.Autorest/exports/New-AzStorageMoverMultiCloudConnectorEndpoint.ps1 @@ -0,0 +1,216 @@ + +# ---------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code +# is regenerated. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Creates a multicloud connector endpoint resource, which represents a data transfer source or destination. +.Description +Creates a Multi-Cloud Connector endpoint resource, which represents a data transfer source or destination. +.Example +New-AzStorageMoverMultiCloudConnectorEndpoint -Name "my-mc-endpoint" -ResourceGroupName "my-resource-group" -StorageMoverName "my-storage-mover" -AWSS3BucketId "my-s3-bucket" -Description "My Multi-Cloud endpoint" + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpoint +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.IStorageMoverIdentity +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpoint +.Link +https://learn.microsoft.com/powershell/module/az.storagemover/new-azstoragemovermulticloudconnectorendpoint +#> +function New-AzStorageMoverMultiCloudConnectorEndpoint { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpoint])] +[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(Mandatory)] + [Alias('EndpointName')] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Path')] + [System.String] + # The name of the endpoint resource. + ${Name}, + + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Path')] + [System.String] + # The name of the resource group. + # The name is case insensitive. + ${ResourceGroupName}, + + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Path')] + [System.String] + # The name of the Storage Mover resource. + ${StorageMoverName}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String] + # The ID of the target subscription. + ${SubscriptionId}, + + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Body')] + [System.String] + # The Azure Resource ID of the multi-cloud connector. + ${MultiCloudConnectorId}, + + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Body')] + [System.String] + # The Azure Resource ID of the AWS S3 bucket listed in the multi cloud connector. + ${AWSS3BucketId}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Body')] + [System.String] + # A description for the endpoint. + ${Description}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Azure')] + [System.Management.Automation.PSObject] + # The credentials, account, tenant, and subscription used for communication with Azure. + ${DefaultProfile}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + + $mapping = @{ + CreateExpanded = 'Az.StorageMover.custom\New-AzStorageMoverMultiCloudConnectorEndpoint'; + } + if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + } + $cmdInfo = Get-Command -Name $mapping[$parameterSet] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } + + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} +end { + try { + $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} +} diff --git a/generated/StorageMover/StorageMover.Autorest/exports/New-AzStorageMoverNfsEndpoint.ps1 b/generated/StorageMover/StorageMover.Autorest/exports/New-AzStorageMoverNfsEndpoint.ps1 index 17f78b5a46b7..d21c9012e4e1 100644 --- a/generated/StorageMover/StorageMover.Autorest/exports/New-AzStorageMoverNfsEndpoint.ps1 +++ b/generated/StorageMover/StorageMover.Autorest/exports/New-AzStorageMoverNfsEndpoint.ps1 @@ -23,16 +23,16 @@ Creates a Nfs endpoint resource, which represents a data transfer source or dest New-AzStorageMoverNfsEndpoint -Name myEndpoint -ResourceGroupName myResourceGroup -StorageMoverName myStorageMover -Host "10.0.0.1" -Export "/" -NfsVersion NFSv3 -Description "Description" .Inputs -Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpoint +Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpoint .Inputs Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.IStorageMoverIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpoint +Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpoint .Link https://learn.microsoft.com/powershell/module/az.storagemover/new-azstoragemovernfsendpoint #> function New-AzStorageMoverNfsEndpoint { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpoint])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpoint])] [CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(Mandatory)] diff --git a/generated/StorageMover/StorageMover.Autorest/exports/New-AzStorageMoverProject.ps1 b/generated/StorageMover/StorageMover.Autorest/exports/New-AzStorageMoverProject.ps1 index 2f3981ce8043..620b6eea7245 100644 --- a/generated/StorageMover/StorageMover.Autorest/exports/New-AzStorageMoverProject.ps1 +++ b/generated/StorageMover/StorageMover.Autorest/exports/New-AzStorageMoverProject.ps1 @@ -23,9 +23,9 @@ Creates or updates a Project resource, which is a logical grouping of related jo New-AzStorageMoverProject -ResourceGroupName myResourceGroup -StorageMoverName myStorageMover -Name myProject -Description "description" .Inputs -Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IProject +Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IProject .Outputs -Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IProject +Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IProject .Notes COMPLEX PARAMETER PROPERTIES @@ -43,7 +43,7 @@ PROJECT : The Project resource. https://learn.microsoft.com/powershell/module/az.storagemover/new-azstoragemoverproject #> function New-AzStorageMoverProject { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IProject])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IProject])] [CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(Mandatory)] @@ -75,7 +75,7 @@ param( [Parameter(ParameterSetName='Create', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IProject] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IProject] # The Project resource. # To construct, see NOTES section for PROJECT properties and create a hash table. ${Project}, diff --git a/generated/StorageMover/StorageMover.Autorest/exports/New-AzStorageMoverSmbEndpoint.ps1 b/generated/StorageMover/StorageMover.Autorest/exports/New-AzStorageMoverSmbEndpoint.ps1 index 70afec0a30c7..fc332e5eb6d0 100644 --- a/generated/StorageMover/StorageMover.Autorest/exports/New-AzStorageMoverSmbEndpoint.ps1 +++ b/generated/StorageMover/StorageMover.Autorest/exports/New-AzStorageMoverSmbEndpoint.ps1 @@ -23,16 +23,16 @@ Creates an SMB endpoint resource, which represents a data transfer source or des New-AzStorageMoverSmbEndpoint -Name "myendpoint" -ResourceGroupName "myresourcegroup" -StorageMoverName "mystoragemover" -Host "10.0.0.1" -ShareName "testshare" -CredentialsUsernameUri "https://examples-azureKeyVault.vault.azure.net/secrets/username1" -CredentialsPasswordUri "https://examples-azureKeyVault.vault.azure.net/secrets/password1" .Inputs -Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpoint +Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpoint .Inputs Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.IStorageMoverIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpoint +Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpoint .Link https://learn.microsoft.com/powershell/module/az.storagemover/new-azstoragemoversmbendpoint #> function New-AzStorageMoverSmbEndpoint { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpoint])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpoint])] [CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(Mandatory)] diff --git a/generated/StorageMover/StorageMover.Autorest/exports/New-AzStorageMoverUploadLimitWeeklyRecurrenceObject.ps1 b/generated/StorageMover/StorageMover.Autorest/exports/New-AzStorageMoverUploadLimitWeeklyRecurrenceObject.ps1 index 0e85474d944d..9f0bf9b599a9 100644 --- a/generated/StorageMover/StorageMover.Autorest/exports/New-AzStorageMoverUploadLimitWeeklyRecurrenceObject.ps1 +++ b/generated/StorageMover/StorageMover.Autorest/exports/New-AzStorageMoverUploadLimitWeeklyRecurrenceObject.ps1 @@ -23,12 +23,12 @@ Create an in-memory object for UploadLimitWeeklyRecurrence. New-AzStorageMoverUploadLimitWeeklyRecurrenceObject -Day 'Monday','Tuesday','Friday' -LimitInMbps 100 -EndTimeHour 5 -StartTimeHour 1 -StartTimeMinute 30 -EndTimeMinute 0 .Outputs -Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.UploadLimitWeeklyRecurrence +Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.UploadLimitWeeklyRecurrence .Link https://learn.microsoft.com/powershell/module/Az.StorageMover/new-AzStorageMoverUploadLimitWeeklyRecurrenceObject #> function New-AzStorageMoverUploadLimitWeeklyRecurrenceObject { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.UploadLimitWeeklyRecurrence])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.UploadLimitWeeklyRecurrence])] [CmdletBinding(PositionalBinding=$false)] param( [Parameter(Mandatory)] diff --git a/generated/StorageMover/StorageMover.Autorest/exports/ProxyCmdletDefinitions.ps1 b/generated/StorageMover/StorageMover.Autorest/exports/ProxyCmdletDefinitions.ps1 index 30f5ee4f8320..fdbdbf716b9d 100644 --- a/generated/StorageMover/StorageMover.Autorest/exports/ProxyCmdletDefinitions.ps1 +++ b/generated/StorageMover/StorageMover.Autorest/exports/ProxyCmdletDefinitions.ps1 @@ -27,7 +27,7 @@ Get-AzStorageMoverAgent -ResourceGroupName myResourceGroup -StorageMoverName myS .Inputs Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.IStorageMoverIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgent +Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgent .Notes COMPLEX PARAMETER PROPERTIES @@ -47,7 +47,7 @@ INPUTOBJECT : Identity Parameter https://learn.microsoft.com/powershell/module/az.storagemover/get-azstoragemoveragent #> function Get-AzStorageMoverAgent { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgent])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgent])] [CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] param( [Parameter(ParameterSetName='Get', Mandatory)] @@ -238,7 +238,7 @@ Get-AzStorageMoverEndpoint -ResourceGroupName myResourceGroupName -StorageMoverN .Inputs Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.IStorageMoverIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpoint +Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpoint .Notes COMPLEX PARAMETER PROPERTIES @@ -258,7 +258,7 @@ INPUTOBJECT : Identity Parameter https://learn.microsoft.com/powershell/module/az.storagemover/get-azstoragemoverendpoint #> function Get-AzStorageMoverEndpoint { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpoint])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpoint])] [CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] param( [Parameter(ParameterSetName='Get', Mandatory)] @@ -449,7 +449,7 @@ Get-AzStorageMoverJobDefinition -ProjectName myProject -ResourceGroupName myReso .Inputs Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.IStorageMoverIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinition +Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinition .Notes COMPLEX PARAMETER PROPERTIES @@ -469,7 +469,7 @@ INPUTOBJECT : Identity Parameter https://learn.microsoft.com/powershell/module/az.storagemover/get-azstoragemoverjobdefinition #> function Get-AzStorageMoverJobDefinition { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinition])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinition])] [CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] param( [Parameter(ParameterSetName='Get', Mandatory)] @@ -667,7 +667,7 @@ Get-AzStorageMoverJobRun -Name myJobRun -JobDefinitionName myJobDefinition -Reso .Inputs Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.IStorageMoverIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRun +Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRun .Notes COMPLEX PARAMETER PROPERTIES @@ -687,7 +687,7 @@ INPUTOBJECT : Identity Parameter https://learn.microsoft.com/powershell/module/az.storagemover/get-azstoragemoverjobrun #> function Get-AzStorageMoverJobRun { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRun])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRun])] [CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] param( [Parameter(ParameterSetName='Get', Mandatory)] @@ -892,7 +892,7 @@ $projectList = Get-AzStorageMoverProject -ResourceGroupName myResourceGroup -Sto .Inputs Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.IStorageMoverIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IProject +Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IProject .Notes COMPLEX PARAMETER PROPERTIES @@ -912,7 +912,7 @@ INPUTOBJECT : Identity Parameter https://learn.microsoft.com/powershell/module/az.storagemover/get-azstoragemoverproject #> function Get-AzStorageMoverProject { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IProject])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IProject])] [CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] param( [Parameter(ParameterSetName='Get', Mandatory)] @@ -1105,7 +1105,7 @@ Get-AzStorageMover -ResourceGroupName myResourceGroup -Name myStorageMover1 .Inputs Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.IStorageMoverIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IStorageMover +Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IStorageMover .Notes COMPLEX PARAMETER PROPERTIES @@ -1125,7 +1125,7 @@ INPUTOBJECT : Identity Parameter https://learn.microsoft.com/powershell/module/az.storagemover/get-azstoragemover #> function Get-AzStorageMover { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IStorageMover])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IStorageMover])] [CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] param( [Parameter(ParameterSetName='Get', Mandatory)] @@ -1307,9 +1307,9 @@ Creates or updates a Job Definition resource, which contains configuration for a New-AzStorageMoverJobDefinition -Name myJob -ProjectName myProject -ResourceGroupName myResourceGroup -StorageMoverName myStorageMover -AgentName myAgent -SourceName myNfsEndpoint -TargetName myContainerEndpoint -CopyMode "Additive" -Description "job definition" .Inputs -Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinition +Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinition .Outputs -Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinition +Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinition .Notes COMPLEX PARAMETER PROPERTIES @@ -1326,14 +1326,15 @@ JOBDEFINITION : The Job Definition resource. [SystemDataLastModifiedBy ]: The identity that last modified the resource. [SystemDataLastModifiedByType ]: The type of identity that last modified the resource. [AgentName ]: Name of the Agent to assign for new Job Runs of this Job Definition. - [Description ]: A description for the Job Definition. + [Description ]: A description for the Job Definition. OnPremToCloud is for migrating data from on-premises to cloud. CloudToCloud is for migrating data between cloud to cloud. + [JobType ]: The type of the Job. [SourceSubpath ]: The subpath to use when reading from the source Endpoint. [TargetSubpath ]: The subpath to use when writing to the target Endpoint. .Link https://learn.microsoft.com/powershell/module/az.storagemover/new-azstoragemoverjobdefinition #> function New-AzStorageMoverJobDefinition { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinition])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinition])] [CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(Mandatory)] @@ -1371,7 +1372,7 @@ param( [Parameter(ParameterSetName='Create', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinition] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinition] # The Job Definition resource. # To construct, see NOTES section for JOBDEFINITION properties and create a hash table. ${JobDefinition}, @@ -1405,8 +1406,17 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Body')] [System.String] # A description for the Job Definition. + # OnPremToCloud is for migrating data from on-premises to cloud. + # CloudToCloud is for migrating data between cloud to cloud. ${Description}, + [Parameter(ParameterSetName='CreateExpanded')] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.JobType])] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.JobType] + # The type of the Job. + ${JobType}, + [Parameter(ParameterSetName='CreateExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Body')] [System.String] @@ -1565,9 +1575,9 @@ Creates or updates a Project resource, which is a logical grouping of related jo New-AzStorageMoverProject -ResourceGroupName myResourceGroup -StorageMoverName myStorageMover -Name myProject -Description "description" .Inputs -Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IProject +Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IProject .Outputs -Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IProject +Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IProject .Notes COMPLEX PARAMETER PROPERTIES @@ -1585,7 +1595,7 @@ PROJECT : The Project resource. https://learn.microsoft.com/powershell/module/az.storagemover/new-azstoragemoverproject #> function New-AzStorageMoverProject { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IProject])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IProject])] [CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(Mandatory)] @@ -1617,7 +1627,7 @@ param( [Parameter(ParameterSetName='Create', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IProject] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IProject] # The Project resource. # To construct, see NOTES section for PROJECT properties and create a hash table. ${Project}, @@ -1774,9 +1784,9 @@ Creates or updates a top-level Storage Mover resource. New-AzStorageMover -ResourceGroupName myResourceGroup -Name myStorageMover -Location eastus -Description "Description" .Inputs -Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IStorageMover +Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IStorageMover .Outputs -Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IStorageMover +Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IStorageMover .Notes COMPLEX PARAMETER PROPERTIES @@ -1797,7 +1807,7 @@ STORAGEMOVER : The Storage Mover resource, which is a container f https://learn.microsoft.com/powershell/module/az.storagemover/new-azstoragemover #> function New-AzStorageMover { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IStorageMover])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IStorageMover])] [CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(Mandatory)] @@ -1823,7 +1833,7 @@ param( [Parameter(ParameterSetName='Create', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IStorageMover] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IStorageMover] # The Storage Mover resource, which is a container for a group of Agents, Projects, and Endpoints. # To construct, see NOTES section for STORAGEMOVER properties and create a hash table. ${StorageMover}, @@ -3095,11 +3105,11 @@ $recurrence = New-AzStorageMoverUploadLimitWeeklyRecurrenceObject -Day 'Monday', Update-AzStorageMoverAgent -ResourceGroupName myresourcegroup -StorageMoverName mystoragemover -Name myagent -Description "Update description" -UploadLimitScheduleWeeklyRecurrence $recurrence .Inputs -Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentUpdateParameters +Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentUpdateParameters .Inputs Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.IStorageMoverIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgent +Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgent .Notes COMPLEX PARAMETER PROPERTIES @@ -3137,7 +3147,7 @@ UPLOADLIMITSCHEDULEWEEKLYRECURRENCE : The set of https://learn.microsoft.com/powershell/module/az.storagemover/update-azstoragemoveragent #> function Update-AzStorageMoverAgent { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgent])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgent])] [CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='Update', Mandatory)] @@ -3182,7 +3192,7 @@ param( [Parameter(ParameterSetName='Update', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='UpdateViaIdentity', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentUpdateParameters] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentUpdateParameters] # The Agent resource. # To construct, see NOTES section for AGENT properties and create a hash table. ${Agent}, @@ -3198,7 +3208,7 @@ param( [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [AllowEmptyCollection()] [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IUploadLimitWeeklyRecurrence[]] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IUploadLimitWeeklyRecurrence[]] # The set of weekly repeating recurrences of the WAN-link upload limit schedule. # To construct, see NOTES section for UPLOADLIMITSCHEDULEWEEKLYRECURRENCE properties and create a hash table. ${UploadLimitScheduleWeeklyRecurrence}, @@ -3353,11 +3363,11 @@ Properties not specified in the request body will be unchanged. Update-AzStorageMoverJobDefinition -Name myJob -ProjectName myProject -ResourceGroupName myResourceGroup -StorageMoverName myStorageMover -Description "Update Description" .Inputs -Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinitionUpdateParameters +Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionUpdateParameters .Inputs Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.IStorageMoverIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinition +Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinition .Notes COMPLEX PARAMETER PROPERTIES @@ -3382,7 +3392,7 @@ JOBDEFINITION : The Job Definition resource. https://learn.microsoft.com/powershell/module/az.storagemover/update-azstoragemoverjobdefinition #> function Update-AzStorageMoverJobDefinition { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinition])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinition])] [CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='Update', Mandatory)] @@ -3434,7 +3444,7 @@ param( [Parameter(ParameterSetName='Update', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='UpdateViaIdentity', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinitionUpdateParameters] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionUpdateParameters] # The Job Definition resource. # To construct, see NOTES section for JOBDEFINITION properties and create a hash table. ${JobDefinition}, @@ -3611,11 +3621,11 @@ Properties not specified in the request body will be unchanged. Update-AzStorageMoverProject -ResourceGroupName myResourceGroup -StorageMoverName myStorageMover -Name myProject -Description "Update Description" .Inputs -Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IProjectUpdateParameters +Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IProjectUpdateParameters .Inputs Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.IStorageMoverIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IProject +Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IProject .Notes COMPLEX PARAMETER PROPERTIES @@ -3638,7 +3648,7 @@ PROJECT : The Project resource. https://learn.microsoft.com/powershell/module/az.storagemover/update-azstoragemoverproject #> function Update-AzStorageMoverProject { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IProject])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IProject])] [CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='Update', Mandatory)] @@ -3683,7 +3693,7 @@ param( [Parameter(ParameterSetName='Update', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='UpdateViaIdentity', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IProjectUpdateParameters] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IProjectUpdateParameters] # The Project resource. # To construct, see NOTES section for PROJECT properties and create a hash table. ${Project}, @@ -3845,11 +3855,11 @@ Properties not specified in the request body will be unchanged. Update-AzStorageMover -ResourceGroupName myResourceGroup -Name myStorageMover -Description "Update description" .Inputs -Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IStorageMoverUpdateParameters +Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IStorageMoverUpdateParameters .Inputs Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.IStorageMoverIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IStorageMover +Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IStorageMover .Notes COMPLEX PARAMETER PROPERTIES @@ -3874,7 +3884,7 @@ STORAGEMOVER : The Storage Mover resource. https://learn.microsoft.com/powershell/module/az.storagemover/update-azstoragemover #> function Update-AzStorageMover { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IStorageMover])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IStorageMover])] [CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='Update', Mandatory)] @@ -3912,7 +3922,7 @@ param( [Parameter(ParameterSetName='Update', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='UpdateViaIdentity', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IStorageMoverUpdateParameters] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IStorageMoverUpdateParameters] # The Storage Mover resource. # To construct, see NOTES section for STORAGEMOVER properties and create a hash table. ${StorageMover}, @@ -3927,7 +3937,7 @@ param( [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IStorageMoverUpdateParametersTags]))] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IStorageMoverUpdateParametersTags]))] [System.Collections.Hashtable] # Resource tags. ${Tag}, @@ -4073,24 +4083,23 @@ end { <# .Synopsis -Creates a Smb file share endpoint resource, which represents a data transfer source or destination. +Creates a Nfs file share endpoint resource, which represents a data transfer source or destination. .Description -Creates a Smb file share endpoint resource, which represents a data transfer source or destination. +Creates a Nfs file share endpoint resource, which represents a data transfer source or destination. .Example -New-AzStorageMoverAzSmbFileShareEndpoint -Name "myendpoint" -ResourceGroupName "myresourcegroup" -StorageMoverName "mystoragemover" -StorageAccountResourceId $accountresourceid -FileShareName testfs -Description "New smb file share endpoint" +New-AzStorageMoverAzNfsFileShareEndpoint -Name "my-nfs-endpoint" -ResourceGroupName "my-resource-group" -StorageMoverName "my-storage-mover" -FileShareName "10.0.0.1" -Description "My NFS endpoint" .Inputs -Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpoint +Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpoint .Inputs Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.IStorageMoverIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpoint +Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpoint .Link -https://learn.microsoft.com/powershell/module/az.storagemover/new-azstoragemoverazsmbfileshareendpoint +https://learn.microsoft.com/powershell/module/az.storagemover/new-azstoragemoveraznfsfileshareendpoint #> -function New-AzStorageMoverAzSmbFileShareEndpoint { -[Alias('New-AzStorageMoverSmbFileShareEndpoint')] -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpoint])] +function New-AzStorageMoverAzNfsFileShareEndpoint { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpoint])] [CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(Mandatory)] @@ -4212,7 +4221,7 @@ begin { } $mapping = @{ - CreateExpanded = 'Az.StorageMover.custom\New-AzStorageMoverAzSmbFileShareEndpoint'; + CreateExpanded = 'Az.StorageMover.custom\New-AzStorageMoverAzNfsFileShareEndpoint'; } if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { $testPlayback = $false @@ -4275,23 +4284,24 @@ end { <# .Synopsis -Creates an AzStorageContainer endpoint resource, which represents a data transfer source or destination. +Creates a Smb file share endpoint resource, which represents a data transfer source or destination. .Description -Creates an AzStorageContainer endpoint resource, which represents a data transfer source or destination. +Creates a Smb file share endpoint resource, which represents a data transfer source or destination. .Example -New-AzStorageMoverAzStorageContainerEndpoint -Name myEndpoint -ResourceGroupName myResourceGroup -BlobContainerName myContainer -StorageMoverName myStorageMover -StorageAccountResourceId myAccountResourceId +New-AzStorageMoverAzSmbFileShareEndpoint -Name "myendpoint" -ResourceGroupName "myresourcegroup" -StorageMoverName "mystoragemover" -StorageAccountResourceId $accountresourceid -FileShareName testfs -Description "New smb file share endpoint" .Inputs -Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpoint +Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpoint .Inputs Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.IStorageMoverIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpoint +Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpoint .Link -https://learn.microsoft.com/powershell/module/az.storagemover/new-azstoragemoverazstoragecontainerendpoint +https://learn.microsoft.com/powershell/module/az.storagemover/new-azstoragemoverazsmbfileshareendpoint #> -function New-AzStorageMoverAzStorageContainerEndpoint { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpoint])] +function New-AzStorageMoverAzSmbFileShareEndpoint { +[Alias('New-AzStorageMoverSmbFileShareEndpoint')] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpoint])] [CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(Mandatory)] @@ -4324,14 +4334,14 @@ param( [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Body')] [System.String] - # The name of the Storage blob container that is the target destination. - ${BlobContainerName}, + # The Azure Resource ID of the storage account that is the target destination. + ${StorageAccountResourceId}, [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Body')] [System.String] - # The Azure Resource ID of the storage account that is the target destination. - ${StorageAccountResourceId}, + # The name of the Azure Storage file share. + ${FileShareName}, [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Body')] @@ -4413,7 +4423,7 @@ begin { } $mapping = @{ - CreateExpanded = 'Az.StorageMover.custom\New-AzStorageMoverAzStorageContainerEndpoint'; + CreateExpanded = 'Az.StorageMover.custom\New-AzStorageMoverAzSmbFileShareEndpoint'; } if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { $testPlayback = $false @@ -4476,23 +4486,23 @@ end { <# .Synopsis -Creates a Nfs endpoint resource, which represents a data transfer source or destination. +Creates an AzStorageContainer endpoint resource, which represents a data transfer source or destination. .Description -Creates a Nfs endpoint resource, which represents a data transfer source or destination. +Creates an AzStorageContainer endpoint resource, which represents a data transfer source or destination. .Example - New-AzStorageMoverNfsEndpoint -Name myEndpoint -ResourceGroupName myResourceGroup -StorageMoverName myStorageMover -Host "10.0.0.1" -Export "/" -NfsVersion NFSv3 -Description "Description" +New-AzStorageMoverAzStorageContainerEndpoint -Name myEndpoint -ResourceGroupName myResourceGroup -BlobContainerName myContainer -StorageMoverName myStorageMover -StorageAccountResourceId myAccountResourceId .Inputs -Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpoint +Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpoint .Inputs Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.IStorageMoverIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpoint +Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpoint .Link -https://learn.microsoft.com/powershell/module/az.storagemover/new-azstoragemovernfsendpoint +https://learn.microsoft.com/powershell/module/az.storagemover/new-azstoragemoverazstoragecontainerendpoint #> -function New-AzStorageMoverNfsEndpoint { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpoint])] +function New-AzStorageMoverAzStorageContainerEndpoint { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpoint])] [CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(Mandatory)] @@ -4525,21 +4535,14 @@ param( [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Body')] [System.String] - # The host name or IP address of the server exporting the file system. - ${Host}, + # The name of the Storage blob container that is the target destination. + ${BlobContainerName}, [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Body')] [System.String] - # The directory being exported from the server. - ${Export}, - - [Parameter()] - [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.NfsVersion])] - [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.NfsVersion] - # The NFS protocol version. - ${NfsVersion}, + # The Azure Resource ID of the storage account that is the target destination. + ${StorageAccountResourceId}, [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Body')] @@ -4621,7 +4624,7 @@ begin { } $mapping = @{ - CreateExpanded = 'Az.StorageMover.custom\New-AzStorageMoverNfsEndpoint'; + CreateExpanded = 'Az.StorageMover.custom\New-AzStorageMoverAzStorageContainerEndpoint'; } if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { $testPlayback = $false @@ -4684,23 +4687,23 @@ end { <# .Synopsis -Creates an SMB endpoint resource, which represents a data transfer source or destination. +Creates a multicloud connector endpoint resource, which represents a data transfer source or destination. .Description -Creates an SMB endpoint resource, which represents a data transfer source or destination. +Creates a Multi-Cloud Connector endpoint resource, which represents a data transfer source or destination. .Example -New-AzStorageMoverSmbEndpoint -Name "myendpoint" -ResourceGroupName "myresourcegroup" -StorageMoverName "mystoragemover" -Host "10.0.0.1" -ShareName "testshare" -CredentialsUsernameUri "https://examples-azureKeyVault.vault.azure.net/secrets/username1" -CredentialsPasswordUri "https://examples-azureKeyVault.vault.azure.net/secrets/password1" +New-AzStorageMoverMultiCloudConnectorEndpoint -Name "my-mc-endpoint" -ResourceGroupName "my-resource-group" -StorageMoverName "my-storage-mover" -AWSS3BucketId "my-s3-bucket" -Description "My Multi-Cloud endpoint" .Inputs -Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpoint +Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpoint .Inputs Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.IStorageMoverIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpoint +Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpoint .Link -https://learn.microsoft.com/powershell/module/az.storagemover/new-azstoragemoversmbendpoint +https://learn.microsoft.com/powershell/module/az.storagemover/new-azstoragemovermulticloudconnectorendpoint #> -function New-AzStorageMoverSmbEndpoint { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpoint])] +function New-AzStorageMoverMultiCloudConnectorEndpoint { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpoint])] [CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(Mandatory)] @@ -4733,28 +4736,14 @@ param( [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Body')] [System.String] - # The host name or IP address of the server exporting the file system. - ${Host}, + # The Azure Resource ID of the multi-cloud connector. + ${MultiCloudConnectorId}, [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Body')] [System.String] - # The name of the SMB share being exported from the server - ${ShareName}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Body')] - [System.String] - # The secret URI which stores the username. - # Use empty string to clean-up existing value. - ${CredentialsUsernameUri}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Body')] - [System.String] - # The secret URI which stores the password. - # Use empty string to clean-up existing value. - ${CredentialsPasswordUri}, + # The Azure Resource ID of the AWS S3 bucket listed in the multi cloud connector. + ${AWSS3BucketId}, [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Body')] @@ -4836,7 +4825,7 @@ begin { } $mapping = @{ - CreateExpanded = 'Az.StorageMover.custom\New-AzStorageMoverSmbEndpoint'; + CreateExpanded = 'Az.StorageMover.custom\New-AzStorageMoverMultiCloudConnectorEndpoint'; } if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { $testPlayback = $false @@ -4899,72 +4888,123 @@ end { <# .Synopsis -Create an in-memory object for UploadLimitWeeklyRecurrence. +Creates a Nfs endpoint resource, which represents a data transfer source or destination. .Description -Create an in-memory object for UploadLimitWeeklyRecurrence. +Creates a Nfs endpoint resource, which represents a data transfer source or destination. .Example -New-AzStorageMoverUploadLimitWeeklyRecurrenceObject -Day 'Monday','Tuesday','Friday' -LimitInMbps 100 -EndTimeHour 5 -StartTimeHour 1 -StartTimeMinute 30 -EndTimeMinute 0 + New-AzStorageMoverNfsEndpoint -Name myEndpoint -ResourceGroupName myResourceGroup -StorageMoverName myStorageMover -Host "10.0.0.1" -Export "/" -NfsVersion NFSv3 -Description "Description" +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpoint +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.IStorageMoverIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.UploadLimitWeeklyRecurrence +Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpoint .Link -https://learn.microsoft.com/powershell/module/Az.StorageMover/new-AzStorageMoverUploadLimitWeeklyRecurrenceObject +https://learn.microsoft.com/powershell/module/az.storagemover/new-azstoragemovernfsendpoint #> -function New-AzStorageMoverUploadLimitWeeklyRecurrenceObject { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.UploadLimitWeeklyRecurrence])] -[CmdletBinding(PositionalBinding=$false)] +function New-AzStorageMoverNfsEndpoint { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpoint])] +[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(Mandatory)] - [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.DayOfWeek])] - [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.DayOfWeek[]] - # The set of days of week for the schedule recurrence. - # A day must not be specified more than once in a recurrence. - ${Day}, + [Alias('EndpointName')] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Path')] + [System.String] + # The name of the endpoint resource. + ${Name}, [Parameter(Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Body')] - [System.Int32] - # The WAN-link upload bandwidth (maximum data transfer rate) in megabits per second. - # Value of 0 indicates no throughput is allowed and any running migration job is effectively paused for the duration of this recurrence. - # Only data plane operations are governed by this limit. - # Control plane operations ensure seamless functionality. - # The agent may exceed this limit with control messages, if necessary. - ${LimitInMbps}, + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Path')] + [System.String] + # The name of the resource group. + # The name is case insensitive. + ${ResourceGroupName}, + + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Path')] + [System.String] + # The name of the Storage Mover resource. + ${StorageMoverName}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String] + # The ID of the target subscription. + ${SubscriptionId}, [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Body')] - [System.Int32] - # The hour element of the time. - # Allowed values range from 0 (start of the selected day) to 24 (end of the selected day). - # Hour value 24 cannot be combined with any other minute value but 0. - ${EndTimeHour}, + [System.String] + # The host name or IP address of the server exporting the file system. + ${Host}, [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Body')] - [System.Int32] - # The hour element of the time. - # Allowed values range from 0 (start of the selected day) to 24 (end of the selected day). - # Hour value 24 cannot be combined with any other minute value but 0. - ${StartTimeHour}, + [System.String] + # The directory being exported from the server. + ${Export}, [Parameter()] - [ArgumentCompleter({0, 30})] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.NfsVersion])] [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Body')] - [System.Int32] - # The minute element of the time. - # Allowed values are 0 and 30. - # If not specified, its value defaults to 0. - ${EndTimeMinute}, + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.NfsVersion] + # The NFS protocol version. + ${NfsVersion}, [Parameter()] - [ArgumentCompleter({0, 30})] [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Body')] - [System.Int32] - # The minute element of the time. - # Allowed values are 0 and 30. - # If not specified, its value defaults to 0. - ${StartTimeMinute} + [System.String] + # A description for the endpoint. + ${Description}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Azure')] + [System.Management.Automation.PSObject] + # The credentials, account, tenant, and subscription used for communication with Azure. + ${DefaultProfile}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} ) begin { @@ -4993,7 +5033,16 @@ begin { } $mapping = @{ - __AllParameterSets = 'Az.StorageMover.custom\New-AzStorageMoverUploadLimitWeeklyRecurrenceObject'; + CreateExpanded = 'Az.StorageMover.custom\New-AzStorageMoverNfsEndpoint'; + } + if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) @@ -5047,66 +5096,891 @@ end { <# .Synopsis -Deletes a Storage Mover resource. +Creates an SMB endpoint resource, which represents a data transfer source or destination. .Description -Deletes a Storage Mover resource. +Creates an SMB endpoint resource, which represents a data transfer source or destination. .Example -Remove-AzStorageMover -ResourceGroupName myResourceGroup -Name myStorageMover +New-AzStorageMoverSmbEndpoint -Name "myendpoint" -ResourceGroupName "myresourcegroup" -StorageMoverName "mystoragemover" -Host "10.0.0.1" -ShareName "testshare" -CredentialsUsernameUri "https://examples-azureKeyVault.vault.azure.net/secrets/username1" -CredentialsPasswordUri "https://examples-azureKeyVault.vault.azure.net/secrets/password1" +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpoint .Inputs Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.IStorageMoverIdentity .Outputs -System.Boolean -.Notes -COMPLEX PARAMETER PROPERTIES - -To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. - -INPUTOBJECT : Identity Parameter - [AgentName ]: The name of the Agent resource. - [EndpointName ]: The name of the Endpoint resource. - [Id ]: Resource identity path - [JobDefinitionName ]: The name of the Job Definition resource. - [JobRunName ]: The name of the Job Run resource. - [ProjectName ]: The name of the Project resource. - [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [StorageMoverName ]: The name of the Storage Mover resource. - [SubscriptionId ]: The ID of the target subscription. +Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpoint .Link -https://learn.microsoft.com/powershell/module/az.storagemover/remove-azstoragemover +https://learn.microsoft.com/powershell/module/az.storagemover/new-azstoragemoversmbendpoint #> -function Remove-AzStorageMover { -[OutputType([System.Boolean])] -[CmdletBinding(DefaultParameterSetName='Delete', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +function New-AzStorageMoverSmbEndpoint { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpoint])] +[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(Mandatory)] + [Alias('EndpointName')] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Path')] + [System.String] + # The name of the endpoint resource. + ${Name}, + + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Path')] + [System.String] + # The name of the resource group. + # The name is case insensitive. + ${ResourceGroupName}, + + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Path')] + [System.String] + # The name of the Storage Mover resource. + ${StorageMoverName}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String] + # The ID of the target subscription. + ${SubscriptionId}, + + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Body')] + [System.String] + # The host name or IP address of the server exporting the file system. + ${Host}, + + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Body')] + [System.String] + # The name of the SMB share being exported from the server + ${ShareName}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Body')] + [System.String] + # The secret URI which stores the username. + # Use empty string to clean-up existing value. + ${CredentialsUsernameUri}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Body')] + [System.String] + # The secret URI which stores the password. + # Use empty string to clean-up existing value. + ${CredentialsPasswordUri}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Body')] + [System.String] + # A description for the endpoint. + ${Description}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Azure')] + [System.Management.Automation.PSObject] + # The credentials, account, tenant, and subscription used for communication with Azure. + ${DefaultProfile}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + + $mapping = @{ + CreateExpanded = 'Az.StorageMover.custom\New-AzStorageMoverSmbEndpoint'; + } + if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + } + $cmdInfo = Get-Command -Name $mapping[$parameterSet] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } + + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} +end { + try { + $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} +} + +<# +.Synopsis +Create an in-memory object for UploadLimitWeeklyRecurrence. +.Description +Create an in-memory object for UploadLimitWeeklyRecurrence. +.Example +New-AzStorageMoverUploadLimitWeeklyRecurrenceObject -Day 'Monday','Tuesday','Friday' -LimitInMbps 100 -EndTimeHour 5 -StartTimeHour 1 -StartTimeMinute 30 -EndTimeMinute 0 + +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.UploadLimitWeeklyRecurrence +.Link +https://learn.microsoft.com/powershell/module/Az.StorageMover/new-AzStorageMoverUploadLimitWeeklyRecurrenceObject +#> +function New-AzStorageMoverUploadLimitWeeklyRecurrenceObject { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.UploadLimitWeeklyRecurrence])] +[CmdletBinding(PositionalBinding=$false)] +param( + [Parameter(Mandatory)] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.DayOfWeek])] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.DayOfWeek[]] + # The set of days of week for the schedule recurrence. + # A day must not be specified more than once in a recurrence. + ${Day}, + + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Body')] + [System.Int32] + # The WAN-link upload bandwidth (maximum data transfer rate) in megabits per second. + # Value of 0 indicates no throughput is allowed and any running migration job is effectively paused for the duration of this recurrence. + # Only data plane operations are governed by this limit. + # Control plane operations ensure seamless functionality. + # The agent may exceed this limit with control messages, if necessary. + ${LimitInMbps}, + + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Body')] + [System.Int32] + # The hour element of the time. + # Allowed values range from 0 (start of the selected day) to 24 (end of the selected day). + # Hour value 24 cannot be combined with any other minute value but 0. + ${EndTimeHour}, + + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Body')] + [System.Int32] + # The hour element of the time. + # Allowed values range from 0 (start of the selected day) to 24 (end of the selected day). + # Hour value 24 cannot be combined with any other minute value but 0. + ${StartTimeHour}, + + [Parameter()] + [ArgumentCompleter({0, 30})] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Body')] + [System.Int32] + # The minute element of the time. + # Allowed values are 0 and 30. + # If not specified, its value defaults to 0. + ${EndTimeMinute}, + + [Parameter()] + [ArgumentCompleter({0, 30})] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Body')] + [System.Int32] + # The minute element of the time. + # Allowed values are 0 and 30. + # If not specified, its value defaults to 0. + ${StartTimeMinute} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + + $mapping = @{ + __AllParameterSets = 'Az.StorageMover.custom\New-AzStorageMoverUploadLimitWeeklyRecurrenceObject'; + } + $cmdInfo = Get-Command -Name $mapping[$parameterSet] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } + + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} +end { + try { + $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} +} + +<# +.Synopsis +Deletes a Storage Mover resource. +.Description +Deletes a Storage Mover resource. +.Example +Remove-AzStorageMover -ResourceGroupName myResourceGroup -Name myStorageMover + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.IStorageMoverIdentity +.Outputs +System.Boolean +.Notes +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + +INPUTOBJECT : Identity Parameter + [AgentName ]: The name of the Agent resource. + [EndpointName ]: The name of the Endpoint resource. + [Id ]: Resource identity path + [JobDefinitionName ]: The name of the Job Definition resource. + [JobRunName ]: The name of the Job Run resource. + [ProjectName ]: The name of the Project resource. + [ResourceGroupName ]: The name of the resource group. The name is case insensitive. + [StorageMoverName ]: The name of the Storage Mover resource. + [SubscriptionId ]: The ID of the target subscription. +.Link +https://learn.microsoft.com/powershell/module/az.storagemover/remove-azstoragemover +#> +function Remove-AzStorageMover { +[OutputType([System.Boolean])] +[CmdletBinding(DefaultParameterSetName='Delete', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(ParameterSetName='Delete', Mandatory)] + [Alias('StorageMoverName')] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Path')] + [System.String] + # The name of the Storage Mover resource. + ${Name}, + + [Parameter(ParameterSetName='Delete', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Path')] + [System.String] + # The name of the resource group. + # The name is case insensitive. + ${ResourceGroupName}, + + [Parameter(ParameterSetName='Delete')] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String] + # The ID of the target subscription. + ${SubscriptionId}, + + [Parameter(ParameterSetName='DeleteViaIdentity', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.IStorageMoverIdentity] + # Identity Parameter + # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + ${InputObject}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Azure')] + [System.Management.Automation.PSObject] + # The credentials, account, tenant, and subscription used for communication with Azure. + ${DefaultProfile}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + ${Force}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command as a job + ${AsJob}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command asynchronously + ${NoWait}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Returns true when the command succeeds + ${PassThru}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + + $mapping = @{ + Delete = 'Az.StorageMover.custom\Remove-AzStorageMover'; + DeleteViaIdentity = 'Az.StorageMover.custom\Remove-AzStorageMover'; + } + if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + } + $cmdInfo = Get-Command -Name $mapping[$parameterSet] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } + + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} +end { + try { + $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} +} + +<# +.Synopsis +Deletes an agent resource. +.Description +Deletes an agent resource. +.Example +Unregister-AzStorageMoverAgent -ResourceGroupName myResourceGroup -StorageMoverName myStorageMover -Name myAgent + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.IStorageMoverIdentity +.Outputs +System.Boolean +.Notes +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + +INPUTOBJECT : Identity Parameter + [AgentName ]: The name of the Agent resource. + [EndpointName ]: The name of the Endpoint resource. + [Id ]: Resource identity path + [JobDefinitionName ]: The name of the Job Definition resource. + [JobRunName ]: The name of the Job Run resource. + [ProjectName ]: The name of the Project resource. + [ResourceGroupName ]: The name of the resource group. The name is case insensitive. + [StorageMoverName ]: The name of the Storage Mover resource. + [SubscriptionId ]: The ID of the target subscription. +.Link +https://learn.microsoft.com/powershell/module/az.storagemover/unregister-azstoragemoveragent +#> +function Unregister-AzStorageMoverAgent { +[OutputType([System.Boolean])] +[CmdletBinding(DefaultParameterSetName='Delete', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(ParameterSetName='Delete', Mandatory)] + [Alias('AgentName')] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Path')] + [System.String] + # The name of the agent resource. + ${Name}, + + [Parameter(ParameterSetName='Delete', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Path')] + [System.String] + # The name of the resource group. + # The name is case insensitive. + ${ResourceGroupName}, + + [Parameter(ParameterSetName='Delete', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Path')] + [System.String] + # The name of the Storage Mover resource. + ${StorageMoverName}, + + [Parameter(ParameterSetName='Delete')] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String] + # The ID of the target subscription. + ${SubscriptionId}, + + [Parameter(ParameterSetName='DeleteViaIdentity', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.IStorageMoverIdentity] + # Identity Parameter + # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + ${InputObject}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Azure')] + [System.Management.Automation.PSObject] + # The credentials, account, tenant, and subscription used for communication with Azure. + ${DefaultProfile}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + ${Force}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command as a job + ${AsJob}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command asynchronously + ${NoWait}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Returns true when the command succeeds + ${PassThru}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + + $mapping = @{ + Delete = 'Az.StorageMover.custom\Unregister-AzStorageMoverAgent'; + DeleteViaIdentity = 'Az.StorageMover.custom\Unregister-AzStorageMoverAgent'; + } + if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + } + $cmdInfo = Get-Command -Name $mapping[$parameterSet] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } + + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} +end { + try { + $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} +} + +<# +.Synopsis +Updates properties for a Nfs File Share endpoint resource. +Properties not specified in the request body will be unchanged. +.Description +Updates properties for a Nfs File Share endpoint resource. +Properties not specified in the request body will be unchanged. +.Example +Update-AzStorageMoverAzNfsFileShareEndpoint -Name "my-nfs-endpoint" -ResourceGroupName "my-resource-group" -StorageMoverName "my-storage-mover" -Description "My updated NFS endpoint" + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.IStorageMoverIdentity +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpoint +.Notes +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + +INPUTOBJECT : Identity Parameter + [AgentName ]: The name of the Agent resource. + [EndpointName ]: The name of the Endpoint resource. + [Id ]: Resource identity path + [JobDefinitionName ]: The name of the Job Definition resource. + [JobRunName ]: The name of the Job Run resource. + [ProjectName ]: The name of the Project resource. + [ResourceGroupName ]: The name of the resource group. The name is case insensitive. + [StorageMoverName ]: The name of the Storage Mover resource. + [SubscriptionId ]: The ID of the target subscription. +.Link +https://learn.microsoft.com/powershell/module/az.storagemover/update-azstoragemovernfsfileshareendpoint +#> +function Update-AzStorageMoverAzNfsFileShareEndpoint { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpoint])] +[CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( - [Parameter(ParameterSetName='Delete', Mandatory)] - [Alias('StorageMoverName')] + [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] + [Alias('EndpointName')] [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Path')] [System.String] - # The name of the Storage Mover resource. + # The name of the endpoint resource. ${Name}, - [Parameter(ParameterSetName='Delete', Mandatory)] + [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Path')] [System.String] # The name of the resource group. # The name is case insensitive. ${ResourceGroupName}, - [Parameter(ParameterSetName='Delete')] + [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Path')] + [System.String] + # The name of the Storage Mover resource. + ${StorageMoverName}, + + [Parameter(ParameterSetName='UpdateExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String] # The ID of the target subscription. ${SubscriptionId}, - [Parameter(ParameterSetName='DeleteViaIdentity', Mandatory, ValueFromPipeline)] + [Parameter(ParameterSetName='UpdateViaIdentityExpanded', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.IStorageMoverIdentity] # Identity Parameter # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Body')] + [System.String] + # A description for the endpoint. + ${Description}, + [Parameter()] [Alias('AzureRMContext', 'AzureCredential')] [ValidateNotNull()] @@ -5115,17 +5989,6 @@ param( # The credentials, account, tenant, and subscription used for communication with Azure. ${DefaultProfile}, - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - ${Force}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Run the command as a job - ${AsJob}, - [Parameter(DontShow)] [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Runtime')] [System.Management.Automation.SwitchParameter] @@ -5146,18 +6009,6 @@ param( # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Run the command asynchronously - ${NoWait}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Returns true when the command succeeds - ${PassThru}, - [Parameter(DontShow)] [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Runtime')] [System.Uri] @@ -5204,10 +6055,10 @@ begin { } $mapping = @{ - Delete = 'Az.StorageMover.custom\Remove-AzStorageMover'; - DeleteViaIdentity = 'Az.StorageMover.custom\Remove-AzStorageMover'; + UpdateExpanded = 'Az.StorageMover.custom\Update-AzStorageMoverAzNfsFileShareEndpoint'; + UpdateViaIdentityExpanded = 'Az.StorageMover.custom\Update-AzStorageMoverAzNfsFileShareEndpoint'; } - if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + if (('UpdateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { $testPlayback = $false $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { @@ -5268,16 +6119,20 @@ end { <# .Synopsis -Deletes an agent resource. +Updates properties for a SMB file share endpoint resource. +Properties not specified in the request body will be unchanged. .Description -Deletes an agent resource. +Updates properties for a SMB file share endpoint resource. +Properties not specified in the request body will be unchanged. .Example -Unregister-AzStorageMoverAgent -ResourceGroupName myResourceGroup -StorageMoverName myStorageMover -Name myAgent +Update-AzStorageMoverAzSmbFileShareEndpoint -Name "myendpoint" -ResourceGroupName "myresourcegroup" -StorageMoverName "mystoragemover" -Description "updated endpoint" +.Example +Get-AzStorageMoverEndpoint -ResourceGroupName "myresourcegroup" -StorageMoverName "mystoragemover" -Name "myendpoint" | Update-AzStorageMoverAzSmbFileShareEndpoint -Description "updated endpoint again" .Inputs Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.IStorageMoverIdentity .Outputs -System.Boolean +Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpoint .Notes COMPLEX PARAMETER PROPERTIES @@ -5294,46 +6149,53 @@ INPUTOBJECT : Identity Parameter [StorageMoverName ]: The name of the Storage Mover resource. [SubscriptionId ]: The ID of the target subscription. .Link -https://learn.microsoft.com/powershell/module/az.storagemover/unregister-azstoragemoveragent +https://learn.microsoft.com/powershell/module/az.storagemover/update-azstoragemoverazsmbfileshareendpoint #> -function Unregister-AzStorageMoverAgent { -[OutputType([System.Boolean])] -[CmdletBinding(DefaultParameterSetName='Delete', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +function Update-AzStorageMoverAzSmbFileShareEndpoint { +[Alias('Update-AzStorageMoverSmbFileShareEndpoint')] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpoint])] +[CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( - [Parameter(ParameterSetName='Delete', Mandatory)] - [Alias('AgentName')] + [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] + [Alias('EndpointName')] [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Path')] [System.String] - # The name of the agent resource. + # The name of the endpoint resource. ${Name}, - [Parameter(ParameterSetName='Delete', Mandatory)] + [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Path')] [System.String] # The name of the resource group. # The name is case insensitive. ${ResourceGroupName}, - [Parameter(ParameterSetName='Delete', Mandatory)] + [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Path')] [System.String] # The name of the Storage Mover resource. ${StorageMoverName}, - [Parameter(ParameterSetName='Delete')] + [Parameter(ParameterSetName='UpdateExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String] # The ID of the target subscription. ${SubscriptionId}, - [Parameter(ParameterSetName='DeleteViaIdentity', Mandatory, ValueFromPipeline)] + [Parameter(ParameterSetName='UpdateViaIdentityExpanded', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.IStorageMoverIdentity] # Identity Parameter # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Body')] + [System.String] + # A description for the endpoint. + ${Description}, + [Parameter()] [Alias('AzureRMContext', 'AzureCredential')] [ValidateNotNull()] @@ -5342,17 +6204,6 @@ param( # The credentials, account, tenant, and subscription used for communication with Azure. ${DefaultProfile}, - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - ${Force}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Run the command as a job - ${AsJob}, - [Parameter(DontShow)] [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Runtime')] [System.Management.Automation.SwitchParameter] @@ -5373,18 +6224,6 @@ param( # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Run the command asynchronously - ${NoWait}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Returns true when the command succeeds - ${PassThru}, - [Parameter(DontShow)] [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Runtime')] [System.Uri] @@ -5431,10 +6270,10 @@ begin { } $mapping = @{ - Delete = 'Az.StorageMover.custom\Unregister-AzStorageMoverAgent'; - DeleteViaIdentity = 'Az.StorageMover.custom\Unregister-AzStorageMoverAgent'; + UpdateExpanded = 'Az.StorageMover.custom\Update-AzStorageMoverAzSmbFileShareEndpoint'; + UpdateViaIdentityExpanded = 'Az.StorageMover.custom\Update-AzStorageMoverAzSmbFileShareEndpoint'; } - if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + if (('UpdateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { $testPlayback = $false $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { @@ -5495,20 +6334,18 @@ end { <# .Synopsis -Updates properties for a SMB file share endpoint resource. +Updates properties for an AzStorageContainer endpoint resource. Properties not specified in the request body will be unchanged. .Description -Updates properties for a SMB file share endpoint resource. +Updates properties for an AzStorageContainer endpoint resource. Properties not specified in the request body will be unchanged. .Example -Update-AzStorageMoverAzSmbFileShareEndpoint -Name "myendpoint" -ResourceGroupName "myresourcegroup" -StorageMoverName "mystoragemover" -Description "updated endpoint" -.Example -Get-AzStorageMoverEndpoint -ResourceGroupName "myresourcegroup" -StorageMoverName "mystoragemover" -Name "myendpoint" | Update-AzStorageMoverAzSmbFileShareEndpoint -Description "updated endpoint again" +Update-AzStorageMoverAzStorageContainerEndpoint -Name myEndpoint -ResourceGroupName myResourceGroup -StorageMoverName myStorageMover -Description "Update Description" .Inputs Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.IStorageMoverIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpoint +Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpoint .Notes COMPLEX PARAMETER PROPERTIES @@ -5525,11 +6362,10 @@ INPUTOBJECT : Identity Parameter [StorageMoverName ]: The name of the Storage Mover resource. [SubscriptionId ]: The ID of the target subscription. .Link -https://learn.microsoft.com/powershell/module/az.storagemover/update-azstoragemoverazsmbfileshareendpoint +https://learn.microsoft.com/powershell/module/az.storagemover/update-azstoragemoverazstoragecontainerendpoint #> -function Update-AzStorageMoverAzSmbFileShareEndpoint { -[Alias('Update-AzStorageMoverSmbFileShareEndpoint')] -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpoint])] +function Update-AzStorageMoverAzStorageContainerEndpoint { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpoint])] [CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] @@ -5646,8 +6482,8 @@ begin { } $mapping = @{ - UpdateExpanded = 'Az.StorageMover.custom\Update-AzStorageMoverAzSmbFileShareEndpoint'; - UpdateViaIdentityExpanded = 'Az.StorageMover.custom\Update-AzStorageMoverAzSmbFileShareEndpoint'; + UpdateExpanded = 'Az.StorageMover.custom\Update-AzStorageMoverAzStorageContainerEndpoint'; + UpdateViaIdentityExpanded = 'Az.StorageMover.custom\Update-AzStorageMoverAzStorageContainerEndpoint'; } if (('UpdateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { $testPlayback = $false @@ -5710,18 +6546,18 @@ end { <# .Synopsis -Updates properties for an AzStorageContainer endpoint resource. +Updates properties for a MultiCloudConnector endpoint resource. Properties not specified in the request body will be unchanged. .Description -Updates properties for an AzStorageContainer endpoint resource. +Updates properties for a MultiCloudConnector endpoint resource. Properties not specified in the request body will be unchanged. .Example -Update-AzStorageMoverAzStorageContainerEndpoint -Name myEndpoint -ResourceGroupName myResourceGroup -StorageMoverName myStorageMover -Description "Update Description" +Update-AzStorageMoverMultiCloudConnectorEndpoint -Name "my-mc-endpoint" -ResourceGroupName "my-resource-group" -StorageMoverName "my-storage-mover" -Description "My updated Multi-Cloud endpoint" .Inputs Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.IStorageMoverIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpoint +Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpoint .Notes COMPLEX PARAMETER PROPERTIES @@ -5738,10 +6574,10 @@ INPUTOBJECT : Identity Parameter [StorageMoverName ]: The name of the Storage Mover resource. [SubscriptionId ]: The ID of the target subscription. .Link -https://learn.microsoft.com/powershell/module/az.storagemover/update-azstoragemoverazstoragecontainerendpoint +https://learn.microsoft.com/powershell/module/az.storagemover/update-azstoragemovermulticloudconnectorendpoint #> -function Update-AzStorageMoverAzStorageContainerEndpoint { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpoint])] +function Update-AzStorageMoverMultiCloudConnectorEndpoint { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpoint])] [CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] @@ -5858,8 +6694,8 @@ begin { } $mapping = @{ - UpdateExpanded = 'Az.StorageMover.custom\Update-AzStorageMoverAzStorageContainerEndpoint'; - UpdateViaIdentityExpanded = 'Az.StorageMover.custom\Update-AzStorageMoverAzStorageContainerEndpoint'; + UpdateExpanded = 'Az.StorageMover.custom\Update-AzStorageMoverMultiCloudConnectorEndpoint'; + UpdateViaIdentityExpanded = 'Az.StorageMover.custom\Update-AzStorageMoverMultiCloudConnectorEndpoint'; } if (('UpdateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { $testPlayback = $false @@ -5933,7 +6769,7 @@ Update-AzStorageMoverNfsEndpoint -Name myEndpoint -ResourceGroupName myResourceG .Inputs Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.IStorageMoverIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpoint +Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpoint .Notes COMPLEX PARAMETER PROPERTIES @@ -5953,7 +6789,7 @@ INPUTOBJECT : Identity Parameter https://learn.microsoft.com/powershell/module/az.storagemover/update-azstoragemovernfsendpoint #> function Update-AzStorageMoverNfsEndpoint { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpoint])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpoint])] [CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] @@ -6147,7 +6983,7 @@ Get-AzStorageMoverEndpoint -ResourceGroupName "myresourcegroup" -StorageMoverNam .Inputs Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.IStorageMoverIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpoint +Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpoint .Notes COMPLEX PARAMETER PROPERTIES @@ -6167,7 +7003,7 @@ INPUTOBJECT : Identity Parameter https://learn.microsoft.com/powershell/module/az.storagemover/update-azstoragemoversmbendpoint #> function Update-AzStorageMoverSmbEndpoint { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpoint])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpoint])] [CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] diff --git a/generated/StorageMover/StorageMover.Autorest/exports/Update-AzStorageMover.ps1 b/generated/StorageMover/StorageMover.Autorest/exports/Update-AzStorageMover.ps1 index 54cbdf6755ea..e5c5dd713b95 100644 --- a/generated/StorageMover/StorageMover.Autorest/exports/Update-AzStorageMover.ps1 +++ b/generated/StorageMover/StorageMover.Autorest/exports/Update-AzStorageMover.ps1 @@ -25,11 +25,11 @@ Properties not specified in the request body will be unchanged. Update-AzStorageMover -ResourceGroupName myResourceGroup -Name myStorageMover -Description "Update description" .Inputs -Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IStorageMoverUpdateParameters +Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IStorageMoverUpdateParameters .Inputs Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.IStorageMoverIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IStorageMover +Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IStorageMover .Notes COMPLEX PARAMETER PROPERTIES @@ -54,7 +54,7 @@ STORAGEMOVER : The Storage Mover resource. https://learn.microsoft.com/powershell/module/az.storagemover/update-azstoragemover #> function Update-AzStorageMover { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IStorageMover])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IStorageMover])] [CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='Update', Mandatory)] @@ -92,7 +92,7 @@ param( [Parameter(ParameterSetName='Update', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='UpdateViaIdentity', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IStorageMoverUpdateParameters] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IStorageMoverUpdateParameters] # The Storage Mover resource. # To construct, see NOTES section for STORAGEMOVER properties and create a hash table. ${StorageMover}, @@ -107,7 +107,7 @@ param( [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IStorageMoverUpdateParametersTags]))] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IStorageMoverUpdateParametersTags]))] [System.Collections.Hashtable] # Resource tags. ${Tag}, diff --git a/generated/StorageMover/StorageMover.Autorest/exports/Update-AzStorageMoverAgent.ps1 b/generated/StorageMover/StorageMover.Autorest/exports/Update-AzStorageMoverAgent.ps1 index fed04bcb2f64..ddd99715464b 100644 --- a/generated/StorageMover/StorageMover.Autorest/exports/Update-AzStorageMoverAgent.ps1 +++ b/generated/StorageMover/StorageMover.Autorest/exports/Update-AzStorageMoverAgent.ps1 @@ -24,11 +24,11 @@ $recurrence = New-AzStorageMoverUploadLimitWeeklyRecurrenceObject -Day 'Monday', Update-AzStorageMoverAgent -ResourceGroupName myresourcegroup -StorageMoverName mystoragemover -Name myagent -Description "Update description" -UploadLimitScheduleWeeklyRecurrence $recurrence .Inputs -Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentUpdateParameters +Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentUpdateParameters .Inputs Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.IStorageMoverIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgent +Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgent .Notes COMPLEX PARAMETER PROPERTIES @@ -66,7 +66,7 @@ UPLOADLIMITSCHEDULEWEEKLYRECURRENCE : The set of https://learn.microsoft.com/powershell/module/az.storagemover/update-azstoragemoveragent #> function Update-AzStorageMoverAgent { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgent])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgent])] [CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='Update', Mandatory)] @@ -111,7 +111,7 @@ param( [Parameter(ParameterSetName='Update', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='UpdateViaIdentity', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentUpdateParameters] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentUpdateParameters] # The Agent resource. # To construct, see NOTES section for AGENT properties and create a hash table. ${Agent}, @@ -127,7 +127,7 @@ param( [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [AllowEmptyCollection()] [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IUploadLimitWeeklyRecurrence[]] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IUploadLimitWeeklyRecurrence[]] # The set of weekly repeating recurrences of the WAN-link upload limit schedule. # To construct, see NOTES section for UPLOADLIMITSCHEDULEWEEKLYRECURRENCE properties and create a hash table. ${UploadLimitScheduleWeeklyRecurrence}, diff --git a/generated/StorageMover/StorageMover.Autorest/exports/Update-AzStorageMoverAzNfsFileShareEndpoint.ps1 b/generated/StorageMover/StorageMover.Autorest/exports/Update-AzStorageMoverAzNfsFileShareEndpoint.ps1 new file mode 100644 index 000000000000..d3a2a8ecc5e7 --- /dev/null +++ b/generated/StorageMover/StorageMover.Autorest/exports/Update-AzStorageMoverAzNfsFileShareEndpoint.ps1 @@ -0,0 +1,227 @@ + +# ---------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code +# is regenerated. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Updates properties for a Nfs File Share endpoint resource. +Properties not specified in the request body will be unchanged. +.Description +Updates properties for a Nfs File Share endpoint resource. +Properties not specified in the request body will be unchanged. +.Example +Update-AzStorageMoverAzNfsFileShareEndpoint -Name "my-nfs-endpoint" -ResourceGroupName "my-resource-group" -StorageMoverName "my-storage-mover" -Description "My updated NFS endpoint" + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.IStorageMoverIdentity +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpoint +.Notes +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + +INPUTOBJECT : Identity Parameter + [AgentName ]: The name of the Agent resource. + [EndpointName ]: The name of the Endpoint resource. + [Id ]: Resource identity path + [JobDefinitionName ]: The name of the Job Definition resource. + [JobRunName ]: The name of the Job Run resource. + [ProjectName ]: The name of the Project resource. + [ResourceGroupName ]: The name of the resource group. The name is case insensitive. + [StorageMoverName ]: The name of the Storage Mover resource. + [SubscriptionId ]: The ID of the target subscription. +.Link +https://learn.microsoft.com/powershell/module/az.storagemover/update-azstoragemovernfsfileshareendpoint +#> +function Update-AzStorageMoverAzNfsFileShareEndpoint { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpoint])] +[CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] + [Alias('EndpointName')] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Path')] + [System.String] + # The name of the endpoint resource. + ${Name}, + + [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Path')] + [System.String] + # The name of the resource group. + # The name is case insensitive. + ${ResourceGroupName}, + + [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Path')] + [System.String] + # The name of the Storage Mover resource. + ${StorageMoverName}, + + [Parameter(ParameterSetName='UpdateExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String] + # The ID of the target subscription. + ${SubscriptionId}, + + [Parameter(ParameterSetName='UpdateViaIdentityExpanded', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.IStorageMoverIdentity] + # Identity Parameter + # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + ${InputObject}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Body')] + [System.String] + # A description for the endpoint. + ${Description}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Azure')] + [System.Management.Automation.PSObject] + # The credentials, account, tenant, and subscription used for communication with Azure. + ${DefaultProfile}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + + $mapping = @{ + UpdateExpanded = 'Az.StorageMover.custom\Update-AzStorageMoverAzNfsFileShareEndpoint'; + UpdateViaIdentityExpanded = 'Az.StorageMover.custom\Update-AzStorageMoverAzNfsFileShareEndpoint'; + } + if (('UpdateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + } + $cmdInfo = Get-Command -Name $mapping[$parameterSet] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } + + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} +end { + try { + $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} +} diff --git a/generated/StorageMover/StorageMover.Autorest/exports/Update-AzStorageMoverAzSmbFileShareEndpoint.ps1 b/generated/StorageMover/StorageMover.Autorest/exports/Update-AzStorageMoverAzSmbFileShareEndpoint.ps1 index 26a4c73d6bee..c1dbe807e8d0 100644 --- a/generated/StorageMover/StorageMover.Autorest/exports/Update-AzStorageMoverAzSmbFileShareEndpoint.ps1 +++ b/generated/StorageMover/StorageMover.Autorest/exports/Update-AzStorageMoverAzSmbFileShareEndpoint.ps1 @@ -29,7 +29,7 @@ Get-AzStorageMoverEndpoint -ResourceGroupName "myresourcegroup" -StorageMoverNam .Inputs Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.IStorageMoverIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpoint +Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpoint .Notes COMPLEX PARAMETER PROPERTIES @@ -50,7 +50,7 @@ https://learn.microsoft.com/powershell/module/az.storagemover/update-azstoragemo #> function Update-AzStorageMoverAzSmbFileShareEndpoint { [Alias('Update-AzStorageMoverSmbFileShareEndpoint')] -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpoint])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpoint])] [CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] diff --git a/generated/StorageMover/StorageMover.Autorest/exports/Update-AzStorageMoverAzStorageContainerEndpoint.ps1 b/generated/StorageMover/StorageMover.Autorest/exports/Update-AzStorageMoverAzStorageContainerEndpoint.ps1 index 605c1f8c4c68..0383f37bc018 100644 --- a/generated/StorageMover/StorageMover.Autorest/exports/Update-AzStorageMoverAzStorageContainerEndpoint.ps1 +++ b/generated/StorageMover/StorageMover.Autorest/exports/Update-AzStorageMoverAzStorageContainerEndpoint.ps1 @@ -27,7 +27,7 @@ Update-AzStorageMoverAzStorageContainerEndpoint -Name myEndpoint -ResourceGroupN .Inputs Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.IStorageMoverIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpoint +Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpoint .Notes COMPLEX PARAMETER PROPERTIES @@ -47,7 +47,7 @@ INPUTOBJECT : Identity Parameter https://learn.microsoft.com/powershell/module/az.storagemover/update-azstoragemoverazstoragecontainerendpoint #> function Update-AzStorageMoverAzStorageContainerEndpoint { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpoint])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpoint])] [CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] diff --git a/generated/StorageMover/StorageMover.Autorest/exports/Update-AzStorageMoverJobDefinition.ps1 b/generated/StorageMover/StorageMover.Autorest/exports/Update-AzStorageMoverJobDefinition.ps1 index 88ba1c96a44b..bda73cb1a2c8 100644 --- a/generated/StorageMover/StorageMover.Autorest/exports/Update-AzStorageMoverJobDefinition.ps1 +++ b/generated/StorageMover/StorageMover.Autorest/exports/Update-AzStorageMoverJobDefinition.ps1 @@ -25,11 +25,11 @@ Properties not specified in the request body will be unchanged. Update-AzStorageMoverJobDefinition -Name myJob -ProjectName myProject -ResourceGroupName myResourceGroup -StorageMoverName myStorageMover -Description "Update Description" .Inputs -Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinitionUpdateParameters +Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionUpdateParameters .Inputs Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.IStorageMoverIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinition +Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinition .Notes COMPLEX PARAMETER PROPERTIES @@ -54,7 +54,7 @@ JOBDEFINITION : The Job Definition resource. https://learn.microsoft.com/powershell/module/az.storagemover/update-azstoragemoverjobdefinition #> function Update-AzStorageMoverJobDefinition { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinition])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinition])] [CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='Update', Mandatory)] @@ -106,7 +106,7 @@ param( [Parameter(ParameterSetName='Update', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='UpdateViaIdentity', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinitionUpdateParameters] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionUpdateParameters] # The Job Definition resource. # To construct, see NOTES section for JOBDEFINITION properties and create a hash table. ${JobDefinition}, diff --git a/generated/StorageMover/StorageMover.Autorest/exports/Update-AzStorageMoverMultiCloudConnectorEndpoint.ps1 b/generated/StorageMover/StorageMover.Autorest/exports/Update-AzStorageMoverMultiCloudConnectorEndpoint.ps1 new file mode 100644 index 000000000000..96c5403e5a2b --- /dev/null +++ b/generated/StorageMover/StorageMover.Autorest/exports/Update-AzStorageMoverMultiCloudConnectorEndpoint.ps1 @@ -0,0 +1,227 @@ + +# ---------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code +# is regenerated. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Updates properties for a MultiCloudConnector endpoint resource. +Properties not specified in the request body will be unchanged. +.Description +Updates properties for a MultiCloudConnector endpoint resource. +Properties not specified in the request body will be unchanged. +.Example +Update-AzStorageMoverMultiCloudConnectorEndpoint -Name "my-mc-endpoint" -ResourceGroupName "my-resource-group" -StorageMoverName "my-storage-mover" -Description "My updated Multi-Cloud endpoint" + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.IStorageMoverIdentity +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpoint +.Notes +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + +INPUTOBJECT : Identity Parameter + [AgentName ]: The name of the Agent resource. + [EndpointName ]: The name of the Endpoint resource. + [Id ]: Resource identity path + [JobDefinitionName ]: The name of the Job Definition resource. + [JobRunName ]: The name of the Job Run resource. + [ProjectName ]: The name of the Project resource. + [ResourceGroupName ]: The name of the resource group. The name is case insensitive. + [StorageMoverName ]: The name of the Storage Mover resource. + [SubscriptionId ]: The ID of the target subscription. +.Link +https://learn.microsoft.com/powershell/module/az.storagemover/update-azstoragemovermulticloudconnectorendpoint +#> +function Update-AzStorageMoverMultiCloudConnectorEndpoint { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpoint])] +[CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] + [Alias('EndpointName')] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Path')] + [System.String] + # The name of the endpoint resource. + ${Name}, + + [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Path')] + [System.String] + # The name of the resource group. + # The name is case insensitive. + ${ResourceGroupName}, + + [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Path')] + [System.String] + # The name of the Storage Mover resource. + ${StorageMoverName}, + + [Parameter(ParameterSetName='UpdateExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String] + # The ID of the target subscription. + ${SubscriptionId}, + + [Parameter(ParameterSetName='UpdateViaIdentityExpanded', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.IStorageMoverIdentity] + # Identity Parameter + # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + ${InputObject}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Body')] + [System.String] + # A description for the endpoint. + ${Description}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Azure')] + [System.Management.Automation.PSObject] + # The credentials, account, tenant, and subscription used for communication with Azure. + ${DefaultProfile}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + + $mapping = @{ + UpdateExpanded = 'Az.StorageMover.custom\Update-AzStorageMoverMultiCloudConnectorEndpoint'; + UpdateViaIdentityExpanded = 'Az.StorageMover.custom\Update-AzStorageMoverMultiCloudConnectorEndpoint'; + } + if (('UpdateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + } + $cmdInfo = Get-Command -Name $mapping[$parameterSet] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } + + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} +end { + try { + $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} +} diff --git a/generated/StorageMover/StorageMover.Autorest/exports/Update-AzStorageMoverNfsEndpoint.ps1 b/generated/StorageMover/StorageMover.Autorest/exports/Update-AzStorageMoverNfsEndpoint.ps1 index c9e09831dc8c..2b1607343b7b 100644 --- a/generated/StorageMover/StorageMover.Autorest/exports/Update-AzStorageMoverNfsEndpoint.ps1 +++ b/generated/StorageMover/StorageMover.Autorest/exports/Update-AzStorageMoverNfsEndpoint.ps1 @@ -27,7 +27,7 @@ Update-AzStorageMoverNfsEndpoint -Name myEndpoint -ResourceGroupName myResourceG .Inputs Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.IStorageMoverIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpoint +Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpoint .Notes COMPLEX PARAMETER PROPERTIES @@ -47,7 +47,7 @@ INPUTOBJECT : Identity Parameter https://learn.microsoft.com/powershell/module/az.storagemover/update-azstoragemovernfsendpoint #> function Update-AzStorageMoverNfsEndpoint { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpoint])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpoint])] [CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] diff --git a/generated/StorageMover/StorageMover.Autorest/exports/Update-AzStorageMoverProject.ps1 b/generated/StorageMover/StorageMover.Autorest/exports/Update-AzStorageMoverProject.ps1 index 2c349e8cfee9..46084f3a5d69 100644 --- a/generated/StorageMover/StorageMover.Autorest/exports/Update-AzStorageMoverProject.ps1 +++ b/generated/StorageMover/StorageMover.Autorest/exports/Update-AzStorageMoverProject.ps1 @@ -25,11 +25,11 @@ Properties not specified in the request body will be unchanged. Update-AzStorageMoverProject -ResourceGroupName myResourceGroup -StorageMoverName myStorageMover -Name myProject -Description "Update Description" .Inputs -Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IProjectUpdateParameters +Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IProjectUpdateParameters .Inputs Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.IStorageMoverIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IProject +Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IProject .Notes COMPLEX PARAMETER PROPERTIES @@ -52,7 +52,7 @@ PROJECT : The Project resource. https://learn.microsoft.com/powershell/module/az.storagemover/update-azstoragemoverproject #> function Update-AzStorageMoverProject { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IProject])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IProject])] [CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='Update', Mandatory)] @@ -97,7 +97,7 @@ param( [Parameter(ParameterSetName='Update', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='UpdateViaIdentity', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IProjectUpdateParameters] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IProjectUpdateParameters] # The Project resource. # To construct, see NOTES section for PROJECT properties and create a hash table. ${Project}, diff --git a/generated/StorageMover/StorageMover.Autorest/exports/Update-AzStorageMoverSmbEndpoint.ps1 b/generated/StorageMover/StorageMover.Autorest/exports/Update-AzStorageMoverSmbEndpoint.ps1 index 930ae52a98c2..29b581fa7a62 100644 --- a/generated/StorageMover/StorageMover.Autorest/exports/Update-AzStorageMoverSmbEndpoint.ps1 +++ b/generated/StorageMover/StorageMover.Autorest/exports/Update-AzStorageMoverSmbEndpoint.ps1 @@ -29,7 +29,7 @@ Get-AzStorageMoverEndpoint -ResourceGroupName "myresourcegroup" -StorageMoverNam .Inputs Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.IStorageMoverIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpoint +Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpoint .Notes COMPLEX PARAMETER PROPERTIES @@ -49,7 +49,7 @@ INPUTOBJECT : Identity Parameter https://learn.microsoft.com/powershell/module/az.storagemover/update-azstoragemoversmbendpoint #> function Update-AzStorageMoverSmbEndpoint { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpoint])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpoint])] [CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] diff --git a/generated/StorageMover/StorageMover.Autorest/generate-info.json b/generated/StorageMover/StorageMover.Autorest/generate-info.json index 9974c91ac069..395a0a49c53f 100644 --- a/generated/StorageMover/StorageMover.Autorest/generate-info.json +++ b/generated/StorageMover/StorageMover.Autorest/generate-info.json @@ -1,3 +1,3 @@ { - "generate_Id": "984c298d-9912-458e-b48e-9ec7ab7d0791" + "generate_Id": "8fa6c583-0955-4747-b7c5-4c49c39651c2" } diff --git a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/EndpointBaseUpdateParameters.cs b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/EndpointBaseUpdateParameters.cs deleted file mode 100644 index aa624c54cd10..000000000000 --- a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/EndpointBaseUpdateParameters.cs +++ /dev/null @@ -1,58 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701 -{ - using static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Extensions; - - /// The Endpoint resource. - [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.DoNotFormat] - public partial class EndpointBaseUpdateParameters : - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpointBaseUpdateParameters, - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpointBaseUpdateParametersInternal - { - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpointBaseUpdateProperties _property; - - /// - /// The Endpoint resource, which contains information about file sources and targets. - /// - [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpointBaseUpdateProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.EndpointBaseUpdateProperties()); set => this._property = value; } - - /// Creates an new instance. - public EndpointBaseUpdateParameters() - { - - } - } - /// The Endpoint resource. - public partial interface IEndpointBaseUpdateParameters : - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IJsonSerializable - { - /// - /// The Endpoint resource, which contains information about file sources and targets. - /// - [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The Endpoint resource, which contains information about file sources and targets.", - SerializedName = @"properties", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpointBaseUpdateProperties) })] - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpointBaseUpdateProperties Property { get; set; } - - } - /// The Endpoint resource. - internal partial interface IEndpointBaseUpdateParametersInternal - - { - /// - /// The Endpoint resource, which contains information about file sources and targets. - /// - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpointBaseUpdateProperties Property { get; set; } - - } -} \ No newline at end of file diff --git a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/UploadLimit.cs b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/UploadLimit.cs deleted file mode 100644 index d657b017f9bd..000000000000 --- a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/UploadLimit.cs +++ /dev/null @@ -1,66 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701 -{ - using static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Extensions; - - /// The WAN-link upload limit. - public partial class UploadLimit : - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IUploadLimit, - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IUploadLimitInternal - { - - /// Backing field for property. - private int _limitInMbps; - - /// - /// The WAN-link upload bandwidth (maximum data transfer rate) in megabits per second. Value of 0 indicates no throughput - /// is allowed and any running migration job is effectively paused for the duration of this recurrence. Only data plane operations - /// are governed by this limit. Control plane operations ensure seamless functionality. The agent may exceed this limit with - /// control messages, if necessary. - /// - [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Owned)] - public int LimitInMbps { get => this._limitInMbps; set => this._limitInMbps = value; } - - /// Creates an new instance. - public UploadLimit() - { - - } - } - /// The WAN-link upload limit. - public partial interface IUploadLimit : - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IJsonSerializable - { - /// - /// The WAN-link upload bandwidth (maximum data transfer rate) in megabits per second. Value of 0 indicates no throughput - /// is allowed and any running migration job is effectively paused for the duration of this recurrence. Only data plane operations - /// are governed by this limit. Control plane operations ensure seamless functionality. The agent may exceed this limit with - /// control messages, if necessary. - /// - [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"The WAN-link upload bandwidth (maximum data transfer rate) in megabits per second. Value of 0 indicates no throughput is allowed and any running migration job is effectively paused for the duration of this recurrence. Only data plane operations are governed by this limit. Control plane operations ensure seamless functionality. The agent may exceed this limit with control messages, if necessary.", - SerializedName = @"limitInMbps", - PossibleTypes = new [] { typeof(int) })] - int LimitInMbps { get; set; } - - } - /// The WAN-link upload limit. - internal partial interface IUploadLimitInternal - - { - /// - /// The WAN-link upload bandwidth (maximum data transfer rate) in megabits per second. Value of 0 indicates no throughput - /// is allowed and any running migration job is effectively paused for the duration of this recurrence. Only data plane operations - /// are governed by this limit. Control plane operations ensure seamless functionality. The agent may exceed this limit with - /// control messages, if necessary. - /// - int LimitInMbps { get; set; } - - } -} \ No newline at end of file diff --git a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/Agent.PowerShell.cs b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/Agent.PowerShell.cs similarity index 81% rename from generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/Agent.PowerShell.cs rename to generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/Agent.PowerShell.cs index 77d937009cbb..43b9ee54d515 100644 --- a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/Agent.PowerShell.cs +++ b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/Agent.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701 { using Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.PowerShell; @@ -63,7 +63,7 @@ public partial class Agent partial void OverrideToString(ref string stringResult, ref bool returnNow); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -78,7 +78,7 @@ internal Agent(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("Property")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.AgentPropertiesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.AgentPropertiesTypeConverter.ConvertFrom); } if (content.Contains("SystemDataCreatedBy")) { @@ -122,77 +122,77 @@ internal Agent(global::System.Collections.IDictionary content) } if (content.Contains("AgentStatus")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentInternal)this).AgentStatus = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.AgentStatus?) content.GetValueForProperty("AgentStatus",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentInternal)this).AgentStatus, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.AgentStatus.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentInternal)this).AgentStatus = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.AgentStatus?) content.GetValueForProperty("AgentStatus",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentInternal)this).AgentStatus, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.AgentStatus.CreateFrom); } if (content.Contains("ProvisioningState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState.CreateFrom); } if (content.Contains("UploadLimitSchedule")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentInternal)this).UploadLimitSchedule = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IUploadLimitSchedule) content.GetValueForProperty("UploadLimitSchedule",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentInternal)this).UploadLimitSchedule, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.UploadLimitScheduleTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentInternal)this).UploadLimitSchedule = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IUploadLimitSchedule) content.GetValueForProperty("UploadLimitSchedule",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentInternal)this).UploadLimitSchedule, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.UploadLimitScheduleTypeConverter.ConvertFrom); } if (content.Contains("ErrorDetail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentInternal)this).ErrorDetail = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentPropertiesErrorDetails) content.GetValueForProperty("ErrorDetail",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentInternal)this).ErrorDetail, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.AgentPropertiesErrorDetailsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentInternal)this).ErrorDetail = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentPropertiesErrorDetails) content.GetValueForProperty("ErrorDetail",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentInternal)this).ErrorDetail, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.AgentPropertiesErrorDetailsTypeConverter.ConvertFrom); } if (content.Contains("Description")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentInternal)this).Description, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentInternal)this).Description, global::System.Convert.ToString); } if (content.Contains("Version")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentInternal)this).Version = (string) content.GetValueForProperty("Version",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentInternal)this).Version, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentInternal)this).Version = (string) content.GetValueForProperty("Version",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentInternal)this).Version, global::System.Convert.ToString); } if (content.Contains("ArcResourceId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentInternal)this).ArcResourceId = (string) content.GetValueForProperty("ArcResourceId",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentInternal)this).ArcResourceId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentInternal)this).ArcResourceId = (string) content.GetValueForProperty("ArcResourceId",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentInternal)this).ArcResourceId, global::System.Convert.ToString); } if (content.Contains("ArcVMUuid")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentInternal)this).ArcVMUuid = (string) content.GetValueForProperty("ArcVMUuid",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentInternal)this).ArcVMUuid, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentInternal)this).ArcVMUuid = (string) content.GetValueForProperty("ArcVMUuid",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentInternal)this).ArcVMUuid, global::System.Convert.ToString); } if (content.Contains("LastStatusUpdate")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentInternal)this).LastStatusUpdate = (global::System.DateTime?) content.GetValueForProperty("LastStatusUpdate",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentInternal)this).LastStatusUpdate, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentInternal)this).LastStatusUpdate = (global::System.DateTime?) content.GetValueForProperty("LastStatusUpdate",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentInternal)this).LastStatusUpdate, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("LocalIPAddress")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentInternal)this).LocalIPAddress = (string) content.GetValueForProperty("LocalIPAddress",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentInternal)this).LocalIPAddress, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentInternal)this).LocalIPAddress = (string) content.GetValueForProperty("LocalIPAddress",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentInternal)this).LocalIPAddress, global::System.Convert.ToString); } if (content.Contains("MemoryInMb")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentInternal)this).MemoryInMb = (long?) content.GetValueForProperty("MemoryInMb",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentInternal)this).MemoryInMb, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentInternal)this).MemoryInMb = (long?) content.GetValueForProperty("MemoryInMb",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentInternal)this).MemoryInMb, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("NumberOfCores")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentInternal)this).NumberOfCores = (long?) content.GetValueForProperty("NumberOfCores",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentInternal)this).NumberOfCores, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentInternal)this).NumberOfCores = (long?) content.GetValueForProperty("NumberOfCores",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentInternal)this).NumberOfCores, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("UptimeInSeconds")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentInternal)this).UptimeInSeconds = (long?) content.GetValueForProperty("UptimeInSeconds",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentInternal)this).UptimeInSeconds, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentInternal)this).UptimeInSeconds = (long?) content.GetValueForProperty("UptimeInSeconds",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentInternal)this).UptimeInSeconds, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("TimeZone")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentInternal)this).TimeZone = (string) content.GetValueForProperty("TimeZone",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentInternal)this).TimeZone, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentInternal)this).TimeZone = (string) content.GetValueForProperty("TimeZone",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentInternal)this).TimeZone, global::System.Convert.ToString); } if (content.Contains("UploadLimitScheduleWeeklyRecurrence")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentInternal)this).UploadLimitScheduleWeeklyRecurrence = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IUploadLimitWeeklyRecurrence[]) content.GetValueForProperty("UploadLimitScheduleWeeklyRecurrence",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentInternal)this).UploadLimitScheduleWeeklyRecurrence, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.UploadLimitWeeklyRecurrenceTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentInternal)this).UploadLimitScheduleWeeklyRecurrence = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IUploadLimitWeeklyRecurrence[]) content.GetValueForProperty("UploadLimitScheduleWeeklyRecurrence",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentInternal)this).UploadLimitScheduleWeeklyRecurrence, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.UploadLimitWeeklyRecurrenceTypeConverter.ConvertFrom)); } if (content.Contains("ErrorDetailCode")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentInternal)this).ErrorDetailCode = (string) content.GetValueForProperty("ErrorDetailCode",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentInternal)this).ErrorDetailCode, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentInternal)this).ErrorDetailCode = (string) content.GetValueForProperty("ErrorDetailCode",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentInternal)this).ErrorDetailCode, global::System.Convert.ToString); } if (content.Contains("ErrorDetailMessage")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentInternal)this).ErrorDetailMessage = (string) content.GetValueForProperty("ErrorDetailMessage",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentInternal)this).ErrorDetailMessage, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentInternal)this).ErrorDetailMessage = (string) content.GetValueForProperty("ErrorDetailMessage",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentInternal)this).ErrorDetailMessage, global::System.Convert.ToString); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -207,7 +207,7 @@ internal Agent(global::System.Management.Automation.PSObject content) // actually deserialize if (content.Contains("Property")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.AgentPropertiesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.AgentPropertiesTypeConverter.ConvertFrom); } if (content.Contains("SystemDataCreatedBy")) { @@ -251,97 +251,97 @@ internal Agent(global::System.Management.Automation.PSObject content) } if (content.Contains("AgentStatus")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentInternal)this).AgentStatus = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.AgentStatus?) content.GetValueForProperty("AgentStatus",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentInternal)this).AgentStatus, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.AgentStatus.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentInternal)this).AgentStatus = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.AgentStatus?) content.GetValueForProperty("AgentStatus",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentInternal)this).AgentStatus, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.AgentStatus.CreateFrom); } if (content.Contains("ProvisioningState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState.CreateFrom); } if (content.Contains("UploadLimitSchedule")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentInternal)this).UploadLimitSchedule = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IUploadLimitSchedule) content.GetValueForProperty("UploadLimitSchedule",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentInternal)this).UploadLimitSchedule, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.UploadLimitScheduleTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentInternal)this).UploadLimitSchedule = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IUploadLimitSchedule) content.GetValueForProperty("UploadLimitSchedule",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentInternal)this).UploadLimitSchedule, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.UploadLimitScheduleTypeConverter.ConvertFrom); } if (content.Contains("ErrorDetail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentInternal)this).ErrorDetail = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentPropertiesErrorDetails) content.GetValueForProperty("ErrorDetail",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentInternal)this).ErrorDetail, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.AgentPropertiesErrorDetailsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentInternal)this).ErrorDetail = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentPropertiesErrorDetails) content.GetValueForProperty("ErrorDetail",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentInternal)this).ErrorDetail, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.AgentPropertiesErrorDetailsTypeConverter.ConvertFrom); } if (content.Contains("Description")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentInternal)this).Description, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentInternal)this).Description, global::System.Convert.ToString); } if (content.Contains("Version")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentInternal)this).Version = (string) content.GetValueForProperty("Version",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentInternal)this).Version, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentInternal)this).Version = (string) content.GetValueForProperty("Version",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentInternal)this).Version, global::System.Convert.ToString); } if (content.Contains("ArcResourceId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentInternal)this).ArcResourceId = (string) content.GetValueForProperty("ArcResourceId",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentInternal)this).ArcResourceId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentInternal)this).ArcResourceId = (string) content.GetValueForProperty("ArcResourceId",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentInternal)this).ArcResourceId, global::System.Convert.ToString); } if (content.Contains("ArcVMUuid")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentInternal)this).ArcVMUuid = (string) content.GetValueForProperty("ArcVMUuid",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentInternal)this).ArcVMUuid, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentInternal)this).ArcVMUuid = (string) content.GetValueForProperty("ArcVMUuid",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentInternal)this).ArcVMUuid, global::System.Convert.ToString); } if (content.Contains("LastStatusUpdate")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentInternal)this).LastStatusUpdate = (global::System.DateTime?) content.GetValueForProperty("LastStatusUpdate",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentInternal)this).LastStatusUpdate, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentInternal)this).LastStatusUpdate = (global::System.DateTime?) content.GetValueForProperty("LastStatusUpdate",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentInternal)this).LastStatusUpdate, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("LocalIPAddress")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentInternal)this).LocalIPAddress = (string) content.GetValueForProperty("LocalIPAddress",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentInternal)this).LocalIPAddress, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentInternal)this).LocalIPAddress = (string) content.GetValueForProperty("LocalIPAddress",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentInternal)this).LocalIPAddress, global::System.Convert.ToString); } if (content.Contains("MemoryInMb")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentInternal)this).MemoryInMb = (long?) content.GetValueForProperty("MemoryInMb",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentInternal)this).MemoryInMb, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentInternal)this).MemoryInMb = (long?) content.GetValueForProperty("MemoryInMb",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentInternal)this).MemoryInMb, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("NumberOfCores")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentInternal)this).NumberOfCores = (long?) content.GetValueForProperty("NumberOfCores",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentInternal)this).NumberOfCores, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentInternal)this).NumberOfCores = (long?) content.GetValueForProperty("NumberOfCores",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentInternal)this).NumberOfCores, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("UptimeInSeconds")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentInternal)this).UptimeInSeconds = (long?) content.GetValueForProperty("UptimeInSeconds",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentInternal)this).UptimeInSeconds, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentInternal)this).UptimeInSeconds = (long?) content.GetValueForProperty("UptimeInSeconds",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentInternal)this).UptimeInSeconds, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("TimeZone")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentInternal)this).TimeZone = (string) content.GetValueForProperty("TimeZone",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentInternal)this).TimeZone, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentInternal)this).TimeZone = (string) content.GetValueForProperty("TimeZone",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentInternal)this).TimeZone, global::System.Convert.ToString); } if (content.Contains("UploadLimitScheduleWeeklyRecurrence")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentInternal)this).UploadLimitScheduleWeeklyRecurrence = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IUploadLimitWeeklyRecurrence[]) content.GetValueForProperty("UploadLimitScheduleWeeklyRecurrence",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentInternal)this).UploadLimitScheduleWeeklyRecurrence, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.UploadLimitWeeklyRecurrenceTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentInternal)this).UploadLimitScheduleWeeklyRecurrence = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IUploadLimitWeeklyRecurrence[]) content.GetValueForProperty("UploadLimitScheduleWeeklyRecurrence",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentInternal)this).UploadLimitScheduleWeeklyRecurrence, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.UploadLimitWeeklyRecurrenceTypeConverter.ConvertFrom)); } if (content.Contains("ErrorDetailCode")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentInternal)this).ErrorDetailCode = (string) content.GetValueForProperty("ErrorDetailCode",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentInternal)this).ErrorDetailCode, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentInternal)this).ErrorDetailCode = (string) content.GetValueForProperty("ErrorDetailCode",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentInternal)this).ErrorDetailCode, global::System.Convert.ToString); } if (content.Contains("ErrorDetailMessage")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentInternal)this).ErrorDetailMessage = (string) content.GetValueForProperty("ErrorDetailMessage",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentInternal)this).ErrorDetailMessage, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentInternal)this).ErrorDetailMessage = (string) content.GetValueForProperty("ErrorDetailMessage",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentInternal)this).ErrorDetailMessage, global::System.Convert.ToString); } AfterDeserializePSObject(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgent DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgent DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new Agent(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgent DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgent DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new Agent(content); } @@ -351,7 +351,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgent FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgent FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/Agent.TypeConverter.cs b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/Agent.TypeConverter.cs similarity index 98% rename from generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/Agent.TypeConverter.cs rename to generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/Agent.TypeConverter.cs index 2cfd89311193..2a081b8f1edf 100644 --- a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/Agent.TypeConverter.cs +++ b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/Agent.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701 { using Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.PowerShell; @@ -105,14 +105,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgent ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgent ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgent).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgent).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/Agent.cs b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/Agent.cs similarity index 86% rename from generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/Agent.cs rename to generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/Agent.cs index 05485be78e4d..1d7b37b2a0d7 100644 --- a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/Agent.cs +++ b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/Agent.cs @@ -3,15 +3,15 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701 { using static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Extensions; /// The Agent resource. [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.DoNotFormat] public partial class Agent : - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgent, - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentInternal, + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgent, + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentInternal, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IValidates { /// @@ -22,27 +22,27 @@ public partial class Agent : /// The Agent status. [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.AgentStatus? AgentStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentPropertiesInternal)Property).AgentStatus; } + public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.AgentStatus? AgentStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentPropertiesInternal)Property).AgentStatus; } /// The fully qualified resource ID of the Hybrid Compute resource for the Agent. [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inlined)] - public string ArcResourceId { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentPropertiesInternal)Property).ArcResourceId; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentPropertiesInternal)Property).ArcResourceId = value ; } + public string ArcResourceId { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentPropertiesInternal)Property).ArcResourceId; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentPropertiesInternal)Property).ArcResourceId = value ; } /// The VM UUID of the Hybrid Compute resource for the Agent. [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inlined)] - public string ArcVMUuid { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentPropertiesInternal)Property).ArcVMUuid; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentPropertiesInternal)Property).ArcVMUuid = value ; } + public string ArcVMUuid { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentPropertiesInternal)Property).ArcVMUuid; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentPropertiesInternal)Property).ArcVMUuid = value ; } /// A description for the Agent. [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inlined)] - public string Description { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentPropertiesInternal)Property).Description; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentPropertiesInternal)Property).Description = value ?? null; } + public string Description { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentPropertiesInternal)Property).Description; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentPropertiesInternal)Property).Description = value ?? null; } /// Error code reported by Agent [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inlined)] - public string ErrorDetailCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentPropertiesInternal)Property).ErrorDetailCode; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentPropertiesInternal)Property).ErrorDetailCode = value ?? null; } + public string ErrorDetailCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentPropertiesInternal)Property).ErrorDetailCode; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentPropertiesInternal)Property).ErrorDetailCode = value ?? null; } /// Expanded description of reported error code [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inlined)] - public string ErrorDetailMessage { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentPropertiesInternal)Property).ErrorDetailMessage; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentPropertiesInternal)Property).ErrorDetailMessage = value ?? null; } + public string ErrorDetailMessage { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentPropertiesInternal)Property).ErrorDetailMessage; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentPropertiesInternal)Property).ErrorDetailMessage = value ?? null; } /// /// Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} @@ -52,51 +52,51 @@ public partial class Agent : /// The last updated time of the Agent status. [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inlined)] - public global::System.DateTime? LastStatusUpdate { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentPropertiesInternal)Property).LastStatusUpdate; } + public global::System.DateTime? LastStatusUpdate { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentPropertiesInternal)Property).LastStatusUpdate; } /// Local IP address reported by the Agent. [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inlined)] - public string LocalIPAddress { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentPropertiesInternal)Property).LocalIPAddress; } + public string LocalIPAddress { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentPropertiesInternal)Property).LocalIPAddress; } /// Available memory reported by the Agent, in MB. [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inlined)] - public long? MemoryInMb { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentPropertiesInternal)Property).MemoryInMb; } + public long? MemoryInMb { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentPropertiesInternal)Property).MemoryInMb; } /// Internal Acessors for AgentStatus - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.AgentStatus? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentInternal.AgentStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentPropertiesInternal)Property).AgentStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentPropertiesInternal)Property).AgentStatus = value; } + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.AgentStatus? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentInternal.AgentStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentPropertiesInternal)Property).AgentStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentPropertiesInternal)Property).AgentStatus = value; } /// Internal Acessors for ErrorDetail - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentPropertiesErrorDetails Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentInternal.ErrorDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentPropertiesInternal)Property).ErrorDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentPropertiesInternal)Property).ErrorDetail = value; } + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentPropertiesErrorDetails Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentInternal.ErrorDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentPropertiesInternal)Property).ErrorDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentPropertiesInternal)Property).ErrorDetail = value; } /// Internal Acessors for LastStatusUpdate - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentInternal.LastStatusUpdate { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentPropertiesInternal)Property).LastStatusUpdate; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentPropertiesInternal)Property).LastStatusUpdate = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentInternal.LastStatusUpdate { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentPropertiesInternal)Property).LastStatusUpdate; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentPropertiesInternal)Property).LastStatusUpdate = value; } /// Internal Acessors for LocalIPAddress - string Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentInternal.LocalIPAddress { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentPropertiesInternal)Property).LocalIPAddress; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentPropertiesInternal)Property).LocalIPAddress = value; } + string Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentInternal.LocalIPAddress { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentPropertiesInternal)Property).LocalIPAddress; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentPropertiesInternal)Property).LocalIPAddress = value; } /// Internal Acessors for MemoryInMb - long? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentInternal.MemoryInMb { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentPropertiesInternal)Property).MemoryInMb; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentPropertiesInternal)Property).MemoryInMb = value; } + long? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentInternal.MemoryInMb { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentPropertiesInternal)Property).MemoryInMb; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentPropertiesInternal)Property).MemoryInMb = value; } /// Internal Acessors for NumberOfCores - long? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentInternal.NumberOfCores { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentPropertiesInternal)Property).NumberOfCore; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentPropertiesInternal)Property).NumberOfCore = value; } + long? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentInternal.NumberOfCores { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentPropertiesInternal)Property).NumberOfCore; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentPropertiesInternal)Property).NumberOfCore = value; } /// Internal Acessors for Property - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentProperties Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.AgentProperties()); set { {_property = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentProperties Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.AgentProperties()); set { {_property = value;} } } /// Internal Acessors for ProvisioningState - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentPropertiesInternal)Property).ProvisioningState = value; } + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentPropertiesInternal)Property).ProvisioningState = value; } /// Internal Acessors for TimeZone - string Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentInternal.TimeZone { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentPropertiesInternal)Property).TimeZone; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentPropertiesInternal)Property).TimeZone = value; } + string Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentInternal.TimeZone { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentPropertiesInternal)Property).TimeZone; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentPropertiesInternal)Property).TimeZone = value; } /// Internal Acessors for UploadLimitSchedule - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IUploadLimitSchedule Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentInternal.UploadLimitSchedule { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentPropertiesInternal)Property).UploadLimitSchedule; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentPropertiesInternal)Property).UploadLimitSchedule = value; } + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IUploadLimitSchedule Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentInternal.UploadLimitSchedule { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentPropertiesInternal)Property).UploadLimitSchedule; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentPropertiesInternal)Property).UploadLimitSchedule = value; } /// Internal Acessors for UptimeInSeconds - long? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentInternal.UptimeInSeconds { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentPropertiesInternal)Property).UptimeInSecond; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentPropertiesInternal)Property).UptimeInSecond = value; } + long? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentInternal.UptimeInSeconds { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentPropertiesInternal)Property).UptimeInSecond; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentPropertiesInternal)Property).UptimeInSecond = value; } /// Internal Acessors for Version - string Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentInternal.Version { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentPropertiesInternal)Property).AgentVersion; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentPropertiesInternal)Property).AgentVersion = value; } + string Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentInternal.Version { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentPropertiesInternal)Property).AgentVersion; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentPropertiesInternal)Property).AgentVersion = value; } /// Internal Acessors for Id string Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)__resource).Id = value; } @@ -116,17 +116,17 @@ public partial class Agent : /// Available compute cores reported by the Agent. [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inlined)] - public long? NumberOfCores { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentPropertiesInternal)Property).NumberOfCore; } + public long? NumberOfCores { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentPropertiesInternal)Property).NumberOfCore; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentProperties _property; + private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentProperties _property; [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.AgentProperties()); set => this._property = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.AgentProperties()); set => this._property = value; } /// The provisioning state of this resource. [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState? ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentPropertiesInternal)Property).ProvisioningState; } + public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState? ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentPropertiesInternal)Property).ProvisioningState; } /// /// Azure Resource Manager metadata containing createdBy and modifiedBy information. @@ -160,7 +160,7 @@ public partial class Agent : /// The agent's local time zone represented in Windows format. [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inlined)] - public string TimeZone { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentPropertiesInternal)Property).TimeZone; } + public string TimeZone { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentPropertiesInternal)Property).TimeZone; } /// /// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" @@ -170,15 +170,15 @@ public partial class Agent : /// The set of weekly repeating recurrences of the WAN-link upload limit schedule. [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IUploadLimitWeeklyRecurrence[] UploadLimitScheduleWeeklyRecurrence { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentPropertiesInternal)Property).UploadLimitScheduleWeeklyRecurrence; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentPropertiesInternal)Property).UploadLimitScheduleWeeklyRecurrence = value ?? null /* arrayOf */; } + public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IUploadLimitWeeklyRecurrence[] UploadLimitScheduleWeeklyRecurrence { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentPropertiesInternal)Property).UploadLimitScheduleWeeklyRecurrence; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentPropertiesInternal)Property).UploadLimitScheduleWeeklyRecurrence = value ?? null /* arrayOf */; } /// Uptime of the Agent in seconds. [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inlined)] - public long? UptimeInSeconds { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentPropertiesInternal)Property).UptimeInSecond; } + public long? UptimeInSeconds { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentPropertiesInternal)Property).UptimeInSecond; } /// The Agent version. [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inlined)] - public string Version { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentPropertiesInternal)Property).AgentVersion; } + public string Version { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentPropertiesInternal)Property).AgentVersion; } /// Creates an new instance. public Agent() @@ -305,8 +305,8 @@ public partial interface IAgent : ReadOnly = false, Description = @"The set of weekly repeating recurrences of the WAN-link upload limit schedule.", SerializedName = @"weeklyRecurrences", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IUploadLimitWeeklyRecurrence) })] - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IUploadLimitWeeklyRecurrence[] UploadLimitScheduleWeeklyRecurrence { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IUploadLimitWeeklyRecurrence) })] + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IUploadLimitWeeklyRecurrence[] UploadLimitScheduleWeeklyRecurrence { get; set; } /// Uptime of the Agent in seconds. [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Info( Required = false, @@ -338,7 +338,7 @@ internal partial interface IAgentInternal : /// A description for the Agent. string Description { get; set; } - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentPropertiesErrorDetails ErrorDetail { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentPropertiesErrorDetails ErrorDetail { get; set; } /// Error code reported by Agent string ErrorDetailCode { get; set; } /// Expanded description of reported error code @@ -352,7 +352,7 @@ internal partial interface IAgentInternal : /// Available compute cores reported by the Agent. long? NumberOfCores { get; set; } - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentProperties Property { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentProperties Property { get; set; } /// The provisioning state of this resource. Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState? ProvisioningState { get; set; } /// The agent's local time zone represented in Windows format. @@ -362,9 +362,9 @@ internal partial interface IAgentInternal : /// are affected. Control plane operations ensure seamless migration functionality and are not limited by this schedule. The /// schedule is interpreted with the agent's local time. /// - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IUploadLimitSchedule UploadLimitSchedule { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IUploadLimitSchedule UploadLimitSchedule { get; set; } /// The set of weekly repeating recurrences of the WAN-link upload limit schedule. - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IUploadLimitWeeklyRecurrence[] UploadLimitScheduleWeeklyRecurrence { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IUploadLimitWeeklyRecurrence[] UploadLimitScheduleWeeklyRecurrence { get; set; } /// Uptime of the Agent in seconds. long? UptimeInSeconds { get; set; } /// The Agent version. diff --git a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/Agent.json.cs b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/Agent.json.cs similarity index 97% rename from generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/Agent.json.cs rename to generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/Agent.json.cs index e7044523e7c6..54a9cee32bb4 100644 --- a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/Agent.json.cs +++ b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/Agent.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701 { using static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Extensions; @@ -66,18 +66,18 @@ internal Agent(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.Json return; } __resource = new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.Resource(json); - {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.AgentProperties.FromJson(__jsonProperties) : Property;} + {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.AgentProperties.FromJson(__jsonProperties) : Property;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgent. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgent. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgent. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgent. /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgent FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgent FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject json ? new Agent(json) : null; } diff --git a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/AgentList.PowerShell.cs b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/AgentList.PowerShell.cs similarity index 86% rename from generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/AgentList.PowerShell.cs rename to generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/AgentList.PowerShell.cs index e31f1ea0a488..42536d304644 100644 --- a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/AgentList.PowerShell.cs +++ b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/AgentList.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701 { using Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.PowerShell; @@ -63,7 +63,7 @@ public partial class AgentList partial void OverrideToString(ref string stringResult, ref bool returnNow); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -78,17 +78,17 @@ internal AgentList(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("Value")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentListInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgent[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentListInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.AgentTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentListInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgent[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentListInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.AgentTypeConverter.ConvertFrom)); } if (content.Contains("NextLink")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentListInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentListInternal)this).NextLink, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentListInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentListInternal)this).NextLink, global::System.Convert.ToString); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -103,37 +103,37 @@ internal AgentList(global::System.Management.Automation.PSObject content) // actually deserialize if (content.Contains("Value")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentListInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgent[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentListInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.AgentTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentListInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgent[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentListInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.AgentTypeConverter.ConvertFrom)); } if (content.Contains("NextLink")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentListInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentListInternal)this).NextLink, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentListInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentListInternal)this).NextLink, global::System.Convert.ToString); } AfterDeserializePSObject(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentList DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentList DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new AgentList(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentList DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentList DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new AgentList(content); } @@ -143,7 +143,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentList FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentList FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/AgentList.TypeConverter.cs b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/AgentList.TypeConverter.cs similarity index 98% rename from generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/AgentList.TypeConverter.cs rename to generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/AgentList.TypeConverter.cs index 12508b2e31d2..35bcf0db9a21 100644 --- a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/AgentList.TypeConverter.cs +++ b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/AgentList.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701 { using Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.PowerShell; @@ -105,14 +105,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentList ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentList ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentList).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentList).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/AgentList.cs b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/AgentList.cs similarity index 60% rename from generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/AgentList.cs rename to generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/AgentList.cs index 81cf9e5f82a4..d69f32e252db 100644 --- a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/AgentList.cs +++ b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/AgentList.cs @@ -3,38 +3,33 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701 { using static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Extensions; /// List of Agents. [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.DoNotFormat] public partial class AgentList : - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentList, - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentListInternal + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentList, + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentListInternal { - /// Internal Acessors for NextLink - string Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentListInternal.NextLink { get => this._nextLink; set { {_nextLink = value;} } } - /// Internal Acessors for Value - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgent[] Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentListInternal.Value { get => this._value; set { {_value = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgent[] Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentListInternal.Value { get => this._value; set { {_value = value;} } } /// Backing field for property. private string _nextLink; - /// - /// Request URL that can be used to query next page of containers. Returned when total number of requested containers exceed - /// maximum page size. - /// + /// The link to the next page of items [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Owned)] - public string NextLink { get => this._nextLink; } + public string NextLink { get => this._nextLink; set => this._nextLink = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgent[] _value; + private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgent[] _value; + /// The Agent items on this page [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgent[] Value { get => this._value; } + public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgent[] Value { get => this._value; } /// Creates an new instance. public AgentList() @@ -46,38 +41,32 @@ public AgentList() public partial interface IAgentList : Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IJsonSerializable { - /// - /// Request URL that can be used to query next page of containers. Returned when total number of requested containers exceed - /// maximum page size. - /// + /// The link to the next page of items [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Info( Required = false, - ReadOnly = true, - Description = @"Request URL that can be used to query next page of containers. Returned when total number of requested containers exceed maximum page size.", + ReadOnly = false, + Description = @"The link to the next page of items", SerializedName = @"nextLink", PossibleTypes = new [] { typeof(string) })] - string NextLink { get; } - + string NextLink { get; set; } + /// The Agent items on this page [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Info( - Required = false, + Required = true, ReadOnly = true, - Description = @"", + Description = @"The Agent items on this page", SerializedName = @"value", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgent) })] - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgent[] Value { get; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgent) })] + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgent[] Value { get; } } /// List of Agents. internal partial interface IAgentListInternal { - /// - /// Request URL that can be used to query next page of containers. Returned when total number of requested containers exceed - /// maximum page size. - /// + /// The link to the next page of items string NextLink { get; set; } - - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgent[] Value { get; set; } + /// The Agent items on this page + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgent[] Value { get; set; } } } \ No newline at end of file diff --git a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/AgentList.json.cs b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/AgentList.json.cs similarity index 90% rename from generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/AgentList.json.cs rename to generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/AgentList.json.cs index cbac4fe6b302..ea1ad4372965 100644 --- a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/AgentList.json.cs +++ b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/AgentList.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701 { using static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Extensions; @@ -65,19 +65,19 @@ internal AgentList(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json. { return; } - {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgent) (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.Agent.FromJson(__u) )) ))() : null : Value;} + {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgent) (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.Agent.FromJson(__u) )) ))() : null : Value;} {_nextLink = If( json?.PropertyT("nextLink"), out var __jsonNextLink) ? (string)__jsonNextLink : (string)NextLink;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentList. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentList. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentList. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentList. /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentList FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentList FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject json ? new AgentList(json) : null; } @@ -113,10 +113,7 @@ public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode ToJ container.Add("value",__w); } } - if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.SerializationMode.IncludeReadOnly)) - { - AddIf( null != (((object)this._nextLink)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonString(this._nextLink.ToString()) : null, "nextLink" ,container.Add ); - } + AddIf( null != (((object)this._nextLink)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonString(this._nextLink.ToString()) : null, "nextLink" ,container.Add ); AfterToJson(ref container); return container; } diff --git a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/AgentProperties.PowerShell.cs b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/AgentProperties.PowerShell.cs similarity index 76% rename from generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/AgentProperties.PowerShell.cs rename to generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/AgentProperties.PowerShell.cs index 69dc5a0cd1fd..9b185c718c99 100644 --- a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/AgentProperties.PowerShell.cs +++ b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/AgentProperties.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701 { using Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.PowerShell; @@ -62,7 +62,7 @@ public partial class AgentProperties partial void OverrideToString(ref string stringResult, ref bool returnNow); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -77,77 +77,77 @@ internal AgentProperties(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("UploadLimitSchedule")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentPropertiesInternal)this).UploadLimitSchedule = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IUploadLimitSchedule) content.GetValueForProperty("UploadLimitSchedule",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentPropertiesInternal)this).UploadLimitSchedule, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.UploadLimitScheduleTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentPropertiesInternal)this).UploadLimitSchedule = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IUploadLimitSchedule) content.GetValueForProperty("UploadLimitSchedule",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentPropertiesInternal)this).UploadLimitSchedule, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.UploadLimitScheduleTypeConverter.ConvertFrom); } if (content.Contains("ErrorDetail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentPropertiesInternal)this).ErrorDetail = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentPropertiesErrorDetails) content.GetValueForProperty("ErrorDetail",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentPropertiesInternal)this).ErrorDetail, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.AgentPropertiesErrorDetailsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentPropertiesInternal)this).ErrorDetail = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentPropertiesErrorDetails) content.GetValueForProperty("ErrorDetail",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentPropertiesInternal)this).ErrorDetail, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.AgentPropertiesErrorDetailsTypeConverter.ConvertFrom); } if (content.Contains("Description")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentPropertiesInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentPropertiesInternal)this).Description, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentPropertiesInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentPropertiesInternal)this).Description, global::System.Convert.ToString); } if (content.Contains("AgentVersion")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentPropertiesInternal)this).AgentVersion = (string) content.GetValueForProperty("AgentVersion",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentPropertiesInternal)this).AgentVersion, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentPropertiesInternal)this).AgentVersion = (string) content.GetValueForProperty("AgentVersion",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentPropertiesInternal)this).AgentVersion, global::System.Convert.ToString); } if (content.Contains("ArcResourceId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentPropertiesInternal)this).ArcResourceId = (string) content.GetValueForProperty("ArcResourceId",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentPropertiesInternal)this).ArcResourceId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentPropertiesInternal)this).ArcResourceId = (string) content.GetValueForProperty("ArcResourceId",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentPropertiesInternal)this).ArcResourceId, global::System.Convert.ToString); } if (content.Contains("ArcVMUuid")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentPropertiesInternal)this).ArcVMUuid = (string) content.GetValueForProperty("ArcVMUuid",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentPropertiesInternal)this).ArcVMUuid, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentPropertiesInternal)this).ArcVMUuid = (string) content.GetValueForProperty("ArcVMUuid",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentPropertiesInternal)this).ArcVMUuid, global::System.Convert.ToString); } if (content.Contains("AgentStatus")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentPropertiesInternal)this).AgentStatus = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.AgentStatus?) content.GetValueForProperty("AgentStatus",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentPropertiesInternal)this).AgentStatus, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.AgentStatus.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentPropertiesInternal)this).AgentStatus = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.AgentStatus?) content.GetValueForProperty("AgentStatus",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentPropertiesInternal)this).AgentStatus, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.AgentStatus.CreateFrom); } if (content.Contains("LastStatusUpdate")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentPropertiesInternal)this).LastStatusUpdate = (global::System.DateTime?) content.GetValueForProperty("LastStatusUpdate",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentPropertiesInternal)this).LastStatusUpdate, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentPropertiesInternal)this).LastStatusUpdate = (global::System.DateTime?) content.GetValueForProperty("LastStatusUpdate",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentPropertiesInternal)this).LastStatusUpdate, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("LocalIPAddress")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentPropertiesInternal)this).LocalIPAddress = (string) content.GetValueForProperty("LocalIPAddress",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentPropertiesInternal)this).LocalIPAddress, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentPropertiesInternal)this).LocalIPAddress = (string) content.GetValueForProperty("LocalIPAddress",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentPropertiesInternal)this).LocalIPAddress, global::System.Convert.ToString); } if (content.Contains("MemoryInMb")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentPropertiesInternal)this).MemoryInMb = (long?) content.GetValueForProperty("MemoryInMb",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentPropertiesInternal)this).MemoryInMb, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentPropertiesInternal)this).MemoryInMb = (long?) content.GetValueForProperty("MemoryInMb",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentPropertiesInternal)this).MemoryInMb, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("NumberOfCore")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentPropertiesInternal)this).NumberOfCore = (long?) content.GetValueForProperty("NumberOfCore",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentPropertiesInternal)this).NumberOfCore, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentPropertiesInternal)this).NumberOfCore = (long?) content.GetValueForProperty("NumberOfCore",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentPropertiesInternal)this).NumberOfCore, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("UptimeInSecond")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentPropertiesInternal)this).UptimeInSecond = (long?) content.GetValueForProperty("UptimeInSecond",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentPropertiesInternal)this).UptimeInSecond, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentPropertiesInternal)this).UptimeInSecond = (long?) content.GetValueForProperty("UptimeInSecond",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentPropertiesInternal)this).UptimeInSecond, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("TimeZone")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentPropertiesInternal)this).TimeZone = (string) content.GetValueForProperty("TimeZone",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentPropertiesInternal)this).TimeZone, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentPropertiesInternal)this).TimeZone = (string) content.GetValueForProperty("TimeZone",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentPropertiesInternal)this).TimeZone, global::System.Convert.ToString); } if (content.Contains("ProvisioningState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentPropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentPropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentPropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentPropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState.CreateFrom); } if (content.Contains("UploadLimitScheduleWeeklyRecurrence")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentPropertiesInternal)this).UploadLimitScheduleWeeklyRecurrence = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IUploadLimitWeeklyRecurrence[]) content.GetValueForProperty("UploadLimitScheduleWeeklyRecurrence",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentPropertiesInternal)this).UploadLimitScheduleWeeklyRecurrence, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.UploadLimitWeeklyRecurrenceTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentPropertiesInternal)this).UploadLimitScheduleWeeklyRecurrence = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IUploadLimitWeeklyRecurrence[]) content.GetValueForProperty("UploadLimitScheduleWeeklyRecurrence",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentPropertiesInternal)this).UploadLimitScheduleWeeklyRecurrence, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.UploadLimitWeeklyRecurrenceTypeConverter.ConvertFrom)); } if (content.Contains("ErrorDetailCode")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentPropertiesInternal)this).ErrorDetailCode = (string) content.GetValueForProperty("ErrorDetailCode",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentPropertiesInternal)this).ErrorDetailCode, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentPropertiesInternal)this).ErrorDetailCode = (string) content.GetValueForProperty("ErrorDetailCode",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentPropertiesInternal)this).ErrorDetailCode, global::System.Convert.ToString); } if (content.Contains("ErrorDetailMessage")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentPropertiesInternal)this).ErrorDetailMessage = (string) content.GetValueForProperty("ErrorDetailMessage",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentPropertiesInternal)this).ErrorDetailMessage, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentPropertiesInternal)this).ErrorDetailMessage = (string) content.GetValueForProperty("ErrorDetailMessage",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentPropertiesInternal)this).ErrorDetailMessage, global::System.Convert.ToString); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -162,97 +162,97 @@ internal AgentProperties(global::System.Management.Automation.PSObject content) // actually deserialize if (content.Contains("UploadLimitSchedule")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentPropertiesInternal)this).UploadLimitSchedule = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IUploadLimitSchedule) content.GetValueForProperty("UploadLimitSchedule",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentPropertiesInternal)this).UploadLimitSchedule, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.UploadLimitScheduleTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentPropertiesInternal)this).UploadLimitSchedule = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IUploadLimitSchedule) content.GetValueForProperty("UploadLimitSchedule",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentPropertiesInternal)this).UploadLimitSchedule, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.UploadLimitScheduleTypeConverter.ConvertFrom); } if (content.Contains("ErrorDetail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentPropertiesInternal)this).ErrorDetail = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentPropertiesErrorDetails) content.GetValueForProperty("ErrorDetail",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentPropertiesInternal)this).ErrorDetail, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.AgentPropertiesErrorDetailsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentPropertiesInternal)this).ErrorDetail = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentPropertiesErrorDetails) content.GetValueForProperty("ErrorDetail",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentPropertiesInternal)this).ErrorDetail, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.AgentPropertiesErrorDetailsTypeConverter.ConvertFrom); } if (content.Contains("Description")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentPropertiesInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentPropertiesInternal)this).Description, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentPropertiesInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentPropertiesInternal)this).Description, global::System.Convert.ToString); } if (content.Contains("AgentVersion")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentPropertiesInternal)this).AgentVersion = (string) content.GetValueForProperty("AgentVersion",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentPropertiesInternal)this).AgentVersion, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentPropertiesInternal)this).AgentVersion = (string) content.GetValueForProperty("AgentVersion",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentPropertiesInternal)this).AgentVersion, global::System.Convert.ToString); } if (content.Contains("ArcResourceId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentPropertiesInternal)this).ArcResourceId = (string) content.GetValueForProperty("ArcResourceId",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentPropertiesInternal)this).ArcResourceId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentPropertiesInternal)this).ArcResourceId = (string) content.GetValueForProperty("ArcResourceId",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentPropertiesInternal)this).ArcResourceId, global::System.Convert.ToString); } if (content.Contains("ArcVMUuid")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentPropertiesInternal)this).ArcVMUuid = (string) content.GetValueForProperty("ArcVMUuid",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentPropertiesInternal)this).ArcVMUuid, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentPropertiesInternal)this).ArcVMUuid = (string) content.GetValueForProperty("ArcVMUuid",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentPropertiesInternal)this).ArcVMUuid, global::System.Convert.ToString); } if (content.Contains("AgentStatus")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentPropertiesInternal)this).AgentStatus = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.AgentStatus?) content.GetValueForProperty("AgentStatus",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentPropertiesInternal)this).AgentStatus, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.AgentStatus.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentPropertiesInternal)this).AgentStatus = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.AgentStatus?) content.GetValueForProperty("AgentStatus",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentPropertiesInternal)this).AgentStatus, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.AgentStatus.CreateFrom); } if (content.Contains("LastStatusUpdate")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentPropertiesInternal)this).LastStatusUpdate = (global::System.DateTime?) content.GetValueForProperty("LastStatusUpdate",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentPropertiesInternal)this).LastStatusUpdate, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentPropertiesInternal)this).LastStatusUpdate = (global::System.DateTime?) content.GetValueForProperty("LastStatusUpdate",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentPropertiesInternal)this).LastStatusUpdate, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("LocalIPAddress")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentPropertiesInternal)this).LocalIPAddress = (string) content.GetValueForProperty("LocalIPAddress",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentPropertiesInternal)this).LocalIPAddress, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentPropertiesInternal)this).LocalIPAddress = (string) content.GetValueForProperty("LocalIPAddress",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentPropertiesInternal)this).LocalIPAddress, global::System.Convert.ToString); } if (content.Contains("MemoryInMb")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentPropertiesInternal)this).MemoryInMb = (long?) content.GetValueForProperty("MemoryInMb",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentPropertiesInternal)this).MemoryInMb, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentPropertiesInternal)this).MemoryInMb = (long?) content.GetValueForProperty("MemoryInMb",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentPropertiesInternal)this).MemoryInMb, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("NumberOfCore")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentPropertiesInternal)this).NumberOfCore = (long?) content.GetValueForProperty("NumberOfCore",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentPropertiesInternal)this).NumberOfCore, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentPropertiesInternal)this).NumberOfCore = (long?) content.GetValueForProperty("NumberOfCore",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentPropertiesInternal)this).NumberOfCore, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("UptimeInSecond")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentPropertiesInternal)this).UptimeInSecond = (long?) content.GetValueForProperty("UptimeInSecond",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentPropertiesInternal)this).UptimeInSecond, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentPropertiesInternal)this).UptimeInSecond = (long?) content.GetValueForProperty("UptimeInSecond",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentPropertiesInternal)this).UptimeInSecond, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("TimeZone")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentPropertiesInternal)this).TimeZone = (string) content.GetValueForProperty("TimeZone",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentPropertiesInternal)this).TimeZone, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentPropertiesInternal)this).TimeZone = (string) content.GetValueForProperty("TimeZone",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentPropertiesInternal)this).TimeZone, global::System.Convert.ToString); } if (content.Contains("ProvisioningState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentPropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentPropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentPropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentPropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState.CreateFrom); } if (content.Contains("UploadLimitScheduleWeeklyRecurrence")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentPropertiesInternal)this).UploadLimitScheduleWeeklyRecurrence = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IUploadLimitWeeklyRecurrence[]) content.GetValueForProperty("UploadLimitScheduleWeeklyRecurrence",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentPropertiesInternal)this).UploadLimitScheduleWeeklyRecurrence, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.UploadLimitWeeklyRecurrenceTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentPropertiesInternal)this).UploadLimitScheduleWeeklyRecurrence = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IUploadLimitWeeklyRecurrence[]) content.GetValueForProperty("UploadLimitScheduleWeeklyRecurrence",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentPropertiesInternal)this).UploadLimitScheduleWeeklyRecurrence, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.UploadLimitWeeklyRecurrenceTypeConverter.ConvertFrom)); } if (content.Contains("ErrorDetailCode")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentPropertiesInternal)this).ErrorDetailCode = (string) content.GetValueForProperty("ErrorDetailCode",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentPropertiesInternal)this).ErrorDetailCode, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentPropertiesInternal)this).ErrorDetailCode = (string) content.GetValueForProperty("ErrorDetailCode",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentPropertiesInternal)this).ErrorDetailCode, global::System.Convert.ToString); } if (content.Contains("ErrorDetailMessage")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentPropertiesInternal)this).ErrorDetailMessage = (string) content.GetValueForProperty("ErrorDetailMessage",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentPropertiesInternal)this).ErrorDetailMessage, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentPropertiesInternal)this).ErrorDetailMessage = (string) content.GetValueForProperty("ErrorDetailMessage",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentPropertiesInternal)this).ErrorDetailMessage, global::System.Convert.ToString); } AfterDeserializePSObject(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new AgentProperties(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new AgentProperties(content); } @@ -262,7 +262,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/AgentProperties.TypeConverter.cs b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/AgentProperties.TypeConverter.cs similarity index 98% rename from generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/AgentProperties.TypeConverter.cs rename to generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/AgentProperties.TypeConverter.cs index a54e85a04c2e..b2fc1af80d29 100644 --- a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/AgentProperties.TypeConverter.cs +++ b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/AgentProperties.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701 { using Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentProperties ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentProperties ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentProperties).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentProperties).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/AgentProperties.cs b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/AgentProperties.cs similarity index 90% rename from generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/AgentProperties.cs rename to generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/AgentProperties.cs index 29ace1405519..299cfaed027c 100644 --- a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/AgentProperties.cs +++ b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/AgentProperties.cs @@ -3,14 +3,14 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701 { using static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Extensions; [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.DoNotFormat] public partial class AgentProperties : - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentProperties, - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentPropertiesInternal + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentProperties, + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentPropertiesInternal { /// Backing field for property. @@ -49,18 +49,18 @@ public partial class AgentProperties : public string Description { get => this._description; set => this._description = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentPropertiesErrorDetails _errorDetail; + private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentPropertiesErrorDetails _errorDetail; [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentPropertiesErrorDetails ErrorDetail { get => (this._errorDetail = this._errorDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.AgentPropertiesErrorDetails()); } + internal Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentPropertiesErrorDetails ErrorDetail { get => (this._errorDetail = this._errorDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.AgentPropertiesErrorDetails()); } /// Error code reported by Agent [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inlined)] - public string ErrorDetailCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentPropertiesErrorDetailsInternal)ErrorDetail).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentPropertiesErrorDetailsInternal)ErrorDetail).Code = value ?? null; } + public string ErrorDetailCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentPropertiesErrorDetailsInternal)ErrorDetail).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentPropertiesErrorDetailsInternal)ErrorDetail).Code = value ?? null; } /// Expanded description of reported error code [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inlined)] - public string ErrorDetailMessage { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentPropertiesErrorDetailsInternal)ErrorDetail).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentPropertiesErrorDetailsInternal)ErrorDetail).Message = value ?? null; } + public string ErrorDetailMessage { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentPropertiesErrorDetailsInternal)ErrorDetail).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentPropertiesErrorDetailsInternal)ErrorDetail).Message = value ?? null; } /// Backing field for property. private global::System.DateTime? _lastStatusUpdate; @@ -84,37 +84,37 @@ public partial class AgentProperties : public long? MemoryInMb { get => this._memoryInMb; } /// Internal Acessors for AgentStatus - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.AgentStatus? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentPropertiesInternal.AgentStatus { get => this._agentStatus; set { {_agentStatus = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.AgentStatus? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentPropertiesInternal.AgentStatus { get => this._agentStatus; set { {_agentStatus = value;} } } /// Internal Acessors for AgentVersion - string Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentPropertiesInternal.AgentVersion { get => this._agentVersion; set { {_agentVersion = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentPropertiesInternal.AgentVersion { get => this._agentVersion; set { {_agentVersion = value;} } } /// Internal Acessors for ErrorDetail - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentPropertiesErrorDetails Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentPropertiesInternal.ErrorDetail { get => (this._errorDetail = this._errorDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.AgentPropertiesErrorDetails()); set { {_errorDetail = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentPropertiesErrorDetails Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentPropertiesInternal.ErrorDetail { get => (this._errorDetail = this._errorDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.AgentPropertiesErrorDetails()); set { {_errorDetail = value;} } } /// Internal Acessors for LastStatusUpdate - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentPropertiesInternal.LastStatusUpdate { get => this._lastStatusUpdate; set { {_lastStatusUpdate = value;} } } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentPropertiesInternal.LastStatusUpdate { get => this._lastStatusUpdate; set { {_lastStatusUpdate = value;} } } /// Internal Acessors for LocalIPAddress - string Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentPropertiesInternal.LocalIPAddress { get => this._localIPAddress; set { {_localIPAddress = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentPropertiesInternal.LocalIPAddress { get => this._localIPAddress; set { {_localIPAddress = value;} } } /// Internal Acessors for MemoryInMb - long? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentPropertiesInternal.MemoryInMb { get => this._memoryInMb; set { {_memoryInMb = value;} } } + long? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentPropertiesInternal.MemoryInMb { get => this._memoryInMb; set { {_memoryInMb = value;} } } /// Internal Acessors for NumberOfCore - long? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentPropertiesInternal.NumberOfCore { get => this._numberOfCore; set { {_numberOfCore = value;} } } + long? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentPropertiesInternal.NumberOfCore { get => this._numberOfCore; set { {_numberOfCore = value;} } } /// Internal Acessors for ProvisioningState - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentPropertiesInternal.ProvisioningState { get => this._provisioningState; set { {_provisioningState = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentPropertiesInternal.ProvisioningState { get => this._provisioningState; set { {_provisioningState = value;} } } /// Internal Acessors for TimeZone - string Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentPropertiesInternal.TimeZone { get => this._timeZone; set { {_timeZone = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentPropertiesInternal.TimeZone { get => this._timeZone; set { {_timeZone = value;} } } /// Internal Acessors for UploadLimitSchedule - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IUploadLimitSchedule Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentPropertiesInternal.UploadLimitSchedule { get => (this._uploadLimitSchedule = this._uploadLimitSchedule ?? new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.UploadLimitSchedule()); set { {_uploadLimitSchedule = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IUploadLimitSchedule Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentPropertiesInternal.UploadLimitSchedule { get => (this._uploadLimitSchedule = this._uploadLimitSchedule ?? new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.UploadLimitSchedule()); set { {_uploadLimitSchedule = value;} } } /// Internal Acessors for UptimeInSecond - long? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentPropertiesInternal.UptimeInSecond { get => this._uptimeInSecond; set { {_uptimeInSecond = value;} } } + long? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentPropertiesInternal.UptimeInSecond { get => this._uptimeInSecond; set { {_uptimeInSecond = value;} } } /// Backing field for property. private long? _numberOfCore; @@ -138,7 +138,7 @@ public partial class AgentProperties : public string TimeZone { get => this._timeZone; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IUploadLimitSchedule _uploadLimitSchedule; + private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IUploadLimitSchedule _uploadLimitSchedule; /// /// The WAN-link upload limit schedule that applies to any Job Run the agent executes. Data plane operations (migrating files) @@ -146,11 +146,11 @@ public partial class AgentProperties : /// schedule is interpreted with the agent's local time. /// [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IUploadLimitSchedule UploadLimitSchedule { get => (this._uploadLimitSchedule = this._uploadLimitSchedule ?? new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.UploadLimitSchedule()); set => this._uploadLimitSchedule = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IUploadLimitSchedule UploadLimitSchedule { get => (this._uploadLimitSchedule = this._uploadLimitSchedule ?? new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.UploadLimitSchedule()); set => this._uploadLimitSchedule = value; } /// The set of weekly repeating recurrences of the WAN-link upload limit schedule. [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IUploadLimitWeeklyRecurrence[] UploadLimitScheduleWeeklyRecurrence { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IUploadLimitScheduleInternal)UploadLimitSchedule).WeeklyRecurrence; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IUploadLimitScheduleInternal)UploadLimitSchedule).WeeklyRecurrence = value ?? null /* arrayOf */; } + public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IUploadLimitWeeklyRecurrence[] UploadLimitScheduleWeeklyRecurrence { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IUploadLimitScheduleInternal)UploadLimitSchedule).WeeklyRecurrence; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IUploadLimitScheduleInternal)UploadLimitSchedule).WeeklyRecurrence = value ?? null /* arrayOf */; } /// Backing field for property. private long? _uptimeInSecond; @@ -278,8 +278,8 @@ public partial interface IAgentProperties : ReadOnly = false, Description = @"The set of weekly repeating recurrences of the WAN-link upload limit schedule.", SerializedName = @"weeklyRecurrences", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IUploadLimitWeeklyRecurrence) })] - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IUploadLimitWeeklyRecurrence[] UploadLimitScheduleWeeklyRecurrence { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IUploadLimitWeeklyRecurrence) })] + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IUploadLimitWeeklyRecurrence[] UploadLimitScheduleWeeklyRecurrence { get; set; } /// Uptime of the Agent in seconds. [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Info( Required = false, @@ -304,7 +304,7 @@ internal partial interface IAgentPropertiesInternal /// A description for the Agent. string Description { get; set; } - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentPropertiesErrorDetails ErrorDetail { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentPropertiesErrorDetails ErrorDetail { get; set; } /// Error code reported by Agent string ErrorDetailCode { get; set; } /// Expanded description of reported error code @@ -326,9 +326,9 @@ internal partial interface IAgentPropertiesInternal /// are affected. Control plane operations ensure seamless migration functionality and are not limited by this schedule. The /// schedule is interpreted with the agent's local time. /// - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IUploadLimitSchedule UploadLimitSchedule { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IUploadLimitSchedule UploadLimitSchedule { get; set; } /// The set of weekly repeating recurrences of the WAN-link upload limit schedule. - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IUploadLimitWeeklyRecurrence[] UploadLimitScheduleWeeklyRecurrence { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IUploadLimitWeeklyRecurrence[] UploadLimitScheduleWeeklyRecurrence { get; set; } /// Uptime of the Agent in seconds. long? UptimeInSecond { get; set; } diff --git a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/AgentProperties.json.cs b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/AgentProperties.json.cs similarity index 98% rename from generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/AgentProperties.json.cs rename to generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/AgentProperties.json.cs index 4f928c142cd1..5bdbd01f4b28 100644 --- a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/AgentProperties.json.cs +++ b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/AgentProperties.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701 { using static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Extensions; @@ -64,8 +64,8 @@ internal AgentProperties(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime { return; } - {_uploadLimitSchedule = If( json?.PropertyT("uploadLimitSchedule"), out var __jsonUploadLimitSchedule) ? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.UploadLimitSchedule.FromJson(__jsonUploadLimitSchedule) : UploadLimitSchedule;} - {_errorDetail = If( json?.PropertyT("errorDetails"), out var __jsonErrorDetails) ? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.AgentPropertiesErrorDetails.FromJson(__jsonErrorDetails) : ErrorDetail;} + {_uploadLimitSchedule = If( json?.PropertyT("uploadLimitSchedule"), out var __jsonUploadLimitSchedule) ? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.UploadLimitSchedule.FromJson(__jsonUploadLimitSchedule) : UploadLimitSchedule;} + {_errorDetail = If( json?.PropertyT("errorDetails"), out var __jsonErrorDetails) ? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.AgentPropertiesErrorDetails.FromJson(__jsonErrorDetails) : ErrorDetail;} {_description = If( json?.PropertyT("description"), out var __jsonDescription) ? (string)__jsonDescription : (string)Description;} {_agentVersion = If( json?.PropertyT("agentVersion"), out var __jsonAgentVersion) ? (string)__jsonAgentVersion : (string)AgentVersion;} {_arcResourceId = If( json?.PropertyT("arcResourceId"), out var __jsonArcResourceId) ? (string)__jsonArcResourceId : (string)ArcResourceId;} @@ -82,13 +82,13 @@ internal AgentProperties(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentProperties. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentProperties. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentProperties. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentProperties. /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject json ? new AgentProperties(json) : null; } diff --git a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/AgentPropertiesErrorDetails.PowerShell.cs b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/AgentPropertiesErrorDetails.PowerShell.cs similarity index 89% rename from generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/AgentPropertiesErrorDetails.PowerShell.cs rename to generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/AgentPropertiesErrorDetails.PowerShell.cs index 226ef8ccece3..5b8c21d0ac02 100644 --- a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/AgentPropertiesErrorDetails.PowerShell.cs +++ b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/AgentPropertiesErrorDetails.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701 { using Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.PowerShell; @@ -62,7 +62,7 @@ public partial class AgentPropertiesErrorDetails partial void OverrideToString(ref string stringResult, ref bool returnNow); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -77,17 +77,17 @@ internal AgentPropertiesErrorDetails(global::System.Collections.IDictionary cont // actually deserialize if (content.Contains("Code")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentPropertiesErrorDetailsInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentPropertiesErrorDetailsInternal)this).Code, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentPropertiesErrorDetailsInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentPropertiesErrorDetailsInternal)this).Code, global::System.Convert.ToString); } if (content.Contains("Message")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentPropertiesErrorDetailsInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentPropertiesErrorDetailsInternal)this).Message, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentPropertiesErrorDetailsInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentPropertiesErrorDetailsInternal)this).Message, global::System.Convert.ToString); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -102,39 +102,39 @@ internal AgentPropertiesErrorDetails(global::System.Management.Automation.PSObje // actually deserialize if (content.Contains("Code")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentPropertiesErrorDetailsInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentPropertiesErrorDetailsInternal)this).Code, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentPropertiesErrorDetailsInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentPropertiesErrorDetailsInternal)this).Code, global::System.Convert.ToString); } if (content.Contains("Message")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentPropertiesErrorDetailsInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentPropertiesErrorDetailsInternal)this).Message, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentPropertiesErrorDetailsInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentPropertiesErrorDetailsInternal)this).Message, global::System.Convert.ToString); } AfterDeserializePSObject(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentPropertiesErrorDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentPropertiesErrorDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new AgentPropertiesErrorDetails(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentPropertiesErrorDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentPropertiesErrorDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new AgentPropertiesErrorDetails(content); } @@ -144,7 +144,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentPropertiesErrorDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentPropertiesErrorDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/AgentPropertiesErrorDetails.TypeConverter.cs b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/AgentPropertiesErrorDetails.TypeConverter.cs similarity index 98% rename from generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/AgentPropertiesErrorDetails.TypeConverter.cs rename to generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/AgentPropertiesErrorDetails.TypeConverter.cs index a2cd309cb16d..d5ed8d5ef976 100644 --- a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/AgentPropertiesErrorDetails.TypeConverter.cs +++ b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/AgentPropertiesErrorDetails.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701 { using Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentPropertiesErrorDetails ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentPropertiesErrorDetails ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentPropertiesErrorDetails).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentPropertiesErrorDetails).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/AgentPropertiesErrorDetails.cs b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/AgentPropertiesErrorDetails.cs similarity index 96% rename from generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/AgentPropertiesErrorDetails.cs rename to generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/AgentPropertiesErrorDetails.cs index 4d581deb5a12..ed1773b7df3b 100644 --- a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/AgentPropertiesErrorDetails.cs +++ b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/AgentPropertiesErrorDetails.cs @@ -3,14 +3,14 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701 { using static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Extensions; [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.DoNotFormat] public partial class AgentPropertiesErrorDetails : - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentPropertiesErrorDetails, - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentPropertiesErrorDetailsInternal + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentPropertiesErrorDetails, + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentPropertiesErrorDetailsInternal { /// Backing field for property. diff --git a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/AgentPropertiesErrorDetails.json.cs b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/AgentPropertiesErrorDetails.json.cs similarity index 97% rename from generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/AgentPropertiesErrorDetails.json.cs rename to generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/AgentPropertiesErrorDetails.json.cs index e0c203714bdd..4c978f2dcf84 100644 --- a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/AgentPropertiesErrorDetails.json.cs +++ b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/AgentPropertiesErrorDetails.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701 { using static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Extensions; @@ -70,13 +70,13 @@ internal AgentPropertiesErrorDetails(Microsoft.Azure.PowerShell.Cmdlets.StorageM } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentPropertiesErrorDetails. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentPropertiesErrorDetails. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentPropertiesErrorDetails. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentPropertiesErrorDetails. /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentPropertiesErrorDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentPropertiesErrorDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject json ? new AgentPropertiesErrorDetails(json) : null; } diff --git a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/AgentUpdateParameters.PowerShell.cs b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/AgentUpdateParameters.PowerShell.cs similarity index 81% rename from generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/AgentUpdateParameters.PowerShell.cs rename to generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/AgentUpdateParameters.PowerShell.cs index 10883e7e3a64..eea306096d5c 100644 --- a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/AgentUpdateParameters.PowerShell.cs +++ b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/AgentUpdateParameters.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701 { using Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.PowerShell; @@ -63,7 +63,7 @@ public partial class AgentUpdateParameters partial void OverrideToString(ref string stringResult, ref bool returnNow); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -78,25 +78,25 @@ internal AgentUpdateParameters(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("Property")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentUpdateParametersInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentUpdateProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentUpdateParametersInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.AgentUpdatePropertiesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentUpdateParametersInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentUpdateProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentUpdateParametersInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.AgentUpdatePropertiesTypeConverter.ConvertFrom); } if (content.Contains("UploadLimitSchedule")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentUpdateParametersInternal)this).UploadLimitSchedule = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IUploadLimitSchedule) content.GetValueForProperty("UploadLimitSchedule",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentUpdateParametersInternal)this).UploadLimitSchedule, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.UploadLimitScheduleTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentUpdateParametersInternal)this).UploadLimitSchedule = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IUploadLimitSchedule) content.GetValueForProperty("UploadLimitSchedule",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentUpdateParametersInternal)this).UploadLimitSchedule, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.UploadLimitScheduleTypeConverter.ConvertFrom); } if (content.Contains("Description")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentUpdateParametersInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentUpdateParametersInternal)this).Description, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentUpdateParametersInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentUpdateParametersInternal)this).Description, global::System.Convert.ToString); } if (content.Contains("UploadLimitScheduleWeeklyRecurrence")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentUpdateParametersInternal)this).UploadLimitScheduleWeeklyRecurrence = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IUploadLimitWeeklyRecurrence[]) content.GetValueForProperty("UploadLimitScheduleWeeklyRecurrence",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentUpdateParametersInternal)this).UploadLimitScheduleWeeklyRecurrence, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.UploadLimitWeeklyRecurrenceTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentUpdateParametersInternal)this).UploadLimitScheduleWeeklyRecurrence = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IUploadLimitWeeklyRecurrence[]) content.GetValueForProperty("UploadLimitScheduleWeeklyRecurrence",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentUpdateParametersInternal)this).UploadLimitScheduleWeeklyRecurrence, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.UploadLimitWeeklyRecurrenceTypeConverter.ConvertFrom)); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -111,45 +111,45 @@ internal AgentUpdateParameters(global::System.Management.Automation.PSObject con // actually deserialize if (content.Contains("Property")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentUpdateParametersInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentUpdateProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentUpdateParametersInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.AgentUpdatePropertiesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentUpdateParametersInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentUpdateProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentUpdateParametersInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.AgentUpdatePropertiesTypeConverter.ConvertFrom); } if (content.Contains("UploadLimitSchedule")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentUpdateParametersInternal)this).UploadLimitSchedule = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IUploadLimitSchedule) content.GetValueForProperty("UploadLimitSchedule",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentUpdateParametersInternal)this).UploadLimitSchedule, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.UploadLimitScheduleTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentUpdateParametersInternal)this).UploadLimitSchedule = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IUploadLimitSchedule) content.GetValueForProperty("UploadLimitSchedule",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentUpdateParametersInternal)this).UploadLimitSchedule, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.UploadLimitScheduleTypeConverter.ConvertFrom); } if (content.Contains("Description")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentUpdateParametersInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentUpdateParametersInternal)this).Description, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentUpdateParametersInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentUpdateParametersInternal)this).Description, global::System.Convert.ToString); } if (content.Contains("UploadLimitScheduleWeeklyRecurrence")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentUpdateParametersInternal)this).UploadLimitScheduleWeeklyRecurrence = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IUploadLimitWeeklyRecurrence[]) content.GetValueForProperty("UploadLimitScheduleWeeklyRecurrence",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentUpdateParametersInternal)this).UploadLimitScheduleWeeklyRecurrence, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.UploadLimitWeeklyRecurrenceTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentUpdateParametersInternal)this).UploadLimitScheduleWeeklyRecurrence = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IUploadLimitWeeklyRecurrence[]) content.GetValueForProperty("UploadLimitScheduleWeeklyRecurrence",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentUpdateParametersInternal)this).UploadLimitScheduleWeeklyRecurrence, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.UploadLimitWeeklyRecurrenceTypeConverter.ConvertFrom)); } AfterDeserializePSObject(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentUpdateParameters DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentUpdateParameters DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new AgentUpdateParameters(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentUpdateParameters DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentUpdateParameters DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new AgentUpdateParameters(content); } @@ -159,7 +159,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentUpdateParameters FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentUpdateParameters FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/AgentUpdateParameters.TypeConverter.cs b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/AgentUpdateParameters.TypeConverter.cs similarity index 98% rename from generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/AgentUpdateParameters.TypeConverter.cs rename to generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/AgentUpdateParameters.TypeConverter.cs index d6d166dc9e13..fa39601f936d 100644 --- a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/AgentUpdateParameters.TypeConverter.cs +++ b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/AgentUpdateParameters.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701 { using Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentUpdateParameters ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentUpdateParameters ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentUpdateParameters).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentUpdateParameters).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/AgentUpdateParameters.cs b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/AgentUpdateParameters.cs similarity index 78% rename from generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/AgentUpdateParameters.cs rename to generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/AgentUpdateParameters.cs index fc451f5ea45c..5580ea5ca506 100644 --- a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/AgentUpdateParameters.cs +++ b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/AgentUpdateParameters.cs @@ -3,36 +3,36 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701 { using static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Extensions; /// The Agent resource. [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.DoNotFormat] public partial class AgentUpdateParameters : - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentUpdateParameters, - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentUpdateParametersInternal + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentUpdateParameters, + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentUpdateParametersInternal { /// A description for the Agent. [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inlined)] - public string Description { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentUpdatePropertiesInternal)Property).Description; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentUpdatePropertiesInternal)Property).Description = value ?? null; } + public string Description { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentUpdatePropertiesInternal)Property).Description; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentUpdatePropertiesInternal)Property).Description = value ?? null; } /// Internal Acessors for Property - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentUpdateProperties Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentUpdateParametersInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.AgentUpdateProperties()); set { {_property = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentUpdateProperties Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentUpdateParametersInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.AgentUpdateProperties()); set { {_property = value;} } } /// Internal Acessors for UploadLimitSchedule - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IUploadLimitSchedule Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentUpdateParametersInternal.UploadLimitSchedule { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentUpdatePropertiesInternal)Property).UploadLimitSchedule; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentUpdatePropertiesInternal)Property).UploadLimitSchedule = value; } + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IUploadLimitSchedule Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentUpdateParametersInternal.UploadLimitSchedule { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentUpdatePropertiesInternal)Property).UploadLimitSchedule; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentUpdatePropertiesInternal)Property).UploadLimitSchedule = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentUpdateProperties _property; + private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentUpdateProperties _property; [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentUpdateProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.AgentUpdateProperties()); set => this._property = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentUpdateProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.AgentUpdateProperties()); set => this._property = value; } /// The set of weekly repeating recurrences of the WAN-link upload limit schedule. [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IUploadLimitWeeklyRecurrence[] UploadLimitScheduleWeeklyRecurrence { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentUpdatePropertiesInternal)Property).UploadLimitScheduleWeeklyRecurrence; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentUpdatePropertiesInternal)Property).UploadLimitScheduleWeeklyRecurrence = value ?? null /* arrayOf */; } + public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IUploadLimitWeeklyRecurrence[] UploadLimitScheduleWeeklyRecurrence { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentUpdatePropertiesInternal)Property).UploadLimitScheduleWeeklyRecurrence; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentUpdatePropertiesInternal)Property).UploadLimitScheduleWeeklyRecurrence = value ?? null /* arrayOf */; } /// Creates an new instance. public AgentUpdateParameters() @@ -58,8 +58,8 @@ public partial interface IAgentUpdateParameters : ReadOnly = false, Description = @"The set of weekly repeating recurrences of the WAN-link upload limit schedule.", SerializedName = @"weeklyRecurrences", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IUploadLimitWeeklyRecurrence) })] - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IUploadLimitWeeklyRecurrence[] UploadLimitScheduleWeeklyRecurrence { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IUploadLimitWeeklyRecurrence) })] + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IUploadLimitWeeklyRecurrence[] UploadLimitScheduleWeeklyRecurrence { get; set; } } /// The Agent resource. @@ -69,15 +69,15 @@ internal partial interface IAgentUpdateParametersInternal /// A description for the Agent. string Description { get; set; } - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentUpdateProperties Property { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentUpdateProperties Property { get; set; } /// /// The WAN-link upload limit schedule that applies to any Job Run the agent executes. Data plane operations (migrating files) /// are affected. Control plane operations ensure seamless migration functionality and are not limited by this schedule. The /// schedule is interpreted with the agent's local time. /// - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IUploadLimitSchedule UploadLimitSchedule { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IUploadLimitSchedule UploadLimitSchedule { get; set; } /// The set of weekly repeating recurrences of the WAN-link upload limit schedule. - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IUploadLimitWeeklyRecurrence[] UploadLimitScheduleWeeklyRecurrence { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IUploadLimitWeeklyRecurrence[] UploadLimitScheduleWeeklyRecurrence { get; set; } } } \ No newline at end of file diff --git a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/AgentUpdateParameters.json.cs b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/AgentUpdateParameters.json.cs similarity index 96% rename from generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/AgentUpdateParameters.json.cs rename to generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/AgentUpdateParameters.json.cs index 8ecf29e1f7fe..c535361c95db 100644 --- a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/AgentUpdateParameters.json.cs +++ b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/AgentUpdateParameters.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701 { using static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Extensions; @@ -65,18 +65,18 @@ internal AgentUpdateParameters(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.R { return; } - {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.AgentUpdateProperties.FromJson(__jsonProperties) : Property;} + {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.AgentUpdateProperties.FromJson(__jsonProperties) : Property;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentUpdateParameters. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentUpdateParameters. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentUpdateParameters. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentUpdateParameters. /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentUpdateParameters FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentUpdateParameters FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject json ? new AgentUpdateParameters(json) : null; } diff --git a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/AgentUpdateProperties.PowerShell.cs b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/AgentUpdateProperties.PowerShell.cs similarity index 83% rename from generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/AgentUpdateProperties.PowerShell.cs rename to generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/AgentUpdateProperties.PowerShell.cs index 020ef44084fb..648e083e56af 100644 --- a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/AgentUpdateProperties.PowerShell.cs +++ b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/AgentUpdateProperties.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701 { using Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.PowerShell; @@ -62,7 +62,7 @@ public partial class AgentUpdateProperties partial void OverrideToString(ref string stringResult, ref bool returnNow); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -77,21 +77,21 @@ internal AgentUpdateProperties(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("UploadLimitSchedule")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentUpdatePropertiesInternal)this).UploadLimitSchedule = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IUploadLimitSchedule) content.GetValueForProperty("UploadLimitSchedule",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentUpdatePropertiesInternal)this).UploadLimitSchedule, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.UploadLimitScheduleTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentUpdatePropertiesInternal)this).UploadLimitSchedule = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IUploadLimitSchedule) content.GetValueForProperty("UploadLimitSchedule",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentUpdatePropertiesInternal)this).UploadLimitSchedule, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.UploadLimitScheduleTypeConverter.ConvertFrom); } if (content.Contains("Description")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentUpdatePropertiesInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentUpdatePropertiesInternal)this).Description, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentUpdatePropertiesInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentUpdatePropertiesInternal)this).Description, global::System.Convert.ToString); } if (content.Contains("UploadLimitScheduleWeeklyRecurrence")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentUpdatePropertiesInternal)this).UploadLimitScheduleWeeklyRecurrence = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IUploadLimitWeeklyRecurrence[]) content.GetValueForProperty("UploadLimitScheduleWeeklyRecurrence",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentUpdatePropertiesInternal)this).UploadLimitScheduleWeeklyRecurrence, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.UploadLimitWeeklyRecurrenceTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentUpdatePropertiesInternal)this).UploadLimitScheduleWeeklyRecurrence = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IUploadLimitWeeklyRecurrence[]) content.GetValueForProperty("UploadLimitScheduleWeeklyRecurrence",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentUpdatePropertiesInternal)this).UploadLimitScheduleWeeklyRecurrence, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.UploadLimitWeeklyRecurrenceTypeConverter.ConvertFrom)); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -106,41 +106,41 @@ internal AgentUpdateProperties(global::System.Management.Automation.PSObject con // actually deserialize if (content.Contains("UploadLimitSchedule")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentUpdatePropertiesInternal)this).UploadLimitSchedule = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IUploadLimitSchedule) content.GetValueForProperty("UploadLimitSchedule",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentUpdatePropertiesInternal)this).UploadLimitSchedule, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.UploadLimitScheduleTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentUpdatePropertiesInternal)this).UploadLimitSchedule = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IUploadLimitSchedule) content.GetValueForProperty("UploadLimitSchedule",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentUpdatePropertiesInternal)this).UploadLimitSchedule, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.UploadLimitScheduleTypeConverter.ConvertFrom); } if (content.Contains("Description")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentUpdatePropertiesInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentUpdatePropertiesInternal)this).Description, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentUpdatePropertiesInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentUpdatePropertiesInternal)this).Description, global::System.Convert.ToString); } if (content.Contains("UploadLimitScheduleWeeklyRecurrence")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentUpdatePropertiesInternal)this).UploadLimitScheduleWeeklyRecurrence = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IUploadLimitWeeklyRecurrence[]) content.GetValueForProperty("UploadLimitScheduleWeeklyRecurrence",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentUpdatePropertiesInternal)this).UploadLimitScheduleWeeklyRecurrence, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.UploadLimitWeeklyRecurrenceTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentUpdatePropertiesInternal)this).UploadLimitScheduleWeeklyRecurrence = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IUploadLimitWeeklyRecurrence[]) content.GetValueForProperty("UploadLimitScheduleWeeklyRecurrence",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentUpdatePropertiesInternal)this).UploadLimitScheduleWeeklyRecurrence, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.UploadLimitWeeklyRecurrenceTypeConverter.ConvertFrom)); } AfterDeserializePSObject(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentUpdateProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentUpdateProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new AgentUpdateProperties(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentUpdateProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentUpdateProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new AgentUpdateProperties(content); } @@ -150,7 +150,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentUpdateProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentUpdateProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/AgentUpdateProperties.TypeConverter.cs b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/AgentUpdateProperties.TypeConverter.cs similarity index 98% rename from generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/AgentUpdateProperties.TypeConverter.cs rename to generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/AgentUpdateProperties.TypeConverter.cs index 5e6f919ba15b..fcade16b2c00 100644 --- a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/AgentUpdateProperties.TypeConverter.cs +++ b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/AgentUpdateProperties.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701 { using Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentUpdateProperties ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentUpdateProperties ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentUpdateProperties).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentUpdateProperties).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/AgentUpdateProperties.cs b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/AgentUpdateProperties.cs similarity index 84% rename from generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/AgentUpdateProperties.cs rename to generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/AgentUpdateProperties.cs index 2619a1ee9c5b..e89afeb9fce0 100644 --- a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/AgentUpdateProperties.cs +++ b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/AgentUpdateProperties.cs @@ -3,14 +3,14 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701 { using static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Extensions; [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.DoNotFormat] public partial class AgentUpdateProperties : - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentUpdateProperties, - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentUpdatePropertiesInternal + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentUpdateProperties, + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentUpdatePropertiesInternal { /// Backing field for property. @@ -21,10 +21,10 @@ public partial class AgentUpdateProperties : public string Description { get => this._description; set => this._description = value; } /// Internal Acessors for UploadLimitSchedule - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IUploadLimitSchedule Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentUpdatePropertiesInternal.UploadLimitSchedule { get => (this._uploadLimitSchedule = this._uploadLimitSchedule ?? new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.UploadLimitSchedule()); set { {_uploadLimitSchedule = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IUploadLimitSchedule Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentUpdatePropertiesInternal.UploadLimitSchedule { get => (this._uploadLimitSchedule = this._uploadLimitSchedule ?? new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.UploadLimitSchedule()); set { {_uploadLimitSchedule = value;} } } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IUploadLimitSchedule _uploadLimitSchedule; + private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IUploadLimitSchedule _uploadLimitSchedule; /// /// The WAN-link upload limit schedule that applies to any Job Run the agent executes. Data plane operations (migrating files) @@ -32,11 +32,11 @@ public partial class AgentUpdateProperties : /// schedule is interpreted with the agent's local time. /// [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IUploadLimitSchedule UploadLimitSchedule { get => (this._uploadLimitSchedule = this._uploadLimitSchedule ?? new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.UploadLimitSchedule()); set => this._uploadLimitSchedule = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IUploadLimitSchedule UploadLimitSchedule { get => (this._uploadLimitSchedule = this._uploadLimitSchedule ?? new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.UploadLimitSchedule()); set => this._uploadLimitSchedule = value; } /// The set of weekly repeating recurrences of the WAN-link upload limit schedule. [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IUploadLimitWeeklyRecurrence[] UploadLimitScheduleWeeklyRecurrence { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IUploadLimitScheduleInternal)UploadLimitSchedule).WeeklyRecurrence; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IUploadLimitScheduleInternal)UploadLimitSchedule).WeeklyRecurrence = value ?? null /* arrayOf */; } + public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IUploadLimitWeeklyRecurrence[] UploadLimitScheduleWeeklyRecurrence { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IUploadLimitScheduleInternal)UploadLimitSchedule).WeeklyRecurrence; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IUploadLimitScheduleInternal)UploadLimitSchedule).WeeklyRecurrence = value ?? null /* arrayOf */; } /// Creates an new instance. public AgentUpdateProperties() @@ -61,8 +61,8 @@ public partial interface IAgentUpdateProperties : ReadOnly = false, Description = @"The set of weekly repeating recurrences of the WAN-link upload limit schedule.", SerializedName = @"weeklyRecurrences", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IUploadLimitWeeklyRecurrence) })] - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IUploadLimitWeeklyRecurrence[] UploadLimitScheduleWeeklyRecurrence { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IUploadLimitWeeklyRecurrence) })] + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IUploadLimitWeeklyRecurrence[] UploadLimitScheduleWeeklyRecurrence { get; set; } } internal partial interface IAgentUpdatePropertiesInternal @@ -75,9 +75,9 @@ internal partial interface IAgentUpdatePropertiesInternal /// are affected. Control plane operations ensure seamless migration functionality and are not limited by this schedule. The /// schedule is interpreted with the agent's local time. /// - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IUploadLimitSchedule UploadLimitSchedule { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IUploadLimitSchedule UploadLimitSchedule { get; set; } /// The set of weekly repeating recurrences of the WAN-link upload limit schedule. - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IUploadLimitWeeklyRecurrence[] UploadLimitScheduleWeeklyRecurrence { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IUploadLimitWeeklyRecurrence[] UploadLimitScheduleWeeklyRecurrence { get; set; } } } \ No newline at end of file diff --git a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/AgentUpdateProperties.json.cs b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/AgentUpdateProperties.json.cs similarity index 97% rename from generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/AgentUpdateProperties.json.cs rename to generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/AgentUpdateProperties.json.cs index 0f3be469e0c3..fb7abbe16e7b 100644 --- a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/AgentUpdateProperties.json.cs +++ b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/AgentUpdateProperties.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701 { using static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Extensions; @@ -64,19 +64,19 @@ internal AgentUpdateProperties(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.R { return; } - {_uploadLimitSchedule = If( json?.PropertyT("uploadLimitSchedule"), out var __jsonUploadLimitSchedule) ? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.UploadLimitSchedule.FromJson(__jsonUploadLimitSchedule) : UploadLimitSchedule;} + {_uploadLimitSchedule = If( json?.PropertyT("uploadLimitSchedule"), out var __jsonUploadLimitSchedule) ? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.UploadLimitSchedule.FromJson(__jsonUploadLimitSchedule) : UploadLimitSchedule;} {_description = If( json?.PropertyT("description"), out var __jsonDescription) ? (string)__jsonDescription : (string)Description;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentUpdateProperties. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentUpdateProperties. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentUpdateProperties. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentUpdateProperties. /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentUpdateProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentUpdateProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject json ? new AgentUpdateProperties(json) : null; } diff --git a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/AzureKeyVaultSmbCredentials.PowerShell.cs b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/AzureKeyVaultSmbCredentials.PowerShell.cs similarity index 87% rename from generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/AzureKeyVaultSmbCredentials.PowerShell.cs rename to generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/AzureKeyVaultSmbCredentials.PowerShell.cs index e349420227f1..25b1d0ec966d 100644 --- a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/AzureKeyVaultSmbCredentials.PowerShell.cs +++ b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/AzureKeyVaultSmbCredentials.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701 { using Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.PowerShell; @@ -63,7 +63,7 @@ public partial class AzureKeyVaultSmbCredentials partial void OverrideToString(ref string stringResult, ref bool returnNow); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -78,21 +78,21 @@ internal AzureKeyVaultSmbCredentials(global::System.Collections.IDictionary cont // actually deserialize if (content.Contains("UsernameUri")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAzureKeyVaultSmbCredentialsInternal)this).UsernameUri = (string) content.GetValueForProperty("UsernameUri",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAzureKeyVaultSmbCredentialsInternal)this).UsernameUri, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAzureKeyVaultSmbCredentialsInternal)this).UsernameUri = (string) content.GetValueForProperty("UsernameUri",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAzureKeyVaultSmbCredentialsInternal)this).UsernameUri, global::System.Convert.ToString); } if (content.Contains("PasswordUri")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAzureKeyVaultSmbCredentialsInternal)this).PasswordUri = (string) content.GetValueForProperty("PasswordUri",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAzureKeyVaultSmbCredentialsInternal)this).PasswordUri, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAzureKeyVaultSmbCredentialsInternal)this).PasswordUri = (string) content.GetValueForProperty("PasswordUri",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAzureKeyVaultSmbCredentialsInternal)this).PasswordUri, global::System.Convert.ToString); } if (content.Contains("Type")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.ICredentialsInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.ICredentialsInternal)this).Type, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ICredentialsInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ICredentialsInternal)this).Type, global::System.Convert.ToString); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -107,43 +107,43 @@ internal AzureKeyVaultSmbCredentials(global::System.Management.Automation.PSObje // actually deserialize if (content.Contains("UsernameUri")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAzureKeyVaultSmbCredentialsInternal)this).UsernameUri = (string) content.GetValueForProperty("UsernameUri",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAzureKeyVaultSmbCredentialsInternal)this).UsernameUri, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAzureKeyVaultSmbCredentialsInternal)this).UsernameUri = (string) content.GetValueForProperty("UsernameUri",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAzureKeyVaultSmbCredentialsInternal)this).UsernameUri, global::System.Convert.ToString); } if (content.Contains("PasswordUri")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAzureKeyVaultSmbCredentialsInternal)this).PasswordUri = (string) content.GetValueForProperty("PasswordUri",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAzureKeyVaultSmbCredentialsInternal)this).PasswordUri, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAzureKeyVaultSmbCredentialsInternal)this).PasswordUri = (string) content.GetValueForProperty("PasswordUri",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAzureKeyVaultSmbCredentialsInternal)this).PasswordUri, global::System.Convert.ToString); } if (content.Contains("Type")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.ICredentialsInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.ICredentialsInternal)this).Type, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ICredentialsInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ICredentialsInternal)this).Type, global::System.Convert.ToString); } AfterDeserializePSObject(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAzureKeyVaultSmbCredentials DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAzureKeyVaultSmbCredentials DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new AzureKeyVaultSmbCredentials(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAzureKeyVaultSmbCredentials DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAzureKeyVaultSmbCredentials DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new AzureKeyVaultSmbCredentials(content); } @@ -153,7 +153,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAzureKeyVaultSmbCredentials FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAzureKeyVaultSmbCredentials FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/AzureKeyVaultSmbCredentials.TypeConverter.cs b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/AzureKeyVaultSmbCredentials.TypeConverter.cs similarity index 98% rename from generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/AzureKeyVaultSmbCredentials.TypeConverter.cs rename to generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/AzureKeyVaultSmbCredentials.TypeConverter.cs index 3e67f5181e21..db4f8c357679 100644 --- a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/AzureKeyVaultSmbCredentials.TypeConverter.cs +++ b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/AzureKeyVaultSmbCredentials.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701 { using Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAzureKeyVaultSmbCredentials ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAzureKeyVaultSmbCredentials ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAzureKeyVaultSmbCredentials).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAzureKeyVaultSmbCredentials).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/AzureKeyVaultSmbCredentials.cs b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/AzureKeyVaultSmbCredentials.cs similarity index 90% rename from generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/AzureKeyVaultSmbCredentials.cs rename to generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/AzureKeyVaultSmbCredentials.cs index e1ab2a22b883..23c957214ef1 100644 --- a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/AzureKeyVaultSmbCredentials.cs +++ b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/AzureKeyVaultSmbCredentials.cs @@ -3,24 +3,24 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701 { using static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Extensions; /// The Azure Key Vault secret URIs which store the credentials. public partial class AzureKeyVaultSmbCredentials : - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAzureKeyVaultSmbCredentials, - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAzureKeyVaultSmbCredentialsInternal, + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAzureKeyVaultSmbCredentials, + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAzureKeyVaultSmbCredentialsInternal, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.ICredentials __credentials = new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.Credentials(); + private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ICredentials __credentials = new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.Credentials(); /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.ICredentialsInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.ICredentialsInternal)__credentials).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.ICredentialsInternal)__credentials).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ICredentialsInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ICredentialsInternal)__credentials).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ICredentialsInternal)__credentials).Type = value; } /// Backing field for property. private string _passwordUri; @@ -33,7 +33,7 @@ public partial class AzureKeyVaultSmbCredentials : /// The Credentials type. [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inherited)] - public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.ICredentialsInternal)__credentials).Type; } + public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ICredentialsInternal)__credentials).Type; } /// Backing field for property. private string _usernameUri; @@ -65,7 +65,7 @@ public AzureKeyVaultSmbCredentials() /// The Azure Key Vault secret URIs which store the credentials. public partial interface IAzureKeyVaultSmbCredentials : Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.ICredentials + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ICredentials { /// /// The Azure Key Vault secret URI which stores the password. Use empty string to clean-up existing value. @@ -91,7 +91,7 @@ public partial interface IAzureKeyVaultSmbCredentials : } /// The Azure Key Vault secret URIs which store the credentials. internal partial interface IAzureKeyVaultSmbCredentialsInternal : - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.ICredentialsInternal + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ICredentialsInternal { /// /// The Azure Key Vault secret URI which stores the password. Use empty string to clean-up existing value. diff --git a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/AzureKeyVaultSmbCredentials.json.cs b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/AzureKeyVaultSmbCredentials.json.cs similarity index 97% rename from generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/AzureKeyVaultSmbCredentials.json.cs rename to generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/AzureKeyVaultSmbCredentials.json.cs index 2cb2c11dc79e..e40ceb861cf0 100644 --- a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/AzureKeyVaultSmbCredentials.json.cs +++ b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/AzureKeyVaultSmbCredentials.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701 { using static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Extensions; @@ -65,20 +65,20 @@ internal AzureKeyVaultSmbCredentials(Microsoft.Azure.PowerShell.Cmdlets.StorageM { return; } - __credentials = new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.Credentials(json); + __credentials = new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.Credentials(json); {_usernameUri = If( json?.PropertyT("usernameUri"), out var __jsonUsernameUri) ? (string)__jsonUsernameUri : (string)UsernameUri;} {_passwordUri = If( json?.PropertyT("passwordUri"), out var __jsonPasswordUri) ? (string)__jsonPasswordUri : (string)PasswordUri;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAzureKeyVaultSmbCredentials. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAzureKeyVaultSmbCredentials. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAzureKeyVaultSmbCredentials. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAzureKeyVaultSmbCredentials. /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAzureKeyVaultSmbCredentials FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAzureKeyVaultSmbCredentials FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject json ? new AzureKeyVaultSmbCredentials(json) : null; } diff --git a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/AzureMultiCloudConnectorEndpointProperties.PowerShell.cs b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/AzureMultiCloudConnectorEndpointProperties.PowerShell.cs new file mode 100644 index 000000000000..a12cc17fe766 --- /dev/null +++ b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/AzureMultiCloudConnectorEndpointProperties.PowerShell.cs @@ -0,0 +1,201 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701 +{ + using Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.PowerShell; + + /// The properties of Azure MultiCloudConnector endpoint. + [System.ComponentModel.TypeConverter(typeof(AzureMultiCloudConnectorEndpointPropertiesTypeConverter))] + public partial class AzureMultiCloudConnectorEndpointProperties + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// OverrideToString will be called if it is implemented. Implement this method in a partial class to enable this behavior + /// + /// /// instance serialized to a string, normally it is a Json + /// /// set returnNow to true if you provide a customized OverrideToString function + + partial void OverrideToString(ref string stringResult, ref bool returnNow); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal AzureMultiCloudConnectorEndpointProperties(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("MultiCloudConnectorId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAzureMultiCloudConnectorEndpointPropertiesInternal)this).MultiCloudConnectorId = (string) content.GetValueForProperty("MultiCloudConnectorId",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAzureMultiCloudConnectorEndpointPropertiesInternal)this).MultiCloudConnectorId, global::System.Convert.ToString); + } + if (content.Contains("AwsS3BucketId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAzureMultiCloudConnectorEndpointPropertiesInternal)this).AwsS3BucketId = (string) content.GetValueForProperty("AwsS3BucketId",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAzureMultiCloudConnectorEndpointPropertiesInternal)this).AwsS3BucketId, global::System.Convert.ToString); + } + if (content.Contains("EndpointType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBasePropertiesInternal)this).EndpointType = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.EndpointType) content.GetValueForProperty("EndpointType",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBasePropertiesInternal)this).EndpointType, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.EndpointType.CreateFrom); + } + if (content.Contains("Description")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBasePropertiesInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBasePropertiesInternal)this).Description, global::System.Convert.ToString); + } + if (content.Contains("ProvisioningState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBasePropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBasePropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState.CreateFrom); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal AzureMultiCloudConnectorEndpointProperties(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("MultiCloudConnectorId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAzureMultiCloudConnectorEndpointPropertiesInternal)this).MultiCloudConnectorId = (string) content.GetValueForProperty("MultiCloudConnectorId",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAzureMultiCloudConnectorEndpointPropertiesInternal)this).MultiCloudConnectorId, global::System.Convert.ToString); + } + if (content.Contains("AwsS3BucketId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAzureMultiCloudConnectorEndpointPropertiesInternal)this).AwsS3BucketId = (string) content.GetValueForProperty("AwsS3BucketId",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAzureMultiCloudConnectorEndpointPropertiesInternal)this).AwsS3BucketId, global::System.Convert.ToString); + } + if (content.Contains("EndpointType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBasePropertiesInternal)this).EndpointType = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.EndpointType) content.GetValueForProperty("EndpointType",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBasePropertiesInternal)this).EndpointType, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.EndpointType.CreateFrom); + } + if (content.Contains("Description")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBasePropertiesInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBasePropertiesInternal)this).Description, global::System.Convert.ToString); + } + if (content.Contains("ProvisioningState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBasePropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBasePropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState.CreateFrom); + } + AfterDeserializePSObject(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAzureMultiCloudConnectorEndpointProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new AzureMultiCloudConnectorEndpointProperties(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAzureMultiCloudConnectorEndpointProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new AzureMultiCloudConnectorEndpointProperties(content); + } + + /// + /// Creates a new instance of , deserializing the content from a + /// json string. + /// + /// a string containing a JSON serialized instance of this model. + /// + /// an instance of the model class. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAzureMultiCloudConnectorEndpointProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(jsonText)); + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.SerializationMode.IncludeAll)?.ToString(); + + public override string ToString() + { + var returnNow = false; + var result = global::System.String.Empty; + OverrideToString(ref result, ref returnNow); + if (returnNow) + { + return result; + } + return ToJsonString(); + } + } + /// The properties of Azure MultiCloudConnector endpoint. + [System.ComponentModel.TypeConverter(typeof(AzureMultiCloudConnectorEndpointPropertiesTypeConverter))] + public partial interface IAzureMultiCloudConnectorEndpointProperties + + { + + } +} \ No newline at end of file diff --git a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/AzureMultiCloudConnectorEndpointProperties.TypeConverter.cs b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/AzureMultiCloudConnectorEndpointProperties.TypeConverter.cs new file mode 100644 index 000000000000..bfdfe560fc96 --- /dev/null +++ b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/AzureMultiCloudConnectorEndpointProperties.TypeConverter.cs @@ -0,0 +1,151 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701 +{ + using Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class AzureMultiCloudConnectorEndpointPropertiesTypeConverter : global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); + + /// + /// Determines if the converter can convert the parameter to the + /// type. + /// + /// the instance to check if it can be converted to the type. + /// + /// true if the instance could be converted to a type, otherwise + /// false + /// + public static bool CanConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return true; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + // we say yest to PSObjects + return true; + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + // we say yest to Hashtables/dictionaries + return true; + } + try + { + if (null != sourceValue.ToJsonString()) + { + return true; + } + } + catch + { + // Not one of our objects + } + try + { + string text = sourceValue.ToString()?.Trim(); + return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonType.Object; + } + catch + { + // Doesn't look like it can be treated as JSON + } + return false; + } + + /// + /// Determines if the parameter can be converted to the + /// parameter + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false + /// + public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; + + /// + /// Converts the parameter to the parameter using and + /// + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// + /// an instance of , or null if there is no suitable conversion. + /// + public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); + + /// + /// Converts the parameter into an instance of + /// + /// the value to convert into an instance of . + /// + /// an instance of , or null if there is no suitable conversion. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAzureMultiCloudConnectorEndpointProperties ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAzureMultiCloudConnectorEndpointProperties).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return AzureMultiCloudConnectorEndpointProperties.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return AzureMultiCloudConnectorEndpointProperties.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return AzureMultiCloudConnectorEndpointProperties.DeserializeFromDictionary(sourceValue); + } + return null; + } + + /// NotImplemented -- this will return null + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// will always return null. + public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; + } +} \ No newline at end of file diff --git a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/AzureMultiCloudConnectorEndpointProperties.cs b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/AzureMultiCloudConnectorEndpointProperties.cs new file mode 100644 index 000000000000..0514db30dd2d --- /dev/null +++ b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/AzureMultiCloudConnectorEndpointProperties.cs @@ -0,0 +1,105 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Extensions; + + /// The properties of Azure MultiCloudConnector endpoint. + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.DoNotFormat] + public partial class AzureMultiCloudConnectorEndpointProperties : + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAzureMultiCloudConnectorEndpointProperties, + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAzureMultiCloudConnectorEndpointPropertiesInternal, + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IValidates + { + /// + /// Backing field for Inherited model + /// + private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBaseProperties __endpointBaseProperties = new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.EndpointBaseProperties(); + + /// Backing field for property. + private string _awsS3BucketId; + + /// The AWS S3 bucket ARM resource Id. + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Owned)] + public string AwsS3BucketId { get => this._awsS3BucketId; set => this._awsS3BucketId = value; } + + /// A description for the Endpoint. + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inherited)] + public string Description { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBasePropertiesInternal)__endpointBaseProperties).Description; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBasePropertiesInternal)__endpointBaseProperties).Description = value ?? null; } + + /// The Endpoint resource type. + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inherited)] + public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.EndpointType EndpointType { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBasePropertiesInternal)__endpointBaseProperties).EndpointType; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBasePropertiesInternal)__endpointBaseProperties).EndpointType = value ; } + + /// Internal Acessors for ProvisioningState + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBasePropertiesInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBasePropertiesInternal)__endpointBaseProperties).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBasePropertiesInternal)__endpointBaseProperties).ProvisioningState = value; } + + /// Backing field for property. + private string _multiCloudConnectorId; + + /// The Azure Resource ID of the MultiCloud Connector resource. + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Owned)] + public string MultiCloudConnectorId { get => this._multiCloudConnectorId; set => this._multiCloudConnectorId = value; } + + /// The provisioning state of this resource. + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inherited)] + public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState? ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBasePropertiesInternal)__endpointBaseProperties).ProvisioningState; } + + /// + /// Creates an new instance. + /// + public AzureMultiCloudConnectorEndpointProperties() + { + + } + + /// Validates that this object meets the validation criteria. + /// an instance that will receive validation + /// events. + /// + /// A that will be complete when validation is completed. + /// + public async global::System.Threading.Tasks.Task Validate(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener) + { + await eventListener.AssertNotNull(nameof(__endpointBaseProperties), __endpointBaseProperties); + await eventListener.AssertObjectIsValid(nameof(__endpointBaseProperties), __endpointBaseProperties); + } + } + /// The properties of Azure MultiCloudConnector endpoint. + public partial interface IAzureMultiCloudConnectorEndpointProperties : + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IJsonSerializable, + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBaseProperties + { + /// The AWS S3 bucket ARM resource Id. + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The AWS S3 bucket ARM resource Id.", + SerializedName = @"awsS3BucketId", + PossibleTypes = new [] { typeof(string) })] + string AwsS3BucketId { get; set; } + /// The Azure Resource ID of the MultiCloud Connector resource. + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The Azure Resource ID of the MultiCloud Connector resource.", + SerializedName = @"multiCloudConnectorId", + PossibleTypes = new [] { typeof(string) })] + string MultiCloudConnectorId { get; set; } + + } + /// The properties of Azure MultiCloudConnector endpoint. + internal partial interface IAzureMultiCloudConnectorEndpointPropertiesInternal : + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBasePropertiesInternal + { + /// The AWS S3 bucket ARM resource Id. + string AwsS3BucketId { get; set; } + /// The Azure Resource ID of the MultiCloud Connector resource. + string MultiCloudConnectorId { get; set; } + + } +} \ No newline at end of file diff --git a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/AzureMultiCloudConnectorEndpointProperties.json.cs b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/AzureMultiCloudConnectorEndpointProperties.json.cs new file mode 100644 index 000000000000..c2ef2116a708 --- /dev/null +++ b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/AzureMultiCloudConnectorEndpointProperties.json.cs @@ -0,0 +1,114 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Extensions; + + /// The properties of Azure MultiCloudConnector endpoint. + public partial class AzureMultiCloudConnectorEndpointProperties + { + + /// + /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JsonNode that should be deserialized into this object. + + partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JSON container that the serialization result will be placed in. + + partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject container); + + /// + /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of + /// the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the + /// output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JsonNode that should be deserialized into this object. + /// Determines if the rest of the deserialization should be processed, or if the method should return + /// instantly. + + partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject json, ref bool returnNow); + + /// + /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the + /// object before it is serialized. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JSON container that the serialization result will be placed in. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject instance to deserialize from. + internal AzureMultiCloudConnectorEndpointProperties(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + __endpointBaseProperties = new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.EndpointBaseProperties(json); + {_multiCloudConnectorId = If( json?.PropertyT("multiCloudConnectorId"), out var __jsonMultiCloudConnectorId) ? (string)__jsonMultiCloudConnectorId : (string)MultiCloudConnectorId;} + {_awsS3BucketId = If( json?.PropertyT("awsS3BucketId"), out var __jsonAwsS3BucketId) ? (string)__jsonAwsS3BucketId : (string)AwsS3BucketId;} + AfterFromJson(json); + } + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAzureMultiCloudConnectorEndpointProperties. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAzureMultiCloudConnectorEndpointProperties. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAzureMultiCloudConnectorEndpointProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject json ? new AzureMultiCloudConnectorEndpointProperties(json) : null; + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + __endpointBaseProperties?.ToJson(container, serializationMode); + AddIf( null != (((object)this._multiCloudConnectorId)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonString(this._multiCloudConnectorId.ToString()) : null, "multiCloudConnectorId" ,container.Add ); + AddIf( null != (((object)this._awsS3BucketId)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonString(this._awsS3BucketId.ToString()) : null, "awsS3BucketId" ,container.Add ); + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/AzureMultiCloudConnectorEndpointUpdateProperties.PowerShell.cs b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/AzureMultiCloudConnectorEndpointUpdateProperties.PowerShell.cs new file mode 100644 index 000000000000..d485f1654fde --- /dev/null +++ b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/AzureMultiCloudConnectorEndpointUpdateProperties.PowerShell.cs @@ -0,0 +1,177 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701 +{ + using Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.PowerShell; + + /// The properties of Azure Storage NFS file share endpoint to update. + [System.ComponentModel.TypeConverter(typeof(AzureMultiCloudConnectorEndpointUpdatePropertiesTypeConverter))] + public partial class AzureMultiCloudConnectorEndpointUpdateProperties + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// OverrideToString will be called if it is implemented. Implement this method in a partial class to enable this behavior + /// + /// /// instance serialized to a string, normally it is a Json + /// /// set returnNow to true if you provide a customized OverrideToString function + + partial void OverrideToString(ref string stringResult, ref bool returnNow); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal AzureMultiCloudConnectorEndpointUpdateProperties(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("EndpointType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBaseUpdatePropertiesInternal)this).EndpointType = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.EndpointType) content.GetValueForProperty("EndpointType",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBaseUpdatePropertiesInternal)this).EndpointType, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.EndpointType.CreateFrom); + } + if (content.Contains("Description")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBaseUpdatePropertiesInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBaseUpdatePropertiesInternal)this).Description, global::System.Convert.ToString); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal AzureMultiCloudConnectorEndpointUpdateProperties(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("EndpointType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBaseUpdatePropertiesInternal)this).EndpointType = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.EndpointType) content.GetValueForProperty("EndpointType",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBaseUpdatePropertiesInternal)this).EndpointType, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.EndpointType.CreateFrom); + } + if (content.Contains("Description")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBaseUpdatePropertiesInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBaseUpdatePropertiesInternal)this).Description, global::System.Convert.ToString); + } + AfterDeserializePSObject(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAzureMultiCloudConnectorEndpointUpdateProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new AzureMultiCloudConnectorEndpointUpdateProperties(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAzureMultiCloudConnectorEndpointUpdateProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new AzureMultiCloudConnectorEndpointUpdateProperties(content); + } + + /// + /// Creates a new instance of , deserializing the content from + /// a json string. + /// + /// a string containing a JSON serialized instance of this model. + /// + /// an instance of the model class. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAzureMultiCloudConnectorEndpointUpdateProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(jsonText)); + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.SerializationMode.IncludeAll)?.ToString(); + + public override string ToString() + { + var returnNow = false; + var result = global::System.String.Empty; + OverrideToString(ref result, ref returnNow); + if (returnNow) + { + return result; + } + return ToJsonString(); + } + } + /// The properties of Azure Storage NFS file share endpoint to update. + [System.ComponentModel.TypeConverter(typeof(AzureMultiCloudConnectorEndpointUpdatePropertiesTypeConverter))] + public partial interface IAzureMultiCloudConnectorEndpointUpdateProperties + + { + + } +} \ No newline at end of file diff --git a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/AzureMultiCloudConnectorEndpointUpdateProperties.TypeConverter.cs b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/AzureMultiCloudConnectorEndpointUpdateProperties.TypeConverter.cs new file mode 100644 index 000000000000..9def1ae86198 --- /dev/null +++ b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/AzureMultiCloudConnectorEndpointUpdateProperties.TypeConverter.cs @@ -0,0 +1,153 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701 +{ + using Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class AzureMultiCloudConnectorEndpointUpdatePropertiesTypeConverter : global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); + + /// + /// Determines if the converter can convert the parameter to the + /// type. + /// + /// the instance to check if it can be converted to the type. + /// + /// true if the instance could be converted to a type, + /// otherwise false + /// + public static bool CanConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return true; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + // we say yest to PSObjects + return true; + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + // we say yest to Hashtables/dictionaries + return true; + } + try + { + if (null != sourceValue.ToJsonString()) + { + return true; + } + } + catch + { + // Not one of our objects + } + try + { + string text = sourceValue.ToString()?.Trim(); + return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonType.Object; + } + catch + { + // Doesn't look like it can be treated as JSON + } + return false; + } + + /// + /// Determines if the parameter can be converted to the + /// parameter + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false + /// + public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; + + /// + /// Converts the parameter to the parameter using and + /// + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// + /// an instance of , or null if there is no suitable + /// conversion. + /// + public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); + + /// + /// Converts the parameter into an instance of + /// + /// the value to convert into an instance of . + /// + /// an instance of , or null if there is no suitable + /// conversion. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAzureMultiCloudConnectorEndpointUpdateProperties ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAzureMultiCloudConnectorEndpointUpdateProperties).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return AzureMultiCloudConnectorEndpointUpdateProperties.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return AzureMultiCloudConnectorEndpointUpdateProperties.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return AzureMultiCloudConnectorEndpointUpdateProperties.DeserializeFromDictionary(sourceValue); + } + return null; + } + + /// NotImplemented -- this will return null + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// will always return null. + public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; + } +} \ No newline at end of file diff --git a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/AzureMultiCloudConnectorEndpointUpdateProperties.cs b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/AzureMultiCloudConnectorEndpointUpdateProperties.cs new file mode 100644 index 000000000000..09fd471132e6 --- /dev/null +++ b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/AzureMultiCloudConnectorEndpointUpdateProperties.cs @@ -0,0 +1,64 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Extensions; + + /// The properties of Azure Storage NFS file share endpoint to update. + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.DoNotFormat] + public partial class AzureMultiCloudConnectorEndpointUpdateProperties : + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAzureMultiCloudConnectorEndpointUpdateProperties, + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAzureMultiCloudConnectorEndpointUpdatePropertiesInternal, + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IValidates + { + /// + /// Backing field for Inherited model + /// + private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBaseUpdateProperties __endpointBaseUpdateProperties = new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.EndpointBaseUpdateProperties(); + + /// A description for the Endpoint. + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inherited)] + public string Description { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBaseUpdatePropertiesInternal)__endpointBaseUpdateProperties).Description; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBaseUpdatePropertiesInternal)__endpointBaseUpdateProperties).Description = value ?? null; } + + /// The Endpoint resource type. + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inherited)] + public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.EndpointType EndpointType { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBaseUpdatePropertiesInternal)__endpointBaseUpdateProperties).EndpointType; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBaseUpdatePropertiesInternal)__endpointBaseUpdateProperties).EndpointType = value ; } + + /// + /// Creates an new instance. + /// + public AzureMultiCloudConnectorEndpointUpdateProperties() + { + + } + + /// Validates that this object meets the validation criteria. + /// an instance that will receive validation + /// events. + /// + /// A that will be complete when validation is completed. + /// + public async global::System.Threading.Tasks.Task Validate(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener) + { + await eventListener.AssertNotNull(nameof(__endpointBaseUpdateProperties), __endpointBaseUpdateProperties); + await eventListener.AssertObjectIsValid(nameof(__endpointBaseUpdateProperties), __endpointBaseUpdateProperties); + } + } + /// The properties of Azure Storage NFS file share endpoint to update. + public partial interface IAzureMultiCloudConnectorEndpointUpdateProperties : + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IJsonSerializable, + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBaseUpdateProperties + { + + } + /// The properties of Azure Storage NFS file share endpoint to update. + internal partial interface IAzureMultiCloudConnectorEndpointUpdatePropertiesInternal : + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBaseUpdatePropertiesInternal + { + + } +} \ No newline at end of file diff --git a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/AzureMultiCloudConnectorEndpointUpdateProperties.json.cs b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/AzureMultiCloudConnectorEndpointUpdateProperties.json.cs new file mode 100644 index 000000000000..4564797dc3a1 --- /dev/null +++ b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/AzureMultiCloudConnectorEndpointUpdateProperties.json.cs @@ -0,0 +1,111 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Extensions; + + /// The properties of Azure Storage NFS file share endpoint to update. + public partial class AzureMultiCloudConnectorEndpointUpdateProperties + { + + /// + /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JsonNode that should be deserialized into this object. + + partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JSON container that the serialization result will be placed in. + + partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject container); + + /// + /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of + /// the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the + /// output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JsonNode that should be deserialized into this object. + /// Determines if the rest of the deserialization should be processed, or if the method should return + /// instantly. + + partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject json, ref bool returnNow); + + /// + /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the + /// object before it is serialized. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JSON container that the serialization result will be placed in. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject instance to deserialize from. + internal AzureMultiCloudConnectorEndpointUpdateProperties(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + __endpointBaseUpdateProperties = new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.EndpointBaseUpdateProperties(json); + AfterFromJson(json); + } + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAzureMultiCloudConnectorEndpointUpdateProperties. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAzureMultiCloudConnectorEndpointUpdateProperties. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAzureMultiCloudConnectorEndpointUpdateProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject json ? new AzureMultiCloudConnectorEndpointUpdateProperties(json) : null; + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + __endpointBaseUpdateProperties?.ToJson(container, serializationMode); + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/AzureStorageBlobContainerEndpointProperties.PowerShell.cs b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/AzureStorageBlobContainerEndpointProperties.PowerShell.cs similarity index 86% rename from generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/AzureStorageBlobContainerEndpointProperties.PowerShell.cs rename to generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/AzureStorageBlobContainerEndpointProperties.PowerShell.cs index 05790fe80d4f..e49265fac967 100644 --- a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/AzureStorageBlobContainerEndpointProperties.PowerShell.cs +++ b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/AzureStorageBlobContainerEndpointProperties.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701 { using Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.PowerShell; @@ -63,7 +63,7 @@ public partial class AzureStorageBlobContainerEndpointProperties partial void OverrideToString(ref string stringResult, ref bool returnNow); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -78,29 +78,29 @@ internal AzureStorageBlobContainerEndpointProperties(global::System.Collections. // actually deserialize if (content.Contains("StorageAccountResourceId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAzureStorageBlobContainerEndpointPropertiesInternal)this).StorageAccountResourceId = (string) content.GetValueForProperty("StorageAccountResourceId",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAzureStorageBlobContainerEndpointPropertiesInternal)this).StorageAccountResourceId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAzureStorageBlobContainerEndpointPropertiesInternal)this).StorageAccountResourceId = (string) content.GetValueForProperty("StorageAccountResourceId",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAzureStorageBlobContainerEndpointPropertiesInternal)this).StorageAccountResourceId, global::System.Convert.ToString); } if (content.Contains("BlobContainerName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAzureStorageBlobContainerEndpointPropertiesInternal)this).BlobContainerName = (string) content.GetValueForProperty("BlobContainerName",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAzureStorageBlobContainerEndpointPropertiesInternal)this).BlobContainerName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAzureStorageBlobContainerEndpointPropertiesInternal)this).BlobContainerName = (string) content.GetValueForProperty("BlobContainerName",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAzureStorageBlobContainerEndpointPropertiesInternal)this).BlobContainerName, global::System.Convert.ToString); } if (content.Contains("EndpointType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpointBasePropertiesInternal)this).EndpointType = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.EndpointType) content.GetValueForProperty("EndpointType",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpointBasePropertiesInternal)this).EndpointType, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.EndpointType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBasePropertiesInternal)this).EndpointType = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.EndpointType) content.GetValueForProperty("EndpointType",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBasePropertiesInternal)this).EndpointType, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.EndpointType.CreateFrom); } if (content.Contains("Description")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpointBasePropertiesInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpointBasePropertiesInternal)this).Description, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBasePropertiesInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBasePropertiesInternal)this).Description, global::System.Convert.ToString); } if (content.Contains("ProvisioningState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpointBasePropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpointBasePropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBasePropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBasePropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState.CreateFrom); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -115,51 +115,51 @@ internal AzureStorageBlobContainerEndpointProperties(global::System.Management.A // actually deserialize if (content.Contains("StorageAccountResourceId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAzureStorageBlobContainerEndpointPropertiesInternal)this).StorageAccountResourceId = (string) content.GetValueForProperty("StorageAccountResourceId",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAzureStorageBlobContainerEndpointPropertiesInternal)this).StorageAccountResourceId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAzureStorageBlobContainerEndpointPropertiesInternal)this).StorageAccountResourceId = (string) content.GetValueForProperty("StorageAccountResourceId",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAzureStorageBlobContainerEndpointPropertiesInternal)this).StorageAccountResourceId, global::System.Convert.ToString); } if (content.Contains("BlobContainerName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAzureStorageBlobContainerEndpointPropertiesInternal)this).BlobContainerName = (string) content.GetValueForProperty("BlobContainerName",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAzureStorageBlobContainerEndpointPropertiesInternal)this).BlobContainerName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAzureStorageBlobContainerEndpointPropertiesInternal)this).BlobContainerName = (string) content.GetValueForProperty("BlobContainerName",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAzureStorageBlobContainerEndpointPropertiesInternal)this).BlobContainerName, global::System.Convert.ToString); } if (content.Contains("EndpointType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpointBasePropertiesInternal)this).EndpointType = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.EndpointType) content.GetValueForProperty("EndpointType",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpointBasePropertiesInternal)this).EndpointType, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.EndpointType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBasePropertiesInternal)this).EndpointType = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.EndpointType) content.GetValueForProperty("EndpointType",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBasePropertiesInternal)this).EndpointType, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.EndpointType.CreateFrom); } if (content.Contains("Description")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpointBasePropertiesInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpointBasePropertiesInternal)this).Description, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBasePropertiesInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBasePropertiesInternal)this).Description, global::System.Convert.ToString); } if (content.Contains("ProvisioningState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpointBasePropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpointBasePropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBasePropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBasePropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState.CreateFrom); } AfterDeserializePSObject(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAzureStorageBlobContainerEndpointProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAzureStorageBlobContainerEndpointProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new AzureStorageBlobContainerEndpointProperties(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAzureStorageBlobContainerEndpointProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAzureStorageBlobContainerEndpointProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new AzureStorageBlobContainerEndpointProperties(content); } @@ -172,7 +172,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701 /// /// an instance of the model class. /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAzureStorageBlobContainerEndpointProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAzureStorageBlobContainerEndpointProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/AzureStorageBlobContainerEndpointProperties.TypeConverter.cs b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/AzureStorageBlobContainerEndpointProperties.TypeConverter.cs similarity index 98% rename from generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/AzureStorageBlobContainerEndpointProperties.TypeConverter.cs rename to generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/AzureStorageBlobContainerEndpointProperties.TypeConverter.cs index 0dae2f36be7d..c656ec898bd9 100644 --- a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/AzureStorageBlobContainerEndpointProperties.TypeConverter.cs +++ b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/AzureStorageBlobContainerEndpointProperties.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701 { using Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.PowerShell; @@ -110,14 +110,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAzureStorageBlobContainerEndpointProperties ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAzureStorageBlobContainerEndpointProperties ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAzureStorageBlobContainerEndpointProperties).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAzureStorageBlobContainerEndpointProperties).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/AzureStorageBlobContainerEndpointProperties.cs b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/AzureStorageBlobContainerEndpointProperties.cs similarity index 88% rename from generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/AzureStorageBlobContainerEndpointProperties.cs rename to generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/AzureStorageBlobContainerEndpointProperties.cs index d3227c0c33e4..c34764af6ac7 100644 --- a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/AzureStorageBlobContainerEndpointProperties.cs +++ b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/AzureStorageBlobContainerEndpointProperties.cs @@ -3,22 +3,22 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701 { using static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Extensions; /// The properties of Azure Storage blob container endpoint. [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.DoNotFormat] public partial class AzureStorageBlobContainerEndpointProperties : - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAzureStorageBlobContainerEndpointProperties, - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAzureStorageBlobContainerEndpointPropertiesInternal, + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAzureStorageBlobContainerEndpointProperties, + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAzureStorageBlobContainerEndpointPropertiesInternal, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpointBaseProperties __endpointBaseProperties = new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.EndpointBaseProperties(); + private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBaseProperties __endpointBaseProperties = new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.EndpointBaseProperties(); /// Backing field for property. private string _blobContainerName; @@ -29,18 +29,18 @@ public partial class AzureStorageBlobContainerEndpointProperties : /// A description for the Endpoint. [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inherited)] - public string Description { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpointBasePropertiesInternal)__endpointBaseProperties).Description; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpointBasePropertiesInternal)__endpointBaseProperties).Description = value ?? null; } + public string Description { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBasePropertiesInternal)__endpointBaseProperties).Description; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBasePropertiesInternal)__endpointBaseProperties).Description = value ?? null; } /// The Endpoint resource type. [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.EndpointType EndpointType { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpointBasePropertiesInternal)__endpointBaseProperties).EndpointType; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpointBasePropertiesInternal)__endpointBaseProperties).EndpointType = value ; } + public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.EndpointType EndpointType { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBasePropertiesInternal)__endpointBaseProperties).EndpointType; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBasePropertiesInternal)__endpointBaseProperties).EndpointType = value ; } /// Internal Acessors for ProvisioningState - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpointBasePropertiesInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpointBasePropertiesInternal)__endpointBaseProperties).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpointBasePropertiesInternal)__endpointBaseProperties).ProvisioningState = value; } + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBasePropertiesInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBasePropertiesInternal)__endpointBaseProperties).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBasePropertiesInternal)__endpointBaseProperties).ProvisioningState = value; } /// The provisioning state of this resource. [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState? ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpointBasePropertiesInternal)__endpointBaseProperties).ProvisioningState; } + public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState? ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBasePropertiesInternal)__endpointBaseProperties).ProvisioningState; } /// Backing field for property. private string _storageAccountResourceId; @@ -72,7 +72,7 @@ public AzureStorageBlobContainerEndpointProperties() /// The properties of Azure Storage blob container endpoint. public partial interface IAzureStorageBlobContainerEndpointProperties : Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpointBaseProperties + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBaseProperties { /// The name of the Storage blob container that is the target destination. [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Info( @@ -94,7 +94,7 @@ public partial interface IAzureStorageBlobContainerEndpointProperties : } /// The properties of Azure Storage blob container endpoint. internal partial interface IAzureStorageBlobContainerEndpointPropertiesInternal : - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpointBasePropertiesInternal + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBasePropertiesInternal { /// The name of the Storage blob container that is the target destination. string BlobContainerName { get; set; } diff --git a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/AzureStorageBlobContainerEndpointProperties.json.cs b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/AzureStorageBlobContainerEndpointProperties.json.cs similarity index 96% rename from generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/AzureStorageBlobContainerEndpointProperties.json.cs rename to generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/AzureStorageBlobContainerEndpointProperties.json.cs index c45ba94ac4ac..9f5068343383 100644 --- a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/AzureStorageBlobContainerEndpointProperties.json.cs +++ b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/AzureStorageBlobContainerEndpointProperties.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701 { using static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Extensions; @@ -65,20 +65,20 @@ internal AzureStorageBlobContainerEndpointProperties(Microsoft.Azure.PowerShell. { return; } - __endpointBaseProperties = new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.EndpointBaseProperties(json); + __endpointBaseProperties = new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.EndpointBaseProperties(json); {_storageAccountResourceId = If( json?.PropertyT("storageAccountResourceId"), out var __jsonStorageAccountResourceId) ? (string)__jsonStorageAccountResourceId : (string)StorageAccountResourceId;} {_blobContainerName = If( json?.PropertyT("blobContainerName"), out var __jsonBlobContainerName) ? (string)__jsonBlobContainerName : (string)BlobContainerName;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAzureStorageBlobContainerEndpointProperties. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAzureStorageBlobContainerEndpointProperties. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAzureStorageBlobContainerEndpointProperties. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAzureStorageBlobContainerEndpointProperties. /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAzureStorageBlobContainerEndpointProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAzureStorageBlobContainerEndpointProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject json ? new AzureStorageBlobContainerEndpointProperties(json) : null; } diff --git a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/AzureStorageBlobContainerEndpointUpdateProperties.PowerShell.cs b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/AzureStorageBlobContainerEndpointUpdateProperties.PowerShell.cs similarity index 90% rename from generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/AzureStorageBlobContainerEndpointUpdateProperties.PowerShell.cs rename to generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/AzureStorageBlobContainerEndpointUpdateProperties.PowerShell.cs index 803928f94d9a..0927a6830872 100644 --- a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/AzureStorageBlobContainerEndpointUpdateProperties.PowerShell.cs +++ b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/AzureStorageBlobContainerEndpointUpdateProperties.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701 { using Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.PowerShell; @@ -62,7 +62,7 @@ public partial class AzureStorageBlobContainerEndpointUpdateProperties partial void OverrideToString(ref string stringResult, ref bool returnNow); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -77,17 +77,17 @@ internal AzureStorageBlobContainerEndpointUpdateProperties(global::System.Collec // actually deserialize if (content.Contains("EndpointType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpointBaseUpdatePropertiesInternal)this).EndpointType = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.EndpointType) content.GetValueForProperty("EndpointType",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpointBaseUpdatePropertiesInternal)this).EndpointType, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.EndpointType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBaseUpdatePropertiesInternal)this).EndpointType = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.EndpointType) content.GetValueForProperty("EndpointType",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBaseUpdatePropertiesInternal)this).EndpointType, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.EndpointType.CreateFrom); } if (content.Contains("Description")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpointBaseUpdatePropertiesInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpointBaseUpdatePropertiesInternal)this).Description, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBaseUpdatePropertiesInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBaseUpdatePropertiesInternal)this).Description, global::System.Convert.ToString); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -102,39 +102,39 @@ internal AzureStorageBlobContainerEndpointUpdateProperties(global::System.Manage // actually deserialize if (content.Contains("EndpointType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpointBaseUpdatePropertiesInternal)this).EndpointType = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.EndpointType) content.GetValueForProperty("EndpointType",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpointBaseUpdatePropertiesInternal)this).EndpointType, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.EndpointType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBaseUpdatePropertiesInternal)this).EndpointType = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.EndpointType) content.GetValueForProperty("EndpointType",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBaseUpdatePropertiesInternal)this).EndpointType, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.EndpointType.CreateFrom); } if (content.Contains("Description")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpointBaseUpdatePropertiesInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpointBaseUpdatePropertiesInternal)this).Description, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBaseUpdatePropertiesInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBaseUpdatePropertiesInternal)this).Description, global::System.Convert.ToString); } AfterDeserializePSObject(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAzureStorageBlobContainerEndpointUpdateProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAzureStorageBlobContainerEndpointUpdateProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new AzureStorageBlobContainerEndpointUpdateProperties(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAzureStorageBlobContainerEndpointUpdateProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAzureStorageBlobContainerEndpointUpdateProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new AzureStorageBlobContainerEndpointUpdateProperties(content); } @@ -147,7 +147,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701 /// /// an instance of the model class. /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAzureStorageBlobContainerEndpointUpdateProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAzureStorageBlobContainerEndpointUpdateProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/AzureStorageBlobContainerEndpointUpdateProperties.TypeConverter.cs b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/AzureStorageBlobContainerEndpointUpdateProperties.TypeConverter.cs similarity index 98% rename from generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/AzureStorageBlobContainerEndpointUpdateProperties.TypeConverter.cs rename to generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/AzureStorageBlobContainerEndpointUpdateProperties.TypeConverter.cs index e2a4a832ae56..369eca9af1b0 100644 --- a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/AzureStorageBlobContainerEndpointUpdateProperties.TypeConverter.cs +++ b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/AzureStorageBlobContainerEndpointUpdateProperties.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701 { using Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.PowerShell; @@ -112,14 +112,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// an instance of , or null if there is no suitable /// conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAzureStorageBlobContainerEndpointUpdateProperties ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAzureStorageBlobContainerEndpointUpdateProperties ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAzureStorageBlobContainerEndpointUpdateProperties).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAzureStorageBlobContainerEndpointUpdateProperties).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/AzureStorageBlobContainerEndpointUpdateProperties.cs b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/AzureStorageBlobContainerEndpointUpdateProperties.cs similarity index 84% rename from generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/AzureStorageBlobContainerEndpointUpdateProperties.cs rename to generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/AzureStorageBlobContainerEndpointUpdateProperties.cs index a1028243061d..56e416df10ce 100644 --- a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/AzureStorageBlobContainerEndpointUpdateProperties.cs +++ b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/AzureStorageBlobContainerEndpointUpdateProperties.cs @@ -3,29 +3,29 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701 { using static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Extensions; [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.DoNotFormat] public partial class AzureStorageBlobContainerEndpointUpdateProperties : - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAzureStorageBlobContainerEndpointUpdateProperties, - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAzureStorageBlobContainerEndpointUpdatePropertiesInternal, + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAzureStorageBlobContainerEndpointUpdateProperties, + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAzureStorageBlobContainerEndpointUpdatePropertiesInternal, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpointBaseUpdateProperties __endpointBaseUpdateProperties = new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.EndpointBaseUpdateProperties(); + private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBaseUpdateProperties __endpointBaseUpdateProperties = new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.EndpointBaseUpdateProperties(); /// A description for the Endpoint. [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inherited)] - public string Description { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpointBaseUpdatePropertiesInternal)__endpointBaseUpdateProperties).Description; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpointBaseUpdatePropertiesInternal)__endpointBaseUpdateProperties).Description = value ?? null; } + public string Description { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBaseUpdatePropertiesInternal)__endpointBaseUpdateProperties).Description; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBaseUpdatePropertiesInternal)__endpointBaseUpdateProperties).Description = value ?? null; } /// The Endpoint resource type. [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.EndpointType EndpointType { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpointBaseUpdatePropertiesInternal)__endpointBaseUpdateProperties).EndpointType; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpointBaseUpdatePropertiesInternal)__endpointBaseUpdateProperties).EndpointType = value ; } + public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.EndpointType EndpointType { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBaseUpdatePropertiesInternal)__endpointBaseUpdateProperties).EndpointType; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBaseUpdatePropertiesInternal)__endpointBaseUpdateProperties).EndpointType = value ; } /// /// Creates an new instance. @@ -49,12 +49,12 @@ public AzureStorageBlobContainerEndpointUpdateProperties() } public partial interface IAzureStorageBlobContainerEndpointUpdateProperties : Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpointBaseUpdateProperties + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBaseUpdateProperties { } internal partial interface IAzureStorageBlobContainerEndpointUpdatePropertiesInternal : - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpointBaseUpdatePropertiesInternal + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBaseUpdatePropertiesInternal { } diff --git a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/AzureStorageBlobContainerEndpointUpdateProperties.json.cs b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/AzureStorageBlobContainerEndpointUpdateProperties.json.cs similarity index 96% rename from generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/AzureStorageBlobContainerEndpointUpdateProperties.json.cs rename to generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/AzureStorageBlobContainerEndpointUpdateProperties.json.cs index b253038dfca0..64e18663a07f 100644 --- a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/AzureStorageBlobContainerEndpointUpdateProperties.json.cs +++ b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/AzureStorageBlobContainerEndpointUpdateProperties.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701 { using static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Extensions; @@ -65,18 +65,18 @@ internal AzureStorageBlobContainerEndpointUpdateProperties(Microsoft.Azure.Power { return; } - __endpointBaseUpdateProperties = new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.EndpointBaseUpdateProperties(json); + __endpointBaseUpdateProperties = new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.EndpointBaseUpdateProperties(json); AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAzureStorageBlobContainerEndpointUpdateProperties. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAzureStorageBlobContainerEndpointUpdateProperties. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAzureStorageBlobContainerEndpointUpdateProperties. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAzureStorageBlobContainerEndpointUpdateProperties. /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAzureStorageBlobContainerEndpointUpdateProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAzureStorageBlobContainerEndpointUpdateProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject json ? new AzureStorageBlobContainerEndpointUpdateProperties(json) : null; } diff --git a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/AzureStorageNfsFileShareEndpointProperties.PowerShell.cs b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/AzureStorageNfsFileShareEndpointProperties.PowerShell.cs new file mode 100644 index 000000000000..20657dcb56ba --- /dev/null +++ b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/AzureStorageNfsFileShareEndpointProperties.PowerShell.cs @@ -0,0 +1,201 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701 +{ + using Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.PowerShell; + + /// The properties of Azure Storage NFS file share endpoint. + [System.ComponentModel.TypeConverter(typeof(AzureStorageNfsFileShareEndpointPropertiesTypeConverter))] + public partial class AzureStorageNfsFileShareEndpointProperties + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// OverrideToString will be called if it is implemented. Implement this method in a partial class to enable this behavior + /// + /// /// instance serialized to a string, normally it is a Json + /// /// set returnNow to true if you provide a customized OverrideToString function + + partial void OverrideToString(ref string stringResult, ref bool returnNow); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal AzureStorageNfsFileShareEndpointProperties(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("StorageAccountResourceId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAzureStorageNfsFileShareEndpointPropertiesInternal)this).StorageAccountResourceId = (string) content.GetValueForProperty("StorageAccountResourceId",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAzureStorageNfsFileShareEndpointPropertiesInternal)this).StorageAccountResourceId, global::System.Convert.ToString); + } + if (content.Contains("FileShareName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAzureStorageNfsFileShareEndpointPropertiesInternal)this).FileShareName = (string) content.GetValueForProperty("FileShareName",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAzureStorageNfsFileShareEndpointPropertiesInternal)this).FileShareName, global::System.Convert.ToString); + } + if (content.Contains("EndpointType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBasePropertiesInternal)this).EndpointType = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.EndpointType) content.GetValueForProperty("EndpointType",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBasePropertiesInternal)this).EndpointType, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.EndpointType.CreateFrom); + } + if (content.Contains("Description")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBasePropertiesInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBasePropertiesInternal)this).Description, global::System.Convert.ToString); + } + if (content.Contains("ProvisioningState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBasePropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBasePropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState.CreateFrom); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal AzureStorageNfsFileShareEndpointProperties(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("StorageAccountResourceId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAzureStorageNfsFileShareEndpointPropertiesInternal)this).StorageAccountResourceId = (string) content.GetValueForProperty("StorageAccountResourceId",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAzureStorageNfsFileShareEndpointPropertiesInternal)this).StorageAccountResourceId, global::System.Convert.ToString); + } + if (content.Contains("FileShareName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAzureStorageNfsFileShareEndpointPropertiesInternal)this).FileShareName = (string) content.GetValueForProperty("FileShareName",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAzureStorageNfsFileShareEndpointPropertiesInternal)this).FileShareName, global::System.Convert.ToString); + } + if (content.Contains("EndpointType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBasePropertiesInternal)this).EndpointType = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.EndpointType) content.GetValueForProperty("EndpointType",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBasePropertiesInternal)this).EndpointType, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.EndpointType.CreateFrom); + } + if (content.Contains("Description")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBasePropertiesInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBasePropertiesInternal)this).Description, global::System.Convert.ToString); + } + if (content.Contains("ProvisioningState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBasePropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBasePropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState.CreateFrom); + } + AfterDeserializePSObject(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAzureStorageNfsFileShareEndpointProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new AzureStorageNfsFileShareEndpointProperties(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAzureStorageNfsFileShareEndpointProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new AzureStorageNfsFileShareEndpointProperties(content); + } + + /// + /// Creates a new instance of , deserializing the content from a + /// json string. + /// + /// a string containing a JSON serialized instance of this model. + /// + /// an instance of the model class. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAzureStorageNfsFileShareEndpointProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(jsonText)); + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.SerializationMode.IncludeAll)?.ToString(); + + public override string ToString() + { + var returnNow = false; + var result = global::System.String.Empty; + OverrideToString(ref result, ref returnNow); + if (returnNow) + { + return result; + } + return ToJsonString(); + } + } + /// The properties of Azure Storage NFS file share endpoint. + [System.ComponentModel.TypeConverter(typeof(AzureStorageNfsFileShareEndpointPropertiesTypeConverter))] + public partial interface IAzureStorageNfsFileShareEndpointProperties + + { + + } +} \ No newline at end of file diff --git a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/AzureStorageNfsFileShareEndpointProperties.TypeConverter.cs b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/AzureStorageNfsFileShareEndpointProperties.TypeConverter.cs new file mode 100644 index 000000000000..370bdccb3823 --- /dev/null +++ b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/AzureStorageNfsFileShareEndpointProperties.TypeConverter.cs @@ -0,0 +1,151 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701 +{ + using Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class AzureStorageNfsFileShareEndpointPropertiesTypeConverter : global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); + + /// + /// Determines if the converter can convert the parameter to the + /// type. + /// + /// the instance to check if it can be converted to the type. + /// + /// true if the instance could be converted to a type, otherwise + /// false + /// + public static bool CanConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return true; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + // we say yest to PSObjects + return true; + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + // we say yest to Hashtables/dictionaries + return true; + } + try + { + if (null != sourceValue.ToJsonString()) + { + return true; + } + } + catch + { + // Not one of our objects + } + try + { + string text = sourceValue.ToString()?.Trim(); + return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonType.Object; + } + catch + { + // Doesn't look like it can be treated as JSON + } + return false; + } + + /// + /// Determines if the parameter can be converted to the + /// parameter + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false + /// + public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; + + /// + /// Converts the parameter to the parameter using and + /// + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// + /// an instance of , or null if there is no suitable conversion. + /// + public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); + + /// + /// Converts the parameter into an instance of + /// + /// the value to convert into an instance of . + /// + /// an instance of , or null if there is no suitable conversion. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAzureStorageNfsFileShareEndpointProperties ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAzureStorageNfsFileShareEndpointProperties).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return AzureStorageNfsFileShareEndpointProperties.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return AzureStorageNfsFileShareEndpointProperties.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return AzureStorageNfsFileShareEndpointProperties.DeserializeFromDictionary(sourceValue); + } + return null; + } + + /// NotImplemented -- this will return null + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// will always return null. + public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; + } +} \ No newline at end of file diff --git a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/AzureStorageNfsFileShareEndpointProperties.cs b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/AzureStorageNfsFileShareEndpointProperties.cs new file mode 100644 index 000000000000..c8808b0087db --- /dev/null +++ b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/AzureStorageNfsFileShareEndpointProperties.cs @@ -0,0 +1,105 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Extensions; + + /// The properties of Azure Storage NFS file share endpoint. + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.DoNotFormat] + public partial class AzureStorageNfsFileShareEndpointProperties : + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAzureStorageNfsFileShareEndpointProperties, + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAzureStorageNfsFileShareEndpointPropertiesInternal, + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IValidates + { + /// + /// Backing field for Inherited model + /// + private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBaseProperties __endpointBaseProperties = new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.EndpointBaseProperties(); + + /// A description for the Endpoint. + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inherited)] + public string Description { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBasePropertiesInternal)__endpointBaseProperties).Description; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBasePropertiesInternal)__endpointBaseProperties).Description = value ?? null; } + + /// The Endpoint resource type. + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inherited)] + public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.EndpointType EndpointType { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBasePropertiesInternal)__endpointBaseProperties).EndpointType; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBasePropertiesInternal)__endpointBaseProperties).EndpointType = value ; } + + /// Backing field for property. + private string _fileShareName; + + /// The name of the Azure Storage NFS file share. + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Owned)] + public string FileShareName { get => this._fileShareName; set => this._fileShareName = value; } + + /// Internal Acessors for ProvisioningState + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBasePropertiesInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBasePropertiesInternal)__endpointBaseProperties).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBasePropertiesInternal)__endpointBaseProperties).ProvisioningState = value; } + + /// The provisioning state of this resource. + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inherited)] + public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState? ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBasePropertiesInternal)__endpointBaseProperties).ProvisioningState; } + + /// Backing field for property. + private string _storageAccountResourceId; + + /// The Azure Resource ID of the storage account. + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Owned)] + public string StorageAccountResourceId { get => this._storageAccountResourceId; set => this._storageAccountResourceId = value; } + + /// + /// Creates an new instance. + /// + public AzureStorageNfsFileShareEndpointProperties() + { + + } + + /// Validates that this object meets the validation criteria. + /// an instance that will receive validation + /// events. + /// + /// A that will be complete when validation is completed. + /// + public async global::System.Threading.Tasks.Task Validate(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener) + { + await eventListener.AssertNotNull(nameof(__endpointBaseProperties), __endpointBaseProperties); + await eventListener.AssertObjectIsValid(nameof(__endpointBaseProperties), __endpointBaseProperties); + } + } + /// The properties of Azure Storage NFS file share endpoint. + public partial interface IAzureStorageNfsFileShareEndpointProperties : + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IJsonSerializable, + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBaseProperties + { + /// The name of the Azure Storage NFS file share. + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the Azure Storage NFS file share.", + SerializedName = @"fileShareName", + PossibleTypes = new [] { typeof(string) })] + string FileShareName { get; set; } + /// The Azure Resource ID of the storage account. + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The Azure Resource ID of the storage account.", + SerializedName = @"storageAccountResourceId", + PossibleTypes = new [] { typeof(string) })] + string StorageAccountResourceId { get; set; } + + } + /// The properties of Azure Storage NFS file share endpoint. + internal partial interface IAzureStorageNfsFileShareEndpointPropertiesInternal : + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBasePropertiesInternal + { + /// The name of the Azure Storage NFS file share. + string FileShareName { get; set; } + /// The Azure Resource ID of the storage account. + string StorageAccountResourceId { get; set; } + + } +} \ No newline at end of file diff --git a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/AzureStorageNfsFileShareEndpointProperties.json.cs b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/AzureStorageNfsFileShareEndpointProperties.json.cs new file mode 100644 index 000000000000..31b503c20e14 --- /dev/null +++ b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/AzureStorageNfsFileShareEndpointProperties.json.cs @@ -0,0 +1,114 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Extensions; + + /// The properties of Azure Storage NFS file share endpoint. + public partial class AzureStorageNfsFileShareEndpointProperties + { + + /// + /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JsonNode that should be deserialized into this object. + + partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JSON container that the serialization result will be placed in. + + partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject container); + + /// + /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of + /// the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the + /// output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JsonNode that should be deserialized into this object. + /// Determines if the rest of the deserialization should be processed, or if the method should return + /// instantly. + + partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject json, ref bool returnNow); + + /// + /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the + /// object before it is serialized. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JSON container that the serialization result will be placed in. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject instance to deserialize from. + internal AzureStorageNfsFileShareEndpointProperties(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + __endpointBaseProperties = new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.EndpointBaseProperties(json); + {_storageAccountResourceId = If( json?.PropertyT("storageAccountResourceId"), out var __jsonStorageAccountResourceId) ? (string)__jsonStorageAccountResourceId : (string)StorageAccountResourceId;} + {_fileShareName = If( json?.PropertyT("fileShareName"), out var __jsonFileShareName) ? (string)__jsonFileShareName : (string)FileShareName;} + AfterFromJson(json); + } + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAzureStorageNfsFileShareEndpointProperties. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAzureStorageNfsFileShareEndpointProperties. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAzureStorageNfsFileShareEndpointProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject json ? new AzureStorageNfsFileShareEndpointProperties(json) : null; + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + __endpointBaseProperties?.ToJson(container, serializationMode); + AddIf( null != (((object)this._storageAccountResourceId)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonString(this._storageAccountResourceId.ToString()) : null, "storageAccountResourceId" ,container.Add ); + AddIf( null != (((object)this._fileShareName)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonString(this._fileShareName.ToString()) : null, "fileShareName" ,container.Add ); + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/AzureStorageNfsFileShareEndpointUpdateProperties.PowerShell.cs b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/AzureStorageNfsFileShareEndpointUpdateProperties.PowerShell.cs new file mode 100644 index 000000000000..66f2689520f1 --- /dev/null +++ b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/AzureStorageNfsFileShareEndpointUpdateProperties.PowerShell.cs @@ -0,0 +1,177 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701 +{ + using Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.PowerShell; + + /// The properties of Azure Storage NFS file share endpoint to update. + [System.ComponentModel.TypeConverter(typeof(AzureStorageNfsFileShareEndpointUpdatePropertiesTypeConverter))] + public partial class AzureStorageNfsFileShareEndpointUpdateProperties + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// OverrideToString will be called if it is implemented. Implement this method in a partial class to enable this behavior + /// + /// /// instance serialized to a string, normally it is a Json + /// /// set returnNow to true if you provide a customized OverrideToString function + + partial void OverrideToString(ref string stringResult, ref bool returnNow); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal AzureStorageNfsFileShareEndpointUpdateProperties(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("EndpointType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBaseUpdatePropertiesInternal)this).EndpointType = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.EndpointType) content.GetValueForProperty("EndpointType",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBaseUpdatePropertiesInternal)this).EndpointType, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.EndpointType.CreateFrom); + } + if (content.Contains("Description")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBaseUpdatePropertiesInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBaseUpdatePropertiesInternal)this).Description, global::System.Convert.ToString); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal AzureStorageNfsFileShareEndpointUpdateProperties(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("EndpointType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBaseUpdatePropertiesInternal)this).EndpointType = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.EndpointType) content.GetValueForProperty("EndpointType",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBaseUpdatePropertiesInternal)this).EndpointType, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.EndpointType.CreateFrom); + } + if (content.Contains("Description")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBaseUpdatePropertiesInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBaseUpdatePropertiesInternal)this).Description, global::System.Convert.ToString); + } + AfterDeserializePSObject(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAzureStorageNfsFileShareEndpointUpdateProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new AzureStorageNfsFileShareEndpointUpdateProperties(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAzureStorageNfsFileShareEndpointUpdateProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new AzureStorageNfsFileShareEndpointUpdateProperties(content); + } + + /// + /// Creates a new instance of , deserializing the content from + /// a json string. + /// + /// a string containing a JSON serialized instance of this model. + /// + /// an instance of the model class. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAzureStorageNfsFileShareEndpointUpdateProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(jsonText)); + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.SerializationMode.IncludeAll)?.ToString(); + + public override string ToString() + { + var returnNow = false; + var result = global::System.String.Empty; + OverrideToString(ref result, ref returnNow); + if (returnNow) + { + return result; + } + return ToJsonString(); + } + } + /// The properties of Azure Storage NFS file share endpoint to update. + [System.ComponentModel.TypeConverter(typeof(AzureStorageNfsFileShareEndpointUpdatePropertiesTypeConverter))] + public partial interface IAzureStorageNfsFileShareEndpointUpdateProperties + + { + + } +} \ No newline at end of file diff --git a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/AzureStorageNfsFileShareEndpointUpdateProperties.TypeConverter.cs b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/AzureStorageNfsFileShareEndpointUpdateProperties.TypeConverter.cs new file mode 100644 index 000000000000..86ffd3163380 --- /dev/null +++ b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/AzureStorageNfsFileShareEndpointUpdateProperties.TypeConverter.cs @@ -0,0 +1,153 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701 +{ + using Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class AzureStorageNfsFileShareEndpointUpdatePropertiesTypeConverter : global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); + + /// + /// Determines if the converter can convert the parameter to the + /// type. + /// + /// the instance to check if it can be converted to the type. + /// + /// true if the instance could be converted to a type, + /// otherwise false + /// + public static bool CanConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return true; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + // we say yest to PSObjects + return true; + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + // we say yest to Hashtables/dictionaries + return true; + } + try + { + if (null != sourceValue.ToJsonString()) + { + return true; + } + } + catch + { + // Not one of our objects + } + try + { + string text = sourceValue.ToString()?.Trim(); + return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonType.Object; + } + catch + { + // Doesn't look like it can be treated as JSON + } + return false; + } + + /// + /// Determines if the parameter can be converted to the + /// parameter + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false + /// + public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; + + /// + /// Converts the parameter to the parameter using and + /// + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// + /// an instance of , or null if there is no suitable + /// conversion. + /// + public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); + + /// + /// Converts the parameter into an instance of + /// + /// the value to convert into an instance of . + /// + /// an instance of , or null if there is no suitable + /// conversion. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAzureStorageNfsFileShareEndpointUpdateProperties ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAzureStorageNfsFileShareEndpointUpdateProperties).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return AzureStorageNfsFileShareEndpointUpdateProperties.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return AzureStorageNfsFileShareEndpointUpdateProperties.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return AzureStorageNfsFileShareEndpointUpdateProperties.DeserializeFromDictionary(sourceValue); + } + return null; + } + + /// NotImplemented -- this will return null + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// will always return null. + public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; + } +} \ No newline at end of file diff --git a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/AzureStorageNfsFileShareEndpointUpdateProperties.cs b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/AzureStorageNfsFileShareEndpointUpdateProperties.cs new file mode 100644 index 000000000000..820f24023908 --- /dev/null +++ b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/AzureStorageNfsFileShareEndpointUpdateProperties.cs @@ -0,0 +1,64 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Extensions; + + /// The properties of Azure Storage NFS file share endpoint to update. + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.DoNotFormat] + public partial class AzureStorageNfsFileShareEndpointUpdateProperties : + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAzureStorageNfsFileShareEndpointUpdateProperties, + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAzureStorageNfsFileShareEndpointUpdatePropertiesInternal, + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IValidates + { + /// + /// Backing field for Inherited model + /// + private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBaseUpdateProperties __endpointBaseUpdateProperties = new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.EndpointBaseUpdateProperties(); + + /// A description for the Endpoint. + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inherited)] + public string Description { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBaseUpdatePropertiesInternal)__endpointBaseUpdateProperties).Description; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBaseUpdatePropertiesInternal)__endpointBaseUpdateProperties).Description = value ?? null; } + + /// The Endpoint resource type. + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inherited)] + public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.EndpointType EndpointType { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBaseUpdatePropertiesInternal)__endpointBaseUpdateProperties).EndpointType; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBaseUpdatePropertiesInternal)__endpointBaseUpdateProperties).EndpointType = value ; } + + /// + /// Creates an new instance. + /// + public AzureStorageNfsFileShareEndpointUpdateProperties() + { + + } + + /// Validates that this object meets the validation criteria. + /// an instance that will receive validation + /// events. + /// + /// A that will be complete when validation is completed. + /// + public async global::System.Threading.Tasks.Task Validate(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener) + { + await eventListener.AssertNotNull(nameof(__endpointBaseUpdateProperties), __endpointBaseUpdateProperties); + await eventListener.AssertObjectIsValid(nameof(__endpointBaseUpdateProperties), __endpointBaseUpdateProperties); + } + } + /// The properties of Azure Storage NFS file share endpoint to update. + public partial interface IAzureStorageNfsFileShareEndpointUpdateProperties : + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IJsonSerializable, + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBaseUpdateProperties + { + + } + /// The properties of Azure Storage NFS file share endpoint to update. + internal partial interface IAzureStorageNfsFileShareEndpointUpdatePropertiesInternal : + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBaseUpdatePropertiesInternal + { + + } +} \ No newline at end of file diff --git a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/AzureStorageNfsFileShareEndpointUpdateProperties.json.cs b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/AzureStorageNfsFileShareEndpointUpdateProperties.json.cs new file mode 100644 index 000000000000..24181339d2d9 --- /dev/null +++ b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/AzureStorageNfsFileShareEndpointUpdateProperties.json.cs @@ -0,0 +1,111 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Extensions; + + /// The properties of Azure Storage NFS file share endpoint to update. + public partial class AzureStorageNfsFileShareEndpointUpdateProperties + { + + /// + /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JsonNode that should be deserialized into this object. + + partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JSON container that the serialization result will be placed in. + + partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject container); + + /// + /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of + /// the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the + /// output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JsonNode that should be deserialized into this object. + /// Determines if the rest of the deserialization should be processed, or if the method should return + /// instantly. + + partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject json, ref bool returnNow); + + /// + /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the + /// object before it is serialized. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JSON container that the serialization result will be placed in. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject instance to deserialize from. + internal AzureStorageNfsFileShareEndpointUpdateProperties(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + __endpointBaseUpdateProperties = new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.EndpointBaseUpdateProperties(json); + AfterFromJson(json); + } + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAzureStorageNfsFileShareEndpointUpdateProperties. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAzureStorageNfsFileShareEndpointUpdateProperties. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAzureStorageNfsFileShareEndpointUpdateProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject json ? new AzureStorageNfsFileShareEndpointUpdateProperties(json) : null; + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + __endpointBaseUpdateProperties?.ToJson(container, serializationMode); + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/AzureStorageSmbFileShareEndpointProperties.PowerShell.cs b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/AzureStorageSmbFileShareEndpointProperties.PowerShell.cs similarity index 86% rename from generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/AzureStorageSmbFileShareEndpointProperties.PowerShell.cs rename to generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/AzureStorageSmbFileShareEndpointProperties.PowerShell.cs index 001b0f84ce69..4cb1494c6e92 100644 --- a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/AzureStorageSmbFileShareEndpointProperties.PowerShell.cs +++ b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/AzureStorageSmbFileShareEndpointProperties.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701 { using Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.PowerShell; @@ -63,7 +63,7 @@ public partial class AzureStorageSmbFileShareEndpointProperties partial void OverrideToString(ref string stringResult, ref bool returnNow); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -78,29 +78,29 @@ internal AzureStorageSmbFileShareEndpointProperties(global::System.Collections.I // actually deserialize if (content.Contains("StorageAccountResourceId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAzureStorageSmbFileShareEndpointPropertiesInternal)this).StorageAccountResourceId = (string) content.GetValueForProperty("StorageAccountResourceId",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAzureStorageSmbFileShareEndpointPropertiesInternal)this).StorageAccountResourceId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAzureStorageSmbFileShareEndpointPropertiesInternal)this).StorageAccountResourceId = (string) content.GetValueForProperty("StorageAccountResourceId",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAzureStorageSmbFileShareEndpointPropertiesInternal)this).StorageAccountResourceId, global::System.Convert.ToString); } if (content.Contains("FileShareName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAzureStorageSmbFileShareEndpointPropertiesInternal)this).FileShareName = (string) content.GetValueForProperty("FileShareName",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAzureStorageSmbFileShareEndpointPropertiesInternal)this).FileShareName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAzureStorageSmbFileShareEndpointPropertiesInternal)this).FileShareName = (string) content.GetValueForProperty("FileShareName",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAzureStorageSmbFileShareEndpointPropertiesInternal)this).FileShareName, global::System.Convert.ToString); } if (content.Contains("EndpointType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpointBasePropertiesInternal)this).EndpointType = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.EndpointType) content.GetValueForProperty("EndpointType",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpointBasePropertiesInternal)this).EndpointType, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.EndpointType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBasePropertiesInternal)this).EndpointType = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.EndpointType) content.GetValueForProperty("EndpointType",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBasePropertiesInternal)this).EndpointType, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.EndpointType.CreateFrom); } if (content.Contains("Description")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpointBasePropertiesInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpointBasePropertiesInternal)this).Description, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBasePropertiesInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBasePropertiesInternal)this).Description, global::System.Convert.ToString); } if (content.Contains("ProvisioningState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpointBasePropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpointBasePropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBasePropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBasePropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState.CreateFrom); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -115,51 +115,51 @@ internal AzureStorageSmbFileShareEndpointProperties(global::System.Management.Au // actually deserialize if (content.Contains("StorageAccountResourceId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAzureStorageSmbFileShareEndpointPropertiesInternal)this).StorageAccountResourceId = (string) content.GetValueForProperty("StorageAccountResourceId",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAzureStorageSmbFileShareEndpointPropertiesInternal)this).StorageAccountResourceId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAzureStorageSmbFileShareEndpointPropertiesInternal)this).StorageAccountResourceId = (string) content.GetValueForProperty("StorageAccountResourceId",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAzureStorageSmbFileShareEndpointPropertiesInternal)this).StorageAccountResourceId, global::System.Convert.ToString); } if (content.Contains("FileShareName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAzureStorageSmbFileShareEndpointPropertiesInternal)this).FileShareName = (string) content.GetValueForProperty("FileShareName",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAzureStorageSmbFileShareEndpointPropertiesInternal)this).FileShareName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAzureStorageSmbFileShareEndpointPropertiesInternal)this).FileShareName = (string) content.GetValueForProperty("FileShareName",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAzureStorageSmbFileShareEndpointPropertiesInternal)this).FileShareName, global::System.Convert.ToString); } if (content.Contains("EndpointType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpointBasePropertiesInternal)this).EndpointType = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.EndpointType) content.GetValueForProperty("EndpointType",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpointBasePropertiesInternal)this).EndpointType, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.EndpointType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBasePropertiesInternal)this).EndpointType = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.EndpointType) content.GetValueForProperty("EndpointType",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBasePropertiesInternal)this).EndpointType, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.EndpointType.CreateFrom); } if (content.Contains("Description")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpointBasePropertiesInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpointBasePropertiesInternal)this).Description, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBasePropertiesInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBasePropertiesInternal)this).Description, global::System.Convert.ToString); } if (content.Contains("ProvisioningState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpointBasePropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpointBasePropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBasePropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBasePropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState.CreateFrom); } AfterDeserializePSObject(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAzureStorageSmbFileShareEndpointProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAzureStorageSmbFileShareEndpointProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new AzureStorageSmbFileShareEndpointProperties(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAzureStorageSmbFileShareEndpointProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAzureStorageSmbFileShareEndpointProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new AzureStorageSmbFileShareEndpointProperties(content); } @@ -172,7 +172,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701 /// /// an instance of the model class. /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAzureStorageSmbFileShareEndpointProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAzureStorageSmbFileShareEndpointProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/AzureStorageSmbFileShareEndpointProperties.TypeConverter.cs b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/AzureStorageSmbFileShareEndpointProperties.TypeConverter.cs similarity index 98% rename from generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/AzureStorageSmbFileShareEndpointProperties.TypeConverter.cs rename to generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/AzureStorageSmbFileShareEndpointProperties.TypeConverter.cs index 793b2e92afdb..0f247e5ddebd 100644 --- a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/AzureStorageSmbFileShareEndpointProperties.TypeConverter.cs +++ b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/AzureStorageSmbFileShareEndpointProperties.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701 { using Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.PowerShell; @@ -110,14 +110,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAzureStorageSmbFileShareEndpointProperties ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAzureStorageSmbFileShareEndpointProperties ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAzureStorageSmbFileShareEndpointProperties).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAzureStorageSmbFileShareEndpointProperties).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/AzureStorageSmbFileShareEndpointProperties.cs b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/AzureStorageSmbFileShareEndpointProperties.cs similarity index 87% rename from generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/AzureStorageSmbFileShareEndpointProperties.cs rename to generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/AzureStorageSmbFileShareEndpointProperties.cs index 54d1c9f838dc..00f117b4ca01 100644 --- a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/AzureStorageSmbFileShareEndpointProperties.cs +++ b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/AzureStorageSmbFileShareEndpointProperties.cs @@ -3,30 +3,30 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701 { using static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Extensions; /// The properties of Azure Storage SMB file share endpoint. [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.DoNotFormat] public partial class AzureStorageSmbFileShareEndpointProperties : - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAzureStorageSmbFileShareEndpointProperties, - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAzureStorageSmbFileShareEndpointPropertiesInternal, + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAzureStorageSmbFileShareEndpointProperties, + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAzureStorageSmbFileShareEndpointPropertiesInternal, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpointBaseProperties __endpointBaseProperties = new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.EndpointBaseProperties(); + private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBaseProperties __endpointBaseProperties = new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.EndpointBaseProperties(); /// A description for the Endpoint. [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inherited)] - public string Description { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpointBasePropertiesInternal)__endpointBaseProperties).Description; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpointBasePropertiesInternal)__endpointBaseProperties).Description = value ?? null; } + public string Description { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBasePropertiesInternal)__endpointBaseProperties).Description; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBasePropertiesInternal)__endpointBaseProperties).Description = value ?? null; } /// The Endpoint resource type. [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.EndpointType EndpointType { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpointBasePropertiesInternal)__endpointBaseProperties).EndpointType; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpointBasePropertiesInternal)__endpointBaseProperties).EndpointType = value ; } + public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.EndpointType EndpointType { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBasePropertiesInternal)__endpointBaseProperties).EndpointType; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBasePropertiesInternal)__endpointBaseProperties).EndpointType = value ; } /// Backing field for property. private string _fileShareName; @@ -36,11 +36,11 @@ public partial class AzureStorageSmbFileShareEndpointProperties : public string FileShareName { get => this._fileShareName; set => this._fileShareName = value; } /// Internal Acessors for ProvisioningState - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpointBasePropertiesInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpointBasePropertiesInternal)__endpointBaseProperties).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpointBasePropertiesInternal)__endpointBaseProperties).ProvisioningState = value; } + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBasePropertiesInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBasePropertiesInternal)__endpointBaseProperties).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBasePropertiesInternal)__endpointBaseProperties).ProvisioningState = value; } /// The provisioning state of this resource. [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState? ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpointBasePropertiesInternal)__endpointBaseProperties).ProvisioningState; } + public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState? ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBasePropertiesInternal)__endpointBaseProperties).ProvisioningState; } /// Backing field for property. private string _storageAccountResourceId; @@ -72,7 +72,7 @@ public AzureStorageSmbFileShareEndpointProperties() /// The properties of Azure Storage SMB file share endpoint. public partial interface IAzureStorageSmbFileShareEndpointProperties : Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpointBaseProperties + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBaseProperties { /// The name of the Azure Storage file share. [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Info( @@ -94,7 +94,7 @@ public partial interface IAzureStorageSmbFileShareEndpointProperties : } /// The properties of Azure Storage SMB file share endpoint. internal partial interface IAzureStorageSmbFileShareEndpointPropertiesInternal : - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpointBasePropertiesInternal + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBasePropertiesInternal { /// The name of the Azure Storage file share. string FileShareName { get; set; } diff --git a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/AzureStorageSmbFileShareEndpointProperties.json.cs b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/AzureStorageSmbFileShareEndpointProperties.json.cs similarity index 96% rename from generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/AzureStorageSmbFileShareEndpointProperties.json.cs rename to generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/AzureStorageSmbFileShareEndpointProperties.json.cs index dff3afe7717b..836252cd73fc 100644 --- a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/AzureStorageSmbFileShareEndpointProperties.json.cs +++ b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/AzureStorageSmbFileShareEndpointProperties.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701 { using static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Extensions; @@ -65,20 +65,20 @@ internal AzureStorageSmbFileShareEndpointProperties(Microsoft.Azure.PowerShell.C { return; } - __endpointBaseProperties = new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.EndpointBaseProperties(json); + __endpointBaseProperties = new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.EndpointBaseProperties(json); {_storageAccountResourceId = If( json?.PropertyT("storageAccountResourceId"), out var __jsonStorageAccountResourceId) ? (string)__jsonStorageAccountResourceId : (string)StorageAccountResourceId;} {_fileShareName = If( json?.PropertyT("fileShareName"), out var __jsonFileShareName) ? (string)__jsonFileShareName : (string)FileShareName;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAzureStorageSmbFileShareEndpointProperties. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAzureStorageSmbFileShareEndpointProperties. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAzureStorageSmbFileShareEndpointProperties. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAzureStorageSmbFileShareEndpointProperties. /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAzureStorageSmbFileShareEndpointProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAzureStorageSmbFileShareEndpointProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject json ? new AzureStorageSmbFileShareEndpointProperties(json) : null; } diff --git a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/AzureStorageSmbFileShareEndpointUpdateProperties.PowerShell.cs b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/AzureStorageSmbFileShareEndpointUpdateProperties.PowerShell.cs similarity index 90% rename from generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/AzureStorageSmbFileShareEndpointUpdateProperties.PowerShell.cs rename to generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/AzureStorageSmbFileShareEndpointUpdateProperties.PowerShell.cs index 659f282659e3..af8da60f5efc 100644 --- a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/AzureStorageSmbFileShareEndpointUpdateProperties.PowerShell.cs +++ b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/AzureStorageSmbFileShareEndpointUpdateProperties.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701 { using Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.PowerShell; @@ -63,7 +63,7 @@ public partial class AzureStorageSmbFileShareEndpointUpdateProperties partial void OverrideToString(ref string stringResult, ref bool returnNow); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -78,17 +78,17 @@ internal AzureStorageSmbFileShareEndpointUpdateProperties(global::System.Collect // actually deserialize if (content.Contains("EndpointType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpointBaseUpdatePropertiesInternal)this).EndpointType = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.EndpointType) content.GetValueForProperty("EndpointType",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpointBaseUpdatePropertiesInternal)this).EndpointType, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.EndpointType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBaseUpdatePropertiesInternal)this).EndpointType = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.EndpointType) content.GetValueForProperty("EndpointType",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBaseUpdatePropertiesInternal)this).EndpointType, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.EndpointType.CreateFrom); } if (content.Contains("Description")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpointBaseUpdatePropertiesInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpointBaseUpdatePropertiesInternal)this).Description, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBaseUpdatePropertiesInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBaseUpdatePropertiesInternal)this).Description, global::System.Convert.ToString); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -103,39 +103,39 @@ internal AzureStorageSmbFileShareEndpointUpdateProperties(global::System.Managem // actually deserialize if (content.Contains("EndpointType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpointBaseUpdatePropertiesInternal)this).EndpointType = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.EndpointType) content.GetValueForProperty("EndpointType",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpointBaseUpdatePropertiesInternal)this).EndpointType, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.EndpointType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBaseUpdatePropertiesInternal)this).EndpointType = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.EndpointType) content.GetValueForProperty("EndpointType",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBaseUpdatePropertiesInternal)this).EndpointType, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.EndpointType.CreateFrom); } if (content.Contains("Description")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpointBaseUpdatePropertiesInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpointBaseUpdatePropertiesInternal)this).Description, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBaseUpdatePropertiesInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBaseUpdatePropertiesInternal)this).Description, global::System.Convert.ToString); } AfterDeserializePSObject(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAzureStorageSmbFileShareEndpointUpdateProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAzureStorageSmbFileShareEndpointUpdateProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new AzureStorageSmbFileShareEndpointUpdateProperties(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAzureStorageSmbFileShareEndpointUpdateProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAzureStorageSmbFileShareEndpointUpdateProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new AzureStorageSmbFileShareEndpointUpdateProperties(content); } @@ -148,7 +148,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701 /// /// an instance of the model class. /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAzureStorageSmbFileShareEndpointUpdateProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAzureStorageSmbFileShareEndpointUpdateProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/AzureStorageSmbFileShareEndpointUpdateProperties.TypeConverter.cs b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/AzureStorageSmbFileShareEndpointUpdateProperties.TypeConverter.cs similarity index 98% rename from generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/AzureStorageSmbFileShareEndpointUpdateProperties.TypeConverter.cs rename to generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/AzureStorageSmbFileShareEndpointUpdateProperties.TypeConverter.cs index 71a2b6f6639a..36aa22074e30 100644 --- a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/AzureStorageSmbFileShareEndpointUpdateProperties.TypeConverter.cs +++ b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/AzureStorageSmbFileShareEndpointUpdateProperties.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701 { using Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.PowerShell; @@ -112,14 +112,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// an instance of , or null if there is no suitable /// conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAzureStorageSmbFileShareEndpointUpdateProperties ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAzureStorageSmbFileShareEndpointUpdateProperties ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAzureStorageSmbFileShareEndpointUpdateProperties).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAzureStorageSmbFileShareEndpointUpdateProperties).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/AzureStorageSmbFileShareEndpointUpdateProperties.cs b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/AzureStorageSmbFileShareEndpointUpdateProperties.cs similarity index 85% rename from generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/AzureStorageSmbFileShareEndpointUpdateProperties.cs rename to generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/AzureStorageSmbFileShareEndpointUpdateProperties.cs index 1b8e7e51eaec..0c40549929d2 100644 --- a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/AzureStorageSmbFileShareEndpointUpdateProperties.cs +++ b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/AzureStorageSmbFileShareEndpointUpdateProperties.cs @@ -3,30 +3,30 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701 { using static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Extensions; /// The properties of Azure Storage SMB file share endpoint to update. [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.DoNotFormat] public partial class AzureStorageSmbFileShareEndpointUpdateProperties : - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAzureStorageSmbFileShareEndpointUpdateProperties, - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAzureStorageSmbFileShareEndpointUpdatePropertiesInternal, + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAzureStorageSmbFileShareEndpointUpdateProperties, + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAzureStorageSmbFileShareEndpointUpdatePropertiesInternal, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpointBaseUpdateProperties __endpointBaseUpdateProperties = new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.EndpointBaseUpdateProperties(); + private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBaseUpdateProperties __endpointBaseUpdateProperties = new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.EndpointBaseUpdateProperties(); /// A description for the Endpoint. [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inherited)] - public string Description { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpointBaseUpdatePropertiesInternal)__endpointBaseUpdateProperties).Description; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpointBaseUpdatePropertiesInternal)__endpointBaseUpdateProperties).Description = value ?? null; } + public string Description { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBaseUpdatePropertiesInternal)__endpointBaseUpdateProperties).Description; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBaseUpdatePropertiesInternal)__endpointBaseUpdateProperties).Description = value ?? null; } /// The Endpoint resource type. [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.EndpointType EndpointType { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpointBaseUpdatePropertiesInternal)__endpointBaseUpdateProperties).EndpointType; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpointBaseUpdatePropertiesInternal)__endpointBaseUpdateProperties).EndpointType = value ; } + public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.EndpointType EndpointType { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBaseUpdatePropertiesInternal)__endpointBaseUpdateProperties).EndpointType; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBaseUpdatePropertiesInternal)__endpointBaseUpdateProperties).EndpointType = value ; } /// /// Creates an new instance. @@ -51,13 +51,13 @@ public AzureStorageSmbFileShareEndpointUpdateProperties() /// The properties of Azure Storage SMB file share endpoint to update. public partial interface IAzureStorageSmbFileShareEndpointUpdateProperties : Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpointBaseUpdateProperties + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBaseUpdateProperties { } /// The properties of Azure Storage SMB file share endpoint to update. internal partial interface IAzureStorageSmbFileShareEndpointUpdatePropertiesInternal : - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpointBaseUpdatePropertiesInternal + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBaseUpdatePropertiesInternal { } diff --git a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/AzureStorageSmbFileShareEndpointUpdateProperties.json.cs b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/AzureStorageSmbFileShareEndpointUpdateProperties.json.cs similarity index 96% rename from generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/AzureStorageSmbFileShareEndpointUpdateProperties.json.cs rename to generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/AzureStorageSmbFileShareEndpointUpdateProperties.json.cs index bde1a2f63658..9cf82c0ec805 100644 --- a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/AzureStorageSmbFileShareEndpointUpdateProperties.json.cs +++ b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/AzureStorageSmbFileShareEndpointUpdateProperties.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701 { using static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Extensions; @@ -66,18 +66,18 @@ internal AzureStorageSmbFileShareEndpointUpdateProperties(Microsoft.Azure.PowerS { return; } - __endpointBaseUpdateProperties = new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.EndpointBaseUpdateProperties(json); + __endpointBaseUpdateProperties = new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.EndpointBaseUpdateProperties(json); AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAzureStorageSmbFileShareEndpointUpdateProperties. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAzureStorageSmbFileShareEndpointUpdateProperties. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAzureStorageSmbFileShareEndpointUpdateProperties. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAzureStorageSmbFileShareEndpointUpdateProperties. /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAzureStorageSmbFileShareEndpointUpdateProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAzureStorageSmbFileShareEndpointUpdateProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject json ? new AzureStorageSmbFileShareEndpointUpdateProperties(json) : null; } diff --git a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/Credentials.PowerShell.cs b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/Credentials.PowerShell.cs similarity index 90% rename from generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/Credentials.PowerShell.cs rename to generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/Credentials.PowerShell.cs index ff47a28d2bd2..5e35053be6b8 100644 --- a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/Credentials.PowerShell.cs +++ b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/Credentials.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701 { using Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.PowerShell; @@ -63,7 +63,7 @@ public partial class Credentials partial void OverrideToString(ref string stringResult, ref bool returnNow); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -78,13 +78,13 @@ internal Credentials(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("Type")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.ICredentialsInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.ICredentialsInternal)this).Type, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ICredentialsInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ICredentialsInternal)this).Type, global::System.Convert.ToString); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -99,33 +99,33 @@ internal Credentials(global::System.Management.Automation.PSObject content) // actually deserialize if (content.Contains("Type")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.ICredentialsInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.ICredentialsInternal)this).Type, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ICredentialsInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ICredentialsInternal)this).Type, global::System.Convert.ToString); } AfterDeserializePSObject(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.ICredentials DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ICredentials DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new Credentials(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.ICredentials DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ICredentials DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new Credentials(content); } @@ -135,7 +135,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.ICredentials FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ICredentials FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/Credentials.TypeConverter.cs b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/Credentials.TypeConverter.cs similarity index 98% rename from generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/Credentials.TypeConverter.cs rename to generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/Credentials.TypeConverter.cs index e130feb398ae..aca751cc9e59 100644 --- a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/Credentials.TypeConverter.cs +++ b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/Credentials.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701 { using Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.ICredentials ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ICredentials ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.ICredentials).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ICredentials).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/Credentials.cs b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/Credentials.cs similarity index 93% rename from generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/Credentials.cs rename to generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/Credentials.cs index 7696f72ddba6..a2ae0c64e199 100644 --- a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/Credentials.cs +++ b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/Credentials.cs @@ -3,18 +3,18 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701 { using static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Extensions; /// The Credentials. public partial class Credentials : - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.ICredentials, - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.ICredentialsInternal + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ICredentials, + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ICredentialsInternal { /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.ICredentialsInternal.Type { get => this._type; set { {_type = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ICredentialsInternal.Type { get => this._type; set { {_type = value;} } } /// Backing field for property. private string _type= @"AzureKeyVaultSmb"; diff --git a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/Credentials.json.cs b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/Credentials.json.cs similarity index 97% rename from generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/Credentials.json.cs rename to generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/Credentials.json.cs index 5440a3dd68b9..a5546950482e 100644 --- a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/Credentials.json.cs +++ b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/Credentials.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701 { using static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Extensions; @@ -70,15 +70,15 @@ internal Credentials(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Jso } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.ICredentials. - /// Note: the Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.ICredentials interface is polymorphic, and + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ICredentials. + /// Note: the Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ICredentials interface is polymorphic, and /// the precise model class that will get deserialized is determined at runtime based on the payload. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.ICredentials. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ICredentials. /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.ICredentials FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ICredentials FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode node) { if (!(node is Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject json)) { diff --git a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/Endpoint.PowerShell.cs b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/Endpoint.PowerShell.cs similarity index 74% rename from generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/Endpoint.PowerShell.cs rename to generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/Endpoint.PowerShell.cs index f6387a69e91d..34c50eded9ad 100644 --- a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/Endpoint.PowerShell.cs +++ b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/Endpoint.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701 { using Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.PowerShell; @@ -65,33 +65,33 @@ public partial class Endpoint partial void OverrideToString(ref string stringResult, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpoint DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpoint DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new Endpoint(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpoint DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpoint DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new Endpoint(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -104,9 +104,13 @@ internal Endpoint(global::System.Collections.IDictionary content) return; } // actually deserialize + if (content.Contains("Identity")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointInternal)this).Identity = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IManagedServiceIdentity) content.GetValueForProperty("Identity",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointInternal)this).Identity, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.ManagedServiceIdentityTypeConverter.ConvertFrom); + } if (content.Contains("Property")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpointInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpointBaseProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpointInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.EndpointBasePropertiesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBaseProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.EndpointBasePropertiesTypeConverter.ConvertFrom); } if (content.Contains("SystemDataCreatedBy")) { @@ -148,11 +152,27 @@ internal Endpoint(global::System.Collections.IDictionary content) { ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).Type, global::System.Convert.ToString); } + if (content.Contains("IdentityPrincipalId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointInternal)this).IdentityPrincipalId = (string) content.GetValueForProperty("IdentityPrincipalId",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointInternal)this).IdentityPrincipalId, global::System.Convert.ToString); + } + if (content.Contains("IdentityTenantId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointInternal)this).IdentityTenantId = (string) content.GetValueForProperty("IdentityTenantId",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointInternal)this).IdentityTenantId, global::System.Convert.ToString); + } + if (content.Contains("IdentityType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointInternal)this).IdentityType = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ManagedServiceIdentityType) content.GetValueForProperty("IdentityType",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointInternal)this).IdentityType, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ManagedServiceIdentityType.CreateFrom); + } + if (content.Contains("IdentityUserAssignedIdentity")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointInternal)this).IdentityUserAssignedIdentity = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IUserAssignedIdentities) content.GetValueForProperty("IdentityUserAssignedIdentity",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointInternal)this).IdentityUserAssignedIdentity, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.UserAssignedIdentitiesTypeConverter.ConvertFrom); + } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -165,9 +185,13 @@ internal Endpoint(global::System.Management.Automation.PSObject content) return; } // actually deserialize + if (content.Contains("Identity")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointInternal)this).Identity = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IManagedServiceIdentity) content.GetValueForProperty("Identity",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointInternal)this).Identity, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.ManagedServiceIdentityTypeConverter.ConvertFrom); + } if (content.Contains("Property")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpointInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpointBaseProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpointInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.EndpointBasePropertiesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBaseProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.EndpointBasePropertiesTypeConverter.ConvertFrom); } if (content.Contains("SystemDataCreatedBy")) { @@ -209,6 +233,22 @@ internal Endpoint(global::System.Management.Automation.PSObject content) { ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).Type, global::System.Convert.ToString); } + if (content.Contains("IdentityPrincipalId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointInternal)this).IdentityPrincipalId = (string) content.GetValueForProperty("IdentityPrincipalId",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointInternal)this).IdentityPrincipalId, global::System.Convert.ToString); + } + if (content.Contains("IdentityTenantId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointInternal)this).IdentityTenantId = (string) content.GetValueForProperty("IdentityTenantId",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointInternal)this).IdentityTenantId, global::System.Convert.ToString); + } + if (content.Contains("IdentityType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointInternal)this).IdentityType = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ManagedServiceIdentityType) content.GetValueForProperty("IdentityType",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointInternal)this).IdentityType, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ManagedServiceIdentityType.CreateFrom); + } + if (content.Contains("IdentityUserAssignedIdentity")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointInternal)this).IdentityUserAssignedIdentity = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IUserAssignedIdentities) content.GetValueForProperty("IdentityUserAssignedIdentity",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointInternal)this).IdentityUserAssignedIdentity, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.UserAssignedIdentitiesTypeConverter.ConvertFrom); + } AfterDeserializePSObject(content); } @@ -217,7 +257,7 @@ internal Endpoint(global::System.Management.Automation.PSObject content) /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpoint FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpoint FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/Endpoint.TypeConverter.cs b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/Endpoint.TypeConverter.cs similarity index 98% rename from generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/Endpoint.TypeConverter.cs rename to generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/Endpoint.TypeConverter.cs index 71907ca52dcb..dc3ef9f6205a 100644 --- a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/Endpoint.TypeConverter.cs +++ b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/Endpoint.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701 { using Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.PowerShell; @@ -105,14 +105,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpoint ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpoint ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpoint).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpoint).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/Endpoint.cs b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/Endpoint.cs similarity index 52% rename from generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/Endpoint.cs rename to generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/Endpoint.cs index f372f8290389..080f734a1dd3 100644 --- a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/Endpoint.cs +++ b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/Endpoint.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701 { using static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Extensions; @@ -12,8 +12,8 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701 /// [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.DoNotFormat] public partial class Endpoint : - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpoint, - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpointInternal, + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpoint, + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointInternal, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IValidates { /// @@ -28,6 +28,50 @@ public partial class Endpoint : [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inherited)] public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)__resource).Id; } + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IManagedServiceIdentity _identity; + + /// + /// The managed service identity of the resource. This property is only available on the latest version. + /// + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IManagedServiceIdentity Identity { get => (this._identity = this._identity ?? new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.ManagedServiceIdentity()); set => this._identity = value; } + + /// + /// The service principal ID of the system assigned identity. This property will only be provided for a system assigned identity. + /// + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inlined)] + public string IdentityPrincipalId { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IManagedServiceIdentityInternal)Identity).PrincipalId; } + + /// + /// The tenant ID of the system assigned identity. This property will only be provided for a system assigned identity. + /// + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inlined)] + public string IdentityTenantId { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IManagedServiceIdentityInternal)Identity).TenantId; } + + /// + /// Type of managed service identity (where both SystemAssigned and UserAssigned types are allowed). + /// + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ManagedServiceIdentityType? IdentityType { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IManagedServiceIdentityInternal)Identity).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IManagedServiceIdentityInternal)Identity).Type = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ManagedServiceIdentityType)""); } + + /// + /// The set of user assigned identities associated with the resource. The userAssignedIdentities dictionary keys will be ARM + /// resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}. + /// The dictionary values can be empty objects ({}) in requests. + /// + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IUserAssignedIdentities IdentityUserAssignedIdentity { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IManagedServiceIdentityInternal)Identity).UserAssignedIdentity; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IManagedServiceIdentityInternal)Identity).UserAssignedIdentity = value ?? null /* model class */; } + + /// Internal Acessors for Identity + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IManagedServiceIdentity Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointInternal.Identity { get => (this._identity = this._identity ?? new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.ManagedServiceIdentity()); set { {_identity = value;} } } + + /// Internal Acessors for IdentityPrincipalId + string Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointInternal.IdentityPrincipalId { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IManagedServiceIdentityInternal)Identity).PrincipalId; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IManagedServiceIdentityInternal)Identity).PrincipalId = value; } + + /// Internal Acessors for IdentityTenantId + string Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointInternal.IdentityTenantId { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IManagedServiceIdentityInternal)Identity).TenantId; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IManagedServiceIdentityInternal)Identity).TenantId = value; } + /// Internal Acessors for Id string Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)__resource).Id = value; } @@ -45,11 +89,11 @@ public partial class Endpoint : public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)__resource).Name; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpointBaseProperties _property; + private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBaseProperties _property; /// The resource specific properties for the Storage Mover resource. [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpointBaseProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.EndpointBaseProperties()); set => this._property = value; } + public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBaseProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.EndpointBaseProperties()); set => this._property = value; } /// /// Azure Resource Manager metadata containing createdBy and modifiedBy information. @@ -110,22 +154,86 @@ public partial interface IEndpoint : Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IJsonSerializable, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResource { + /// + /// The service principal ID of the system assigned identity. This property will only be provided for a system assigned identity. + /// + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The service principal ID of the system assigned identity. This property will only be provided for a system assigned identity.", + SerializedName = @"principalId", + PossibleTypes = new [] { typeof(string) })] + string IdentityPrincipalId { get; } + /// + /// The tenant ID of the system assigned identity. This property will only be provided for a system assigned identity. + /// + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The tenant ID of the system assigned identity. This property will only be provided for a system assigned identity.", + SerializedName = @"tenantId", + PossibleTypes = new [] { typeof(string) })] + string IdentityTenantId { get; } + /// + /// Type of managed service identity (where both SystemAssigned and UserAssigned types are allowed). + /// + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Type of managed service identity (where both SystemAssigned and UserAssigned types are allowed).", + SerializedName = @"type", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ManagedServiceIdentityType) })] + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ManagedServiceIdentityType? IdentityType { get; set; } + /// + /// The set of user assigned identities associated with the resource. The userAssignedIdentities dictionary keys will be ARM + /// resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}. + /// The dictionary values can be empty objects ({}) in requests. + /// + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The set of user assigned identities associated with the resource. The userAssignedIdentities dictionary keys will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}. The dictionary values can be empty objects ({}) in requests.", + SerializedName = @"userAssignedIdentities", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IUserAssignedIdentities) })] + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IUserAssignedIdentities IdentityUserAssignedIdentity { get; set; } /// The resource specific properties for the Storage Mover resource. [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Info( Required = true, ReadOnly = false, Description = @"The resource specific properties for the Storage Mover resource.", SerializedName = @"properties", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpointBaseProperties) })] - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpointBaseProperties Property { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBaseProperties) })] + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBaseProperties Property { get; set; } } /// The Endpoint resource, which contains information about file sources and targets. internal partial interface IEndpointInternal : Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal { + /// + /// The managed service identity of the resource. This property is only available on the latest version. + /// + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IManagedServiceIdentity Identity { get; set; } + /// + /// The service principal ID of the system assigned identity. This property will only be provided for a system assigned identity. + /// + string IdentityPrincipalId { get; set; } + /// + /// The tenant ID of the system assigned identity. This property will only be provided for a system assigned identity. + /// + string IdentityTenantId { get; set; } + /// + /// Type of managed service identity (where both SystemAssigned and UserAssigned types are allowed). + /// + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ManagedServiceIdentityType? IdentityType { get; set; } + /// + /// The set of user assigned identities associated with the resource. The userAssignedIdentities dictionary keys will be ARM + /// resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}. + /// The dictionary values can be empty objects ({}) in requests. + /// + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IUserAssignedIdentities IdentityUserAssignedIdentity { get; set; } /// The resource specific properties for the Storage Mover resource. - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpointBaseProperties Property { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBaseProperties Property { get; set; } } } \ No newline at end of file diff --git a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/Endpoint.json.cs b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/Endpoint.json.cs similarity index 91% rename from generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/Endpoint.json.cs rename to generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/Endpoint.json.cs index 485531411d75..0717addcf68e 100644 --- a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/Endpoint.json.cs +++ b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/Endpoint.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701 { using static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Extensions; @@ -68,18 +68,19 @@ internal Endpoint(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.J return; } __resource = new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.Resource(json); - {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.EndpointBaseProperties.FromJson(__jsonProperties) : Property;} + {_identity = If( json?.PropertyT("identity"), out var __jsonIdentity) ? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.ManagedServiceIdentity.FromJson(__jsonIdentity) : Identity;} + {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.EndpointBaseProperties.FromJson(__jsonProperties) : Property;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpoint. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpoint. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpoint. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpoint. /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpoint FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpoint FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject json ? new Endpoint(json) : null; } @@ -104,6 +105,7 @@ public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode ToJ return container; } __resource?.ToJson(container, serializationMode); + AddIf( null != this._identity ? (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode) this._identity.ToJson(null,serializationMode) : null, "identity" ,container.Add ); AddIf( null != this._property ? (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode) this._property.ToJson(null,serializationMode) : null, "properties" ,container.Add ); AfterToJson(ref container); return container; diff --git a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/EndpointBaseProperties.PowerShell.cs b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/EndpointBaseProperties.PowerShell.cs similarity index 88% rename from generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/EndpointBaseProperties.PowerShell.cs rename to generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/EndpointBaseProperties.PowerShell.cs index 636b3cd89c42..a2ed63ef9746 100644 --- a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/EndpointBaseProperties.PowerShell.cs +++ b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/EndpointBaseProperties.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701 { using Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.PowerShell; @@ -63,35 +63,35 @@ public partial class EndpointBaseProperties partial void OverrideToString(ref string stringResult, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpointBaseProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBaseProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new EndpointBaseProperties(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpointBaseProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBaseProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new EndpointBaseProperties(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -106,21 +106,21 @@ internal EndpointBaseProperties(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("EndpointType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpointBasePropertiesInternal)this).EndpointType = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.EndpointType) content.GetValueForProperty("EndpointType",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpointBasePropertiesInternal)this).EndpointType, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.EndpointType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBasePropertiesInternal)this).EndpointType = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.EndpointType) content.GetValueForProperty("EndpointType",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBasePropertiesInternal)this).EndpointType, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.EndpointType.CreateFrom); } if (content.Contains("Description")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpointBasePropertiesInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpointBasePropertiesInternal)this).Description, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBasePropertiesInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBasePropertiesInternal)this).Description, global::System.Convert.ToString); } if (content.Contains("ProvisioningState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpointBasePropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpointBasePropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBasePropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBasePropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState.CreateFrom); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -135,15 +135,15 @@ internal EndpointBaseProperties(global::System.Management.Automation.PSObject co // actually deserialize if (content.Contains("EndpointType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpointBasePropertiesInternal)this).EndpointType = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.EndpointType) content.GetValueForProperty("EndpointType",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpointBasePropertiesInternal)this).EndpointType, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.EndpointType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBasePropertiesInternal)this).EndpointType = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.EndpointType) content.GetValueForProperty("EndpointType",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBasePropertiesInternal)this).EndpointType, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.EndpointType.CreateFrom); } if (content.Contains("Description")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpointBasePropertiesInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpointBasePropertiesInternal)this).Description, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBasePropertiesInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBasePropertiesInternal)this).Description, global::System.Convert.ToString); } if (content.Contains("ProvisioningState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpointBasePropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpointBasePropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBasePropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBasePropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState.CreateFrom); } AfterDeserializePSObject(content); } @@ -153,7 +153,7 @@ internal EndpointBaseProperties(global::System.Management.Automation.PSObject co /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpointBaseProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBaseProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/EndpointBaseProperties.TypeConverter.cs b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/EndpointBaseProperties.TypeConverter.cs similarity index 98% rename from generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/EndpointBaseProperties.TypeConverter.cs rename to generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/EndpointBaseProperties.TypeConverter.cs index 0dbbe953ab37..ed072999a236 100644 --- a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/EndpointBaseProperties.TypeConverter.cs +++ b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/EndpointBaseProperties.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701 { using Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpointBaseProperties ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBaseProperties ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpointBaseProperties).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBaseProperties).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/EndpointBaseProperties.cs b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/EndpointBaseProperties.cs similarity index 96% rename from generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/EndpointBaseProperties.cs rename to generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/EndpointBaseProperties.cs index 19a205504af3..d62ddcaaa6d4 100644 --- a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/EndpointBaseProperties.cs +++ b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/EndpointBaseProperties.cs @@ -3,15 +3,15 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701 { using static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Extensions; /// The resource specific properties for the Storage Mover resource. [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.DoNotFormat] public partial class EndpointBaseProperties : - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpointBaseProperties, - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpointBasePropertiesInternal + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBaseProperties, + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBasePropertiesInternal { /// Backing field for property. @@ -29,7 +29,7 @@ public partial class EndpointBaseProperties : public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.EndpointType EndpointType { get => this._endpointType; set => this._endpointType = value; } /// Internal Acessors for ProvisioningState - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpointBasePropertiesInternal.ProvisioningState { get => this._provisioningState; set { {_provisioningState = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBasePropertiesInternal.ProvisioningState { get => this._provisioningState; set { {_provisioningState = value;} } } /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState? _provisioningState; diff --git a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/EndpointBaseProperties.json.cs b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/EndpointBaseProperties.json.cs similarity index 94% rename from generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/EndpointBaseProperties.json.cs rename to generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/EndpointBaseProperties.json.cs index 803129b31b4a..60fec6a19325 100644 --- a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/EndpointBaseProperties.json.cs +++ b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/EndpointBaseProperties.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701 { using static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Extensions; @@ -72,15 +72,15 @@ internal EndpointBaseProperties(Microsoft.Azure.PowerShell.Cmdlets.StorageMover. } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpointBaseProperties. - /// Note: the Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpointBaseProperties interface is polymorphic, + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBaseProperties. + /// Note: the Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBaseProperties interface is polymorphic, /// and the precise model class that will get deserialized is determined at runtime based on the payload. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpointBaseProperties. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBaseProperties. /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpointBaseProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBaseProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode node) { if (!(node is Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject json)) { @@ -90,18 +90,26 @@ public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701 switch ( json.StringProperty("endpointType") ) { + case "AzureMultiCloudConnector": + { + return new AzureMultiCloudConnectorEndpointProperties(json); + } case "AzureStorageBlobContainer": { return new AzureStorageBlobContainerEndpointProperties(json); } - case "NfsMount": + case "AzureStorageNfsFileShare": { - return new NfsMountEndpointProperties(json); + return new AzureStorageNfsFileShareEndpointProperties(json); } case "AzureStorageSmbFileShare": { return new AzureStorageSmbFileShareEndpointProperties(json); } + case "NfsMount": + { + return new NfsMountEndpointProperties(json); + } case "SmbMount": { return new SmbMountEndpointProperties(json); diff --git a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/EndpointBaseUpdateParameters.PowerShell.cs b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/EndpointBaseUpdateParameters.PowerShell.cs new file mode 100644 index 000000000000..24d2d23e9d04 --- /dev/null +++ b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/EndpointBaseUpdateParameters.PowerShell.cs @@ -0,0 +1,206 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701 +{ + using Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.PowerShell; + + /// The Endpoint resource. + [System.ComponentModel.TypeConverter(typeof(EndpointBaseUpdateParametersTypeConverter))] + public partial class EndpointBaseUpdateParameters + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// OverrideToString will be called if it is implemented. Implement this method in a partial class to enable this behavior + /// + /// /// instance serialized to a string, normally it is a Json + /// /// set returnNow to true if you provide a customized OverrideToString function + + partial void OverrideToString(ref string stringResult, ref bool returnNow); + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBaseUpdateParameters DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new EndpointBaseUpdateParameters(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBaseUpdateParameters DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new EndpointBaseUpdateParameters(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal EndpointBaseUpdateParameters(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Identity")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBaseUpdateParametersInternal)this).Identity = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IManagedServiceIdentity) content.GetValueForProperty("Identity",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBaseUpdateParametersInternal)this).Identity, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.ManagedServiceIdentityTypeConverter.ConvertFrom); + } + if (content.Contains("Property")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBaseUpdateParametersInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBaseUpdateProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBaseUpdateParametersInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.EndpointBaseUpdatePropertiesTypeConverter.ConvertFrom); + } + if (content.Contains("IdentityPrincipalId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBaseUpdateParametersInternal)this).IdentityPrincipalId = (string) content.GetValueForProperty("IdentityPrincipalId",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBaseUpdateParametersInternal)this).IdentityPrincipalId, global::System.Convert.ToString); + } + if (content.Contains("IdentityTenantId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBaseUpdateParametersInternal)this).IdentityTenantId = (string) content.GetValueForProperty("IdentityTenantId",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBaseUpdateParametersInternal)this).IdentityTenantId, global::System.Convert.ToString); + } + if (content.Contains("IdentityType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBaseUpdateParametersInternal)this).IdentityType = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ManagedServiceIdentityType) content.GetValueForProperty("IdentityType",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBaseUpdateParametersInternal)this).IdentityType, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ManagedServiceIdentityType.CreateFrom); + } + if (content.Contains("IdentityUserAssignedIdentity")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBaseUpdateParametersInternal)this).IdentityUserAssignedIdentity = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IUserAssignedIdentities) content.GetValueForProperty("IdentityUserAssignedIdentity",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBaseUpdateParametersInternal)this).IdentityUserAssignedIdentity, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.UserAssignedIdentitiesTypeConverter.ConvertFrom); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal EndpointBaseUpdateParameters(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Identity")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBaseUpdateParametersInternal)this).Identity = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IManagedServiceIdentity) content.GetValueForProperty("Identity",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBaseUpdateParametersInternal)this).Identity, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.ManagedServiceIdentityTypeConverter.ConvertFrom); + } + if (content.Contains("Property")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBaseUpdateParametersInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBaseUpdateProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBaseUpdateParametersInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.EndpointBaseUpdatePropertiesTypeConverter.ConvertFrom); + } + if (content.Contains("IdentityPrincipalId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBaseUpdateParametersInternal)this).IdentityPrincipalId = (string) content.GetValueForProperty("IdentityPrincipalId",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBaseUpdateParametersInternal)this).IdentityPrincipalId, global::System.Convert.ToString); + } + if (content.Contains("IdentityTenantId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBaseUpdateParametersInternal)this).IdentityTenantId = (string) content.GetValueForProperty("IdentityTenantId",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBaseUpdateParametersInternal)this).IdentityTenantId, global::System.Convert.ToString); + } + if (content.Contains("IdentityType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBaseUpdateParametersInternal)this).IdentityType = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ManagedServiceIdentityType) content.GetValueForProperty("IdentityType",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBaseUpdateParametersInternal)this).IdentityType, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ManagedServiceIdentityType.CreateFrom); + } + if (content.Contains("IdentityUserAssignedIdentity")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBaseUpdateParametersInternal)this).IdentityUserAssignedIdentity = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IUserAssignedIdentities) content.GetValueForProperty("IdentityUserAssignedIdentity",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBaseUpdateParametersInternal)this).IdentityUserAssignedIdentity, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.UserAssignedIdentitiesTypeConverter.ConvertFrom); + } + AfterDeserializePSObject(content); + } + + /// + /// Creates a new instance of , deserializing the content from a json string. + /// + /// a string containing a JSON serialized instance of this model. + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBaseUpdateParameters FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(jsonText)); + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.SerializationMode.IncludeAll)?.ToString(); + + public override string ToString() + { + var returnNow = false; + var result = global::System.String.Empty; + OverrideToString(ref result, ref returnNow); + if (returnNow) + { + return result; + } + return ToJsonString(); + } + } + /// The Endpoint resource. + [System.ComponentModel.TypeConverter(typeof(EndpointBaseUpdateParametersTypeConverter))] + public partial interface IEndpointBaseUpdateParameters + + { + + } +} \ No newline at end of file diff --git a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/EndpointBaseUpdateParameters.TypeConverter.cs b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/EndpointBaseUpdateParameters.TypeConverter.cs similarity index 98% rename from generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/EndpointBaseUpdateParameters.TypeConverter.cs rename to generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/EndpointBaseUpdateParameters.TypeConverter.cs index edd29fd6eabf..b4f1b414893d 100644 --- a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/EndpointBaseUpdateParameters.TypeConverter.cs +++ b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/EndpointBaseUpdateParameters.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701 { using Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpointBaseUpdateParameters ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBaseUpdateParameters ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpointBaseUpdateParameters).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBaseUpdateParameters).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/EndpointBaseUpdateParameters.cs b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/EndpointBaseUpdateParameters.cs new file mode 100644 index 000000000000..0db46b075549 --- /dev/null +++ b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/EndpointBaseUpdateParameters.cs @@ -0,0 +1,162 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Extensions; + + /// The Endpoint resource. + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.DoNotFormat] + public partial class EndpointBaseUpdateParameters : + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBaseUpdateParameters, + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBaseUpdateParametersInternal + { + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IManagedServiceIdentity _identity; + + /// The managed system identity assigned to this resource. + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IManagedServiceIdentity Identity { get => (this._identity = this._identity ?? new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.ManagedServiceIdentity()); set => this._identity = value; } + + /// + /// The service principal ID of the system assigned identity. This property will only be provided for a system assigned identity. + /// + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inlined)] + public string IdentityPrincipalId { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IManagedServiceIdentityInternal)Identity).PrincipalId; } + + /// + /// The tenant ID of the system assigned identity. This property will only be provided for a system assigned identity. + /// + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inlined)] + public string IdentityTenantId { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IManagedServiceIdentityInternal)Identity).TenantId; } + + /// + /// Type of managed service identity (where both SystemAssigned and UserAssigned types are allowed). + /// + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ManagedServiceIdentityType? IdentityType { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IManagedServiceIdentityInternal)Identity).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IManagedServiceIdentityInternal)Identity).Type = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ManagedServiceIdentityType)""); } + + /// + /// The set of user assigned identities associated with the resource. The userAssignedIdentities dictionary keys will be ARM + /// resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}. + /// The dictionary values can be empty objects ({}) in requests. + /// + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IUserAssignedIdentities IdentityUserAssignedIdentity { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IManagedServiceIdentityInternal)Identity).UserAssignedIdentity; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IManagedServiceIdentityInternal)Identity).UserAssignedIdentity = value ?? null /* model class */; } + + /// Internal Acessors for Identity + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IManagedServiceIdentity Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBaseUpdateParametersInternal.Identity { get => (this._identity = this._identity ?? new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.ManagedServiceIdentity()); set { {_identity = value;} } } + + /// Internal Acessors for IdentityPrincipalId + string Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBaseUpdateParametersInternal.IdentityPrincipalId { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IManagedServiceIdentityInternal)Identity).PrincipalId; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IManagedServiceIdentityInternal)Identity).PrincipalId = value; } + + /// Internal Acessors for IdentityTenantId + string Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBaseUpdateParametersInternal.IdentityTenantId { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IManagedServiceIdentityInternal)Identity).TenantId; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IManagedServiceIdentityInternal)Identity).TenantId = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBaseUpdateProperties _property; + + /// + /// The Endpoint resource, which contains information about file sources and targets. + /// + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBaseUpdateProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.EndpointBaseUpdateProperties()); set => this._property = value; } + + /// Creates an new instance. + public EndpointBaseUpdateParameters() + { + + } + } + /// The Endpoint resource. + public partial interface IEndpointBaseUpdateParameters : + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IJsonSerializable + { + /// + /// The service principal ID of the system assigned identity. This property will only be provided for a system assigned identity. + /// + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The service principal ID of the system assigned identity. This property will only be provided for a system assigned identity.", + SerializedName = @"principalId", + PossibleTypes = new [] { typeof(string) })] + string IdentityPrincipalId { get; } + /// + /// The tenant ID of the system assigned identity. This property will only be provided for a system assigned identity. + /// + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The tenant ID of the system assigned identity. This property will only be provided for a system assigned identity.", + SerializedName = @"tenantId", + PossibleTypes = new [] { typeof(string) })] + string IdentityTenantId { get; } + /// + /// Type of managed service identity (where both SystemAssigned and UserAssigned types are allowed). + /// + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Type of managed service identity (where both SystemAssigned and UserAssigned types are allowed).", + SerializedName = @"type", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ManagedServiceIdentityType) })] + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ManagedServiceIdentityType? IdentityType { get; set; } + /// + /// The set of user assigned identities associated with the resource. The userAssignedIdentities dictionary keys will be ARM + /// resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}. + /// The dictionary values can be empty objects ({}) in requests. + /// + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The set of user assigned identities associated with the resource. The userAssignedIdentities dictionary keys will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}. The dictionary values can be empty objects ({}) in requests.", + SerializedName = @"userAssignedIdentities", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IUserAssignedIdentities) })] + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IUserAssignedIdentities IdentityUserAssignedIdentity { get; set; } + /// + /// The Endpoint resource, which contains information about file sources and targets. + /// + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The Endpoint resource, which contains information about file sources and targets.", + SerializedName = @"properties", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBaseUpdateProperties) })] + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBaseUpdateProperties Property { get; set; } + + } + /// The Endpoint resource. + internal partial interface IEndpointBaseUpdateParametersInternal + + { + /// The managed system identity assigned to this resource. + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IManagedServiceIdentity Identity { get; set; } + /// + /// The service principal ID of the system assigned identity. This property will only be provided for a system assigned identity. + /// + string IdentityPrincipalId { get; set; } + /// + /// The tenant ID of the system assigned identity. This property will only be provided for a system assigned identity. + /// + string IdentityTenantId { get; set; } + /// + /// Type of managed service identity (where both SystemAssigned and UserAssigned types are allowed). + /// + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ManagedServiceIdentityType? IdentityType { get; set; } + /// + /// The set of user assigned identities associated with the resource. The userAssignedIdentities dictionary keys will be ARM + /// resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}. + /// The dictionary values can be empty objects ({}) in requests. + /// + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IUserAssignedIdentities IdentityUserAssignedIdentity { get; set; } + /// + /// The Endpoint resource, which contains information about file sources and targets. + /// + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBaseUpdateProperties Property { get; set; } + + } +} \ No newline at end of file diff --git a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/EndpointBaseUpdateParameters.json.cs b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/EndpointBaseUpdateParameters.json.cs similarity index 90% rename from generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/EndpointBaseUpdateParameters.json.cs rename to generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/EndpointBaseUpdateParameters.json.cs index 7aba6cd0cc04..169f82c4c098 100644 --- a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/EndpointBaseUpdateParameters.json.cs +++ b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/EndpointBaseUpdateParameters.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701 { using static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Extensions; @@ -65,18 +65,19 @@ internal EndpointBaseUpdateParameters(Microsoft.Azure.PowerShell.Cmdlets.Storage { return; } - {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.EndpointBaseUpdateProperties.FromJson(__jsonProperties) : Property;} + {_identity = If( json?.PropertyT("identity"), out var __jsonIdentity) ? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.ManagedServiceIdentity.FromJson(__jsonIdentity) : Identity;} + {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.EndpointBaseUpdateProperties.FromJson(__jsonProperties) : Property;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpointBaseUpdateParameters. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBaseUpdateParameters. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpointBaseUpdateParameters. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBaseUpdateParameters. /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpointBaseUpdateParameters FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBaseUpdateParameters FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject json ? new EndpointBaseUpdateParameters(json) : null; } @@ -100,6 +101,7 @@ public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode ToJ { return container; } + AddIf( null != this._identity ? (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode) this._identity.ToJson(null,serializationMode) : null, "identity" ,container.Add ); AddIf( null != this._property ? (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode) this._property.ToJson(null,serializationMode) : null, "properties" ,container.Add ); AfterToJson(ref container); return container; diff --git a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/EndpointBaseUpdateProperties.PowerShell.cs b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/EndpointBaseUpdateProperties.PowerShell.cs similarity index 89% rename from generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/EndpointBaseUpdateProperties.PowerShell.cs rename to generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/EndpointBaseUpdateProperties.PowerShell.cs index 3a73edf9b6e2..41152bbc5f15 100644 --- a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/EndpointBaseUpdateProperties.PowerShell.cs +++ b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/EndpointBaseUpdateProperties.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701 { using Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.PowerShell; @@ -65,35 +65,35 @@ public partial class EndpointBaseUpdateProperties partial void OverrideToString(ref string stringResult, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpointBaseUpdateProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBaseUpdateProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new EndpointBaseUpdateProperties(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpointBaseUpdateProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBaseUpdateProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new EndpointBaseUpdateProperties(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -108,17 +108,17 @@ internal EndpointBaseUpdateProperties(global::System.Collections.IDictionary con // actually deserialize if (content.Contains("EndpointType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpointBaseUpdatePropertiesInternal)this).EndpointType = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.EndpointType) content.GetValueForProperty("EndpointType",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpointBaseUpdatePropertiesInternal)this).EndpointType, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.EndpointType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBaseUpdatePropertiesInternal)this).EndpointType = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.EndpointType) content.GetValueForProperty("EndpointType",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBaseUpdatePropertiesInternal)this).EndpointType, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.EndpointType.CreateFrom); } if (content.Contains("Description")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpointBaseUpdatePropertiesInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpointBaseUpdatePropertiesInternal)this).Description, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBaseUpdatePropertiesInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBaseUpdatePropertiesInternal)this).Description, global::System.Convert.ToString); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -133,11 +133,11 @@ internal EndpointBaseUpdateProperties(global::System.Management.Automation.PSObj // actually deserialize if (content.Contains("EndpointType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpointBaseUpdatePropertiesInternal)this).EndpointType = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.EndpointType) content.GetValueForProperty("EndpointType",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpointBaseUpdatePropertiesInternal)this).EndpointType, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.EndpointType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBaseUpdatePropertiesInternal)this).EndpointType = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.EndpointType) content.GetValueForProperty("EndpointType",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBaseUpdatePropertiesInternal)this).EndpointType, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.EndpointType.CreateFrom); } if (content.Contains("Description")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpointBaseUpdatePropertiesInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpointBaseUpdatePropertiesInternal)this).Description, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBaseUpdatePropertiesInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBaseUpdatePropertiesInternal)this).Description, global::System.Convert.ToString); } AfterDeserializePSObject(content); } @@ -147,7 +147,7 @@ internal EndpointBaseUpdateProperties(global::System.Management.Automation.PSObj /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpointBaseUpdateProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBaseUpdateProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/EndpointBaseUpdateProperties.TypeConverter.cs b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/EndpointBaseUpdateProperties.TypeConverter.cs similarity index 98% rename from generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/EndpointBaseUpdateProperties.TypeConverter.cs rename to generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/EndpointBaseUpdateProperties.TypeConverter.cs index 07440968d95f..90ae56d36fd2 100644 --- a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/EndpointBaseUpdateProperties.TypeConverter.cs +++ b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/EndpointBaseUpdateProperties.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701 { using Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpointBaseUpdateProperties ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBaseUpdateProperties ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpointBaseUpdateProperties).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBaseUpdateProperties).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/EndpointBaseUpdateProperties.cs b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/EndpointBaseUpdateProperties.cs similarity index 97% rename from generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/EndpointBaseUpdateProperties.cs rename to generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/EndpointBaseUpdateProperties.cs index 48f08e0a84bc..fb5910d068d6 100644 --- a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/EndpointBaseUpdateProperties.cs +++ b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/EndpointBaseUpdateProperties.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701 { using static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Extensions; @@ -12,8 +12,8 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701 /// [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.DoNotFormat] public partial class EndpointBaseUpdateProperties : - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpointBaseUpdateProperties, - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpointBaseUpdatePropertiesInternal + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBaseUpdateProperties, + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBaseUpdatePropertiesInternal { /// Backing field for property. diff --git a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/EndpointBaseUpdateProperties.json.cs b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/EndpointBaseUpdateProperties.json.cs similarity index 93% rename from generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/EndpointBaseUpdateProperties.json.cs rename to generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/EndpointBaseUpdateProperties.json.cs index 65bc1cd86a18..c7d97a18fb3d 100644 --- a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/EndpointBaseUpdateProperties.json.cs +++ b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/EndpointBaseUpdateProperties.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701 { using static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Extensions; @@ -73,15 +73,15 @@ internal EndpointBaseUpdateProperties(Microsoft.Azure.PowerShell.Cmdlets.Storage } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpointBaseUpdateProperties. - /// Note: the Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpointBaseUpdateProperties interface is + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBaseUpdateProperties. + /// Note: the Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBaseUpdateProperties interface is /// polymorphic, and the precise model class that will get deserialized is determined at runtime based on the payload. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpointBaseUpdateProperties. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBaseUpdateProperties. /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpointBaseUpdateProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBaseUpdateProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode node) { if (!(node is Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject json)) { @@ -91,18 +91,26 @@ public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701 switch ( json.StringProperty("endpointType") ) { + case "AzureMultiCloudConnector": + { + return new AzureMultiCloudConnectorEndpointUpdateProperties(json); + } case "AzureStorageBlobContainer": { return new AzureStorageBlobContainerEndpointUpdateProperties(json); } - case "NfsMount": + case "AzureStorageNfsFileShare": { - return new NfsMountEndpointUpdateProperties(json); + return new AzureStorageNfsFileShareEndpointUpdateProperties(json); } case "AzureStorageSmbFileShare": { return new AzureStorageSmbFileShareEndpointUpdateProperties(json); } + case "NfsMount": + { + return new NfsMountEndpointUpdateProperties(json); + } case "SmbMount": { return new SmbMountEndpointUpdateProperties(json); diff --git a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/EndpointList.PowerShell.cs b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/EndpointList.PowerShell.cs similarity index 85% rename from generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/EndpointList.PowerShell.cs rename to generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/EndpointList.PowerShell.cs index b56d28b12d75..2600b39304b3 100644 --- a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/EndpointList.PowerShell.cs +++ b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/EndpointList.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701 { using Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.PowerShell; @@ -63,33 +63,33 @@ public partial class EndpointList partial void OverrideToString(ref string stringResult, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpointList DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointList DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new EndpointList(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpointList DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointList DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new EndpointList(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -104,17 +104,17 @@ internal EndpointList(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("Value")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpointListInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpoint[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpointListInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.EndpointTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointListInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpoint[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointListInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.EndpointTypeConverter.ConvertFrom)); } if (content.Contains("NextLink")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpointListInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpointListInternal)this).NextLink, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointListInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointListInternal)this).NextLink, global::System.Convert.ToString); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -129,11 +129,11 @@ internal EndpointList(global::System.Management.Automation.PSObject content) // actually deserialize if (content.Contains("Value")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpointListInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpoint[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpointListInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.EndpointTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointListInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpoint[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointListInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.EndpointTypeConverter.ConvertFrom)); } if (content.Contains("NextLink")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpointListInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpointListInternal)this).NextLink, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointListInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointListInternal)this).NextLink, global::System.Convert.ToString); } AfterDeserializePSObject(content); } @@ -143,7 +143,7 @@ internal EndpointList(global::System.Management.Automation.PSObject content) /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpointList FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointList FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/EndpointList.TypeConverter.cs b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/EndpointList.TypeConverter.cs similarity index 98% rename from generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/EndpointList.TypeConverter.cs rename to generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/EndpointList.TypeConverter.cs index 49127cfef013..4271a4492e23 100644 --- a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/EndpointList.TypeConverter.cs +++ b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/EndpointList.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701 { using Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpointList ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointList ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpointList).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointList).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/EndpointList.cs b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/EndpointList.cs similarity index 60% rename from generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/EndpointList.cs rename to generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/EndpointList.cs index fc06718e0123..e2245f28488c 100644 --- a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/EndpointList.cs +++ b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/EndpointList.cs @@ -3,38 +3,33 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701 { using static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Extensions; /// List of Endpoints. [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.DoNotFormat] public partial class EndpointList : - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpointList, - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpointListInternal + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointList, + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointListInternal { - /// Internal Acessors for NextLink - string Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpointListInternal.NextLink { get => this._nextLink; set { {_nextLink = value;} } } - /// Internal Acessors for Value - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpoint[] Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpointListInternal.Value { get => this._value; set { {_value = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpoint[] Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointListInternal.Value { get => this._value; set { {_value = value;} } } /// Backing field for property. private string _nextLink; - /// - /// Request URL that can be used to query next page of containers. Returned when total number of requested containers exceed - /// maximum page size. - /// + /// The link to the next page of items [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Owned)] - public string NextLink { get => this._nextLink; } + public string NextLink { get => this._nextLink; set => this._nextLink = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpoint[] _value; + private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpoint[] _value; + /// The Endpoint items on this page [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpoint[] Value { get => this._value; } + public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpoint[] Value { get => this._value; } /// Creates an new instance. public EndpointList() @@ -46,38 +41,32 @@ public EndpointList() public partial interface IEndpointList : Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IJsonSerializable { - /// - /// Request URL that can be used to query next page of containers. Returned when total number of requested containers exceed - /// maximum page size. - /// + /// The link to the next page of items [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Info( Required = false, - ReadOnly = true, - Description = @"Request URL that can be used to query next page of containers. Returned when total number of requested containers exceed maximum page size.", + ReadOnly = false, + Description = @"The link to the next page of items", SerializedName = @"nextLink", PossibleTypes = new [] { typeof(string) })] - string NextLink { get; } - + string NextLink { get; set; } + /// The Endpoint items on this page [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Info( - Required = false, + Required = true, ReadOnly = true, - Description = @"", + Description = @"The Endpoint items on this page", SerializedName = @"value", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpoint) })] - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpoint[] Value { get; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpoint) })] + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpoint[] Value { get; } } /// List of Endpoints. internal partial interface IEndpointListInternal { - /// - /// Request URL that can be used to query next page of containers. Returned when total number of requested containers exceed - /// maximum page size. - /// + /// The link to the next page of items string NextLink { get; set; } - - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpoint[] Value { get; set; } + /// The Endpoint items on this page + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpoint[] Value { get; set; } } } \ No newline at end of file diff --git a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/EndpointList.json.cs b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/EndpointList.json.cs similarity index 90% rename from generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/EndpointList.json.cs rename to generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/EndpointList.json.cs index 002beb3e18b9..95dd5a39ffbb 100644 --- a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/EndpointList.json.cs +++ b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/EndpointList.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701 { using static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Extensions; @@ -65,19 +65,19 @@ internal EndpointList(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Js { return; } - {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpoint) (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.Endpoint.FromJson(__u) )) ))() : null : Value;} + {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpoint) (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.Endpoint.FromJson(__u) )) ))() : null : Value;} {_nextLink = If( json?.PropertyT("nextLink"), out var __jsonNextLink) ? (string)__jsonNextLink : (string)NextLink;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpointList. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointList. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpointList. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointList. /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpointList FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointList FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject json ? new EndpointList(json) : null; } @@ -113,10 +113,7 @@ public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode ToJ container.Add("value",__w); } } - if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.SerializationMode.IncludeReadOnly)) - { - AddIf( null != (((object)this._nextLink)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonString(this._nextLink.ToString()) : null, "nextLink" ,container.Add ); - } + AddIf( null != (((object)this._nextLink)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonString(this._nextLink.ToString()) : null, "nextLink" ,container.Add ); AfterToJson(ref container); return container; } diff --git a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/JobDefinition.PowerShell.cs b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/JobDefinition.PowerShell.cs similarity index 75% rename from generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/JobDefinition.PowerShell.cs rename to generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/JobDefinition.PowerShell.cs index 913843c23721..9f41ac423305 100644 --- a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/JobDefinition.PowerShell.cs +++ b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/JobDefinition.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701 { using Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.PowerShell; @@ -63,27 +63,27 @@ public partial class JobDefinition partial void OverrideToString(ref string stringResult, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinition DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinition DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new JobDefinition(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinition DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinition DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new JobDefinition(content); } @@ -93,10 +93,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinition FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinition FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(jsonText)); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -111,7 +111,7 @@ internal JobDefinition(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("Property")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinitionInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinitionProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinitionInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.JobDefinitionPropertiesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.JobDefinitionPropertiesTypeConverter.ConvertFrom); } if (content.Contains("SystemDataCreatedBy")) { @@ -153,67 +153,79 @@ internal JobDefinition(global::System.Collections.IDictionary content) { ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).Type, global::System.Convert.ToString); } + if (content.Contains("JobType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionInternal)this).JobType = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.JobType?) content.GetValueForProperty("JobType",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionInternal)this).JobType, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.JobType.CreateFrom); + } if (content.Contains("CopyMode")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinitionInternal)this).CopyMode = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.CopyMode) content.GetValueForProperty("CopyMode",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinitionInternal)this).CopyMode, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.CopyMode.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionInternal)this).CopyMode = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.CopyMode) content.GetValueForProperty("CopyMode",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionInternal)this).CopyMode, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.CopyMode.CreateFrom); } if (content.Contains("ProvisioningState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinitionInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinitionInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState.CreateFrom); + } + if (content.Contains("SourceTargetMap")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionInternal)this).SourceTargetMap = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionPropertiesSourceTargetMap) content.GetValueForProperty("SourceTargetMap",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionInternal)this).SourceTargetMap, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.JobDefinitionPropertiesSourceTargetMapTypeConverter.ConvertFrom); } if (content.Contains("Description")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinitionInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinitionInternal)this).Description, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionInternal)this).Description, global::System.Convert.ToString); } if (content.Contains("SourceName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinitionInternal)this).SourceName = (string) content.GetValueForProperty("SourceName",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinitionInternal)this).SourceName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionInternal)this).SourceName = (string) content.GetValueForProperty("SourceName",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionInternal)this).SourceName, global::System.Convert.ToString); } if (content.Contains("SourceResourceId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinitionInternal)this).SourceResourceId = (string) content.GetValueForProperty("SourceResourceId",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinitionInternal)this).SourceResourceId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionInternal)this).SourceResourceId = (string) content.GetValueForProperty("SourceResourceId",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionInternal)this).SourceResourceId, global::System.Convert.ToString); } if (content.Contains("SourceSubpath")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinitionInternal)this).SourceSubpath = (string) content.GetValueForProperty("SourceSubpath",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinitionInternal)this).SourceSubpath, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionInternal)this).SourceSubpath = (string) content.GetValueForProperty("SourceSubpath",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionInternal)this).SourceSubpath, global::System.Convert.ToString); } if (content.Contains("TargetName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinitionInternal)this).TargetName = (string) content.GetValueForProperty("TargetName",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinitionInternal)this).TargetName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionInternal)this).TargetName = (string) content.GetValueForProperty("TargetName",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionInternal)this).TargetName, global::System.Convert.ToString); } if (content.Contains("TargetResourceId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinitionInternal)this).TargetResourceId = (string) content.GetValueForProperty("TargetResourceId",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinitionInternal)this).TargetResourceId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionInternal)this).TargetResourceId = (string) content.GetValueForProperty("TargetResourceId",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionInternal)this).TargetResourceId, global::System.Convert.ToString); } if (content.Contains("TargetSubpath")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinitionInternal)this).TargetSubpath = (string) content.GetValueForProperty("TargetSubpath",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinitionInternal)this).TargetSubpath, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionInternal)this).TargetSubpath = (string) content.GetValueForProperty("TargetSubpath",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionInternal)this).TargetSubpath, global::System.Convert.ToString); } if (content.Contains("LatestJobRunName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinitionInternal)this).LatestJobRunName = (string) content.GetValueForProperty("LatestJobRunName",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinitionInternal)this).LatestJobRunName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionInternal)this).LatestJobRunName = (string) content.GetValueForProperty("LatestJobRunName",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionInternal)this).LatestJobRunName, global::System.Convert.ToString); } if (content.Contains("LatestJobRunResourceId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinitionInternal)this).LatestJobRunResourceId = (string) content.GetValueForProperty("LatestJobRunResourceId",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinitionInternal)this).LatestJobRunResourceId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionInternal)this).LatestJobRunResourceId = (string) content.GetValueForProperty("LatestJobRunResourceId",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionInternal)this).LatestJobRunResourceId, global::System.Convert.ToString); } if (content.Contains("LatestJobRunStatus")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinitionInternal)this).LatestJobRunStatus = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.JobRunStatus?) content.GetValueForProperty("LatestJobRunStatus",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinitionInternal)this).LatestJobRunStatus, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.JobRunStatus.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionInternal)this).LatestJobRunStatus = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.JobRunStatus?) content.GetValueForProperty("LatestJobRunStatus",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionInternal)this).LatestJobRunStatus, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.JobRunStatus.CreateFrom); } if (content.Contains("AgentName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinitionInternal)this).AgentName = (string) content.GetValueForProperty("AgentName",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinitionInternal)this).AgentName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionInternal)this).AgentName = (string) content.GetValueForProperty("AgentName",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionInternal)this).AgentName, global::System.Convert.ToString); } if (content.Contains("AgentResourceId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinitionInternal)this).AgentResourceId = (string) content.GetValueForProperty("AgentResourceId",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinitionInternal)this).AgentResourceId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionInternal)this).AgentResourceId = (string) content.GetValueForProperty("AgentResourceId",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionInternal)this).AgentResourceId, global::System.Convert.ToString); + } + if (content.Contains("SourceTargetMapValue")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionInternal)this).SourceTargetMapValue = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ISourceTargetMap[]) content.GetValueForProperty("SourceTargetMapValue",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionInternal)this).SourceTargetMapValue, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.SourceTargetMapTypeConverter.ConvertFrom)); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -228,7 +240,7 @@ internal JobDefinition(global::System.Management.Automation.PSObject content) // actually deserialize if (content.Contains("Property")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinitionInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinitionProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinitionInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.JobDefinitionPropertiesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.JobDefinitionPropertiesTypeConverter.ConvertFrom); } if (content.Contains("SystemDataCreatedBy")) { @@ -270,61 +282,73 @@ internal JobDefinition(global::System.Management.Automation.PSObject content) { ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).Type, global::System.Convert.ToString); } + if (content.Contains("JobType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionInternal)this).JobType = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.JobType?) content.GetValueForProperty("JobType",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionInternal)this).JobType, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.JobType.CreateFrom); + } if (content.Contains("CopyMode")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinitionInternal)this).CopyMode = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.CopyMode) content.GetValueForProperty("CopyMode",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinitionInternal)this).CopyMode, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.CopyMode.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionInternal)this).CopyMode = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.CopyMode) content.GetValueForProperty("CopyMode",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionInternal)this).CopyMode, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.CopyMode.CreateFrom); } if (content.Contains("ProvisioningState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinitionInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinitionInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState.CreateFrom); + } + if (content.Contains("SourceTargetMap")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionInternal)this).SourceTargetMap = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionPropertiesSourceTargetMap) content.GetValueForProperty("SourceTargetMap",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionInternal)this).SourceTargetMap, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.JobDefinitionPropertiesSourceTargetMapTypeConverter.ConvertFrom); } if (content.Contains("Description")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinitionInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinitionInternal)this).Description, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionInternal)this).Description, global::System.Convert.ToString); } if (content.Contains("SourceName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinitionInternal)this).SourceName = (string) content.GetValueForProperty("SourceName",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinitionInternal)this).SourceName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionInternal)this).SourceName = (string) content.GetValueForProperty("SourceName",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionInternal)this).SourceName, global::System.Convert.ToString); } if (content.Contains("SourceResourceId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinitionInternal)this).SourceResourceId = (string) content.GetValueForProperty("SourceResourceId",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinitionInternal)this).SourceResourceId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionInternal)this).SourceResourceId = (string) content.GetValueForProperty("SourceResourceId",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionInternal)this).SourceResourceId, global::System.Convert.ToString); } if (content.Contains("SourceSubpath")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinitionInternal)this).SourceSubpath = (string) content.GetValueForProperty("SourceSubpath",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinitionInternal)this).SourceSubpath, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionInternal)this).SourceSubpath = (string) content.GetValueForProperty("SourceSubpath",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionInternal)this).SourceSubpath, global::System.Convert.ToString); } if (content.Contains("TargetName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinitionInternal)this).TargetName = (string) content.GetValueForProperty("TargetName",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinitionInternal)this).TargetName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionInternal)this).TargetName = (string) content.GetValueForProperty("TargetName",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionInternal)this).TargetName, global::System.Convert.ToString); } if (content.Contains("TargetResourceId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinitionInternal)this).TargetResourceId = (string) content.GetValueForProperty("TargetResourceId",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinitionInternal)this).TargetResourceId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionInternal)this).TargetResourceId = (string) content.GetValueForProperty("TargetResourceId",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionInternal)this).TargetResourceId, global::System.Convert.ToString); } if (content.Contains("TargetSubpath")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinitionInternal)this).TargetSubpath = (string) content.GetValueForProperty("TargetSubpath",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinitionInternal)this).TargetSubpath, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionInternal)this).TargetSubpath = (string) content.GetValueForProperty("TargetSubpath",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionInternal)this).TargetSubpath, global::System.Convert.ToString); } if (content.Contains("LatestJobRunName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinitionInternal)this).LatestJobRunName = (string) content.GetValueForProperty("LatestJobRunName",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinitionInternal)this).LatestJobRunName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionInternal)this).LatestJobRunName = (string) content.GetValueForProperty("LatestJobRunName",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionInternal)this).LatestJobRunName, global::System.Convert.ToString); } if (content.Contains("LatestJobRunResourceId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinitionInternal)this).LatestJobRunResourceId = (string) content.GetValueForProperty("LatestJobRunResourceId",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinitionInternal)this).LatestJobRunResourceId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionInternal)this).LatestJobRunResourceId = (string) content.GetValueForProperty("LatestJobRunResourceId",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionInternal)this).LatestJobRunResourceId, global::System.Convert.ToString); } if (content.Contains("LatestJobRunStatus")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinitionInternal)this).LatestJobRunStatus = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.JobRunStatus?) content.GetValueForProperty("LatestJobRunStatus",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinitionInternal)this).LatestJobRunStatus, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.JobRunStatus.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionInternal)this).LatestJobRunStatus = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.JobRunStatus?) content.GetValueForProperty("LatestJobRunStatus",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionInternal)this).LatestJobRunStatus, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.JobRunStatus.CreateFrom); } if (content.Contains("AgentName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinitionInternal)this).AgentName = (string) content.GetValueForProperty("AgentName",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinitionInternal)this).AgentName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionInternal)this).AgentName = (string) content.GetValueForProperty("AgentName",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionInternal)this).AgentName, global::System.Convert.ToString); } if (content.Contains("AgentResourceId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinitionInternal)this).AgentResourceId = (string) content.GetValueForProperty("AgentResourceId",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinitionInternal)this).AgentResourceId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionInternal)this).AgentResourceId = (string) content.GetValueForProperty("AgentResourceId",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionInternal)this).AgentResourceId, global::System.Convert.ToString); + } + if (content.Contains("SourceTargetMapValue")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionInternal)this).SourceTargetMapValue = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ISourceTargetMap[]) content.GetValueForProperty("SourceTargetMapValue",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionInternal)this).SourceTargetMapValue, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.SourceTargetMapTypeConverter.ConvertFrom)); } AfterDeserializePSObject(content); } diff --git a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/JobDefinition.TypeConverter.cs b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/JobDefinition.TypeConverter.cs similarity index 98% rename from generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/JobDefinition.TypeConverter.cs rename to generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/JobDefinition.TypeConverter.cs index 6e2b52fee4b0..b631de4d19b9 100644 --- a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/JobDefinition.TypeConverter.cs +++ b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/JobDefinition.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701 { using Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinition ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinition ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinition).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinition).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/JobDefinition.cs b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/JobDefinition.cs similarity index 77% rename from generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/JobDefinition.cs rename to generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/JobDefinition.cs index a14980a2ae07..71b87b411a81 100644 --- a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/JobDefinition.cs +++ b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/JobDefinition.cs @@ -3,15 +3,15 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701 { using static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Extensions; /// The Job Definition resource. [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.DoNotFormat] public partial class JobDefinition : - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinition, - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinitionInternal, + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinition, + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionInternal, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IValidates { /// @@ -22,21 +22,24 @@ public partial class JobDefinition : /// Name of the Agent to assign for new Job Runs of this Job Definition. [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inlined)] - public string AgentName { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinitionPropertiesInternal)Property).AgentName; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinitionPropertiesInternal)Property).AgentName = value ?? null; } + public string AgentName { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionPropertiesInternal)Property).AgentName; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionPropertiesInternal)Property).AgentName = value ?? null; } /// /// Fully qualified resource id of the Agent to assign for new Job Runs of this Job Definition. /// [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inlined)] - public string AgentResourceId { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinitionPropertiesInternal)Property).AgentResourceId; } + public string AgentResourceId { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionPropertiesInternal)Property).AgentResourceId; } /// Strategy to use for copy. [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.CopyMode CopyMode { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinitionPropertiesInternal)Property).CopyMode; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinitionPropertiesInternal)Property).CopyMode = value ; } + public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.CopyMode CopyMode { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionPropertiesInternal)Property).CopyMode; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionPropertiesInternal)Property).CopyMode = value ; } - /// A description for the Job Definition. + /// + /// A description for the Job Definition. OnPremToCloud is for migrating data from on-premises to cloud. CloudToCloud is for + /// migrating data between cloud to cloud. + /// [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inlined)] - public string Description { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinitionPropertiesInternal)Property).Description; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinitionPropertiesInternal)Property).Description = value ?? null; } + public string Description { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionPropertiesInternal)Property).Description; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionPropertiesInternal)Property).Description = value ?? null; } /// /// Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} @@ -44,43 +47,53 @@ public partial class JobDefinition : [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inherited)] public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)__resource).Id; } + /// The type of the Job. + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.JobType? JobType { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionPropertiesInternal)Property).JobType; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionPropertiesInternal)Property).JobType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.JobType)""); } + /// The name of the Job Run in a non-terminal state, if exists. [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inlined)] - public string LatestJobRunName { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinitionPropertiesInternal)Property).LatestJobRunName; } + public string LatestJobRunName { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionPropertiesInternal)Property).LatestJobRunName; } /// /// The fully qualified resource ID of the Job Run in a non-terminal state, if exists. /// [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inlined)] - public string LatestJobRunResourceId { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinitionPropertiesInternal)Property).LatestJobRunResourceId; } + public string LatestJobRunResourceId { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionPropertiesInternal)Property).LatestJobRunResourceId; } /// The current status of the Job Run in a non-terminal state, if exists. [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.JobRunStatus? LatestJobRunStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinitionPropertiesInternal)Property).LatestJobRunStatus; } + public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.JobRunStatus? LatestJobRunStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionPropertiesInternal)Property).LatestJobRunStatus; } /// Internal Acessors for AgentResourceId - string Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinitionInternal.AgentResourceId { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinitionPropertiesInternal)Property).AgentResourceId; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinitionPropertiesInternal)Property).AgentResourceId = value; } + string Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionInternal.AgentResourceId { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionPropertiesInternal)Property).AgentResourceId; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionPropertiesInternal)Property).AgentResourceId = value; } /// Internal Acessors for LatestJobRunName - string Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinitionInternal.LatestJobRunName { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinitionPropertiesInternal)Property).LatestJobRunName; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinitionPropertiesInternal)Property).LatestJobRunName = value; } + string Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionInternal.LatestJobRunName { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionPropertiesInternal)Property).LatestJobRunName; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionPropertiesInternal)Property).LatestJobRunName = value; } /// Internal Acessors for LatestJobRunResourceId - string Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinitionInternal.LatestJobRunResourceId { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinitionPropertiesInternal)Property).LatestJobRunResourceId; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinitionPropertiesInternal)Property).LatestJobRunResourceId = value; } + string Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionInternal.LatestJobRunResourceId { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionPropertiesInternal)Property).LatestJobRunResourceId; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionPropertiesInternal)Property).LatestJobRunResourceId = value; } /// Internal Acessors for LatestJobRunStatus - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.JobRunStatus? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinitionInternal.LatestJobRunStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinitionPropertiesInternal)Property).LatestJobRunStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinitionPropertiesInternal)Property).LatestJobRunStatus = value; } + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.JobRunStatus? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionInternal.LatestJobRunStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionPropertiesInternal)Property).LatestJobRunStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionPropertiesInternal)Property).LatestJobRunStatus = value; } /// Internal Acessors for Property - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinitionProperties Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinitionInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.JobDefinitionProperties()); set { {_property = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionProperties Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.JobDefinitionProperties()); set { {_property = value;} } } /// Internal Acessors for ProvisioningState - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinitionInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinitionPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinitionPropertiesInternal)Property).ProvisioningState = value; } + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionPropertiesInternal)Property).ProvisioningState = value; } /// Internal Acessors for SourceResourceId - string Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinitionInternal.SourceResourceId { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinitionPropertiesInternal)Property).SourceResourceId; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinitionPropertiesInternal)Property).SourceResourceId = value; } + string Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionInternal.SourceResourceId { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionPropertiesInternal)Property).SourceResourceId; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionPropertiesInternal)Property).SourceResourceId = value; } + + /// Internal Acessors for SourceTargetMap + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionPropertiesSourceTargetMap Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionInternal.SourceTargetMap { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionPropertiesInternal)Property).SourceTargetMap; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionPropertiesInternal)Property).SourceTargetMap = value; } + + /// Internal Acessors for SourceTargetMapValue + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ISourceTargetMap[] Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionInternal.SourceTargetMapValue { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionPropertiesInternal)Property).SourceTargetMapValue; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionPropertiesInternal)Property).SourceTargetMapValue = value; } /// Internal Acessors for TargetResourceId - string Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinitionInternal.TargetResourceId { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinitionPropertiesInternal)Property).TargetResourceId; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinitionPropertiesInternal)Property).TargetResourceId = value; } + string Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionInternal.TargetResourceId { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionPropertiesInternal)Property).TargetResourceId; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionPropertiesInternal)Property).TargetResourceId = value; } /// Internal Acessors for Id string Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)__resource).Id = value; } @@ -99,27 +112,30 @@ public partial class JobDefinition : public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)__resource).Name; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinitionProperties _property; + private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionProperties _property; /// Job definition properties. [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinitionProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.JobDefinitionProperties()); set => this._property = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.JobDefinitionProperties()); set => this._property = value; } /// The provisioning state of this resource. [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState? ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinitionPropertiesInternal)Property).ProvisioningState; } + public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState? ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionPropertiesInternal)Property).ProvisioningState; } /// The name of the source Endpoint. [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inlined)] - public string SourceName { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinitionPropertiesInternal)Property).SourceName; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinitionPropertiesInternal)Property).SourceName = value ; } + public string SourceName { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionPropertiesInternal)Property).SourceName; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionPropertiesInternal)Property).SourceName = value ; } /// Fully qualified resource ID of the source Endpoint. [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inlined)] - public string SourceResourceId { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinitionPropertiesInternal)Property).SourceResourceId; } + public string SourceResourceId { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionPropertiesInternal)Property).SourceResourceId; } /// The subpath to use when reading from the source Endpoint. [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inlined)] - public string SourceSubpath { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinitionPropertiesInternal)Property).SourceSubpath; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinitionPropertiesInternal)Property).SourceSubpath = value ?? null; } + public string SourceSubpath { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionPropertiesInternal)Property).SourceSubpath; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionPropertiesInternal)Property).SourceSubpath = value ?? null; } + + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ISourceTargetMap[] SourceTargetMapValue { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionPropertiesInternal)Property).SourceTargetMapValue; } /// /// Azure Resource Manager metadata containing createdBy and modifiedBy information. @@ -153,15 +169,15 @@ public partial class JobDefinition : /// The name of the target Endpoint. [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inlined)] - public string TargetName { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinitionPropertiesInternal)Property).TargetName; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinitionPropertiesInternal)Property).TargetName = value ; } + public string TargetName { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionPropertiesInternal)Property).TargetName; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionPropertiesInternal)Property).TargetName = value ; } /// Fully qualified resource ID of the target Endpoint. [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inlined)] - public string TargetResourceId { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinitionPropertiesInternal)Property).TargetResourceId; } + public string TargetResourceId { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionPropertiesInternal)Property).TargetResourceId; } /// The subpath to use when writing to the target Endpoint. [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inlined)] - public string TargetSubpath { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinitionPropertiesInternal)Property).TargetSubpath; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinitionPropertiesInternal)Property).TargetSubpath = value ?? null; } + public string TargetSubpath { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionPropertiesInternal)Property).TargetSubpath; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionPropertiesInternal)Property).TargetSubpath = value ?? null; } /// /// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" @@ -218,14 +234,25 @@ public partial interface IJobDefinition : SerializedName = @"copyMode", PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.CopyMode) })] Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.CopyMode CopyMode { get; set; } - /// A description for the Job Definition. + /// + /// A description for the Job Definition. OnPremToCloud is for migrating data from on-premises to cloud. CloudToCloud is for + /// migrating data between cloud to cloud. + /// [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Info( Required = false, ReadOnly = false, - Description = @"A description for the Job Definition.", + Description = @"A description for the Job Definition. OnPremToCloud is for migrating data from on-premises to cloud. CloudToCloud is for migrating data between cloud to cloud.", SerializedName = @"description", PossibleTypes = new [] { typeof(string) })] string Description { get; set; } + /// The type of the Job. + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The type of the Job.", + SerializedName = @"jobType", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.JobType) })] + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.JobType? JobType { get; set; } /// The name of the Job Run in a non-terminal state, if exists. [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Info( Required = false, @@ -284,6 +311,14 @@ public partial interface IJobDefinition : SerializedName = @"sourceSubpath", PossibleTypes = new [] { typeof(string) })] string SourceSubpath { get; set; } + + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"", + SerializedName = @"value", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ISourceTargetMap) })] + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ISourceTargetMap[] SourceTargetMapValue { get; } /// The name of the target Endpoint. [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Info( Required = true, @@ -322,8 +357,13 @@ internal partial interface IJobDefinitionInternal : string AgentResourceId { get; set; } /// Strategy to use for copy. Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.CopyMode CopyMode { get; set; } - /// A description for the Job Definition. + /// + /// A description for the Job Definition. OnPremToCloud is for migrating data from on-premises to cloud. CloudToCloud is for + /// migrating data between cloud to cloud. + /// string Description { get; set; } + /// The type of the Job. + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.JobType? JobType { get; set; } /// The name of the Job Run in a non-terminal state, if exists. string LatestJobRunName { get; set; } /// @@ -333,7 +373,7 @@ internal partial interface IJobDefinitionInternal : /// The current status of the Job Run in a non-terminal state, if exists. Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.JobRunStatus? LatestJobRunStatus { get; set; } /// Job definition properties. - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinitionProperties Property { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionProperties Property { get; set; } /// The provisioning state of this resource. Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState? ProvisioningState { get; set; } /// The name of the source Endpoint. @@ -342,6 +382,10 @@ internal partial interface IJobDefinitionInternal : string SourceResourceId { get; set; } /// The subpath to use when reading from the source Endpoint. string SourceSubpath { get; set; } + /// The list of cloud endpoints to migrate. + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionPropertiesSourceTargetMap SourceTargetMap { get; set; } + + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ISourceTargetMap[] SourceTargetMapValue { get; set; } /// The name of the target Endpoint. string TargetName { get; set; } /// Fully qualified resource ID of the target Endpoint. diff --git a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/JobDefinition.json.cs b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/JobDefinition.json.cs similarity index 97% rename from generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/JobDefinition.json.cs rename to generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/JobDefinition.json.cs index 78ad65157e77..e1c3f2dcad8c 100644 --- a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/JobDefinition.json.cs +++ b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/JobDefinition.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701 { using static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class JobDefinition partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinition. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinition. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinition. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinition. /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinition FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinition FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject json ? new JobDefinition(json) : null; } @@ -78,7 +78,7 @@ internal JobDefinition(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.J return; } __resource = new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.Resource(json); - {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.JobDefinitionProperties.FromJson(__jsonProperties) : Property;} + {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.JobDefinitionProperties.FromJson(__jsonProperties) : Property;} AfterFromJson(json); } diff --git a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/JobDefinitionList.PowerShell.cs b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/JobDefinitionList.PowerShell.cs similarity index 86% rename from generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/JobDefinitionList.PowerShell.cs rename to generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/JobDefinitionList.PowerShell.cs index bc6e6c902b08..e4b2f7101c92 100644 --- a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/JobDefinitionList.PowerShell.cs +++ b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/JobDefinitionList.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701 { using Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.PowerShell; @@ -63,27 +63,27 @@ public partial class JobDefinitionList partial void OverrideToString(ref string stringResult, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinitionList DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionList DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new JobDefinitionList(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinitionList DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionList DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new JobDefinitionList(content); } @@ -93,10 +93,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinitionList FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionList FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(jsonText)); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -111,17 +111,17 @@ internal JobDefinitionList(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("Value")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinitionListInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinition[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinitionListInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.JobDefinitionTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionListInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinition[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionListInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.JobDefinitionTypeConverter.ConvertFrom)); } if (content.Contains("NextLink")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinitionListInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinitionListInternal)this).NextLink, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionListInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionListInternal)this).NextLink, global::System.Convert.ToString); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -136,11 +136,11 @@ internal JobDefinitionList(global::System.Management.Automation.PSObject content // actually deserialize if (content.Contains("Value")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinitionListInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinition[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinitionListInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.JobDefinitionTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionListInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinition[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionListInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.JobDefinitionTypeConverter.ConvertFrom)); } if (content.Contains("NextLink")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinitionListInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinitionListInternal)this).NextLink, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionListInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionListInternal)this).NextLink, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/JobDefinitionList.TypeConverter.cs b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/JobDefinitionList.TypeConverter.cs similarity index 98% rename from generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/JobDefinitionList.TypeConverter.cs rename to generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/JobDefinitionList.TypeConverter.cs index 05f354ef80a6..ca5e7d198659 100644 --- a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/JobDefinitionList.TypeConverter.cs +++ b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/JobDefinitionList.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701 { using Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinitionList ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionList ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinitionList).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionList).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/JobDefinitionList.cs b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/JobDefinitionList.cs similarity index 59% rename from generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/JobDefinitionList.cs rename to generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/JobDefinitionList.cs index d65c750ef34e..818f1dfe93e7 100644 --- a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/JobDefinitionList.cs +++ b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/JobDefinitionList.cs @@ -3,38 +3,33 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701 { using static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Extensions; /// List of Job Definitions. [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.DoNotFormat] public partial class JobDefinitionList : - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinitionList, - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinitionListInternal + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionList, + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionListInternal { - /// Internal Acessors for NextLink - string Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinitionListInternal.NextLink { get => this._nextLink; set { {_nextLink = value;} } } - /// Internal Acessors for Value - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinition[] Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinitionListInternal.Value { get => this._value; set { {_value = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinition[] Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionListInternal.Value { get => this._value; set { {_value = value;} } } /// Backing field for property. private string _nextLink; - /// - /// Request URL that can be used to query next page of containers. Returned when total number of requested containers exceed - /// maximum page size. - /// + /// The link to the next page of items [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Owned)] - public string NextLink { get => this._nextLink; } + public string NextLink { get => this._nextLink; set => this._nextLink = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinition[] _value; + private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinition[] _value; + /// The JobDefinition items on this page [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinition[] Value { get => this._value; } + public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinition[] Value { get => this._value; } /// Creates an new instance. public JobDefinitionList() @@ -46,38 +41,32 @@ public JobDefinitionList() public partial interface IJobDefinitionList : Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IJsonSerializable { - /// - /// Request URL that can be used to query next page of containers. Returned when total number of requested containers exceed - /// maximum page size. - /// + /// The link to the next page of items [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Info( Required = false, - ReadOnly = true, - Description = @"Request URL that can be used to query next page of containers. Returned when total number of requested containers exceed maximum page size.", + ReadOnly = false, + Description = @"The link to the next page of items", SerializedName = @"nextLink", PossibleTypes = new [] { typeof(string) })] - string NextLink { get; } - + string NextLink { get; set; } + /// The JobDefinition items on this page [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Info( - Required = false, + Required = true, ReadOnly = true, - Description = @"", + Description = @"The JobDefinition items on this page", SerializedName = @"value", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinition) })] - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinition[] Value { get; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinition) })] + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinition[] Value { get; } } /// List of Job Definitions. internal partial interface IJobDefinitionListInternal { - /// - /// Request URL that can be used to query next page of containers. Returned when total number of requested containers exceed - /// maximum page size. - /// + /// The link to the next page of items string NextLink { get; set; } - - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinition[] Value { get; set; } + /// The JobDefinition items on this page + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinition[] Value { get; set; } } } \ No newline at end of file diff --git a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/JobDefinitionList.json.cs b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/JobDefinitionList.json.cs similarity index 90% rename from generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/JobDefinitionList.json.cs rename to generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/JobDefinitionList.json.cs index d9905bb04566..3336b83c0512 100644 --- a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/JobDefinitionList.json.cs +++ b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/JobDefinitionList.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701 { using static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class JobDefinitionList partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinitionList. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionList. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinitionList. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionList. /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinitionList FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionList FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject json ? new JobDefinitionList(json) : null; } @@ -77,7 +77,7 @@ internal JobDefinitionList(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runti { return; } - {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinition) (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.JobDefinition.FromJson(__u) )) ))() : null : Value;} + {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinition) (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.JobDefinition.FromJson(__u) )) ))() : null : Value;} {_nextLink = If( json?.PropertyT("nextLink"), out var __jsonNextLink) ? (string)__jsonNextLink : (string)NextLink;} AfterFromJson(json); } @@ -113,10 +113,7 @@ public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode ToJ container.Add("value",__w); } } - if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.SerializationMode.IncludeReadOnly)) - { - AddIf( null != (((object)this._nextLink)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonString(this._nextLink.ToString()) : null, "nextLink" ,container.Add ); - } + AddIf( null != (((object)this._nextLink)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonString(this._nextLink.ToString()) : null, "nextLink" ,container.Add ); AfterToJson(ref container); return container; } diff --git a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/JobDefinitionProperties.PowerShell.cs b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/JobDefinitionProperties.PowerShell.cs similarity index 68% rename from generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/JobDefinitionProperties.PowerShell.cs rename to generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/JobDefinitionProperties.PowerShell.cs index a6ce075c7b21..fd13d7026d20 100644 --- a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/JobDefinitionProperties.PowerShell.cs +++ b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/JobDefinitionProperties.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701 { using Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.PowerShell; @@ -63,29 +63,29 @@ public partial class JobDefinitionProperties partial void OverrideToString(ref string stringResult, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinitionProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new JobDefinitionProperties(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinitionProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new JobDefinitionProperties(content); } @@ -95,10 +95,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinitionProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(jsonText)); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -111,67 +111,79 @@ internal JobDefinitionProperties(global::System.Collections.IDictionary content) return; } // actually deserialize + if (content.Contains("SourceTargetMap")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionPropertiesInternal)this).SourceTargetMap = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionPropertiesSourceTargetMap) content.GetValueForProperty("SourceTargetMap",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionPropertiesInternal)this).SourceTargetMap, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.JobDefinitionPropertiesSourceTargetMapTypeConverter.ConvertFrom); + } if (content.Contains("Description")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinitionPropertiesInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinitionPropertiesInternal)this).Description, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionPropertiesInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionPropertiesInternal)this).Description, global::System.Convert.ToString); + } + if (content.Contains("JobType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionPropertiesInternal)this).JobType = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.JobType?) content.GetValueForProperty("JobType",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionPropertiesInternal)this).JobType, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.JobType.CreateFrom); } if (content.Contains("CopyMode")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinitionPropertiesInternal)this).CopyMode = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.CopyMode) content.GetValueForProperty("CopyMode",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinitionPropertiesInternal)this).CopyMode, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.CopyMode.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionPropertiesInternal)this).CopyMode = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.CopyMode) content.GetValueForProperty("CopyMode",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionPropertiesInternal)this).CopyMode, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.CopyMode.CreateFrom); } if (content.Contains("SourceName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinitionPropertiesInternal)this).SourceName = (string) content.GetValueForProperty("SourceName",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinitionPropertiesInternal)this).SourceName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionPropertiesInternal)this).SourceName = (string) content.GetValueForProperty("SourceName",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionPropertiesInternal)this).SourceName, global::System.Convert.ToString); } if (content.Contains("SourceResourceId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinitionPropertiesInternal)this).SourceResourceId = (string) content.GetValueForProperty("SourceResourceId",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinitionPropertiesInternal)this).SourceResourceId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionPropertiesInternal)this).SourceResourceId = (string) content.GetValueForProperty("SourceResourceId",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionPropertiesInternal)this).SourceResourceId, global::System.Convert.ToString); } if (content.Contains("SourceSubpath")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinitionPropertiesInternal)this).SourceSubpath = (string) content.GetValueForProperty("SourceSubpath",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinitionPropertiesInternal)this).SourceSubpath, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionPropertiesInternal)this).SourceSubpath = (string) content.GetValueForProperty("SourceSubpath",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionPropertiesInternal)this).SourceSubpath, global::System.Convert.ToString); } if (content.Contains("TargetName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinitionPropertiesInternal)this).TargetName = (string) content.GetValueForProperty("TargetName",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinitionPropertiesInternal)this).TargetName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionPropertiesInternal)this).TargetName = (string) content.GetValueForProperty("TargetName",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionPropertiesInternal)this).TargetName, global::System.Convert.ToString); } if (content.Contains("TargetResourceId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinitionPropertiesInternal)this).TargetResourceId = (string) content.GetValueForProperty("TargetResourceId",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinitionPropertiesInternal)this).TargetResourceId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionPropertiesInternal)this).TargetResourceId = (string) content.GetValueForProperty("TargetResourceId",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionPropertiesInternal)this).TargetResourceId, global::System.Convert.ToString); } if (content.Contains("TargetSubpath")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinitionPropertiesInternal)this).TargetSubpath = (string) content.GetValueForProperty("TargetSubpath",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinitionPropertiesInternal)this).TargetSubpath, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionPropertiesInternal)this).TargetSubpath = (string) content.GetValueForProperty("TargetSubpath",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionPropertiesInternal)this).TargetSubpath, global::System.Convert.ToString); } if (content.Contains("LatestJobRunName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinitionPropertiesInternal)this).LatestJobRunName = (string) content.GetValueForProperty("LatestJobRunName",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinitionPropertiesInternal)this).LatestJobRunName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionPropertiesInternal)this).LatestJobRunName = (string) content.GetValueForProperty("LatestJobRunName",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionPropertiesInternal)this).LatestJobRunName, global::System.Convert.ToString); } if (content.Contains("LatestJobRunResourceId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinitionPropertiesInternal)this).LatestJobRunResourceId = (string) content.GetValueForProperty("LatestJobRunResourceId",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinitionPropertiesInternal)this).LatestJobRunResourceId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionPropertiesInternal)this).LatestJobRunResourceId = (string) content.GetValueForProperty("LatestJobRunResourceId",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionPropertiesInternal)this).LatestJobRunResourceId, global::System.Convert.ToString); } if (content.Contains("LatestJobRunStatus")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinitionPropertiesInternal)this).LatestJobRunStatus = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.JobRunStatus?) content.GetValueForProperty("LatestJobRunStatus",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinitionPropertiesInternal)this).LatestJobRunStatus, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.JobRunStatus.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionPropertiesInternal)this).LatestJobRunStatus = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.JobRunStatus?) content.GetValueForProperty("LatestJobRunStatus",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionPropertiesInternal)this).LatestJobRunStatus, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.JobRunStatus.CreateFrom); } if (content.Contains("AgentName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinitionPropertiesInternal)this).AgentName = (string) content.GetValueForProperty("AgentName",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinitionPropertiesInternal)this).AgentName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionPropertiesInternal)this).AgentName = (string) content.GetValueForProperty("AgentName",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionPropertiesInternal)this).AgentName, global::System.Convert.ToString); } if (content.Contains("AgentResourceId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinitionPropertiesInternal)this).AgentResourceId = (string) content.GetValueForProperty("AgentResourceId",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinitionPropertiesInternal)this).AgentResourceId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionPropertiesInternal)this).AgentResourceId = (string) content.GetValueForProperty("AgentResourceId",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionPropertiesInternal)this).AgentResourceId, global::System.Convert.ToString); } if (content.Contains("ProvisioningState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinitionPropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinitionPropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionPropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionPropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState.CreateFrom); + } + if (content.Contains("SourceTargetMapValue")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionPropertiesInternal)this).SourceTargetMapValue = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ISourceTargetMap[]) content.GetValueForProperty("SourceTargetMapValue",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionPropertiesInternal)this).SourceTargetMapValue, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.SourceTargetMapTypeConverter.ConvertFrom)); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -184,61 +196,73 @@ internal JobDefinitionProperties(global::System.Management.Automation.PSObject c return; } // actually deserialize + if (content.Contains("SourceTargetMap")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionPropertiesInternal)this).SourceTargetMap = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionPropertiesSourceTargetMap) content.GetValueForProperty("SourceTargetMap",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionPropertiesInternal)this).SourceTargetMap, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.JobDefinitionPropertiesSourceTargetMapTypeConverter.ConvertFrom); + } if (content.Contains("Description")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinitionPropertiesInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinitionPropertiesInternal)this).Description, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionPropertiesInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionPropertiesInternal)this).Description, global::System.Convert.ToString); + } + if (content.Contains("JobType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionPropertiesInternal)this).JobType = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.JobType?) content.GetValueForProperty("JobType",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionPropertiesInternal)this).JobType, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.JobType.CreateFrom); } if (content.Contains("CopyMode")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinitionPropertiesInternal)this).CopyMode = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.CopyMode) content.GetValueForProperty("CopyMode",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinitionPropertiesInternal)this).CopyMode, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.CopyMode.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionPropertiesInternal)this).CopyMode = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.CopyMode) content.GetValueForProperty("CopyMode",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionPropertiesInternal)this).CopyMode, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.CopyMode.CreateFrom); } if (content.Contains("SourceName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinitionPropertiesInternal)this).SourceName = (string) content.GetValueForProperty("SourceName",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinitionPropertiesInternal)this).SourceName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionPropertiesInternal)this).SourceName = (string) content.GetValueForProperty("SourceName",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionPropertiesInternal)this).SourceName, global::System.Convert.ToString); } if (content.Contains("SourceResourceId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinitionPropertiesInternal)this).SourceResourceId = (string) content.GetValueForProperty("SourceResourceId",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinitionPropertiesInternal)this).SourceResourceId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionPropertiesInternal)this).SourceResourceId = (string) content.GetValueForProperty("SourceResourceId",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionPropertiesInternal)this).SourceResourceId, global::System.Convert.ToString); } if (content.Contains("SourceSubpath")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinitionPropertiesInternal)this).SourceSubpath = (string) content.GetValueForProperty("SourceSubpath",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinitionPropertiesInternal)this).SourceSubpath, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionPropertiesInternal)this).SourceSubpath = (string) content.GetValueForProperty("SourceSubpath",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionPropertiesInternal)this).SourceSubpath, global::System.Convert.ToString); } if (content.Contains("TargetName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinitionPropertiesInternal)this).TargetName = (string) content.GetValueForProperty("TargetName",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinitionPropertiesInternal)this).TargetName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionPropertiesInternal)this).TargetName = (string) content.GetValueForProperty("TargetName",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionPropertiesInternal)this).TargetName, global::System.Convert.ToString); } if (content.Contains("TargetResourceId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinitionPropertiesInternal)this).TargetResourceId = (string) content.GetValueForProperty("TargetResourceId",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinitionPropertiesInternal)this).TargetResourceId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionPropertiesInternal)this).TargetResourceId = (string) content.GetValueForProperty("TargetResourceId",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionPropertiesInternal)this).TargetResourceId, global::System.Convert.ToString); } if (content.Contains("TargetSubpath")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinitionPropertiesInternal)this).TargetSubpath = (string) content.GetValueForProperty("TargetSubpath",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinitionPropertiesInternal)this).TargetSubpath, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionPropertiesInternal)this).TargetSubpath = (string) content.GetValueForProperty("TargetSubpath",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionPropertiesInternal)this).TargetSubpath, global::System.Convert.ToString); } if (content.Contains("LatestJobRunName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinitionPropertiesInternal)this).LatestJobRunName = (string) content.GetValueForProperty("LatestJobRunName",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinitionPropertiesInternal)this).LatestJobRunName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionPropertiesInternal)this).LatestJobRunName = (string) content.GetValueForProperty("LatestJobRunName",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionPropertiesInternal)this).LatestJobRunName, global::System.Convert.ToString); } if (content.Contains("LatestJobRunResourceId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinitionPropertiesInternal)this).LatestJobRunResourceId = (string) content.GetValueForProperty("LatestJobRunResourceId",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinitionPropertiesInternal)this).LatestJobRunResourceId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionPropertiesInternal)this).LatestJobRunResourceId = (string) content.GetValueForProperty("LatestJobRunResourceId",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionPropertiesInternal)this).LatestJobRunResourceId, global::System.Convert.ToString); } if (content.Contains("LatestJobRunStatus")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinitionPropertiesInternal)this).LatestJobRunStatus = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.JobRunStatus?) content.GetValueForProperty("LatestJobRunStatus",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinitionPropertiesInternal)this).LatestJobRunStatus, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.JobRunStatus.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionPropertiesInternal)this).LatestJobRunStatus = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.JobRunStatus?) content.GetValueForProperty("LatestJobRunStatus",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionPropertiesInternal)this).LatestJobRunStatus, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.JobRunStatus.CreateFrom); } if (content.Contains("AgentName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinitionPropertiesInternal)this).AgentName = (string) content.GetValueForProperty("AgentName",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinitionPropertiesInternal)this).AgentName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionPropertiesInternal)this).AgentName = (string) content.GetValueForProperty("AgentName",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionPropertiesInternal)this).AgentName, global::System.Convert.ToString); } if (content.Contains("AgentResourceId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinitionPropertiesInternal)this).AgentResourceId = (string) content.GetValueForProperty("AgentResourceId",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinitionPropertiesInternal)this).AgentResourceId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionPropertiesInternal)this).AgentResourceId = (string) content.GetValueForProperty("AgentResourceId",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionPropertiesInternal)this).AgentResourceId, global::System.Convert.ToString); } if (content.Contains("ProvisioningState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinitionPropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinitionPropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionPropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionPropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState.CreateFrom); + } + if (content.Contains("SourceTargetMapValue")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionPropertiesInternal)this).SourceTargetMapValue = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ISourceTargetMap[]) content.GetValueForProperty("SourceTargetMapValue",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionPropertiesInternal)this).SourceTargetMapValue, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.SourceTargetMapTypeConverter.ConvertFrom)); } AfterDeserializePSObject(content); } diff --git a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/JobDefinitionProperties.TypeConverter.cs b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/JobDefinitionProperties.TypeConverter.cs similarity index 98% rename from generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/JobDefinitionProperties.TypeConverter.cs rename to generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/JobDefinitionProperties.TypeConverter.cs index 86c98b951328..698eeebb9f28 100644 --- a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/JobDefinitionProperties.TypeConverter.cs +++ b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/JobDefinitionProperties.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701 { using Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinitionProperties ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionProperties ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinitionProperties).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionProperties).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/JobDefinitionProperties.cs b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/JobDefinitionProperties.cs similarity index 75% rename from generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/JobDefinitionProperties.cs rename to generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/JobDefinitionProperties.cs index 90d77638881c..1b324d2b0556 100644 --- a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/JobDefinitionProperties.cs +++ b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/JobDefinitionProperties.cs @@ -3,15 +3,15 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701 { using static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Extensions; /// Job definition properties. [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.DoNotFormat] public partial class JobDefinitionProperties : - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinitionProperties, - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinitionPropertiesInternal + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionProperties, + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionPropertiesInternal { /// Backing field for property. @@ -40,10 +40,20 @@ public partial class JobDefinitionProperties : /// Backing field for property. private string _description; - /// A description for the Job Definition. + /// + /// A description for the Job Definition. OnPremToCloud is for migrating data from on-premises to cloud. CloudToCloud is for + /// migrating data between cloud to cloud. + /// [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Owned)] public string Description { get => this._description; set => this._description = value; } + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.JobType? _jobType; + + /// The type of the Job. + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.JobType? JobType { get => this._jobType; set => this._jobType = value; } + /// Backing field for property. private string _latestJobRunName; @@ -68,25 +78,31 @@ public partial class JobDefinitionProperties : public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.JobRunStatus? LatestJobRunStatus { get => this._latestJobRunStatus; } /// Internal Acessors for AgentResourceId - string Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinitionPropertiesInternal.AgentResourceId { get => this._agentResourceId; set { {_agentResourceId = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionPropertiesInternal.AgentResourceId { get => this._agentResourceId; set { {_agentResourceId = value;} } } /// Internal Acessors for LatestJobRunName - string Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinitionPropertiesInternal.LatestJobRunName { get => this._latestJobRunName; set { {_latestJobRunName = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionPropertiesInternal.LatestJobRunName { get => this._latestJobRunName; set { {_latestJobRunName = value;} } } /// Internal Acessors for LatestJobRunResourceId - string Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinitionPropertiesInternal.LatestJobRunResourceId { get => this._latestJobRunResourceId; set { {_latestJobRunResourceId = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionPropertiesInternal.LatestJobRunResourceId { get => this._latestJobRunResourceId; set { {_latestJobRunResourceId = value;} } } /// Internal Acessors for LatestJobRunStatus - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.JobRunStatus? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinitionPropertiesInternal.LatestJobRunStatus { get => this._latestJobRunStatus; set { {_latestJobRunStatus = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.JobRunStatus? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionPropertiesInternal.LatestJobRunStatus { get => this._latestJobRunStatus; set { {_latestJobRunStatus = value;} } } /// Internal Acessors for ProvisioningState - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinitionPropertiesInternal.ProvisioningState { get => this._provisioningState; set { {_provisioningState = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionPropertiesInternal.ProvisioningState { get => this._provisioningState; set { {_provisioningState = value;} } } /// Internal Acessors for SourceResourceId - string Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinitionPropertiesInternal.SourceResourceId { get => this._sourceResourceId; set { {_sourceResourceId = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionPropertiesInternal.SourceResourceId { get => this._sourceResourceId; set { {_sourceResourceId = value;} } } + + /// Internal Acessors for SourceTargetMap + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionPropertiesSourceTargetMap Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionPropertiesInternal.SourceTargetMap { get => (this._sourceTargetMap = this._sourceTargetMap ?? new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.JobDefinitionPropertiesSourceTargetMap()); set { {_sourceTargetMap = value;} } } + + /// Internal Acessors for SourceTargetMapValue + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ISourceTargetMap[] Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionPropertiesInternal.SourceTargetMapValue { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionPropertiesSourceTargetMapInternal)SourceTargetMap).Value; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionPropertiesSourceTargetMapInternal)SourceTargetMap).Value = value; } /// Internal Acessors for TargetResourceId - string Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinitionPropertiesInternal.TargetResourceId { get => this._targetResourceId; set { {_targetResourceId = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionPropertiesInternal.TargetResourceId { get => this._targetResourceId; set { {_targetResourceId = value;} } } /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState? _provisioningState; @@ -116,6 +132,16 @@ public partial class JobDefinitionProperties : [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Owned)] public string SourceSubpath { get => this._sourceSubpath; set => this._sourceSubpath = value; } + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionPropertiesSourceTargetMap _sourceTargetMap; + + /// The list of cloud endpoints to migrate. + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionPropertiesSourceTargetMap SourceTargetMap { get => (this._sourceTargetMap = this._sourceTargetMap ?? new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.JobDefinitionPropertiesSourceTargetMap()); set => this._sourceTargetMap = value; } + + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ISourceTargetMap[] SourceTargetMapValue { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionPropertiesSourceTargetMapInternal)SourceTargetMap).Value; } + /// Backing field for property. private string _targetName; @@ -173,14 +199,25 @@ public partial interface IJobDefinitionProperties : SerializedName = @"copyMode", PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.CopyMode) })] Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.CopyMode CopyMode { get; set; } - /// A description for the Job Definition. + /// + /// A description for the Job Definition. OnPremToCloud is for migrating data from on-premises to cloud. CloudToCloud is for + /// migrating data between cloud to cloud. + /// [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Info( Required = false, ReadOnly = false, - Description = @"A description for the Job Definition.", + Description = @"A description for the Job Definition. OnPremToCloud is for migrating data from on-premises to cloud. CloudToCloud is for migrating data between cloud to cloud.", SerializedName = @"description", PossibleTypes = new [] { typeof(string) })] string Description { get; set; } + /// The type of the Job. + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The type of the Job.", + SerializedName = @"jobType", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.JobType) })] + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.JobType? JobType { get; set; } /// The name of the Job Run in a non-terminal state, if exists. [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Info( Required = false, @@ -239,6 +276,14 @@ public partial interface IJobDefinitionProperties : SerializedName = @"sourceSubpath", PossibleTypes = new [] { typeof(string) })] string SourceSubpath { get; set; } + + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"", + SerializedName = @"value", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ISourceTargetMap) })] + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ISourceTargetMap[] SourceTargetMapValue { get; } /// The name of the target Endpoint. [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Info( Required = true, @@ -277,8 +322,13 @@ internal partial interface IJobDefinitionPropertiesInternal string AgentResourceId { get; set; } /// Strategy to use for copy. Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.CopyMode CopyMode { get; set; } - /// A description for the Job Definition. + /// + /// A description for the Job Definition. OnPremToCloud is for migrating data from on-premises to cloud. CloudToCloud is for + /// migrating data between cloud to cloud. + /// string Description { get; set; } + /// The type of the Job. + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.JobType? JobType { get; set; } /// The name of the Job Run in a non-terminal state, if exists. string LatestJobRunName { get; set; } /// @@ -295,6 +345,10 @@ internal partial interface IJobDefinitionPropertiesInternal string SourceResourceId { get; set; } /// The subpath to use when reading from the source Endpoint. string SourceSubpath { get; set; } + /// The list of cloud endpoints to migrate. + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionPropertiesSourceTargetMap SourceTargetMap { get; set; } + + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ISourceTargetMap[] SourceTargetMapValue { get; set; } /// The name of the target Endpoint. string TargetName { get; set; } /// Fully qualified resource ID of the target Endpoint. diff --git a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/JobDefinitionProperties.json.cs b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/JobDefinitionProperties.json.cs similarity index 92% rename from generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/JobDefinitionProperties.json.cs rename to generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/JobDefinitionProperties.json.cs index b5dd41acd8b1..ffc2a90a97ba 100644 --- a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/JobDefinitionProperties.json.cs +++ b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/JobDefinitionProperties.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701 { using static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class JobDefinitionProperties partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinitionProperties. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionProperties. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinitionProperties. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionProperties. /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinitionProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject json ? new JobDefinitionProperties(json) : null; } @@ -77,7 +77,9 @@ internal JobDefinitionProperties(Microsoft.Azure.PowerShell.Cmdlets.StorageMover { return; } + {_sourceTargetMap = If( json?.PropertyT("sourceTargetMap"), out var __jsonSourceTargetMap) ? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.JobDefinitionPropertiesSourceTargetMap.FromJson(__jsonSourceTargetMap) : SourceTargetMap;} {_description = If( json?.PropertyT("description"), out var __jsonDescription) ? (string)__jsonDescription : (string)Description;} + {_jobType = If( json?.PropertyT("jobType"), out var __jsonJobType) ? (string)__jsonJobType : (string)JobType;} {_copyMode = If( json?.PropertyT("copyMode"), out var __jsonCopyMode) ? (string)__jsonCopyMode : (string)CopyMode;} {_sourceName = If( json?.PropertyT("sourceName"), out var __jsonSourceName) ? (string)__jsonSourceName : (string)SourceName;} {_sourceResourceId = If( json?.PropertyT("sourceResourceId"), out var __jsonSourceResourceId) ? (string)__jsonSourceResourceId : (string)SourceResourceId;} @@ -113,7 +115,9 @@ public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode ToJ { return container; } + AddIf( null != this._sourceTargetMap ? (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode) this._sourceTargetMap.ToJson(null,serializationMode) : null, "sourceTargetMap" ,container.Add ); AddIf( null != (((object)this._description)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonString(this._description.ToString()) : null, "description" ,container.Add ); + AddIf( null != (((object)this._jobType)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonString(this._jobType.ToString()) : null, "jobType" ,container.Add ); AddIf( null != (((object)this._copyMode)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonString(this._copyMode.ToString()) : null, "copyMode" ,container.Add ); AddIf( null != (((object)this._sourceName)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonString(this._sourceName.ToString()) : null, "sourceName" ,container.Add ); if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.SerializationMode.IncludeReadOnly)) diff --git a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/JobDefinitionPropertiesSourceTargetMap.PowerShell.cs b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/JobDefinitionPropertiesSourceTargetMap.PowerShell.cs new file mode 100644 index 000000000000..fa375113c124 --- /dev/null +++ b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/JobDefinitionPropertiesSourceTargetMap.PowerShell.cs @@ -0,0 +1,169 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701 +{ + using Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.PowerShell; + + /// The list of cloud endpoints to migrate. + [System.ComponentModel.TypeConverter(typeof(JobDefinitionPropertiesSourceTargetMapTypeConverter))] + public partial class JobDefinitionPropertiesSourceTargetMap + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// OverrideToString will be called if it is implemented. Implement this method in a partial class to enable this behavior + /// + /// /// instance serialized to a string, normally it is a Json + /// /// set returnNow to true if you provide a customized OverrideToString function + + partial void OverrideToString(ref string stringResult, ref bool returnNow); + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionPropertiesSourceTargetMap DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new JobDefinitionPropertiesSourceTargetMap(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionPropertiesSourceTargetMap DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new JobDefinitionPropertiesSourceTargetMap(content); + } + + /// + /// Creates a new instance of , deserializing the content from a json + /// string. + /// + /// a string containing a JSON serialized instance of this model. + /// + /// an instance of the model class. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionPropertiesSourceTargetMap FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal JobDefinitionPropertiesSourceTargetMap(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Value")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionPropertiesSourceTargetMapInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ISourceTargetMap[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionPropertiesSourceTargetMapInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.SourceTargetMapTypeConverter.ConvertFrom)); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal JobDefinitionPropertiesSourceTargetMap(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Value")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionPropertiesSourceTargetMapInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ISourceTargetMap[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionPropertiesSourceTargetMapInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.SourceTargetMapTypeConverter.ConvertFrom)); + } + AfterDeserializePSObject(content); + } + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.SerializationMode.IncludeAll)?.ToString(); + + public override string ToString() + { + var returnNow = false; + var result = global::System.String.Empty; + OverrideToString(ref result, ref returnNow); + if (returnNow) + { + return result; + } + return ToJsonString(); + } + } + /// The list of cloud endpoints to migrate. + [System.ComponentModel.TypeConverter(typeof(JobDefinitionPropertiesSourceTargetMapTypeConverter))] + public partial interface IJobDefinitionPropertiesSourceTargetMap + + { + + } +} \ No newline at end of file diff --git a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/JobDefinitionPropertiesSourceTargetMap.TypeConverter.cs b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/JobDefinitionPropertiesSourceTargetMap.TypeConverter.cs new file mode 100644 index 000000000000..8d8546de05f1 --- /dev/null +++ b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/JobDefinitionPropertiesSourceTargetMap.TypeConverter.cs @@ -0,0 +1,151 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701 +{ + using Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class JobDefinitionPropertiesSourceTargetMapTypeConverter : global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); + + /// + /// Determines if the converter can convert the parameter to the + /// type. + /// + /// the instance to check if it can be converted to the type. + /// + /// true if the instance could be converted to a type, otherwise + /// false + /// + public static bool CanConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return true; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + // we say yest to PSObjects + return true; + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + // we say yest to Hashtables/dictionaries + return true; + } + try + { + if (null != sourceValue.ToJsonString()) + { + return true; + } + } + catch + { + // Not one of our objects + } + try + { + string text = sourceValue.ToString()?.Trim(); + return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonType.Object; + } + catch + { + // Doesn't look like it can be treated as JSON + } + return false; + } + + /// + /// Determines if the parameter can be converted to the + /// parameter + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false + /// + public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; + + /// + /// Converts the parameter to the parameter using and + /// + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// + /// an instance of , or null if there is no suitable conversion. + /// + public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); + + /// + /// Converts the parameter into an instance of + /// + /// the value to convert into an instance of . + /// + /// an instance of , or null if there is no suitable conversion. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionPropertiesSourceTargetMap ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionPropertiesSourceTargetMap).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return JobDefinitionPropertiesSourceTargetMap.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return JobDefinitionPropertiesSourceTargetMap.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return JobDefinitionPropertiesSourceTargetMap.DeserializeFromDictionary(sourceValue); + } + return null; + } + + /// NotImplemented -- this will return null + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// will always return null. + public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; + } +} \ No newline at end of file diff --git a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/JobDefinitionPropertiesSourceTargetMap.cs b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/JobDefinitionPropertiesSourceTargetMap.cs new file mode 100644 index 000000000000..b024902a1e86 --- /dev/null +++ b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/JobDefinitionPropertiesSourceTargetMap.cs @@ -0,0 +1,52 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Extensions; + + /// The list of cloud endpoints to migrate. + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.DoNotFormat] + public partial class JobDefinitionPropertiesSourceTargetMap : + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionPropertiesSourceTargetMap, + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionPropertiesSourceTargetMapInternal + { + + /// Internal Acessors for Value + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ISourceTargetMap[] Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionPropertiesSourceTargetMapInternal.Value { get => this._value; set { {_value = value;} } } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ISourceTargetMap[] _value; + + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ISourceTargetMap[] Value { get => this._value; } + + /// Creates an new instance. + public JobDefinitionPropertiesSourceTargetMap() + { + + } + } + /// The list of cloud endpoints to migrate. + public partial interface IJobDefinitionPropertiesSourceTargetMap : + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IJsonSerializable + { + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"", + SerializedName = @"value", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ISourceTargetMap) })] + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ISourceTargetMap[] Value { get; } + + } + /// The list of cloud endpoints to migrate. + internal partial interface IJobDefinitionPropertiesSourceTargetMapInternal + + { + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ISourceTargetMap[] Value { get; set; } + + } +} \ No newline at end of file diff --git a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/JobDefinitionPropertiesSourceTargetMap.json.cs b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/JobDefinitionPropertiesSourceTargetMap.json.cs new file mode 100644 index 000000000000..6dc71fd1820e --- /dev/null +++ b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/JobDefinitionPropertiesSourceTargetMap.json.cs @@ -0,0 +1,120 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Extensions; + + /// The list of cloud endpoints to migrate. + public partial class JobDefinitionPropertiesSourceTargetMap + { + + /// + /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JsonNode that should be deserialized into this object. + + partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JSON container that the serialization result will be placed in. + + partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject container); + + /// + /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of + /// the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the + /// output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JsonNode that should be deserialized into this object. + /// Determines if the rest of the deserialization should be processed, or if the method should return + /// instantly. + + partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject json, ref bool returnNow); + + /// + /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the + /// object before it is serialized. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JSON container that the serialization result will be placed in. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionPropertiesSourceTargetMap. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionPropertiesSourceTargetMap. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionPropertiesSourceTargetMap FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject json ? new JobDefinitionPropertiesSourceTargetMap(json) : null; + } + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject instance to deserialize from. + internal JobDefinitionPropertiesSourceTargetMap(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ISourceTargetMap) (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.SourceTargetMap.FromJson(__u) )) ))() : null : Value;} + AfterFromJson(json); + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.SerializationMode.IncludeReadOnly)) + { + if (null != this._value) + { + var __w = new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.XNodeArray(); + foreach( var __x in this._value ) + { + AddIf(__x?.ToJson(null, serializationMode) ,__w.Add); + } + container.Add("value",__w); + } + } + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/JobDefinitionUpdateParameters.PowerShell.cs b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/JobDefinitionUpdateParameters.PowerShell.cs similarity index 85% rename from generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/JobDefinitionUpdateParameters.PowerShell.cs rename to generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/JobDefinitionUpdateParameters.PowerShell.cs index 19b49094106f..d255a51b06ea 100644 --- a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/JobDefinitionUpdateParameters.PowerShell.cs +++ b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/JobDefinitionUpdateParameters.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701 { using Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.PowerShell; @@ -63,29 +63,29 @@ public partial class JobDefinitionUpdateParameters partial void OverrideToString(ref string stringResult, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinitionUpdateParameters DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionUpdateParameters DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new JobDefinitionUpdateParameters(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinitionUpdateParameters DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionUpdateParameters DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new JobDefinitionUpdateParameters(content); } @@ -95,10 +95,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinitionUpdateParameters FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionUpdateParameters FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(jsonText)); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -113,25 +113,25 @@ internal JobDefinitionUpdateParameters(global::System.Collections.IDictionary co // actually deserialize if (content.Contains("Property")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinitionUpdateParametersInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinitionUpdateProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinitionUpdateParametersInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.JobDefinitionUpdatePropertiesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionUpdateParametersInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionUpdateProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionUpdateParametersInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.JobDefinitionUpdatePropertiesTypeConverter.ConvertFrom); } if (content.Contains("CopyMode")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinitionUpdateParametersInternal)this).CopyMode = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.CopyMode?) content.GetValueForProperty("CopyMode",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinitionUpdateParametersInternal)this).CopyMode, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.CopyMode.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionUpdateParametersInternal)this).CopyMode = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.CopyMode?) content.GetValueForProperty("CopyMode",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionUpdateParametersInternal)this).CopyMode, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.CopyMode.CreateFrom); } if (content.Contains("Description")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinitionUpdateParametersInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinitionUpdateParametersInternal)this).Description, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionUpdateParametersInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionUpdateParametersInternal)this).Description, global::System.Convert.ToString); } if (content.Contains("AgentName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinitionUpdateParametersInternal)this).AgentName = (string) content.GetValueForProperty("AgentName",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinitionUpdateParametersInternal)this).AgentName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionUpdateParametersInternal)this).AgentName = (string) content.GetValueForProperty("AgentName",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionUpdateParametersInternal)this).AgentName, global::System.Convert.ToString); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -146,19 +146,19 @@ internal JobDefinitionUpdateParameters(global::System.Management.Automation.PSOb // actually deserialize if (content.Contains("Property")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinitionUpdateParametersInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinitionUpdateProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinitionUpdateParametersInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.JobDefinitionUpdatePropertiesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionUpdateParametersInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionUpdateProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionUpdateParametersInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.JobDefinitionUpdatePropertiesTypeConverter.ConvertFrom); } if (content.Contains("CopyMode")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinitionUpdateParametersInternal)this).CopyMode = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.CopyMode?) content.GetValueForProperty("CopyMode",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinitionUpdateParametersInternal)this).CopyMode, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.CopyMode.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionUpdateParametersInternal)this).CopyMode = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.CopyMode?) content.GetValueForProperty("CopyMode",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionUpdateParametersInternal)this).CopyMode, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.CopyMode.CreateFrom); } if (content.Contains("Description")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinitionUpdateParametersInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinitionUpdateParametersInternal)this).Description, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionUpdateParametersInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionUpdateParametersInternal)this).Description, global::System.Convert.ToString); } if (content.Contains("AgentName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinitionUpdateParametersInternal)this).AgentName = (string) content.GetValueForProperty("AgentName",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinitionUpdateParametersInternal)this).AgentName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionUpdateParametersInternal)this).AgentName = (string) content.GetValueForProperty("AgentName",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionUpdateParametersInternal)this).AgentName, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/JobDefinitionUpdateParameters.TypeConverter.cs b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/JobDefinitionUpdateParameters.TypeConverter.cs similarity index 98% rename from generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/JobDefinitionUpdateParameters.TypeConverter.cs rename to generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/JobDefinitionUpdateParameters.TypeConverter.cs index 5097d918d949..5e53d6cecc19 100644 --- a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/JobDefinitionUpdateParameters.TypeConverter.cs +++ b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/JobDefinitionUpdateParameters.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701 { using Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinitionUpdateParameters ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionUpdateParameters ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinitionUpdateParameters).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionUpdateParameters).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/JobDefinitionUpdateParameters.cs b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/JobDefinitionUpdateParameters.cs similarity index 84% rename from generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/JobDefinitionUpdateParameters.cs rename to generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/JobDefinitionUpdateParameters.cs index 131875fd361e..4e7ad081f8df 100644 --- a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/JobDefinitionUpdateParameters.cs +++ b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/JobDefinitionUpdateParameters.cs @@ -3,38 +3,38 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701 { using static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Extensions; /// The Job Definition resource. [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.DoNotFormat] public partial class JobDefinitionUpdateParameters : - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinitionUpdateParameters, - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinitionUpdateParametersInternal + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionUpdateParameters, + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionUpdateParametersInternal { /// Name of the Agent to assign for new Job Runs of this Job Definition. [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inlined)] - public string AgentName { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinitionUpdatePropertiesInternal)Property).AgentName; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinitionUpdatePropertiesInternal)Property).AgentName = value ?? null; } + public string AgentName { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionUpdatePropertiesInternal)Property).AgentName; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionUpdatePropertiesInternal)Property).AgentName = value ?? null; } /// Strategy to use for copy. [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.CopyMode? CopyMode { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinitionUpdatePropertiesInternal)Property).CopyMode; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinitionUpdatePropertiesInternal)Property).CopyMode = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.CopyMode)""); } + public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.CopyMode? CopyMode { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionUpdatePropertiesInternal)Property).CopyMode; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionUpdatePropertiesInternal)Property).CopyMode = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.CopyMode)""); } /// A description for the Job Definition. [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inlined)] - public string Description { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinitionUpdatePropertiesInternal)Property).Description; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinitionUpdatePropertiesInternal)Property).Description = value ?? null; } + public string Description { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionUpdatePropertiesInternal)Property).Description; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionUpdatePropertiesInternal)Property).Description = value ?? null; } /// Internal Acessors for Property - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinitionUpdateProperties Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinitionUpdateParametersInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.JobDefinitionUpdateProperties()); set { {_property = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionUpdateProperties Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionUpdateParametersInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.JobDefinitionUpdateProperties()); set { {_property = value;} } } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinitionUpdateProperties _property; + private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionUpdateProperties _property; /// Job definition properties. [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinitionUpdateProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.JobDefinitionUpdateProperties()); set => this._property = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionUpdateProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.JobDefinitionUpdateProperties()); set => this._property = value; } /// Creates an new instance. public JobDefinitionUpdateParameters() @@ -83,7 +83,7 @@ internal partial interface IJobDefinitionUpdateParametersInternal /// A description for the Job Definition. string Description { get; set; } /// Job definition properties. - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinitionUpdateProperties Property { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionUpdateProperties Property { get; set; } } } \ No newline at end of file diff --git a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/JobDefinitionUpdateParameters.json.cs b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/JobDefinitionUpdateParameters.json.cs similarity index 96% rename from generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/JobDefinitionUpdateParameters.json.cs rename to generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/JobDefinitionUpdateParameters.json.cs index 650153684615..93d3f9557424 100644 --- a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/JobDefinitionUpdateParameters.json.cs +++ b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/JobDefinitionUpdateParameters.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701 { using static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class JobDefinitionUpdateParameters partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinitionUpdateParameters. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionUpdateParameters. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinitionUpdateParameters. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionUpdateParameters. /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinitionUpdateParameters FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionUpdateParameters FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject json ? new JobDefinitionUpdateParameters(json) : null; } @@ -77,7 +77,7 @@ internal JobDefinitionUpdateParameters(Microsoft.Azure.PowerShell.Cmdlets.Storag { return; } - {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.JobDefinitionUpdateProperties.FromJson(__jsonProperties) : Property;} + {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.JobDefinitionUpdateProperties.FromJson(__jsonProperties) : Property;} AfterFromJson(json); } diff --git a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/JobDefinitionUpdateProperties.PowerShell.cs b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/JobDefinitionUpdateProperties.PowerShell.cs similarity index 88% rename from generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/JobDefinitionUpdateProperties.PowerShell.cs rename to generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/JobDefinitionUpdateProperties.PowerShell.cs index 5f171a923c8b..32520e61ecf8 100644 --- a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/JobDefinitionUpdateProperties.PowerShell.cs +++ b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/JobDefinitionUpdateProperties.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701 { using Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.PowerShell; @@ -63,29 +63,29 @@ public partial class JobDefinitionUpdateProperties partial void OverrideToString(ref string stringResult, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinitionUpdateProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionUpdateProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new JobDefinitionUpdateProperties(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinitionUpdateProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionUpdateProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new JobDefinitionUpdateProperties(content); } @@ -95,10 +95,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinitionUpdateProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionUpdateProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(jsonText)); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -113,21 +113,21 @@ internal JobDefinitionUpdateProperties(global::System.Collections.IDictionary co // actually deserialize if (content.Contains("Description")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinitionUpdatePropertiesInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinitionUpdatePropertiesInternal)this).Description, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionUpdatePropertiesInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionUpdatePropertiesInternal)this).Description, global::System.Convert.ToString); } if (content.Contains("CopyMode")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinitionUpdatePropertiesInternal)this).CopyMode = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.CopyMode?) content.GetValueForProperty("CopyMode",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinitionUpdatePropertiesInternal)this).CopyMode, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.CopyMode.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionUpdatePropertiesInternal)this).CopyMode = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.CopyMode?) content.GetValueForProperty("CopyMode",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionUpdatePropertiesInternal)this).CopyMode, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.CopyMode.CreateFrom); } if (content.Contains("AgentName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinitionUpdatePropertiesInternal)this).AgentName = (string) content.GetValueForProperty("AgentName",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinitionUpdatePropertiesInternal)this).AgentName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionUpdatePropertiesInternal)this).AgentName = (string) content.GetValueForProperty("AgentName",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionUpdatePropertiesInternal)this).AgentName, global::System.Convert.ToString); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -142,15 +142,15 @@ internal JobDefinitionUpdateProperties(global::System.Management.Automation.PSOb // actually deserialize if (content.Contains("Description")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinitionUpdatePropertiesInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinitionUpdatePropertiesInternal)this).Description, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionUpdatePropertiesInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionUpdatePropertiesInternal)this).Description, global::System.Convert.ToString); } if (content.Contains("CopyMode")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinitionUpdatePropertiesInternal)this).CopyMode = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.CopyMode?) content.GetValueForProperty("CopyMode",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinitionUpdatePropertiesInternal)this).CopyMode, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.CopyMode.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionUpdatePropertiesInternal)this).CopyMode = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.CopyMode?) content.GetValueForProperty("CopyMode",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionUpdatePropertiesInternal)this).CopyMode, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.CopyMode.CreateFrom); } if (content.Contains("AgentName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinitionUpdatePropertiesInternal)this).AgentName = (string) content.GetValueForProperty("AgentName",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinitionUpdatePropertiesInternal)this).AgentName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionUpdatePropertiesInternal)this).AgentName = (string) content.GetValueForProperty("AgentName",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionUpdatePropertiesInternal)this).AgentName, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/JobDefinitionUpdateProperties.TypeConverter.cs b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/JobDefinitionUpdateProperties.TypeConverter.cs similarity index 98% rename from generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/JobDefinitionUpdateProperties.TypeConverter.cs rename to generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/JobDefinitionUpdateProperties.TypeConverter.cs index b8c5efc22460..79649008c64c 100644 --- a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/JobDefinitionUpdateProperties.TypeConverter.cs +++ b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/JobDefinitionUpdateProperties.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701 { using Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinitionUpdateProperties ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionUpdateProperties ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinitionUpdateProperties).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionUpdateProperties).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/JobDefinitionUpdateProperties.cs b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/JobDefinitionUpdateProperties.cs similarity index 97% rename from generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/JobDefinitionUpdateProperties.cs rename to generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/JobDefinitionUpdateProperties.cs index 5cc927cb6d6a..d0ee0ef6e102 100644 --- a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/JobDefinitionUpdateProperties.cs +++ b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/JobDefinitionUpdateProperties.cs @@ -3,15 +3,15 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701 { using static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Extensions; /// Job definition properties. [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.DoNotFormat] public partial class JobDefinitionUpdateProperties : - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinitionUpdateProperties, - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinitionUpdatePropertiesInternal + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionUpdateProperties, + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionUpdatePropertiesInternal { /// Backing field for property. diff --git a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/JobDefinitionUpdateProperties.json.cs b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/JobDefinitionUpdateProperties.json.cs similarity index 97% rename from generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/JobDefinitionUpdateProperties.json.cs rename to generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/JobDefinitionUpdateProperties.json.cs index 62e73ab73be6..a39766fe7e68 100644 --- a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/JobDefinitionUpdateProperties.json.cs +++ b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/JobDefinitionUpdateProperties.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701 { using static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class JobDefinitionUpdateProperties partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinitionUpdateProperties. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionUpdateProperties. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinitionUpdateProperties. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionUpdateProperties. /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinitionUpdateProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionUpdateProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject json ? new JobDefinitionUpdateProperties(json) : null; } diff --git a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/JobRun.PowerShell.cs b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/JobRun.PowerShell.cs similarity index 80% rename from generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/JobRun.PowerShell.cs rename to generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/JobRun.PowerShell.cs index 3dbe1a81f6ca..cd5637b425a2 100644 --- a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/JobRun.PowerShell.cs +++ b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/JobRun.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701 { using Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.PowerShell; @@ -63,27 +63,27 @@ public partial class JobRun partial void OverrideToString(ref string stringResult, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRun DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRun DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new JobRun(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRun DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRun DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new JobRun(content); } @@ -93,10 +93,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRun FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRun FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(jsonText)); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -111,7 +111,7 @@ internal JobRun(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("Property")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.JobRunPropertiesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.JobRunPropertiesTypeConverter.ConvertFrom); } if (content.Contains("SystemDataCreatedBy")) { @@ -155,133 +155,133 @@ internal JobRun(global::System.Collections.IDictionary content) } if (content.Contains("ProvisioningState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState.CreateFrom); } if (content.Contains("Error")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunError) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunInternal)this).Error, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.JobRunErrorTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunError) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunInternal)this).Error, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.JobRunErrorTypeConverter.ConvertFrom); } if (content.Contains("Status")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunInternal)this).Status = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.JobRunStatus?) content.GetValueForProperty("Status",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunInternal)this).Status, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.JobRunStatus.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunInternal)this).Status = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.JobRunStatus?) content.GetValueForProperty("Status",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunInternal)this).Status, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.JobRunStatus.CreateFrom); } if (content.Contains("ScanStatus")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunInternal)this).ScanStatus = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.JobRunScanStatus?) content.GetValueForProperty("ScanStatus",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunInternal)this).ScanStatus, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.JobRunScanStatus.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunInternal)this).ScanStatus = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.JobRunScanStatus?) content.GetValueForProperty("ScanStatus",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunInternal)this).ScanStatus, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.JobRunScanStatus.CreateFrom); } if (content.Contains("AgentName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunInternal)this).AgentName = (string) content.GetValueForProperty("AgentName",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunInternal)this).AgentName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunInternal)this).AgentName = (string) content.GetValueForProperty("AgentName",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunInternal)this).AgentName, global::System.Convert.ToString); } if (content.Contains("AgentResourceId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunInternal)this).AgentResourceId = (string) content.GetValueForProperty("AgentResourceId",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunInternal)this).AgentResourceId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunInternal)this).AgentResourceId = (string) content.GetValueForProperty("AgentResourceId",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunInternal)this).AgentResourceId, global::System.Convert.ToString); } if (content.Contains("ExecutionStartTime")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunInternal)this).ExecutionStartTime = (global::System.DateTime?) content.GetValueForProperty("ExecutionStartTime",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunInternal)this).ExecutionStartTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunInternal)this).ExecutionStartTime = (global::System.DateTime?) content.GetValueForProperty("ExecutionStartTime",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunInternal)this).ExecutionStartTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("ExecutionEndTime")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunInternal)this).ExecutionEndTime = (global::System.DateTime?) content.GetValueForProperty("ExecutionEndTime",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunInternal)this).ExecutionEndTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunInternal)this).ExecutionEndTime = (global::System.DateTime?) content.GetValueForProperty("ExecutionEndTime",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunInternal)this).ExecutionEndTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("LastStatusUpdate")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunInternal)this).LastStatusUpdate = (global::System.DateTime?) content.GetValueForProperty("LastStatusUpdate",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunInternal)this).LastStatusUpdate, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunInternal)this).LastStatusUpdate = (global::System.DateTime?) content.GetValueForProperty("LastStatusUpdate",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunInternal)this).LastStatusUpdate, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("ItemsScanned")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunInternal)this).ItemsScanned = (long?) content.GetValueForProperty("ItemsScanned",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunInternal)this).ItemsScanned, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunInternal)this).ItemsScanned = (long?) content.GetValueForProperty("ItemsScanned",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunInternal)this).ItemsScanned, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("ItemsExcluded")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunInternal)this).ItemsExcluded = (long?) content.GetValueForProperty("ItemsExcluded",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunInternal)this).ItemsExcluded, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunInternal)this).ItemsExcluded = (long?) content.GetValueForProperty("ItemsExcluded",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunInternal)this).ItemsExcluded, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("ItemsUnsupported")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunInternal)this).ItemsUnsupported = (long?) content.GetValueForProperty("ItemsUnsupported",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunInternal)this).ItemsUnsupported, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunInternal)this).ItemsUnsupported = (long?) content.GetValueForProperty("ItemsUnsupported",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunInternal)this).ItemsUnsupported, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("ItemsNoTransferNeeded")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunInternal)this).ItemsNoTransferNeeded = (long?) content.GetValueForProperty("ItemsNoTransferNeeded",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunInternal)this).ItemsNoTransferNeeded, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunInternal)this).ItemsNoTransferNeeded = (long?) content.GetValueForProperty("ItemsNoTransferNeeded",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunInternal)this).ItemsNoTransferNeeded, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("ItemsFailed")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunInternal)this).ItemsFailed = (long?) content.GetValueForProperty("ItemsFailed",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunInternal)this).ItemsFailed, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunInternal)this).ItemsFailed = (long?) content.GetValueForProperty("ItemsFailed",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunInternal)this).ItemsFailed, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("ItemsTransferred")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunInternal)this).ItemsTransferred = (long?) content.GetValueForProperty("ItemsTransferred",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunInternal)this).ItemsTransferred, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunInternal)this).ItemsTransferred = (long?) content.GetValueForProperty("ItemsTransferred",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunInternal)this).ItemsTransferred, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("BytesScanned")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunInternal)this).BytesScanned = (long?) content.GetValueForProperty("BytesScanned",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunInternal)this).BytesScanned, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunInternal)this).BytesScanned = (long?) content.GetValueForProperty("BytesScanned",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunInternal)this).BytesScanned, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("BytesExcluded")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunInternal)this).BytesExcluded = (long?) content.GetValueForProperty("BytesExcluded",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunInternal)this).BytesExcluded, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunInternal)this).BytesExcluded = (long?) content.GetValueForProperty("BytesExcluded",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunInternal)this).BytesExcluded, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("BytesUnsupported")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunInternal)this).BytesUnsupported = (long?) content.GetValueForProperty("BytesUnsupported",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunInternal)this).BytesUnsupported, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunInternal)this).BytesUnsupported = (long?) content.GetValueForProperty("BytesUnsupported",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunInternal)this).BytesUnsupported, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("BytesNoTransferNeeded")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunInternal)this).BytesNoTransferNeeded = (long?) content.GetValueForProperty("BytesNoTransferNeeded",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunInternal)this).BytesNoTransferNeeded, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunInternal)this).BytesNoTransferNeeded = (long?) content.GetValueForProperty("BytesNoTransferNeeded",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunInternal)this).BytesNoTransferNeeded, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("BytesFailed")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunInternal)this).BytesFailed = (long?) content.GetValueForProperty("BytesFailed",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunInternal)this).BytesFailed, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunInternal)this).BytesFailed = (long?) content.GetValueForProperty("BytesFailed",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunInternal)this).BytesFailed, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("BytesTransferred")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunInternal)this).BytesTransferred = (long?) content.GetValueForProperty("BytesTransferred",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunInternal)this).BytesTransferred, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunInternal)this).BytesTransferred = (long?) content.GetValueForProperty("BytesTransferred",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunInternal)this).BytesTransferred, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("SourceName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunInternal)this).SourceName = (string) content.GetValueForProperty("SourceName",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunInternal)this).SourceName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunInternal)this).SourceName = (string) content.GetValueForProperty("SourceName",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunInternal)this).SourceName, global::System.Convert.ToString); } if (content.Contains("SourceResourceId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunInternal)this).SourceResourceId = (string) content.GetValueForProperty("SourceResourceId",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunInternal)this).SourceResourceId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunInternal)this).SourceResourceId = (string) content.GetValueForProperty("SourceResourceId",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunInternal)this).SourceResourceId, global::System.Convert.ToString); } if (content.Contains("SourceProperty")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunInternal)this).SourceProperty = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.IAny) content.GetValueForProperty("SourceProperty",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunInternal)this).SourceProperty, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.AnyTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunInternal)this).SourceProperty = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.IAny) content.GetValueForProperty("SourceProperty",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunInternal)this).SourceProperty, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.AnyTypeConverter.ConvertFrom); } if (content.Contains("TargetName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunInternal)this).TargetName = (string) content.GetValueForProperty("TargetName",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunInternal)this).TargetName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunInternal)this).TargetName = (string) content.GetValueForProperty("TargetName",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunInternal)this).TargetName, global::System.Convert.ToString); } if (content.Contains("TargetResourceId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunInternal)this).TargetResourceId = (string) content.GetValueForProperty("TargetResourceId",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunInternal)this).TargetResourceId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunInternal)this).TargetResourceId = (string) content.GetValueForProperty("TargetResourceId",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunInternal)this).TargetResourceId, global::System.Convert.ToString); } if (content.Contains("TargetProperty")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunInternal)this).TargetProperty = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.IAny) content.GetValueForProperty("TargetProperty",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunInternal)this).TargetProperty, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.AnyTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunInternal)this).TargetProperty = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.IAny) content.GetValueForProperty("TargetProperty",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunInternal)this).TargetProperty, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.AnyTypeConverter.ConvertFrom); } if (content.Contains("JobDefinitionProperty")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunInternal)this).JobDefinitionProperty = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.IAny) content.GetValueForProperty("JobDefinitionProperty",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunInternal)this).JobDefinitionProperty, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.AnyTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunInternal)this).JobDefinitionProperty = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.IAny) content.GetValueForProperty("JobDefinitionProperty",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunInternal)this).JobDefinitionProperty, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.AnyTypeConverter.ConvertFrom); } if (content.Contains("ErrorCode")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunInternal)this).ErrorCode = (string) content.GetValueForProperty("ErrorCode",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunInternal)this).ErrorCode, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunInternal)this).ErrorCode = (string) content.GetValueForProperty("ErrorCode",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunInternal)this).ErrorCode, global::System.Convert.ToString); } if (content.Contains("ErrorMessage")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunInternal)this).ErrorMessage = (string) content.GetValueForProperty("ErrorMessage",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunInternal)this).ErrorMessage, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunInternal)this).ErrorMessage = (string) content.GetValueForProperty("ErrorMessage",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunInternal)this).ErrorMessage, global::System.Convert.ToString); } if (content.Contains("Target")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunInternal)this).Target, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunInternal)this).Target, global::System.Convert.ToString); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -296,7 +296,7 @@ internal JobRun(global::System.Management.Automation.PSObject content) // actually deserialize if (content.Contains("Property")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.JobRunPropertiesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.JobRunPropertiesTypeConverter.ConvertFrom); } if (content.Contains("SystemDataCreatedBy")) { @@ -340,127 +340,127 @@ internal JobRun(global::System.Management.Automation.PSObject content) } if (content.Contains("ProvisioningState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState.CreateFrom); } if (content.Contains("Error")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunError) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunInternal)this).Error, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.JobRunErrorTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunError) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunInternal)this).Error, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.JobRunErrorTypeConverter.ConvertFrom); } if (content.Contains("Status")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunInternal)this).Status = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.JobRunStatus?) content.GetValueForProperty("Status",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunInternal)this).Status, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.JobRunStatus.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunInternal)this).Status = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.JobRunStatus?) content.GetValueForProperty("Status",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunInternal)this).Status, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.JobRunStatus.CreateFrom); } if (content.Contains("ScanStatus")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunInternal)this).ScanStatus = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.JobRunScanStatus?) content.GetValueForProperty("ScanStatus",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunInternal)this).ScanStatus, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.JobRunScanStatus.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunInternal)this).ScanStatus = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.JobRunScanStatus?) content.GetValueForProperty("ScanStatus",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunInternal)this).ScanStatus, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.JobRunScanStatus.CreateFrom); } if (content.Contains("AgentName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunInternal)this).AgentName = (string) content.GetValueForProperty("AgentName",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunInternal)this).AgentName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunInternal)this).AgentName = (string) content.GetValueForProperty("AgentName",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunInternal)this).AgentName, global::System.Convert.ToString); } if (content.Contains("AgentResourceId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunInternal)this).AgentResourceId = (string) content.GetValueForProperty("AgentResourceId",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunInternal)this).AgentResourceId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunInternal)this).AgentResourceId = (string) content.GetValueForProperty("AgentResourceId",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunInternal)this).AgentResourceId, global::System.Convert.ToString); } if (content.Contains("ExecutionStartTime")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunInternal)this).ExecutionStartTime = (global::System.DateTime?) content.GetValueForProperty("ExecutionStartTime",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunInternal)this).ExecutionStartTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunInternal)this).ExecutionStartTime = (global::System.DateTime?) content.GetValueForProperty("ExecutionStartTime",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunInternal)this).ExecutionStartTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("ExecutionEndTime")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunInternal)this).ExecutionEndTime = (global::System.DateTime?) content.GetValueForProperty("ExecutionEndTime",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunInternal)this).ExecutionEndTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunInternal)this).ExecutionEndTime = (global::System.DateTime?) content.GetValueForProperty("ExecutionEndTime",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunInternal)this).ExecutionEndTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("LastStatusUpdate")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunInternal)this).LastStatusUpdate = (global::System.DateTime?) content.GetValueForProperty("LastStatusUpdate",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunInternal)this).LastStatusUpdate, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunInternal)this).LastStatusUpdate = (global::System.DateTime?) content.GetValueForProperty("LastStatusUpdate",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunInternal)this).LastStatusUpdate, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("ItemsScanned")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunInternal)this).ItemsScanned = (long?) content.GetValueForProperty("ItemsScanned",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunInternal)this).ItemsScanned, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunInternal)this).ItemsScanned = (long?) content.GetValueForProperty("ItemsScanned",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunInternal)this).ItemsScanned, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("ItemsExcluded")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunInternal)this).ItemsExcluded = (long?) content.GetValueForProperty("ItemsExcluded",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunInternal)this).ItemsExcluded, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunInternal)this).ItemsExcluded = (long?) content.GetValueForProperty("ItemsExcluded",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunInternal)this).ItemsExcluded, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("ItemsUnsupported")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunInternal)this).ItemsUnsupported = (long?) content.GetValueForProperty("ItemsUnsupported",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunInternal)this).ItemsUnsupported, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunInternal)this).ItemsUnsupported = (long?) content.GetValueForProperty("ItemsUnsupported",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunInternal)this).ItemsUnsupported, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("ItemsNoTransferNeeded")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunInternal)this).ItemsNoTransferNeeded = (long?) content.GetValueForProperty("ItemsNoTransferNeeded",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunInternal)this).ItemsNoTransferNeeded, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunInternal)this).ItemsNoTransferNeeded = (long?) content.GetValueForProperty("ItemsNoTransferNeeded",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunInternal)this).ItemsNoTransferNeeded, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("ItemsFailed")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunInternal)this).ItemsFailed = (long?) content.GetValueForProperty("ItemsFailed",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunInternal)this).ItemsFailed, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunInternal)this).ItemsFailed = (long?) content.GetValueForProperty("ItemsFailed",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunInternal)this).ItemsFailed, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("ItemsTransferred")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunInternal)this).ItemsTransferred = (long?) content.GetValueForProperty("ItemsTransferred",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunInternal)this).ItemsTransferred, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunInternal)this).ItemsTransferred = (long?) content.GetValueForProperty("ItemsTransferred",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunInternal)this).ItemsTransferred, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("BytesScanned")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunInternal)this).BytesScanned = (long?) content.GetValueForProperty("BytesScanned",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunInternal)this).BytesScanned, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunInternal)this).BytesScanned = (long?) content.GetValueForProperty("BytesScanned",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunInternal)this).BytesScanned, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("BytesExcluded")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunInternal)this).BytesExcluded = (long?) content.GetValueForProperty("BytesExcluded",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunInternal)this).BytesExcluded, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunInternal)this).BytesExcluded = (long?) content.GetValueForProperty("BytesExcluded",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunInternal)this).BytesExcluded, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("BytesUnsupported")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunInternal)this).BytesUnsupported = (long?) content.GetValueForProperty("BytesUnsupported",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunInternal)this).BytesUnsupported, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunInternal)this).BytesUnsupported = (long?) content.GetValueForProperty("BytesUnsupported",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunInternal)this).BytesUnsupported, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("BytesNoTransferNeeded")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunInternal)this).BytesNoTransferNeeded = (long?) content.GetValueForProperty("BytesNoTransferNeeded",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunInternal)this).BytesNoTransferNeeded, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunInternal)this).BytesNoTransferNeeded = (long?) content.GetValueForProperty("BytesNoTransferNeeded",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunInternal)this).BytesNoTransferNeeded, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("BytesFailed")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunInternal)this).BytesFailed = (long?) content.GetValueForProperty("BytesFailed",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunInternal)this).BytesFailed, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunInternal)this).BytesFailed = (long?) content.GetValueForProperty("BytesFailed",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunInternal)this).BytesFailed, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("BytesTransferred")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunInternal)this).BytesTransferred = (long?) content.GetValueForProperty("BytesTransferred",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunInternal)this).BytesTransferred, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunInternal)this).BytesTransferred = (long?) content.GetValueForProperty("BytesTransferred",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunInternal)this).BytesTransferred, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("SourceName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunInternal)this).SourceName = (string) content.GetValueForProperty("SourceName",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunInternal)this).SourceName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunInternal)this).SourceName = (string) content.GetValueForProperty("SourceName",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunInternal)this).SourceName, global::System.Convert.ToString); } if (content.Contains("SourceResourceId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunInternal)this).SourceResourceId = (string) content.GetValueForProperty("SourceResourceId",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunInternal)this).SourceResourceId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunInternal)this).SourceResourceId = (string) content.GetValueForProperty("SourceResourceId",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunInternal)this).SourceResourceId, global::System.Convert.ToString); } if (content.Contains("SourceProperty")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunInternal)this).SourceProperty = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.IAny) content.GetValueForProperty("SourceProperty",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunInternal)this).SourceProperty, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.AnyTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunInternal)this).SourceProperty = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.IAny) content.GetValueForProperty("SourceProperty",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunInternal)this).SourceProperty, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.AnyTypeConverter.ConvertFrom); } if (content.Contains("TargetName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunInternal)this).TargetName = (string) content.GetValueForProperty("TargetName",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunInternal)this).TargetName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunInternal)this).TargetName = (string) content.GetValueForProperty("TargetName",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunInternal)this).TargetName, global::System.Convert.ToString); } if (content.Contains("TargetResourceId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunInternal)this).TargetResourceId = (string) content.GetValueForProperty("TargetResourceId",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunInternal)this).TargetResourceId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunInternal)this).TargetResourceId = (string) content.GetValueForProperty("TargetResourceId",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunInternal)this).TargetResourceId, global::System.Convert.ToString); } if (content.Contains("TargetProperty")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunInternal)this).TargetProperty = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.IAny) content.GetValueForProperty("TargetProperty",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunInternal)this).TargetProperty, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.AnyTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunInternal)this).TargetProperty = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.IAny) content.GetValueForProperty("TargetProperty",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunInternal)this).TargetProperty, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.AnyTypeConverter.ConvertFrom); } if (content.Contains("JobDefinitionProperty")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunInternal)this).JobDefinitionProperty = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.IAny) content.GetValueForProperty("JobDefinitionProperty",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunInternal)this).JobDefinitionProperty, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.AnyTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunInternal)this).JobDefinitionProperty = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.IAny) content.GetValueForProperty("JobDefinitionProperty",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunInternal)this).JobDefinitionProperty, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.AnyTypeConverter.ConvertFrom); } if (content.Contains("ErrorCode")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunInternal)this).ErrorCode = (string) content.GetValueForProperty("ErrorCode",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunInternal)this).ErrorCode, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunInternal)this).ErrorCode = (string) content.GetValueForProperty("ErrorCode",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunInternal)this).ErrorCode, global::System.Convert.ToString); } if (content.Contains("ErrorMessage")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunInternal)this).ErrorMessage = (string) content.GetValueForProperty("ErrorMessage",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunInternal)this).ErrorMessage, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunInternal)this).ErrorMessage = (string) content.GetValueForProperty("ErrorMessage",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunInternal)this).ErrorMessage, global::System.Convert.ToString); } if (content.Contains("Target")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunInternal)this).Target, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunInternal)this).Target, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/JobRun.TypeConverter.cs b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/JobRun.TypeConverter.cs similarity index 98% rename from generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/JobRun.TypeConverter.cs rename to generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/JobRun.TypeConverter.cs index 68846051b760..4ef0509fb79e 100644 --- a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/JobRun.TypeConverter.cs +++ b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/JobRun.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701 { using Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.PowerShell; @@ -105,14 +105,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRun ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRun ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRun).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRun).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/JobRun.cs b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/JobRun.cs similarity index 85% rename from generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/JobRun.cs rename to generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/JobRun.cs index f91ac04fee60..c13692313f51 100644 --- a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/JobRun.cs +++ b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/JobRun.cs @@ -3,15 +3,15 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701 { using static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Extensions; /// The Job Run resource. [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.DoNotFormat] public partial class JobRun : - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRun, - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunInternal, + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRun, + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunInternal, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IValidates { /// @@ -22,55 +22,55 @@ public partial class JobRun : /// Name of the Agent assigned to this run. [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inlined)] - public string AgentName { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunPropertiesInternal)Property).AgentName; } + public string AgentName { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunPropertiesInternal)Property).AgentName; } /// Fully qualified resource id of the Agent assigned to this run. [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inlined)] - public string AgentResourceId { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunPropertiesInternal)Property).AgentResourceId; } + public string AgentResourceId { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunPropertiesInternal)Property).AgentResourceId; } /// /// Bytes of data that will not be transferred, as they are excluded by user configuration. /// [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inlined)] - public long? BytesExcluded { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunPropertiesInternal)Property).BytesExcluded; } + public long? BytesExcluded { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunPropertiesInternal)Property).BytesExcluded; } /// Bytes of data that were attempted to transfer and failed. [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inlined)] - public long? BytesFailed { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunPropertiesInternal)Property).BytesFailed; } + public long? BytesFailed { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunPropertiesInternal)Property).BytesFailed; } /// /// Bytes of data that will not be transferred, as they are already found on target (e.g. mirror mode). /// [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inlined)] - public long? BytesNoTransferNeeded { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunPropertiesInternal)Property).BytesNoTransferNeeded; } + public long? BytesNoTransferNeeded { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunPropertiesInternal)Property).BytesNoTransferNeeded; } /// Bytes of data scanned so far in source. [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inlined)] - public long? BytesScanned { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunPropertiesInternal)Property).BytesScanned; } + public long? BytesScanned { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunPropertiesInternal)Property).BytesScanned; } /// Bytes of data successfully transferred to target. [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inlined)] - public long? BytesTransferred { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunPropertiesInternal)Property).BytesTransferred; } + public long? BytesTransferred { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunPropertiesInternal)Property).BytesTransferred; } /// Bytes of data that will not be transferred, as they are unsupported on target. [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inlined)] - public long? BytesUnsupported { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunPropertiesInternal)Property).BytesUnsupported; } + public long? BytesUnsupported { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunPropertiesInternal)Property).BytesUnsupported; } /// Error code of the given entry. [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inlined)] - public string ErrorCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunPropertiesInternal)Property).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunPropertiesInternal)Property).Code = value ?? null; } + public string ErrorCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunPropertiesInternal)Property).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunPropertiesInternal)Property).Code = value ?? null; } /// Error message of the given entry. [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inlined)] - public string ErrorMessage { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunPropertiesInternal)Property).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunPropertiesInternal)Property).Message = value ?? null; } + public string ErrorMessage { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunPropertiesInternal)Property).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunPropertiesInternal)Property).Message = value ?? null; } /// End time of the run. Null if Agent has not reported that the job has ended. [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inlined)] - public global::System.DateTime? ExecutionEndTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunPropertiesInternal)Property).ExecutionEndTime; } + public global::System.DateTime? ExecutionEndTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunPropertiesInternal)Property).ExecutionEndTime; } /// Start time of the run. Null if no Agent reported that the job has started. [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inlined)] - public global::System.DateTime? ExecutionStartTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunPropertiesInternal)Property).ExecutionStartTime; } + public global::System.DateTime? ExecutionStartTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunPropertiesInternal)Property).ExecutionStartTime; } /// /// Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} @@ -82,126 +82,126 @@ public partial class JobRun : /// Number of items that will not be transferred, as they are excluded by user configuration. /// [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inlined)] - public long? ItemsExcluded { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunPropertiesInternal)Property).ItemsExcluded; } + public long? ItemsExcluded { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunPropertiesInternal)Property).ItemsExcluded; } /// Number of items that were attempted to transfer and failed. [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inlined)] - public long? ItemsFailed { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunPropertiesInternal)Property).ItemsFailed; } + public long? ItemsFailed { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunPropertiesInternal)Property).ItemsFailed; } /// /// Number of items that will not be transferred, as they are already found on target (e.g. mirror mode). /// [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inlined)] - public long? ItemsNoTransferNeeded { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunPropertiesInternal)Property).ItemsNoTransferNeeded; } + public long? ItemsNoTransferNeeded { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunPropertiesInternal)Property).ItemsNoTransferNeeded; } /// Number of items scanned so far in source. [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inlined)] - public long? ItemsScanned { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunPropertiesInternal)Property).ItemsScanned; } + public long? ItemsScanned { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunPropertiesInternal)Property).ItemsScanned; } /// Number of items successfully transferred to target. [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inlined)] - public long? ItemsTransferred { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunPropertiesInternal)Property).ItemsTransferred; } + public long? ItemsTransferred { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunPropertiesInternal)Property).ItemsTransferred; } /// /// Number of items that will not be transferred, as they are unsupported on target. /// [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inlined)] - public long? ItemsUnsupported { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunPropertiesInternal)Property).ItemsUnsupported; } + public long? ItemsUnsupported { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunPropertiesInternal)Property).ItemsUnsupported; } /// Copy of parent Job Definition's properties at time of Job Run creation. [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.IAny JobDefinitionProperty { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunPropertiesInternal)Property).JobDefinitionProperty; } + public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.IAny JobDefinitionProperty { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunPropertiesInternal)Property).JobDefinitionProperty; } /// The last updated time of the Job Run. [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inlined)] - public global::System.DateTime? LastStatusUpdate { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunPropertiesInternal)Property).LastStatusUpdate; } + public global::System.DateTime? LastStatusUpdate { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunPropertiesInternal)Property).LastStatusUpdate; } /// Internal Acessors for AgentName - string Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunInternal.AgentName { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunPropertiesInternal)Property).AgentName; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunPropertiesInternal)Property).AgentName = value; } + string Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunInternal.AgentName { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunPropertiesInternal)Property).AgentName; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunPropertiesInternal)Property).AgentName = value; } /// Internal Acessors for AgentResourceId - string Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunInternal.AgentResourceId { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunPropertiesInternal)Property).AgentResourceId; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunPropertiesInternal)Property).AgentResourceId = value; } + string Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunInternal.AgentResourceId { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunPropertiesInternal)Property).AgentResourceId; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunPropertiesInternal)Property).AgentResourceId = value; } /// Internal Acessors for BytesExcluded - long? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunInternal.BytesExcluded { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunPropertiesInternal)Property).BytesExcluded; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunPropertiesInternal)Property).BytesExcluded = value; } + long? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunInternal.BytesExcluded { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunPropertiesInternal)Property).BytesExcluded; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunPropertiesInternal)Property).BytesExcluded = value; } /// Internal Acessors for BytesFailed - long? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunInternal.BytesFailed { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunPropertiesInternal)Property).BytesFailed; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunPropertiesInternal)Property).BytesFailed = value; } + long? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunInternal.BytesFailed { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunPropertiesInternal)Property).BytesFailed; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunPropertiesInternal)Property).BytesFailed = value; } /// Internal Acessors for BytesNoTransferNeeded - long? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunInternal.BytesNoTransferNeeded { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunPropertiesInternal)Property).BytesNoTransferNeeded; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunPropertiesInternal)Property).BytesNoTransferNeeded = value; } + long? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunInternal.BytesNoTransferNeeded { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunPropertiesInternal)Property).BytesNoTransferNeeded; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunPropertiesInternal)Property).BytesNoTransferNeeded = value; } /// Internal Acessors for BytesScanned - long? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunInternal.BytesScanned { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunPropertiesInternal)Property).BytesScanned; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunPropertiesInternal)Property).BytesScanned = value; } + long? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunInternal.BytesScanned { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunPropertiesInternal)Property).BytesScanned; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunPropertiesInternal)Property).BytesScanned = value; } /// Internal Acessors for BytesTransferred - long? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunInternal.BytesTransferred { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunPropertiesInternal)Property).BytesTransferred; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunPropertiesInternal)Property).BytesTransferred = value; } + long? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunInternal.BytesTransferred { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunPropertiesInternal)Property).BytesTransferred; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunPropertiesInternal)Property).BytesTransferred = value; } /// Internal Acessors for BytesUnsupported - long? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunInternal.BytesUnsupported { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunPropertiesInternal)Property).BytesUnsupported; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunPropertiesInternal)Property).BytesUnsupported = value; } + long? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunInternal.BytesUnsupported { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunPropertiesInternal)Property).BytesUnsupported; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunPropertiesInternal)Property).BytesUnsupported = value; } /// Internal Acessors for Error - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunError Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunInternal.Error { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunPropertiesInternal)Property).Error; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunPropertiesInternal)Property).Error = value; } + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunError Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunInternal.Error { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunPropertiesInternal)Property).Error; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunPropertiesInternal)Property).Error = value; } /// Internal Acessors for ExecutionEndTime - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunInternal.ExecutionEndTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunPropertiesInternal)Property).ExecutionEndTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunPropertiesInternal)Property).ExecutionEndTime = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunInternal.ExecutionEndTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunPropertiesInternal)Property).ExecutionEndTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunPropertiesInternal)Property).ExecutionEndTime = value; } /// Internal Acessors for ExecutionStartTime - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunInternal.ExecutionStartTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunPropertiesInternal)Property).ExecutionStartTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunPropertiesInternal)Property).ExecutionStartTime = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunInternal.ExecutionStartTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunPropertiesInternal)Property).ExecutionStartTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunPropertiesInternal)Property).ExecutionStartTime = value; } /// Internal Acessors for ItemsExcluded - long? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunInternal.ItemsExcluded { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunPropertiesInternal)Property).ItemsExcluded; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunPropertiesInternal)Property).ItemsExcluded = value; } + long? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunInternal.ItemsExcluded { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunPropertiesInternal)Property).ItemsExcluded; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunPropertiesInternal)Property).ItemsExcluded = value; } /// Internal Acessors for ItemsFailed - long? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunInternal.ItemsFailed { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunPropertiesInternal)Property).ItemsFailed; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunPropertiesInternal)Property).ItemsFailed = value; } + long? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunInternal.ItemsFailed { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunPropertiesInternal)Property).ItemsFailed; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunPropertiesInternal)Property).ItemsFailed = value; } /// Internal Acessors for ItemsNoTransferNeeded - long? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunInternal.ItemsNoTransferNeeded { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunPropertiesInternal)Property).ItemsNoTransferNeeded; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunPropertiesInternal)Property).ItemsNoTransferNeeded = value; } + long? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunInternal.ItemsNoTransferNeeded { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunPropertiesInternal)Property).ItemsNoTransferNeeded; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunPropertiesInternal)Property).ItemsNoTransferNeeded = value; } /// Internal Acessors for ItemsScanned - long? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunInternal.ItemsScanned { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunPropertiesInternal)Property).ItemsScanned; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunPropertiesInternal)Property).ItemsScanned = value; } + long? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunInternal.ItemsScanned { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunPropertiesInternal)Property).ItemsScanned; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunPropertiesInternal)Property).ItemsScanned = value; } /// Internal Acessors for ItemsTransferred - long? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunInternal.ItemsTransferred { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunPropertiesInternal)Property).ItemsTransferred; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunPropertiesInternal)Property).ItemsTransferred = value; } + long? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunInternal.ItemsTransferred { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunPropertiesInternal)Property).ItemsTransferred; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunPropertiesInternal)Property).ItemsTransferred = value; } /// Internal Acessors for ItemsUnsupported - long? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunInternal.ItemsUnsupported { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunPropertiesInternal)Property).ItemsUnsupported; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunPropertiesInternal)Property).ItemsUnsupported = value; } + long? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunInternal.ItemsUnsupported { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunPropertiesInternal)Property).ItemsUnsupported; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunPropertiesInternal)Property).ItemsUnsupported = value; } /// Internal Acessors for JobDefinitionProperty - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.IAny Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunInternal.JobDefinitionProperty { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunPropertiesInternal)Property).JobDefinitionProperty; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunPropertiesInternal)Property).JobDefinitionProperty = value; } + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.IAny Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunInternal.JobDefinitionProperty { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunPropertiesInternal)Property).JobDefinitionProperty; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunPropertiesInternal)Property).JobDefinitionProperty = value; } /// Internal Acessors for LastStatusUpdate - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunInternal.LastStatusUpdate { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunPropertiesInternal)Property).LastStatusUpdate; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunPropertiesInternal)Property).LastStatusUpdate = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunInternal.LastStatusUpdate { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunPropertiesInternal)Property).LastStatusUpdate; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunPropertiesInternal)Property).LastStatusUpdate = value; } /// Internal Acessors for Property - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunProperties Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.JobRunProperties()); set { {_property = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunProperties Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.JobRunProperties()); set { {_property = value;} } } /// Internal Acessors for ProvisioningState - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunPropertiesInternal)Property).ProvisioningState = value; } + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunPropertiesInternal)Property).ProvisioningState = value; } /// Internal Acessors for ScanStatus - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.JobRunScanStatus? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunInternal.ScanStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunPropertiesInternal)Property).ScanStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunPropertiesInternal)Property).ScanStatus = value; } + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.JobRunScanStatus? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunInternal.ScanStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunPropertiesInternal)Property).ScanStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunPropertiesInternal)Property).ScanStatus = value; } /// Internal Acessors for SourceName - string Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunInternal.SourceName { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunPropertiesInternal)Property).SourceName; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunPropertiesInternal)Property).SourceName = value; } + string Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunInternal.SourceName { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunPropertiesInternal)Property).SourceName; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunPropertiesInternal)Property).SourceName = value; } /// Internal Acessors for SourceProperty - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.IAny Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunInternal.SourceProperty { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunPropertiesInternal)Property).SourceProperty; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunPropertiesInternal)Property).SourceProperty = value; } + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.IAny Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunInternal.SourceProperty { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunPropertiesInternal)Property).SourceProperty; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunPropertiesInternal)Property).SourceProperty = value; } /// Internal Acessors for SourceResourceId - string Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunInternal.SourceResourceId { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunPropertiesInternal)Property).SourceResourceId; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunPropertiesInternal)Property).SourceResourceId = value; } + string Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunInternal.SourceResourceId { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunPropertiesInternal)Property).SourceResourceId; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunPropertiesInternal)Property).SourceResourceId = value; } /// Internal Acessors for Status - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.JobRunStatus? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunInternal.Status { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunPropertiesInternal)Property).Status; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunPropertiesInternal)Property).Status = value; } + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.JobRunStatus? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunInternal.Status { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunPropertiesInternal)Property).Status; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunPropertiesInternal)Property).Status = value; } /// Internal Acessors for TargetName - string Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunInternal.TargetName { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunPropertiesInternal)Property).TargetName; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunPropertiesInternal)Property).TargetName = value; } + string Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunInternal.TargetName { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunPropertiesInternal)Property).TargetName; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunPropertiesInternal)Property).TargetName = value; } /// Internal Acessors for TargetProperty - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.IAny Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunInternal.TargetProperty { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunPropertiesInternal)Property).TargetProperty; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunPropertiesInternal)Property).TargetProperty = value; } + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.IAny Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunInternal.TargetProperty { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunPropertiesInternal)Property).TargetProperty; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunPropertiesInternal)Property).TargetProperty = value; } /// Internal Acessors for TargetResourceId - string Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunInternal.TargetResourceId { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunPropertiesInternal)Property).TargetResourceId; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunPropertiesInternal)Property).TargetResourceId = value; } + string Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunInternal.TargetResourceId { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunPropertiesInternal)Property).TargetResourceId; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunPropertiesInternal)Property).TargetResourceId = value; } /// Internal Acessors for Id string Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)__resource).Id = value; } @@ -220,35 +220,35 @@ public partial class JobRun : public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)__resource).Name; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunProperties _property; + private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunProperties _property; /// Job run properties. [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.JobRunProperties()); set => this._property = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.JobRunProperties()); set => this._property = value; } /// The provisioning state of this resource. [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState? ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunPropertiesInternal)Property).ProvisioningState; } + public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState? ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunPropertiesInternal)Property).ProvisioningState; } /// The status of Agent's scanning of source. [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.JobRunScanStatus? ScanStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunPropertiesInternal)Property).ScanStatus; } + public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.JobRunScanStatus? ScanStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunPropertiesInternal)Property).ScanStatus; } /// Name of source Endpoint resource. This resource may no longer exist. [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inlined)] - public string SourceName { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunPropertiesInternal)Property).SourceName; } + public string SourceName { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunPropertiesInternal)Property).SourceName; } /// Copy of source Endpoint resource's properties at time of Job Run creation. [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.IAny SourceProperty { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunPropertiesInternal)Property).SourceProperty; } + public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.IAny SourceProperty { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunPropertiesInternal)Property).SourceProperty; } /// Fully qualified resource id of source Endpoint. This id may no longer exist. [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inlined)] - public string SourceResourceId { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunPropertiesInternal)Property).SourceResourceId; } + public string SourceResourceId { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunPropertiesInternal)Property).SourceResourceId; } /// The state of the job execution. [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.JobRunStatus? Status { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunPropertiesInternal)Property).Status; } + public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.JobRunStatus? Status { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunPropertiesInternal)Property).Status; } /// /// Azure Resource Manager metadata containing createdBy and modifiedBy information. @@ -282,19 +282,19 @@ public partial class JobRun : /// Target of the given error entry. [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inlined)] - public string Target { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunPropertiesInternal)Property).Target; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunPropertiesInternal)Property).Target = value ?? null; } + public string Target { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunPropertiesInternal)Property).Target; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunPropertiesInternal)Property).Target = value ?? null; } /// Name of target Endpoint resource. This resource may no longer exist. [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inlined)] - public string TargetName { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunPropertiesInternal)Property).TargetName; } + public string TargetName { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunPropertiesInternal)Property).TargetName; } /// Copy of Endpoint resource's properties at time of Job Run creation. [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.IAny TargetProperty { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunPropertiesInternal)Property).TargetProperty; } + public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.IAny TargetProperty { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunPropertiesInternal)Property).TargetProperty; } /// Fully qualified resource id of of Endpoint. This id may no longer exist. [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inlined)] - public string TargetResourceId { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunPropertiesInternal)Property).TargetResourceId; } + public string TargetResourceId { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunPropertiesInternal)Property).TargetResourceId; } /// /// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" @@ -602,7 +602,7 @@ internal partial interface IJobRunInternal : /// Bytes of data that will not be transferred, as they are unsupported on target. long? BytesUnsupported { get; set; } /// Error details. - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunError Error { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunError Error { get; set; } /// Error code of the given entry. string ErrorCode { get; set; } /// Error message of the given entry. @@ -634,7 +634,7 @@ internal partial interface IJobRunInternal : /// The last updated time of the Job Run. global::System.DateTime? LastStatusUpdate { get; set; } /// Job run properties. - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunProperties Property { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunProperties Property { get; set; } /// The provisioning state of this resource. Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState? ProvisioningState { get; set; } /// The status of Agent's scanning of source. diff --git a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/JobRun.json.cs b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/JobRun.json.cs similarity index 97% rename from generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/JobRun.json.cs rename to generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/JobRun.json.cs index 3784b19cedfe..938ac740abca 100644 --- a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/JobRun.json.cs +++ b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/JobRun.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701 { using static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class JobRun partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRun. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRun. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRun. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRun. /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRun FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRun FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject json ? new JobRun(json) : null; } @@ -78,7 +78,7 @@ internal JobRun(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.Jso return; } __resource = new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.Resource(json); - {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.JobRunProperties.FromJson(__jsonProperties) : Property;} + {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.JobRunProperties.FromJson(__jsonProperties) : Property;} AfterFromJson(json); } diff --git a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/JobRunError.PowerShell.cs b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/JobRunError.PowerShell.cs similarity index 87% rename from generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/JobRunError.PowerShell.cs rename to generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/JobRunError.PowerShell.cs index 5f5ab88dca55..f68e1c4eafe6 100644 --- a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/JobRunError.PowerShell.cs +++ b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/JobRunError.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701 { using Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.PowerShell; @@ -63,27 +63,27 @@ public partial class JobRunError partial void OverrideToString(ref string stringResult, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunError DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunError DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new JobRunError(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunError DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunError DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new JobRunError(content); } @@ -93,10 +93,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunError FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunError FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(jsonText)); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -111,21 +111,21 @@ internal JobRunError(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("Code")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunErrorInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunErrorInternal)this).Code, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunErrorInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunErrorInternal)this).Code, global::System.Convert.ToString); } if (content.Contains("Message")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunErrorInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunErrorInternal)this).Message, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunErrorInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunErrorInternal)this).Message, global::System.Convert.ToString); } if (content.Contains("Target")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunErrorInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunErrorInternal)this).Target, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunErrorInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunErrorInternal)this).Target, global::System.Convert.ToString); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -140,15 +140,15 @@ internal JobRunError(global::System.Management.Automation.PSObject content) // actually deserialize if (content.Contains("Code")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunErrorInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunErrorInternal)this).Code, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunErrorInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunErrorInternal)this).Code, global::System.Convert.ToString); } if (content.Contains("Message")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunErrorInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunErrorInternal)this).Message, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunErrorInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunErrorInternal)this).Message, global::System.Convert.ToString); } if (content.Contains("Target")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunErrorInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunErrorInternal)this).Target, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunErrorInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunErrorInternal)this).Target, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/JobRunError.TypeConverter.cs b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/JobRunError.TypeConverter.cs similarity index 98% rename from generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/JobRunError.TypeConverter.cs rename to generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/JobRunError.TypeConverter.cs index 2ef3725bbce5..e94847627fad 100644 --- a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/JobRunError.TypeConverter.cs +++ b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/JobRunError.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701 { using Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunError ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunError ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunError).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunError).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/JobRunError.cs b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/JobRunError.cs similarity index 98% rename from generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/JobRunError.cs rename to generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/JobRunError.cs index 5f3dc55051f1..0550350338f9 100644 --- a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/JobRunError.cs +++ b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/JobRunError.cs @@ -3,15 +3,15 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701 { using static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Extensions; /// Error type [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.DoNotFormat] public partial class JobRunError : - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunError, - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunErrorInternal + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunError, + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunErrorInternal { /// Backing field for property. diff --git a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/JobRunError.json.cs b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/JobRunError.json.cs similarity index 98% rename from generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/JobRunError.json.cs rename to generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/JobRunError.json.cs index 3bb02c522c50..6f70a11e8caf 100644 --- a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/JobRunError.json.cs +++ b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/JobRunError.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701 { using static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class JobRunError partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunError. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunError. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunError. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunError. /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunError FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunError FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject json ? new JobRunError(json) : null; } diff --git a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/JobRunList.PowerShell.cs b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/JobRunList.PowerShell.cs similarity index 86% rename from generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/JobRunList.PowerShell.cs rename to generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/JobRunList.PowerShell.cs index 18e199f80a00..442a8ad423f5 100644 --- a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/JobRunList.PowerShell.cs +++ b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/JobRunList.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701 { using Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.PowerShell; @@ -63,27 +63,27 @@ public partial class JobRunList partial void OverrideToString(ref string stringResult, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunList DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunList DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new JobRunList(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunList DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunList DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new JobRunList(content); } @@ -93,10 +93,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunList FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunList FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(jsonText)); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -111,17 +111,17 @@ internal JobRunList(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("Value")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunListInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRun[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunListInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.JobRunTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunListInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRun[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunListInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.JobRunTypeConverter.ConvertFrom)); } if (content.Contains("NextLink")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunListInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunListInternal)this).NextLink, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunListInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunListInternal)this).NextLink, global::System.Convert.ToString); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -136,11 +136,11 @@ internal JobRunList(global::System.Management.Automation.PSObject content) // actually deserialize if (content.Contains("Value")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunListInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRun[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunListInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.JobRunTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunListInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRun[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunListInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.JobRunTypeConverter.ConvertFrom)); } if (content.Contains("NextLink")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunListInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunListInternal)this).NextLink, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunListInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunListInternal)this).NextLink, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/JobRunList.TypeConverter.cs b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/JobRunList.TypeConverter.cs similarity index 98% rename from generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/JobRunList.TypeConverter.cs rename to generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/JobRunList.TypeConverter.cs index 927a37b2dbdd..c62b29a35cb1 100644 --- a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/JobRunList.TypeConverter.cs +++ b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/JobRunList.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701 { using Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.PowerShell; @@ -105,14 +105,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunList ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunList ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunList).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunList).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/JobRunList.cs b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/JobRunList.cs similarity index 60% rename from generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/JobRunList.cs rename to generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/JobRunList.cs index fcf6b4e123c6..174b9d6357bd 100644 --- a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/JobRunList.cs +++ b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/JobRunList.cs @@ -3,38 +3,33 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701 { using static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Extensions; /// List of Job Runs. [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.DoNotFormat] public partial class JobRunList : - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunList, - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunListInternal + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunList, + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunListInternal { - /// Internal Acessors for NextLink - string Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunListInternal.NextLink { get => this._nextLink; set { {_nextLink = value;} } } - /// Internal Acessors for Value - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRun[] Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunListInternal.Value { get => this._value; set { {_value = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRun[] Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunListInternal.Value { get => this._value; set { {_value = value;} } } /// Backing field for property. private string _nextLink; - /// - /// Request URL that can be used to query next page of containers. Returned when total number of requested containers exceed - /// maximum page size. - /// + /// The link to the next page of items [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Owned)] - public string NextLink { get => this._nextLink; } + public string NextLink { get => this._nextLink; set => this._nextLink = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRun[] _value; + private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRun[] _value; + /// The JobRun items on this page [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRun[] Value { get => this._value; } + public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRun[] Value { get => this._value; } /// Creates an new instance. public JobRunList() @@ -46,38 +41,32 @@ public JobRunList() public partial interface IJobRunList : Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IJsonSerializable { - /// - /// Request URL that can be used to query next page of containers. Returned when total number of requested containers exceed - /// maximum page size. - /// + /// The link to the next page of items [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Info( Required = false, - ReadOnly = true, - Description = @"Request URL that can be used to query next page of containers. Returned when total number of requested containers exceed maximum page size.", + ReadOnly = false, + Description = @"The link to the next page of items", SerializedName = @"nextLink", PossibleTypes = new [] { typeof(string) })] - string NextLink { get; } - + string NextLink { get; set; } + /// The JobRun items on this page [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Info( - Required = false, + Required = true, ReadOnly = true, - Description = @"", + Description = @"The JobRun items on this page", SerializedName = @"value", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRun) })] - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRun[] Value { get; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRun) })] + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRun[] Value { get; } } /// List of Job Runs. internal partial interface IJobRunListInternal { - /// - /// Request URL that can be used to query next page of containers. Returned when total number of requested containers exceed - /// maximum page size. - /// + /// The link to the next page of items string NextLink { get; set; } - - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRun[] Value { get; set; } + /// The JobRun items on this page + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRun[] Value { get; set; } } } \ No newline at end of file diff --git a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/JobRunList.json.cs b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/JobRunList.json.cs similarity index 90% rename from generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/JobRunList.json.cs rename to generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/JobRunList.json.cs index e102fc1bc99a..ad3bd09143fd 100644 --- a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/JobRunList.json.cs +++ b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/JobRunList.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701 { using static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class JobRunList partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunList. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunList. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunList. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunList. /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunList FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunList FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject json ? new JobRunList(json) : null; } @@ -77,7 +77,7 @@ internal JobRunList(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json { return; } - {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRun) (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.JobRun.FromJson(__u) )) ))() : null : Value;} + {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRun) (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.JobRun.FromJson(__u) )) ))() : null : Value;} {_nextLink = If( json?.PropertyT("nextLink"), out var __jsonNextLink) ? (string)__jsonNextLink : (string)NextLink;} AfterFromJson(json); } @@ -113,10 +113,7 @@ public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode ToJ container.Add("value",__w); } } - if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.SerializationMode.IncludeReadOnly)) - { - AddIf( null != (((object)this._nextLink)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonString(this._nextLink.ToString()) : null, "nextLink" ,container.Add ); - } + AddIf( null != (((object)this._nextLink)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonString(this._nextLink.ToString()) : null, "nextLink" ,container.Add ); AfterToJson(ref container); return container; } diff --git a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/JobRunProperties.PowerShell.cs b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/JobRunProperties.PowerShell.cs similarity index 76% rename from generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/JobRunProperties.PowerShell.cs rename to generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/JobRunProperties.PowerShell.cs index 531e234e7cd0..cc554429cc8b 100644 --- a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/JobRunProperties.PowerShell.cs +++ b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/JobRunProperties.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701 { using Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.PowerShell; @@ -63,27 +63,27 @@ public partial class JobRunProperties partial void OverrideToString(ref string stringResult, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new JobRunProperties(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new JobRunProperties(content); } @@ -93,10 +93,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(jsonText)); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -111,133 +111,133 @@ internal JobRunProperties(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("Error")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunPropertiesInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunError) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunPropertiesInternal)this).Error, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.JobRunErrorTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunPropertiesInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunError) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunPropertiesInternal)this).Error, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.JobRunErrorTypeConverter.ConvertFrom); } if (content.Contains("Status")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunPropertiesInternal)this).Status = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.JobRunStatus?) content.GetValueForProperty("Status",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunPropertiesInternal)this).Status, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.JobRunStatus.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunPropertiesInternal)this).Status = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.JobRunStatus?) content.GetValueForProperty("Status",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunPropertiesInternal)this).Status, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.JobRunStatus.CreateFrom); } if (content.Contains("ScanStatus")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunPropertiesInternal)this).ScanStatus = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.JobRunScanStatus?) content.GetValueForProperty("ScanStatus",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunPropertiesInternal)this).ScanStatus, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.JobRunScanStatus.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunPropertiesInternal)this).ScanStatus = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.JobRunScanStatus?) content.GetValueForProperty("ScanStatus",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunPropertiesInternal)this).ScanStatus, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.JobRunScanStatus.CreateFrom); } if (content.Contains("AgentName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunPropertiesInternal)this).AgentName = (string) content.GetValueForProperty("AgentName",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunPropertiesInternal)this).AgentName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunPropertiesInternal)this).AgentName = (string) content.GetValueForProperty("AgentName",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunPropertiesInternal)this).AgentName, global::System.Convert.ToString); } if (content.Contains("AgentResourceId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunPropertiesInternal)this).AgentResourceId = (string) content.GetValueForProperty("AgentResourceId",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunPropertiesInternal)this).AgentResourceId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunPropertiesInternal)this).AgentResourceId = (string) content.GetValueForProperty("AgentResourceId",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunPropertiesInternal)this).AgentResourceId, global::System.Convert.ToString); } if (content.Contains("ExecutionStartTime")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunPropertiesInternal)this).ExecutionStartTime = (global::System.DateTime?) content.GetValueForProperty("ExecutionStartTime",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunPropertiesInternal)this).ExecutionStartTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunPropertiesInternal)this).ExecutionStartTime = (global::System.DateTime?) content.GetValueForProperty("ExecutionStartTime",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunPropertiesInternal)this).ExecutionStartTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("ExecutionEndTime")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunPropertiesInternal)this).ExecutionEndTime = (global::System.DateTime?) content.GetValueForProperty("ExecutionEndTime",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunPropertiesInternal)this).ExecutionEndTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunPropertiesInternal)this).ExecutionEndTime = (global::System.DateTime?) content.GetValueForProperty("ExecutionEndTime",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunPropertiesInternal)this).ExecutionEndTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("LastStatusUpdate")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunPropertiesInternal)this).LastStatusUpdate = (global::System.DateTime?) content.GetValueForProperty("LastStatusUpdate",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunPropertiesInternal)this).LastStatusUpdate, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunPropertiesInternal)this).LastStatusUpdate = (global::System.DateTime?) content.GetValueForProperty("LastStatusUpdate",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunPropertiesInternal)this).LastStatusUpdate, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("ItemsScanned")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunPropertiesInternal)this).ItemsScanned = (long?) content.GetValueForProperty("ItemsScanned",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunPropertiesInternal)this).ItemsScanned, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunPropertiesInternal)this).ItemsScanned = (long?) content.GetValueForProperty("ItemsScanned",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunPropertiesInternal)this).ItemsScanned, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("ItemsExcluded")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunPropertiesInternal)this).ItemsExcluded = (long?) content.GetValueForProperty("ItemsExcluded",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunPropertiesInternal)this).ItemsExcluded, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunPropertiesInternal)this).ItemsExcluded = (long?) content.GetValueForProperty("ItemsExcluded",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunPropertiesInternal)this).ItemsExcluded, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("ItemsUnsupported")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunPropertiesInternal)this).ItemsUnsupported = (long?) content.GetValueForProperty("ItemsUnsupported",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunPropertiesInternal)this).ItemsUnsupported, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunPropertiesInternal)this).ItemsUnsupported = (long?) content.GetValueForProperty("ItemsUnsupported",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunPropertiesInternal)this).ItemsUnsupported, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("ItemsNoTransferNeeded")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunPropertiesInternal)this).ItemsNoTransferNeeded = (long?) content.GetValueForProperty("ItemsNoTransferNeeded",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunPropertiesInternal)this).ItemsNoTransferNeeded, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunPropertiesInternal)this).ItemsNoTransferNeeded = (long?) content.GetValueForProperty("ItemsNoTransferNeeded",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunPropertiesInternal)this).ItemsNoTransferNeeded, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("ItemsFailed")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunPropertiesInternal)this).ItemsFailed = (long?) content.GetValueForProperty("ItemsFailed",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunPropertiesInternal)this).ItemsFailed, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunPropertiesInternal)this).ItemsFailed = (long?) content.GetValueForProperty("ItemsFailed",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunPropertiesInternal)this).ItemsFailed, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("ItemsTransferred")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunPropertiesInternal)this).ItemsTransferred = (long?) content.GetValueForProperty("ItemsTransferred",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunPropertiesInternal)this).ItemsTransferred, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunPropertiesInternal)this).ItemsTransferred = (long?) content.GetValueForProperty("ItemsTransferred",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunPropertiesInternal)this).ItemsTransferred, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("BytesScanned")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunPropertiesInternal)this).BytesScanned = (long?) content.GetValueForProperty("BytesScanned",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunPropertiesInternal)this).BytesScanned, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunPropertiesInternal)this).BytesScanned = (long?) content.GetValueForProperty("BytesScanned",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunPropertiesInternal)this).BytesScanned, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("BytesExcluded")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunPropertiesInternal)this).BytesExcluded = (long?) content.GetValueForProperty("BytesExcluded",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunPropertiesInternal)this).BytesExcluded, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunPropertiesInternal)this).BytesExcluded = (long?) content.GetValueForProperty("BytesExcluded",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunPropertiesInternal)this).BytesExcluded, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("BytesUnsupported")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunPropertiesInternal)this).BytesUnsupported = (long?) content.GetValueForProperty("BytesUnsupported",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunPropertiesInternal)this).BytesUnsupported, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunPropertiesInternal)this).BytesUnsupported = (long?) content.GetValueForProperty("BytesUnsupported",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunPropertiesInternal)this).BytesUnsupported, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("BytesNoTransferNeeded")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunPropertiesInternal)this).BytesNoTransferNeeded = (long?) content.GetValueForProperty("BytesNoTransferNeeded",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunPropertiesInternal)this).BytesNoTransferNeeded, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunPropertiesInternal)this).BytesNoTransferNeeded = (long?) content.GetValueForProperty("BytesNoTransferNeeded",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunPropertiesInternal)this).BytesNoTransferNeeded, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("BytesFailed")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunPropertiesInternal)this).BytesFailed = (long?) content.GetValueForProperty("BytesFailed",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunPropertiesInternal)this).BytesFailed, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunPropertiesInternal)this).BytesFailed = (long?) content.GetValueForProperty("BytesFailed",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunPropertiesInternal)this).BytesFailed, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("BytesTransferred")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunPropertiesInternal)this).BytesTransferred = (long?) content.GetValueForProperty("BytesTransferred",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunPropertiesInternal)this).BytesTransferred, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunPropertiesInternal)this).BytesTransferred = (long?) content.GetValueForProperty("BytesTransferred",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunPropertiesInternal)this).BytesTransferred, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("SourceName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunPropertiesInternal)this).SourceName = (string) content.GetValueForProperty("SourceName",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunPropertiesInternal)this).SourceName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunPropertiesInternal)this).SourceName = (string) content.GetValueForProperty("SourceName",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunPropertiesInternal)this).SourceName, global::System.Convert.ToString); } if (content.Contains("SourceResourceId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunPropertiesInternal)this).SourceResourceId = (string) content.GetValueForProperty("SourceResourceId",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunPropertiesInternal)this).SourceResourceId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunPropertiesInternal)this).SourceResourceId = (string) content.GetValueForProperty("SourceResourceId",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunPropertiesInternal)this).SourceResourceId, global::System.Convert.ToString); } if (content.Contains("SourceProperty")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunPropertiesInternal)this).SourceProperty = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.IAny) content.GetValueForProperty("SourceProperty",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunPropertiesInternal)this).SourceProperty, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.AnyTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunPropertiesInternal)this).SourceProperty = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.IAny) content.GetValueForProperty("SourceProperty",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunPropertiesInternal)this).SourceProperty, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.AnyTypeConverter.ConvertFrom); } if (content.Contains("TargetName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunPropertiesInternal)this).TargetName = (string) content.GetValueForProperty("TargetName",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunPropertiesInternal)this).TargetName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunPropertiesInternal)this).TargetName = (string) content.GetValueForProperty("TargetName",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunPropertiesInternal)this).TargetName, global::System.Convert.ToString); } if (content.Contains("TargetResourceId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunPropertiesInternal)this).TargetResourceId = (string) content.GetValueForProperty("TargetResourceId",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunPropertiesInternal)this).TargetResourceId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunPropertiesInternal)this).TargetResourceId = (string) content.GetValueForProperty("TargetResourceId",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunPropertiesInternal)this).TargetResourceId, global::System.Convert.ToString); } if (content.Contains("TargetProperty")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunPropertiesInternal)this).TargetProperty = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.IAny) content.GetValueForProperty("TargetProperty",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunPropertiesInternal)this).TargetProperty, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.AnyTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunPropertiesInternal)this).TargetProperty = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.IAny) content.GetValueForProperty("TargetProperty",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunPropertiesInternal)this).TargetProperty, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.AnyTypeConverter.ConvertFrom); } if (content.Contains("JobDefinitionProperty")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunPropertiesInternal)this).JobDefinitionProperty = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.IAny) content.GetValueForProperty("JobDefinitionProperty",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunPropertiesInternal)this).JobDefinitionProperty, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.AnyTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunPropertiesInternal)this).JobDefinitionProperty = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.IAny) content.GetValueForProperty("JobDefinitionProperty",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunPropertiesInternal)this).JobDefinitionProperty, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.AnyTypeConverter.ConvertFrom); } if (content.Contains("ProvisioningState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunPropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunPropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunPropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunPropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState.CreateFrom); } if (content.Contains("Code")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunPropertiesInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunPropertiesInternal)this).Code, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunPropertiesInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunPropertiesInternal)this).Code, global::System.Convert.ToString); } if (content.Contains("Message")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunPropertiesInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunPropertiesInternal)this).Message, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunPropertiesInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunPropertiesInternal)this).Message, global::System.Convert.ToString); } if (content.Contains("Target")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunPropertiesInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunPropertiesInternal)this).Target, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunPropertiesInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunPropertiesInternal)this).Target, global::System.Convert.ToString); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -252,127 +252,127 @@ internal JobRunProperties(global::System.Management.Automation.PSObject content) // actually deserialize if (content.Contains("Error")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunPropertiesInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunError) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunPropertiesInternal)this).Error, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.JobRunErrorTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunPropertiesInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunError) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunPropertiesInternal)this).Error, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.JobRunErrorTypeConverter.ConvertFrom); } if (content.Contains("Status")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunPropertiesInternal)this).Status = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.JobRunStatus?) content.GetValueForProperty("Status",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunPropertiesInternal)this).Status, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.JobRunStatus.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunPropertiesInternal)this).Status = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.JobRunStatus?) content.GetValueForProperty("Status",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunPropertiesInternal)this).Status, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.JobRunStatus.CreateFrom); } if (content.Contains("ScanStatus")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunPropertiesInternal)this).ScanStatus = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.JobRunScanStatus?) content.GetValueForProperty("ScanStatus",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunPropertiesInternal)this).ScanStatus, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.JobRunScanStatus.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunPropertiesInternal)this).ScanStatus = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.JobRunScanStatus?) content.GetValueForProperty("ScanStatus",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunPropertiesInternal)this).ScanStatus, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.JobRunScanStatus.CreateFrom); } if (content.Contains("AgentName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunPropertiesInternal)this).AgentName = (string) content.GetValueForProperty("AgentName",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunPropertiesInternal)this).AgentName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunPropertiesInternal)this).AgentName = (string) content.GetValueForProperty("AgentName",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunPropertiesInternal)this).AgentName, global::System.Convert.ToString); } if (content.Contains("AgentResourceId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunPropertiesInternal)this).AgentResourceId = (string) content.GetValueForProperty("AgentResourceId",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunPropertiesInternal)this).AgentResourceId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunPropertiesInternal)this).AgentResourceId = (string) content.GetValueForProperty("AgentResourceId",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunPropertiesInternal)this).AgentResourceId, global::System.Convert.ToString); } if (content.Contains("ExecutionStartTime")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunPropertiesInternal)this).ExecutionStartTime = (global::System.DateTime?) content.GetValueForProperty("ExecutionStartTime",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunPropertiesInternal)this).ExecutionStartTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunPropertiesInternal)this).ExecutionStartTime = (global::System.DateTime?) content.GetValueForProperty("ExecutionStartTime",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunPropertiesInternal)this).ExecutionStartTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("ExecutionEndTime")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunPropertiesInternal)this).ExecutionEndTime = (global::System.DateTime?) content.GetValueForProperty("ExecutionEndTime",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunPropertiesInternal)this).ExecutionEndTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunPropertiesInternal)this).ExecutionEndTime = (global::System.DateTime?) content.GetValueForProperty("ExecutionEndTime",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunPropertiesInternal)this).ExecutionEndTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("LastStatusUpdate")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunPropertiesInternal)this).LastStatusUpdate = (global::System.DateTime?) content.GetValueForProperty("LastStatusUpdate",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunPropertiesInternal)this).LastStatusUpdate, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunPropertiesInternal)this).LastStatusUpdate = (global::System.DateTime?) content.GetValueForProperty("LastStatusUpdate",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunPropertiesInternal)this).LastStatusUpdate, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("ItemsScanned")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunPropertiesInternal)this).ItemsScanned = (long?) content.GetValueForProperty("ItemsScanned",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunPropertiesInternal)this).ItemsScanned, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunPropertiesInternal)this).ItemsScanned = (long?) content.GetValueForProperty("ItemsScanned",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunPropertiesInternal)this).ItemsScanned, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("ItemsExcluded")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunPropertiesInternal)this).ItemsExcluded = (long?) content.GetValueForProperty("ItemsExcluded",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunPropertiesInternal)this).ItemsExcluded, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunPropertiesInternal)this).ItemsExcluded = (long?) content.GetValueForProperty("ItemsExcluded",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunPropertiesInternal)this).ItemsExcluded, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("ItemsUnsupported")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunPropertiesInternal)this).ItemsUnsupported = (long?) content.GetValueForProperty("ItemsUnsupported",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunPropertiesInternal)this).ItemsUnsupported, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunPropertiesInternal)this).ItemsUnsupported = (long?) content.GetValueForProperty("ItemsUnsupported",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunPropertiesInternal)this).ItemsUnsupported, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("ItemsNoTransferNeeded")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunPropertiesInternal)this).ItemsNoTransferNeeded = (long?) content.GetValueForProperty("ItemsNoTransferNeeded",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunPropertiesInternal)this).ItemsNoTransferNeeded, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunPropertiesInternal)this).ItemsNoTransferNeeded = (long?) content.GetValueForProperty("ItemsNoTransferNeeded",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunPropertiesInternal)this).ItemsNoTransferNeeded, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("ItemsFailed")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunPropertiesInternal)this).ItemsFailed = (long?) content.GetValueForProperty("ItemsFailed",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunPropertiesInternal)this).ItemsFailed, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunPropertiesInternal)this).ItemsFailed = (long?) content.GetValueForProperty("ItemsFailed",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunPropertiesInternal)this).ItemsFailed, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("ItemsTransferred")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunPropertiesInternal)this).ItemsTransferred = (long?) content.GetValueForProperty("ItemsTransferred",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunPropertiesInternal)this).ItemsTransferred, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunPropertiesInternal)this).ItemsTransferred = (long?) content.GetValueForProperty("ItemsTransferred",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunPropertiesInternal)this).ItemsTransferred, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("BytesScanned")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunPropertiesInternal)this).BytesScanned = (long?) content.GetValueForProperty("BytesScanned",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunPropertiesInternal)this).BytesScanned, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunPropertiesInternal)this).BytesScanned = (long?) content.GetValueForProperty("BytesScanned",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunPropertiesInternal)this).BytesScanned, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("BytesExcluded")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunPropertiesInternal)this).BytesExcluded = (long?) content.GetValueForProperty("BytesExcluded",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunPropertiesInternal)this).BytesExcluded, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunPropertiesInternal)this).BytesExcluded = (long?) content.GetValueForProperty("BytesExcluded",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunPropertiesInternal)this).BytesExcluded, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("BytesUnsupported")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunPropertiesInternal)this).BytesUnsupported = (long?) content.GetValueForProperty("BytesUnsupported",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunPropertiesInternal)this).BytesUnsupported, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunPropertiesInternal)this).BytesUnsupported = (long?) content.GetValueForProperty("BytesUnsupported",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunPropertiesInternal)this).BytesUnsupported, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("BytesNoTransferNeeded")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunPropertiesInternal)this).BytesNoTransferNeeded = (long?) content.GetValueForProperty("BytesNoTransferNeeded",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunPropertiesInternal)this).BytesNoTransferNeeded, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunPropertiesInternal)this).BytesNoTransferNeeded = (long?) content.GetValueForProperty("BytesNoTransferNeeded",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunPropertiesInternal)this).BytesNoTransferNeeded, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("BytesFailed")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunPropertiesInternal)this).BytesFailed = (long?) content.GetValueForProperty("BytesFailed",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunPropertiesInternal)this).BytesFailed, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunPropertiesInternal)this).BytesFailed = (long?) content.GetValueForProperty("BytesFailed",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunPropertiesInternal)this).BytesFailed, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("BytesTransferred")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunPropertiesInternal)this).BytesTransferred = (long?) content.GetValueForProperty("BytesTransferred",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunPropertiesInternal)this).BytesTransferred, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunPropertiesInternal)this).BytesTransferred = (long?) content.GetValueForProperty("BytesTransferred",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunPropertiesInternal)this).BytesTransferred, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("SourceName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunPropertiesInternal)this).SourceName = (string) content.GetValueForProperty("SourceName",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunPropertiesInternal)this).SourceName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunPropertiesInternal)this).SourceName = (string) content.GetValueForProperty("SourceName",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunPropertiesInternal)this).SourceName, global::System.Convert.ToString); } if (content.Contains("SourceResourceId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunPropertiesInternal)this).SourceResourceId = (string) content.GetValueForProperty("SourceResourceId",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunPropertiesInternal)this).SourceResourceId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunPropertiesInternal)this).SourceResourceId = (string) content.GetValueForProperty("SourceResourceId",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunPropertiesInternal)this).SourceResourceId, global::System.Convert.ToString); } if (content.Contains("SourceProperty")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunPropertiesInternal)this).SourceProperty = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.IAny) content.GetValueForProperty("SourceProperty",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunPropertiesInternal)this).SourceProperty, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.AnyTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunPropertiesInternal)this).SourceProperty = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.IAny) content.GetValueForProperty("SourceProperty",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunPropertiesInternal)this).SourceProperty, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.AnyTypeConverter.ConvertFrom); } if (content.Contains("TargetName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunPropertiesInternal)this).TargetName = (string) content.GetValueForProperty("TargetName",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunPropertiesInternal)this).TargetName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunPropertiesInternal)this).TargetName = (string) content.GetValueForProperty("TargetName",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunPropertiesInternal)this).TargetName, global::System.Convert.ToString); } if (content.Contains("TargetResourceId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunPropertiesInternal)this).TargetResourceId = (string) content.GetValueForProperty("TargetResourceId",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunPropertiesInternal)this).TargetResourceId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunPropertiesInternal)this).TargetResourceId = (string) content.GetValueForProperty("TargetResourceId",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunPropertiesInternal)this).TargetResourceId, global::System.Convert.ToString); } if (content.Contains("TargetProperty")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunPropertiesInternal)this).TargetProperty = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.IAny) content.GetValueForProperty("TargetProperty",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunPropertiesInternal)this).TargetProperty, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.AnyTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunPropertiesInternal)this).TargetProperty = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.IAny) content.GetValueForProperty("TargetProperty",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunPropertiesInternal)this).TargetProperty, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.AnyTypeConverter.ConvertFrom); } if (content.Contains("JobDefinitionProperty")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunPropertiesInternal)this).JobDefinitionProperty = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.IAny) content.GetValueForProperty("JobDefinitionProperty",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunPropertiesInternal)this).JobDefinitionProperty, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.AnyTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunPropertiesInternal)this).JobDefinitionProperty = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.IAny) content.GetValueForProperty("JobDefinitionProperty",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunPropertiesInternal)this).JobDefinitionProperty, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.AnyTypeConverter.ConvertFrom); } if (content.Contains("ProvisioningState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunPropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunPropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunPropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunPropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState.CreateFrom); } if (content.Contains("Code")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunPropertiesInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunPropertiesInternal)this).Code, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunPropertiesInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunPropertiesInternal)this).Code, global::System.Convert.ToString); } if (content.Contains("Message")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunPropertiesInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunPropertiesInternal)this).Message, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunPropertiesInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunPropertiesInternal)this).Message, global::System.Convert.ToString); } if (content.Contains("Target")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunPropertiesInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunPropertiesInternal)this).Target, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunPropertiesInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunPropertiesInternal)this).Target, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/JobRunProperties.TypeConverter.cs b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/JobRunProperties.TypeConverter.cs similarity index 98% rename from generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/JobRunProperties.TypeConverter.cs rename to generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/JobRunProperties.TypeConverter.cs index cb80d661dc83..d57b6272153c 100644 --- a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/JobRunProperties.TypeConverter.cs +++ b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/JobRunProperties.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701 { using Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunProperties ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunProperties ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunProperties).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunProperties).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/JobRunProperties.cs b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/JobRunProperties.cs similarity index 94% rename from generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/JobRunProperties.cs rename to generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/JobRunProperties.cs index 320d18c891f0..81026ae16d77 100644 --- a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/JobRunProperties.cs +++ b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/JobRunProperties.cs @@ -3,15 +3,15 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701 { using static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Extensions; /// Job run properties. [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.DoNotFormat] public partial class JobRunProperties : - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunProperties, - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunPropertiesInternal + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunProperties, + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunPropertiesInternal { /// Backing field for property. @@ -76,14 +76,14 @@ public partial class JobRunProperties : /// Error code of the given entry. [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inlined)] - public string Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunErrorInternal)Error).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunErrorInternal)Error).Code = value ?? null; } + public string Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunErrorInternal)Error).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunErrorInternal)Error).Code = value ?? null; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunError _error; + private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunError _error; /// Error details. [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunError Error { get => (this._error = this._error ?? new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.JobRunError()); } + internal Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunError Error { get => (this._error = this._error ?? new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.JobRunError()); } /// Backing field for property. private global::System.DateTime? _executionEndTime; @@ -163,91 +163,91 @@ public partial class JobRunProperties : /// Error message of the given entry. [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inlined)] - public string Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunErrorInternal)Error).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunErrorInternal)Error).Message = value ?? null; } + public string Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunErrorInternal)Error).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunErrorInternal)Error).Message = value ?? null; } /// Internal Acessors for AgentName - string Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunPropertiesInternal.AgentName { get => this._agentName; set { {_agentName = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunPropertiesInternal.AgentName { get => this._agentName; set { {_agentName = value;} } } /// Internal Acessors for AgentResourceId - string Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunPropertiesInternal.AgentResourceId { get => this._agentResourceId; set { {_agentResourceId = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunPropertiesInternal.AgentResourceId { get => this._agentResourceId; set { {_agentResourceId = value;} } } /// Internal Acessors for BytesExcluded - long? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunPropertiesInternal.BytesExcluded { get => this._bytesExcluded; set { {_bytesExcluded = value;} } } + long? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunPropertiesInternal.BytesExcluded { get => this._bytesExcluded; set { {_bytesExcluded = value;} } } /// Internal Acessors for BytesFailed - long? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunPropertiesInternal.BytesFailed { get => this._bytesFailed; set { {_bytesFailed = value;} } } + long? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunPropertiesInternal.BytesFailed { get => this._bytesFailed; set { {_bytesFailed = value;} } } /// Internal Acessors for BytesNoTransferNeeded - long? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunPropertiesInternal.BytesNoTransferNeeded { get => this._bytesNoTransferNeeded; set { {_bytesNoTransferNeeded = value;} } } + long? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunPropertiesInternal.BytesNoTransferNeeded { get => this._bytesNoTransferNeeded; set { {_bytesNoTransferNeeded = value;} } } /// Internal Acessors for BytesScanned - long? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunPropertiesInternal.BytesScanned { get => this._bytesScanned; set { {_bytesScanned = value;} } } + long? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunPropertiesInternal.BytesScanned { get => this._bytesScanned; set { {_bytesScanned = value;} } } /// Internal Acessors for BytesTransferred - long? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunPropertiesInternal.BytesTransferred { get => this._bytesTransferred; set { {_bytesTransferred = value;} } } + long? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunPropertiesInternal.BytesTransferred { get => this._bytesTransferred; set { {_bytesTransferred = value;} } } /// Internal Acessors for BytesUnsupported - long? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunPropertiesInternal.BytesUnsupported { get => this._bytesUnsupported; set { {_bytesUnsupported = value;} } } + long? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunPropertiesInternal.BytesUnsupported { get => this._bytesUnsupported; set { {_bytesUnsupported = value;} } } /// Internal Acessors for Error - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunError Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunPropertiesInternal.Error { get => (this._error = this._error ?? new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.JobRunError()); set { {_error = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunError Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunPropertiesInternal.Error { get => (this._error = this._error ?? new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.JobRunError()); set { {_error = value;} } } /// Internal Acessors for ExecutionEndTime - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunPropertiesInternal.ExecutionEndTime { get => this._executionEndTime; set { {_executionEndTime = value;} } } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunPropertiesInternal.ExecutionEndTime { get => this._executionEndTime; set { {_executionEndTime = value;} } } /// Internal Acessors for ExecutionStartTime - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunPropertiesInternal.ExecutionStartTime { get => this._executionStartTime; set { {_executionStartTime = value;} } } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunPropertiesInternal.ExecutionStartTime { get => this._executionStartTime; set { {_executionStartTime = value;} } } /// Internal Acessors for ItemsExcluded - long? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunPropertiesInternal.ItemsExcluded { get => this._itemsExcluded; set { {_itemsExcluded = value;} } } + long? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunPropertiesInternal.ItemsExcluded { get => this._itemsExcluded; set { {_itemsExcluded = value;} } } /// Internal Acessors for ItemsFailed - long? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunPropertiesInternal.ItemsFailed { get => this._itemsFailed; set { {_itemsFailed = value;} } } + long? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunPropertiesInternal.ItemsFailed { get => this._itemsFailed; set { {_itemsFailed = value;} } } /// Internal Acessors for ItemsNoTransferNeeded - long? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunPropertiesInternal.ItemsNoTransferNeeded { get => this._itemsNoTransferNeeded; set { {_itemsNoTransferNeeded = value;} } } + long? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunPropertiesInternal.ItemsNoTransferNeeded { get => this._itemsNoTransferNeeded; set { {_itemsNoTransferNeeded = value;} } } /// Internal Acessors for ItemsScanned - long? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunPropertiesInternal.ItemsScanned { get => this._itemsScanned; set { {_itemsScanned = value;} } } + long? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunPropertiesInternal.ItemsScanned { get => this._itemsScanned; set { {_itemsScanned = value;} } } /// Internal Acessors for ItemsTransferred - long? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunPropertiesInternal.ItemsTransferred { get => this._itemsTransferred; set { {_itemsTransferred = value;} } } + long? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunPropertiesInternal.ItemsTransferred { get => this._itemsTransferred; set { {_itemsTransferred = value;} } } /// Internal Acessors for ItemsUnsupported - long? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunPropertiesInternal.ItemsUnsupported { get => this._itemsUnsupported; set { {_itemsUnsupported = value;} } } + long? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunPropertiesInternal.ItemsUnsupported { get => this._itemsUnsupported; set { {_itemsUnsupported = value;} } } /// Internal Acessors for JobDefinitionProperty - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.IAny Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunPropertiesInternal.JobDefinitionProperty { get => (this._jobDefinitionProperty = this._jobDefinitionProperty ?? new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Any()); set { {_jobDefinitionProperty = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.IAny Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunPropertiesInternal.JobDefinitionProperty { get => (this._jobDefinitionProperty = this._jobDefinitionProperty ?? new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Any()); set { {_jobDefinitionProperty = value;} } } /// Internal Acessors for LastStatusUpdate - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunPropertiesInternal.LastStatusUpdate { get => this._lastStatusUpdate; set { {_lastStatusUpdate = value;} } } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunPropertiesInternal.LastStatusUpdate { get => this._lastStatusUpdate; set { {_lastStatusUpdate = value;} } } /// Internal Acessors for ProvisioningState - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunPropertiesInternal.ProvisioningState { get => this._provisioningState; set { {_provisioningState = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunPropertiesInternal.ProvisioningState { get => this._provisioningState; set { {_provisioningState = value;} } } /// Internal Acessors for ScanStatus - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.JobRunScanStatus? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunPropertiesInternal.ScanStatus { get => this._scanStatus; set { {_scanStatus = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.JobRunScanStatus? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunPropertiesInternal.ScanStatus { get => this._scanStatus; set { {_scanStatus = value;} } } /// Internal Acessors for SourceName - string Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunPropertiesInternal.SourceName { get => this._sourceName; set { {_sourceName = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunPropertiesInternal.SourceName { get => this._sourceName; set { {_sourceName = value;} } } /// Internal Acessors for SourceProperty - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.IAny Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunPropertiesInternal.SourceProperty { get => (this._sourceProperty = this._sourceProperty ?? new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Any()); set { {_sourceProperty = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.IAny Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunPropertiesInternal.SourceProperty { get => (this._sourceProperty = this._sourceProperty ?? new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Any()); set { {_sourceProperty = value;} } } /// Internal Acessors for SourceResourceId - string Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunPropertiesInternal.SourceResourceId { get => this._sourceResourceId; set { {_sourceResourceId = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunPropertiesInternal.SourceResourceId { get => this._sourceResourceId; set { {_sourceResourceId = value;} } } /// Internal Acessors for Status - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.JobRunStatus? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunPropertiesInternal.Status { get => this._status; set { {_status = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.JobRunStatus? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunPropertiesInternal.Status { get => this._status; set { {_status = value;} } } /// Internal Acessors for TargetName - string Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunPropertiesInternal.TargetName { get => this._targetName; set { {_targetName = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunPropertiesInternal.TargetName { get => this._targetName; set { {_targetName = value;} } } /// Internal Acessors for TargetProperty - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.IAny Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunPropertiesInternal.TargetProperty { get => (this._targetProperty = this._targetProperty ?? new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Any()); set { {_targetProperty = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.IAny Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunPropertiesInternal.TargetProperty { get => (this._targetProperty = this._targetProperty ?? new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Any()); set { {_targetProperty = value;} } } /// Internal Acessors for TargetResourceId - string Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunPropertiesInternal.TargetResourceId { get => this._targetResourceId; set { {_targetResourceId = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunPropertiesInternal.TargetResourceId { get => this._targetResourceId; set { {_targetResourceId = value;} } } /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState? _provisioningState; @@ -293,7 +293,7 @@ public partial class JobRunProperties : /// Target of the given error entry. [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inlined)] - public string Target { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunErrorInternal)Error).Target; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunErrorInternal)Error).Target = value ?? null; } + public string Target { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunErrorInternal)Error).Target; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunErrorInternal)Error).Target = value ?? null; } /// Backing field for property. private string _targetName; @@ -605,7 +605,7 @@ internal partial interface IJobRunPropertiesInternal /// Error code of the given entry. string Code { get; set; } /// Error details. - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunError Error { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunError Error { get; set; } /// End time of the run. Null if Agent has not reported that the job has ended. global::System.DateTime? ExecutionEndTime { get; set; } /// Start time of the run. Null if no Agent reported that the job has started. diff --git a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/JobRunProperties.json.cs b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/JobRunProperties.json.cs similarity index 99% rename from generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/JobRunProperties.json.cs rename to generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/JobRunProperties.json.cs index d0f54ab9b400..ab50aecb5404 100644 --- a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/JobRunProperties.json.cs +++ b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/JobRunProperties.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701 { using static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class JobRunProperties partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunProperties. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunProperties. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunProperties. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunProperties. /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject json ? new JobRunProperties(json) : null; } @@ -77,7 +77,7 @@ internal JobRunProperties(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtim { return; } - {_error = If( json?.PropertyT("error"), out var __jsonError) ? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.JobRunError.FromJson(__jsonError) : Error;} + {_error = If( json?.PropertyT("error"), out var __jsonError) ? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.JobRunError.FromJson(__jsonError) : Error;} {_status = If( json?.PropertyT("status"), out var __jsonStatus) ? (string)__jsonStatus : (string)Status;} {_scanStatus = If( json?.PropertyT("scanStatus"), out var __jsonScanStatus) ? (string)__jsonScanStatus : (string)ScanStatus;} {_agentName = If( json?.PropertyT("agentName"), out var __jsonAgentName) ? (string)__jsonAgentName : (string)AgentName;} diff --git a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/JobRunResourceId.PowerShell.cs b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/JobRunResourceId.PowerShell.cs similarity index 90% rename from generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/JobRunResourceId.PowerShell.cs rename to generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/JobRunResourceId.PowerShell.cs index 553dee2b2b03..17148f946f53 100644 --- a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/JobRunResourceId.PowerShell.cs +++ b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/JobRunResourceId.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701 { using Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.PowerShell; @@ -63,27 +63,27 @@ public partial class JobRunResourceId partial void OverrideToString(ref string stringResult, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunResourceId DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunResourceId DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new JobRunResourceId(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunResourceId DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunResourceId DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new JobRunResourceId(content); } @@ -93,10 +93,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunResourceId FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunResourceId FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(jsonText)); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -111,13 +111,13 @@ internal JobRunResourceId(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("JobRunResourceId1")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunResourceIdInternal)this).JobRunResourceId1 = (string) content.GetValueForProperty("JobRunResourceId1",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunResourceIdInternal)this).JobRunResourceId1, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunResourceIdInternal)this).JobRunResourceId1 = (string) content.GetValueForProperty("JobRunResourceId1",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunResourceIdInternal)this).JobRunResourceId1, global::System.Convert.ToString); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -132,7 +132,7 @@ internal JobRunResourceId(global::System.Management.Automation.PSObject content) // actually deserialize if (content.Contains("JobRunResourceId1")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunResourceIdInternal)this).JobRunResourceId1 = (string) content.GetValueForProperty("JobRunResourceId1",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunResourceIdInternal)this).JobRunResourceId1, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunResourceIdInternal)this).JobRunResourceId1 = (string) content.GetValueForProperty("JobRunResourceId1",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunResourceIdInternal)this).JobRunResourceId1, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/JobRunResourceId.TypeConverter.cs b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/JobRunResourceId.TypeConverter.cs similarity index 98% rename from generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/JobRunResourceId.TypeConverter.cs rename to generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/JobRunResourceId.TypeConverter.cs index d2a6208fc17c..e4cf9aea4b50 100644 --- a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/JobRunResourceId.TypeConverter.cs +++ b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/JobRunResourceId.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701 { using Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunResourceId ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunResourceId ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunResourceId).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunResourceId).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/JobRunResourceId.cs b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/JobRunResourceId.cs similarity index 94% rename from generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/JobRunResourceId.cs rename to generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/JobRunResourceId.cs index 2a8ef2ed7c3c..6ae1ae6e46c0 100644 --- a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/JobRunResourceId.cs +++ b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/JobRunResourceId.cs @@ -3,15 +3,15 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701 { using static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Extensions; /// Response that identifies a Job Run. [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.DoNotFormat] public partial class JobRunResourceId : - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunResourceId, - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunResourceIdInternal + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunResourceId, + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunResourceIdInternal { /// Backing field for property. @@ -22,7 +22,7 @@ public partial class JobRunResourceId : public string JobRunResourceId1 { get => this._jobRunResourceId1; } /// Internal Acessors for JobRunResourceId1 - string Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunResourceIdInternal.JobRunResourceId1 { get => this._jobRunResourceId1; set { {_jobRunResourceId1 = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunResourceIdInternal.JobRunResourceId1 { get => this._jobRunResourceId1; set { {_jobRunResourceId1 = value;} } } /// Creates an new instance. public JobRunResourceId() diff --git a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/JobRunResourceId.json.cs b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/JobRunResourceId.json.cs similarity index 97% rename from generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/JobRunResourceId.json.cs rename to generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/JobRunResourceId.json.cs index d1d0c951fbc2..fea9113c73a5 100644 --- a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/JobRunResourceId.json.cs +++ b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/JobRunResourceId.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701 { using static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class JobRunResourceId partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunResourceId. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunResourceId. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunResourceId. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunResourceId. /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunResourceId FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunResourceId FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject json ? new JobRunResourceId(json) : null; } diff --git a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/NfsMountEndpointProperties.PowerShell.cs b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/NfsMountEndpointProperties.PowerShell.cs similarity index 85% rename from generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/NfsMountEndpointProperties.PowerShell.cs rename to generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/NfsMountEndpointProperties.PowerShell.cs index ca7eb06bf1a8..8a486e1fcba6 100644 --- a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/NfsMountEndpointProperties.PowerShell.cs +++ b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/NfsMountEndpointProperties.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701 { using Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.PowerShell; @@ -63,29 +63,29 @@ public partial class NfsMountEndpointProperties partial void OverrideToString(ref string stringResult, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.INfsMountEndpointProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.INfsMountEndpointProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new NfsMountEndpointProperties(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.INfsMountEndpointProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.INfsMountEndpointProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new NfsMountEndpointProperties(content); } @@ -95,10 +95,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.INfsMountEndpointProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.INfsMountEndpointProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(jsonText)); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -113,33 +113,33 @@ internal NfsMountEndpointProperties(global::System.Collections.IDictionary conte // actually deserialize if (content.Contains("Host")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.INfsMountEndpointPropertiesInternal)this).Host = (string) content.GetValueForProperty("Host",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.INfsMountEndpointPropertiesInternal)this).Host, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.INfsMountEndpointPropertiesInternal)this).Host = (string) content.GetValueForProperty("Host",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.INfsMountEndpointPropertiesInternal)this).Host, global::System.Convert.ToString); } if (content.Contains("NfsVersion")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.INfsMountEndpointPropertiesInternal)this).NfsVersion = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.NfsVersion?) content.GetValueForProperty("NfsVersion",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.INfsMountEndpointPropertiesInternal)this).NfsVersion, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.NfsVersion.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.INfsMountEndpointPropertiesInternal)this).NfsVersion = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.NfsVersion?) content.GetValueForProperty("NfsVersion",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.INfsMountEndpointPropertiesInternal)this).NfsVersion, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.NfsVersion.CreateFrom); } if (content.Contains("Export")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.INfsMountEndpointPropertiesInternal)this).Export = (string) content.GetValueForProperty("Export",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.INfsMountEndpointPropertiesInternal)this).Export, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.INfsMountEndpointPropertiesInternal)this).Export = (string) content.GetValueForProperty("Export",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.INfsMountEndpointPropertiesInternal)this).Export, global::System.Convert.ToString); } if (content.Contains("EndpointType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpointBasePropertiesInternal)this).EndpointType = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.EndpointType) content.GetValueForProperty("EndpointType",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpointBasePropertiesInternal)this).EndpointType, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.EndpointType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBasePropertiesInternal)this).EndpointType = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.EndpointType) content.GetValueForProperty("EndpointType",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBasePropertiesInternal)this).EndpointType, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.EndpointType.CreateFrom); } if (content.Contains("Description")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpointBasePropertiesInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpointBasePropertiesInternal)this).Description, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBasePropertiesInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBasePropertiesInternal)this).Description, global::System.Convert.ToString); } if (content.Contains("ProvisioningState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpointBasePropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpointBasePropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBasePropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBasePropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState.CreateFrom); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -154,27 +154,27 @@ internal NfsMountEndpointProperties(global::System.Management.Automation.PSObjec // actually deserialize if (content.Contains("Host")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.INfsMountEndpointPropertiesInternal)this).Host = (string) content.GetValueForProperty("Host",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.INfsMountEndpointPropertiesInternal)this).Host, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.INfsMountEndpointPropertiesInternal)this).Host = (string) content.GetValueForProperty("Host",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.INfsMountEndpointPropertiesInternal)this).Host, global::System.Convert.ToString); } if (content.Contains("NfsVersion")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.INfsMountEndpointPropertiesInternal)this).NfsVersion = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.NfsVersion?) content.GetValueForProperty("NfsVersion",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.INfsMountEndpointPropertiesInternal)this).NfsVersion, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.NfsVersion.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.INfsMountEndpointPropertiesInternal)this).NfsVersion = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.NfsVersion?) content.GetValueForProperty("NfsVersion",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.INfsMountEndpointPropertiesInternal)this).NfsVersion, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.NfsVersion.CreateFrom); } if (content.Contains("Export")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.INfsMountEndpointPropertiesInternal)this).Export = (string) content.GetValueForProperty("Export",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.INfsMountEndpointPropertiesInternal)this).Export, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.INfsMountEndpointPropertiesInternal)this).Export = (string) content.GetValueForProperty("Export",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.INfsMountEndpointPropertiesInternal)this).Export, global::System.Convert.ToString); } if (content.Contains("EndpointType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpointBasePropertiesInternal)this).EndpointType = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.EndpointType) content.GetValueForProperty("EndpointType",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpointBasePropertiesInternal)this).EndpointType, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.EndpointType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBasePropertiesInternal)this).EndpointType = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.EndpointType) content.GetValueForProperty("EndpointType",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBasePropertiesInternal)this).EndpointType, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.EndpointType.CreateFrom); } if (content.Contains("Description")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpointBasePropertiesInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpointBasePropertiesInternal)this).Description, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBasePropertiesInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBasePropertiesInternal)this).Description, global::System.Convert.ToString); } if (content.Contains("ProvisioningState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpointBasePropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpointBasePropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBasePropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBasePropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState.CreateFrom); } AfterDeserializePSObject(content); } diff --git a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/NfsMountEndpointProperties.TypeConverter.cs b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/NfsMountEndpointProperties.TypeConverter.cs similarity index 98% rename from generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/NfsMountEndpointProperties.TypeConverter.cs rename to generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/NfsMountEndpointProperties.TypeConverter.cs index 80ef5f6f42d2..2de052550067 100644 --- a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/NfsMountEndpointProperties.TypeConverter.cs +++ b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/NfsMountEndpointProperties.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701 { using Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.INfsMountEndpointProperties ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.INfsMountEndpointProperties ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.INfsMountEndpointProperties).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.INfsMountEndpointProperties).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/NfsMountEndpointProperties.cs b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/NfsMountEndpointProperties.cs similarity index 89% rename from generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/NfsMountEndpointProperties.cs rename to generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/NfsMountEndpointProperties.cs index a797033c1832..c047490cfe6d 100644 --- a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/NfsMountEndpointProperties.cs +++ b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/NfsMountEndpointProperties.cs @@ -3,30 +3,30 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701 { using static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Extensions; /// The properties of NFS share endpoint. [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.DoNotFormat] public partial class NfsMountEndpointProperties : - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.INfsMountEndpointProperties, - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.INfsMountEndpointPropertiesInternal, + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.INfsMountEndpointProperties, + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.INfsMountEndpointPropertiesInternal, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpointBaseProperties __endpointBaseProperties = new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.EndpointBaseProperties(); + private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBaseProperties __endpointBaseProperties = new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.EndpointBaseProperties(); /// A description for the Endpoint. [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inherited)] - public string Description { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpointBasePropertiesInternal)__endpointBaseProperties).Description; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpointBasePropertiesInternal)__endpointBaseProperties).Description = value ?? null; } + public string Description { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBasePropertiesInternal)__endpointBaseProperties).Description; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBasePropertiesInternal)__endpointBaseProperties).Description = value ?? null; } /// The Endpoint resource type. [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.EndpointType EndpointType { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpointBasePropertiesInternal)__endpointBaseProperties).EndpointType; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpointBasePropertiesInternal)__endpointBaseProperties).EndpointType = value ; } + public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.EndpointType EndpointType { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBasePropertiesInternal)__endpointBaseProperties).EndpointType; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBasePropertiesInternal)__endpointBaseProperties).EndpointType = value ; } /// Backing field for property. private string _export; @@ -43,7 +43,7 @@ public partial class NfsMountEndpointProperties : public string Host { get => this._host; set => this._host = value; } /// Internal Acessors for ProvisioningState - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpointBasePropertiesInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpointBasePropertiesInternal)__endpointBaseProperties).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpointBasePropertiesInternal)__endpointBaseProperties).ProvisioningState = value; } + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBasePropertiesInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBasePropertiesInternal)__endpointBaseProperties).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBasePropertiesInternal)__endpointBaseProperties).ProvisioningState = value; } /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.NfsVersion? _nfsVersion; @@ -54,7 +54,7 @@ public partial class NfsMountEndpointProperties : /// The provisioning state of this resource. [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState? ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpointBasePropertiesInternal)__endpointBaseProperties).ProvisioningState; } + public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState? ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBasePropertiesInternal)__endpointBaseProperties).ProvisioningState; } /// Creates an new instance. public NfsMountEndpointProperties() @@ -77,7 +77,7 @@ public NfsMountEndpointProperties() /// The properties of NFS share endpoint. public partial interface INfsMountEndpointProperties : Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpointBaseProperties + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBaseProperties { /// The directory being exported from the server. [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Info( @@ -107,7 +107,7 @@ public partial interface INfsMountEndpointProperties : } /// The properties of NFS share endpoint. internal partial interface INfsMountEndpointPropertiesInternal : - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpointBasePropertiesInternal + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBasePropertiesInternal { /// The directory being exported from the server. string Export { get; set; } diff --git a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/NfsMountEndpointProperties.json.cs b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/NfsMountEndpointProperties.json.cs similarity index 97% rename from generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/NfsMountEndpointProperties.json.cs rename to generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/NfsMountEndpointProperties.json.cs index 5980f58c9fb8..7c25e9432055 100644 --- a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/NfsMountEndpointProperties.json.cs +++ b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/NfsMountEndpointProperties.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701 { using static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class NfsMountEndpointProperties partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.INfsMountEndpointProperties. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.INfsMountEndpointProperties. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.INfsMountEndpointProperties. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.INfsMountEndpointProperties. /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.INfsMountEndpointProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.INfsMountEndpointProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject json ? new NfsMountEndpointProperties(json) : null; } @@ -77,7 +77,7 @@ internal NfsMountEndpointProperties(Microsoft.Azure.PowerShell.Cmdlets.StorageMo { return; } - __endpointBaseProperties = new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.EndpointBaseProperties(json); + __endpointBaseProperties = new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.EndpointBaseProperties(json); {_host = If( json?.PropertyT("host"), out var __jsonHost) ? (string)__jsonHost : (string)Host;} {_nfsVersion = If( json?.PropertyT("nfsVersion"), out var __jsonNfsVersion) ? (string)__jsonNfsVersion : (string)NfsVersion;} {_export = If( json?.PropertyT("export"), out var __jsonExport) ? (string)__jsonExport : (string)Export;} diff --git a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/NfsMountEndpointUpdateProperties.PowerShell.cs b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/NfsMountEndpointUpdateProperties.PowerShell.cs similarity index 89% rename from generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/NfsMountEndpointUpdateProperties.PowerShell.cs rename to generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/NfsMountEndpointUpdateProperties.PowerShell.cs index c9cabaddf81a..b76f43653306 100644 --- a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/NfsMountEndpointUpdateProperties.PowerShell.cs +++ b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/NfsMountEndpointUpdateProperties.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701 { using Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.PowerShell; @@ -62,29 +62,29 @@ public partial class NfsMountEndpointUpdateProperties partial void OverrideToString(ref string stringResult, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.INfsMountEndpointUpdateProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.INfsMountEndpointUpdateProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new NfsMountEndpointUpdateProperties(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.INfsMountEndpointUpdateProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.INfsMountEndpointUpdateProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new NfsMountEndpointUpdateProperties(content); } @@ -94,10 +94,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.INfsMountEndpointUpdateProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.INfsMountEndpointUpdateProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(jsonText)); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -112,17 +112,17 @@ internal NfsMountEndpointUpdateProperties(global::System.Collections.IDictionary // actually deserialize if (content.Contains("EndpointType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpointBaseUpdatePropertiesInternal)this).EndpointType = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.EndpointType) content.GetValueForProperty("EndpointType",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpointBaseUpdatePropertiesInternal)this).EndpointType, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.EndpointType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBaseUpdatePropertiesInternal)this).EndpointType = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.EndpointType) content.GetValueForProperty("EndpointType",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBaseUpdatePropertiesInternal)this).EndpointType, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.EndpointType.CreateFrom); } if (content.Contains("Description")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpointBaseUpdatePropertiesInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpointBaseUpdatePropertiesInternal)this).Description, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBaseUpdatePropertiesInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBaseUpdatePropertiesInternal)this).Description, global::System.Convert.ToString); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -137,11 +137,11 @@ internal NfsMountEndpointUpdateProperties(global::System.Management.Automation.P // actually deserialize if (content.Contains("EndpointType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpointBaseUpdatePropertiesInternal)this).EndpointType = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.EndpointType) content.GetValueForProperty("EndpointType",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpointBaseUpdatePropertiesInternal)this).EndpointType, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.EndpointType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBaseUpdatePropertiesInternal)this).EndpointType = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.EndpointType) content.GetValueForProperty("EndpointType",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBaseUpdatePropertiesInternal)this).EndpointType, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.EndpointType.CreateFrom); } if (content.Contains("Description")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpointBaseUpdatePropertiesInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpointBaseUpdatePropertiesInternal)this).Description, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBaseUpdatePropertiesInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBaseUpdatePropertiesInternal)this).Description, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/NfsMountEndpointUpdateProperties.TypeConverter.cs b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/NfsMountEndpointUpdateProperties.TypeConverter.cs similarity index 98% rename from generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/NfsMountEndpointUpdateProperties.TypeConverter.cs rename to generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/NfsMountEndpointUpdateProperties.TypeConverter.cs index 41d3c5168b61..528f6a5cae9b 100644 --- a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/NfsMountEndpointUpdateProperties.TypeConverter.cs +++ b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/NfsMountEndpointUpdateProperties.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701 { using Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.PowerShell; @@ -107,14 +107,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.INfsMountEndpointUpdateProperties ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.INfsMountEndpointUpdateProperties ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.INfsMountEndpointUpdateProperties).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.INfsMountEndpointUpdateProperties).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/NfsMountEndpointUpdateProperties.cs b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/NfsMountEndpointUpdateProperties.cs similarity index 84% rename from generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/NfsMountEndpointUpdateProperties.cs rename to generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/NfsMountEndpointUpdateProperties.cs index 81231d6ea42c..0baece16f27d 100644 --- a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/NfsMountEndpointUpdateProperties.cs +++ b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/NfsMountEndpointUpdateProperties.cs @@ -3,29 +3,29 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701 { using static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Extensions; [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.DoNotFormat] public partial class NfsMountEndpointUpdateProperties : - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.INfsMountEndpointUpdateProperties, - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.INfsMountEndpointUpdatePropertiesInternal, + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.INfsMountEndpointUpdateProperties, + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.INfsMountEndpointUpdatePropertiesInternal, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpointBaseUpdateProperties __endpointBaseUpdateProperties = new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.EndpointBaseUpdateProperties(); + private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBaseUpdateProperties __endpointBaseUpdateProperties = new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.EndpointBaseUpdateProperties(); /// A description for the Endpoint. [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inherited)] - public string Description { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpointBaseUpdatePropertiesInternal)__endpointBaseUpdateProperties).Description; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpointBaseUpdatePropertiesInternal)__endpointBaseUpdateProperties).Description = value ?? null; } + public string Description { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBaseUpdatePropertiesInternal)__endpointBaseUpdateProperties).Description; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBaseUpdatePropertiesInternal)__endpointBaseUpdateProperties).Description = value ?? null; } /// The Endpoint resource type. [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.EndpointType EndpointType { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpointBaseUpdatePropertiesInternal)__endpointBaseUpdateProperties).EndpointType; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpointBaseUpdatePropertiesInternal)__endpointBaseUpdateProperties).EndpointType = value ; } + public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.EndpointType EndpointType { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBaseUpdatePropertiesInternal)__endpointBaseUpdateProperties).EndpointType; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBaseUpdatePropertiesInternal)__endpointBaseUpdateProperties).EndpointType = value ; } /// Creates an new instance. public NfsMountEndpointUpdateProperties() @@ -47,12 +47,12 @@ public NfsMountEndpointUpdateProperties() } public partial interface INfsMountEndpointUpdateProperties : Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpointBaseUpdateProperties + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBaseUpdateProperties { } internal partial interface INfsMountEndpointUpdatePropertiesInternal : - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpointBaseUpdatePropertiesInternal + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBaseUpdatePropertiesInternal { } diff --git a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/NfsMountEndpointUpdateProperties.json.cs b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/NfsMountEndpointUpdateProperties.json.cs similarity index 96% rename from generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/NfsMountEndpointUpdateProperties.json.cs rename to generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/NfsMountEndpointUpdateProperties.json.cs index a427280dbb7c..228d5a5afa62 100644 --- a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/NfsMountEndpointUpdateProperties.json.cs +++ b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/NfsMountEndpointUpdateProperties.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701 { using static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Extensions; @@ -53,13 +53,13 @@ public partial class NfsMountEndpointUpdateProperties partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.INfsMountEndpointUpdateProperties. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.INfsMountEndpointUpdateProperties. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.INfsMountEndpointUpdateProperties. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.INfsMountEndpointUpdateProperties. /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.INfsMountEndpointUpdateProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.INfsMountEndpointUpdateProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject json ? new NfsMountEndpointUpdateProperties(json) : null; } @@ -76,7 +76,7 @@ internal NfsMountEndpointUpdateProperties(Microsoft.Azure.PowerShell.Cmdlets.Sto { return; } - __endpointBaseUpdateProperties = new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.EndpointBaseUpdateProperties(json); + __endpointBaseUpdateProperties = new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.EndpointBaseUpdateProperties(json); AfterFromJson(json); } diff --git a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/Project.PowerShell.cs b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/Project.PowerShell.cs similarity index 92% rename from generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/Project.PowerShell.cs rename to generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/Project.PowerShell.cs index 6eb7a92c5e71..0fc2ec52fb75 100644 --- a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/Project.PowerShell.cs +++ b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/Project.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701 { using Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.PowerShell; @@ -63,27 +63,27 @@ public partial class Project partial void OverrideToString(ref string stringResult, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IProject DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IProject DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new Project(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IProject DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IProject DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new Project(content); } @@ -93,10 +93,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IProject FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IProject FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(jsonText)); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -111,7 +111,7 @@ internal Project(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("Property")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IProjectInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IProjectProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IProjectInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.ProjectPropertiesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IProjectInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IProjectProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IProjectInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ProjectPropertiesTypeConverter.ConvertFrom); } if (content.Contains("SystemDataCreatedBy")) { @@ -155,17 +155,17 @@ internal Project(global::System.Collections.IDictionary content) } if (content.Contains("ProvisioningState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IProjectInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IProjectInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IProjectInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IProjectInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState.CreateFrom); } if (content.Contains("Description")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IProjectInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IProjectInternal)this).Description, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IProjectInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IProjectInternal)this).Description, global::System.Convert.ToString); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -180,7 +180,7 @@ internal Project(global::System.Management.Automation.PSObject content) // actually deserialize if (content.Contains("Property")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IProjectInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IProjectProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IProjectInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.ProjectPropertiesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IProjectInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IProjectProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IProjectInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ProjectPropertiesTypeConverter.ConvertFrom); } if (content.Contains("SystemDataCreatedBy")) { @@ -224,11 +224,11 @@ internal Project(global::System.Management.Automation.PSObject content) } if (content.Contains("ProvisioningState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IProjectInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IProjectInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IProjectInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IProjectInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState.CreateFrom); } if (content.Contains("Description")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IProjectInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IProjectInternal)this).Description, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IProjectInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IProjectInternal)this).Description, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/Project.TypeConverter.cs b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/Project.TypeConverter.cs similarity index 98% rename from generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/Project.TypeConverter.cs rename to generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/Project.TypeConverter.cs index a1c08b809583..ef7250206ffb 100644 --- a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/Project.TypeConverter.cs +++ b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/Project.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701 { using Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.PowerShell; @@ -105,14 +105,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IProject ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IProject ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IProject).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IProject).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/Project.cs b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/Project.cs similarity index 94% rename from generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/Project.cs rename to generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/Project.cs index 634b53209f95..6c0da0447688 100644 --- a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/Project.cs +++ b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/Project.cs @@ -3,15 +3,15 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701 { using static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Extensions; /// The Project resource. [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.DoNotFormat] public partial class Project : - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IProject, - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IProjectInternal, + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IProject, + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IProjectInternal, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IValidates { /// @@ -22,7 +22,7 @@ public partial class Project : /// A description for the Project. [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inlined)] - public string Description { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IProjectPropertiesInternal)Property).Description; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IProjectPropertiesInternal)Property).Description = value ?? null; } + public string Description { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IProjectPropertiesInternal)Property).Description; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IProjectPropertiesInternal)Property).Description = value ?? null; } /// /// Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} @@ -31,10 +31,10 @@ public partial class Project : public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)__resource).Id; } /// Internal Acessors for Property - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IProjectProperties Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IProjectInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.ProjectProperties()); set { {_property = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IProjectProperties Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IProjectInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ProjectProperties()); set { {_property = value;} } } /// Internal Acessors for ProvisioningState - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IProjectInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IProjectPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IProjectPropertiesInternal)Property).ProvisioningState = value; } + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IProjectInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IProjectPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IProjectPropertiesInternal)Property).ProvisioningState = value; } /// Internal Acessors for Id string Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)__resource).Id = value; } @@ -53,15 +53,15 @@ public partial class Project : public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)__resource).Name; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IProjectProperties _property; + private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IProjectProperties _property; /// Project properties. [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IProjectProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.ProjectProperties()); set => this._property = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IProjectProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ProjectProperties()); set => this._property = value; } /// The provisioning state of this resource. [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState? ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IProjectPropertiesInternal)Property).ProvisioningState; } + public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState? ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IProjectPropertiesInternal)Property).ProvisioningState; } /// /// Azure Resource Manager metadata containing createdBy and modifiedBy information. @@ -147,7 +147,7 @@ internal partial interface IProjectInternal : /// A description for the Project. string Description { get; set; } /// Project properties. - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IProjectProperties Property { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IProjectProperties Property { get; set; } /// The provisioning state of this resource. Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState? ProvisioningState { get; set; } diff --git a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/Project.json.cs b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/Project.json.cs similarity index 97% rename from generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/Project.json.cs rename to generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/Project.json.cs index e6feb561862d..8aac2f67cf35 100644 --- a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/Project.json.cs +++ b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/Project.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701 { using static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class Project partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IProject. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IProject. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IProject. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IProject. /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IProject FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IProject FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject json ? new Project(json) : null; } @@ -78,7 +78,7 @@ internal Project(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.Js return; } __resource = new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.Resource(json); - {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.ProjectProperties.FromJson(__jsonProperties) : Property;} + {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ProjectProperties.FromJson(__jsonProperties) : Property;} AfterFromJson(json); } diff --git a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/ProjectList.PowerShell.cs b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/ProjectList.PowerShell.cs similarity index 85% rename from generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/ProjectList.PowerShell.cs rename to generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/ProjectList.PowerShell.cs index b1e9063e5d6a..6abf4402d4ee 100644 --- a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/ProjectList.PowerShell.cs +++ b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/ProjectList.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701 { using Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.PowerShell; @@ -63,27 +63,27 @@ public partial class ProjectList partial void OverrideToString(ref string stringResult, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IProjectList DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IProjectList DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new ProjectList(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IProjectList DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IProjectList DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new ProjectList(content); } @@ -93,10 +93,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IProjectList FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IProjectList FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(jsonText)); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -111,17 +111,17 @@ internal ProjectList(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("Value")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IProjectListInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IProject[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IProjectListInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.ProjectTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IProjectListInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IProject[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IProjectListInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ProjectTypeConverter.ConvertFrom)); } if (content.Contains("NextLink")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IProjectListInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IProjectListInternal)this).NextLink, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IProjectListInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IProjectListInternal)this).NextLink, global::System.Convert.ToString); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -136,11 +136,11 @@ internal ProjectList(global::System.Management.Automation.PSObject content) // actually deserialize if (content.Contains("Value")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IProjectListInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IProject[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IProjectListInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.ProjectTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IProjectListInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IProject[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IProjectListInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ProjectTypeConverter.ConvertFrom)); } if (content.Contains("NextLink")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IProjectListInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IProjectListInternal)this).NextLink, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IProjectListInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IProjectListInternal)this).NextLink, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/ProjectList.TypeConverter.cs b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/ProjectList.TypeConverter.cs similarity index 98% rename from generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/ProjectList.TypeConverter.cs rename to generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/ProjectList.TypeConverter.cs index f4029e4d330c..892cfd3703d5 100644 --- a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/ProjectList.TypeConverter.cs +++ b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/ProjectList.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701 { using Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IProjectList ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IProjectList ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IProjectList).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IProjectList).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/ProjectList.cs b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/ProjectList.cs similarity index 60% rename from generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/ProjectList.cs rename to generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/ProjectList.cs index e1a30cbfc761..315261e091e5 100644 --- a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/ProjectList.cs +++ b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/ProjectList.cs @@ -3,38 +3,33 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701 { using static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Extensions; /// List of Project resources. [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.DoNotFormat] public partial class ProjectList : - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IProjectList, - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IProjectListInternal + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IProjectList, + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IProjectListInternal { - /// Internal Acessors for NextLink - string Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IProjectListInternal.NextLink { get => this._nextLink; set { {_nextLink = value;} } } - /// Internal Acessors for Value - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IProject[] Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IProjectListInternal.Value { get => this._value; set { {_value = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IProject[] Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IProjectListInternal.Value { get => this._value; set { {_value = value;} } } /// Backing field for property. private string _nextLink; - /// - /// Request URL that can be used to query next page of containers. Returned when total number of requested containers exceed - /// maximum page size. - /// + /// The link to the next page of items [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Owned)] - public string NextLink { get => this._nextLink; } + public string NextLink { get => this._nextLink; set => this._nextLink = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IProject[] _value; + private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IProject[] _value; + /// The Project items on this page [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IProject[] Value { get => this._value; } + public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IProject[] Value { get => this._value; } /// Creates an new instance. public ProjectList() @@ -46,38 +41,32 @@ public ProjectList() public partial interface IProjectList : Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IJsonSerializable { - /// - /// Request URL that can be used to query next page of containers. Returned when total number of requested containers exceed - /// maximum page size. - /// + /// The link to the next page of items [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Info( Required = false, - ReadOnly = true, - Description = @"Request URL that can be used to query next page of containers. Returned when total number of requested containers exceed maximum page size.", + ReadOnly = false, + Description = @"The link to the next page of items", SerializedName = @"nextLink", PossibleTypes = new [] { typeof(string) })] - string NextLink { get; } - + string NextLink { get; set; } + /// The Project items on this page [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Info( - Required = false, + Required = true, ReadOnly = true, - Description = @"", + Description = @"The Project items on this page", SerializedName = @"value", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IProject) })] - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IProject[] Value { get; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IProject) })] + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IProject[] Value { get; } } /// List of Project resources. internal partial interface IProjectListInternal { - /// - /// Request URL that can be used to query next page of containers. Returned when total number of requested containers exceed - /// maximum page size. - /// + /// The link to the next page of items string NextLink { get; set; } - - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IProject[] Value { get; set; } + /// The Project items on this page + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IProject[] Value { get; set; } } } \ No newline at end of file diff --git a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/ProjectList.json.cs b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/ProjectList.json.cs similarity index 90% rename from generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/ProjectList.json.cs rename to generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/ProjectList.json.cs index 3b3e2eb79120..02f89c4db2e4 100644 --- a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/ProjectList.json.cs +++ b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/ProjectList.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701 { using static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class ProjectList partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IProjectList. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IProjectList. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IProjectList. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IProjectList. /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IProjectList FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IProjectList FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject json ? new ProjectList(json) : null; } @@ -77,7 +77,7 @@ internal ProjectList(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Jso { return; } - {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IProject) (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.Project.FromJson(__u) )) ))() : null : Value;} + {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IProject) (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.Project.FromJson(__u) )) ))() : null : Value;} {_nextLink = If( json?.PropertyT("nextLink"), out var __jsonNextLink) ? (string)__jsonNextLink : (string)NextLink;} AfterFromJson(json); } @@ -113,10 +113,7 @@ public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode ToJ container.Add("value",__w); } } - if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.SerializationMode.IncludeReadOnly)) - { - AddIf( null != (((object)this._nextLink)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonString(this._nextLink.ToString()) : null, "nextLink" ,container.Add ); - } + AddIf( null != (((object)this._nextLink)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonString(this._nextLink.ToString()) : null, "nextLink" ,container.Add ); AfterToJson(ref container); return container; } diff --git a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/ProjectProperties.PowerShell.cs b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/ProjectProperties.PowerShell.cs similarity index 89% rename from generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/ProjectProperties.PowerShell.cs rename to generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/ProjectProperties.PowerShell.cs index 7477d9b63696..d93b01ffde86 100644 --- a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/ProjectProperties.PowerShell.cs +++ b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/ProjectProperties.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701 { using Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.PowerShell; @@ -63,27 +63,27 @@ public partial class ProjectProperties partial void OverrideToString(ref string stringResult, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IProjectProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IProjectProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new ProjectProperties(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IProjectProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IProjectProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new ProjectProperties(content); } @@ -93,10 +93,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IProjectProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IProjectProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(jsonText)); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -111,17 +111,17 @@ internal ProjectProperties(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("Description")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IProjectPropertiesInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IProjectPropertiesInternal)this).Description, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IProjectPropertiesInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IProjectPropertiesInternal)this).Description, global::System.Convert.ToString); } if (content.Contains("ProvisioningState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IProjectPropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IProjectPropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IProjectPropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IProjectPropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState.CreateFrom); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -136,11 +136,11 @@ internal ProjectProperties(global::System.Management.Automation.PSObject content // actually deserialize if (content.Contains("Description")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IProjectPropertiesInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IProjectPropertiesInternal)this).Description, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IProjectPropertiesInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IProjectPropertiesInternal)this).Description, global::System.Convert.ToString); } if (content.Contains("ProvisioningState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IProjectPropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IProjectPropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IProjectPropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IProjectPropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState.CreateFrom); } AfterDeserializePSObject(content); } diff --git a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/ProjectProperties.TypeConverter.cs b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/ProjectProperties.TypeConverter.cs similarity index 98% rename from generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/ProjectProperties.TypeConverter.cs rename to generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/ProjectProperties.TypeConverter.cs index aad431e89cb1..65b23c8c826c 100644 --- a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/ProjectProperties.TypeConverter.cs +++ b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/ProjectProperties.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701 { using Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IProjectProperties ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IProjectProperties ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IProjectProperties).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IProjectProperties).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/ProjectProperties.cs b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/ProjectProperties.cs similarity index 96% rename from generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/ProjectProperties.cs rename to generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/ProjectProperties.cs index 3ac25b9da51f..3f9fafe3b6d3 100644 --- a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/ProjectProperties.cs +++ b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/ProjectProperties.cs @@ -3,15 +3,15 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701 { using static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Extensions; /// Project properties. [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.DoNotFormat] public partial class ProjectProperties : - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IProjectProperties, - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IProjectPropertiesInternal + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IProjectProperties, + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IProjectPropertiesInternal { /// Backing field for property. @@ -22,7 +22,7 @@ public partial class ProjectProperties : public string Description { get => this._description; set => this._description = value; } /// Internal Acessors for ProvisioningState - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IProjectPropertiesInternal.ProvisioningState { get => this._provisioningState; set { {_provisioningState = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IProjectPropertiesInternal.ProvisioningState { get => this._provisioningState; set { {_provisioningState = value;} } } /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState? _provisioningState; diff --git a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/ProjectProperties.json.cs b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/ProjectProperties.json.cs similarity index 98% rename from generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/ProjectProperties.json.cs rename to generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/ProjectProperties.json.cs index 701cadbb5700..f0860c979bb6 100644 --- a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/ProjectProperties.json.cs +++ b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/ProjectProperties.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701 { using static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class ProjectProperties partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IProjectProperties. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IProjectProperties. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IProjectProperties. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IProjectProperties. /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IProjectProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IProjectProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject json ? new ProjectProperties(json) : null; } diff --git a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/ProjectUpdateParameters.PowerShell.cs b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/ProjectUpdateParameters.PowerShell.cs similarity index 87% rename from generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/ProjectUpdateParameters.PowerShell.cs rename to generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/ProjectUpdateParameters.PowerShell.cs index 729bc9448009..19276af7e2aa 100644 --- a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/ProjectUpdateParameters.PowerShell.cs +++ b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/ProjectUpdateParameters.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701 { using Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.PowerShell; @@ -63,29 +63,29 @@ public partial class ProjectUpdateParameters partial void OverrideToString(ref string stringResult, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IProjectUpdateParameters DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IProjectUpdateParameters DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new ProjectUpdateParameters(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IProjectUpdateParameters DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IProjectUpdateParameters DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new ProjectUpdateParameters(content); } @@ -95,10 +95,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IProjectUpdateParameters FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IProjectUpdateParameters FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(jsonText)); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -113,17 +113,17 @@ internal ProjectUpdateParameters(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("Property")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IProjectUpdateParametersInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IProjectUpdateProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IProjectUpdateParametersInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.ProjectUpdatePropertiesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IProjectUpdateParametersInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IProjectUpdateProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IProjectUpdateParametersInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ProjectUpdatePropertiesTypeConverter.ConvertFrom); } if (content.Contains("Description")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IProjectUpdateParametersInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IProjectUpdateParametersInternal)this).Description, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IProjectUpdateParametersInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IProjectUpdateParametersInternal)this).Description, global::System.Convert.ToString); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -138,11 +138,11 @@ internal ProjectUpdateParameters(global::System.Management.Automation.PSObject c // actually deserialize if (content.Contains("Property")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IProjectUpdateParametersInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IProjectUpdateProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IProjectUpdateParametersInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.ProjectUpdatePropertiesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IProjectUpdateParametersInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IProjectUpdateProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IProjectUpdateParametersInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ProjectUpdatePropertiesTypeConverter.ConvertFrom); } if (content.Contains("Description")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IProjectUpdateParametersInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IProjectUpdateParametersInternal)this).Description, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IProjectUpdateParametersInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IProjectUpdateParametersInternal)this).Description, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/ProjectUpdateParameters.TypeConverter.cs b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/ProjectUpdateParameters.TypeConverter.cs similarity index 98% rename from generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/ProjectUpdateParameters.TypeConverter.cs rename to generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/ProjectUpdateParameters.TypeConverter.cs index 945fa27e0ddc..566564bd0f04 100644 --- a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/ProjectUpdateParameters.TypeConverter.cs +++ b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/ProjectUpdateParameters.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701 { using Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IProjectUpdateParameters ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IProjectUpdateParameters ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IProjectUpdateParameters).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IProjectUpdateParameters).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/ProjectUpdateParameters.cs b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/ProjectUpdateParameters.cs similarity index 81% rename from generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/ProjectUpdateParameters.cs rename to generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/ProjectUpdateParameters.cs index 2b3b0c6aa512..0640b59c86c1 100644 --- a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/ProjectUpdateParameters.cs +++ b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/ProjectUpdateParameters.cs @@ -3,30 +3,30 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701 { using static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Extensions; /// The Project resource. [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.DoNotFormat] public partial class ProjectUpdateParameters : - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IProjectUpdateParameters, - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IProjectUpdateParametersInternal + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IProjectUpdateParameters, + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IProjectUpdateParametersInternal { /// A description for the Project. [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inlined)] - public string Description { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IProjectUpdatePropertiesInternal)Property).Description; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IProjectUpdatePropertiesInternal)Property).Description = value ?? null; } + public string Description { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IProjectUpdatePropertiesInternal)Property).Description; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IProjectUpdatePropertiesInternal)Property).Description = value ?? null; } /// Internal Acessors for Property - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IProjectUpdateProperties Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IProjectUpdateParametersInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.ProjectUpdateProperties()); set { {_property = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IProjectUpdateProperties Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IProjectUpdateParametersInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ProjectUpdateProperties()); set { {_property = value;} } } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IProjectUpdateProperties _property; + private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IProjectUpdateProperties _property; /// Project properties. [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IProjectUpdateProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.ProjectUpdateProperties()); set => this._property = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IProjectUpdateProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ProjectUpdateProperties()); set => this._property = value; } /// Creates an new instance. public ProjectUpdateParameters() @@ -55,7 +55,7 @@ internal partial interface IProjectUpdateParametersInternal /// A description for the Project. string Description { get; set; } /// Project properties. - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IProjectUpdateProperties Property { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IProjectUpdateProperties Property { get; set; } } } \ No newline at end of file diff --git a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/ProjectUpdateParameters.json.cs b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/ProjectUpdateParameters.json.cs similarity index 96% rename from generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/ProjectUpdateParameters.json.cs rename to generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/ProjectUpdateParameters.json.cs index e469942a6afb..e054388e3832 100644 --- a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/ProjectUpdateParameters.json.cs +++ b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/ProjectUpdateParameters.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701 { using static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class ProjectUpdateParameters partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IProjectUpdateParameters. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IProjectUpdateParameters. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IProjectUpdateParameters. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IProjectUpdateParameters. /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IProjectUpdateParameters FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IProjectUpdateParameters FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject json ? new ProjectUpdateParameters(json) : null; } @@ -77,7 +77,7 @@ internal ProjectUpdateParameters(Microsoft.Azure.PowerShell.Cmdlets.StorageMover { return; } - {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.ProjectUpdateProperties.FromJson(__jsonProperties) : Property;} + {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ProjectUpdateProperties.FromJson(__jsonProperties) : Property;} AfterFromJson(json); } diff --git a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/ProjectUpdateProperties.PowerShell.cs b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/ProjectUpdateProperties.PowerShell.cs similarity index 91% rename from generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/ProjectUpdateProperties.PowerShell.cs rename to generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/ProjectUpdateProperties.PowerShell.cs index 883357c0e193..becc2facbe3f 100644 --- a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/ProjectUpdateProperties.PowerShell.cs +++ b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/ProjectUpdateProperties.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701 { using Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.PowerShell; @@ -63,29 +63,29 @@ public partial class ProjectUpdateProperties partial void OverrideToString(ref string stringResult, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IProjectUpdateProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IProjectUpdateProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new ProjectUpdateProperties(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IProjectUpdateProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IProjectUpdateProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new ProjectUpdateProperties(content); } @@ -95,10 +95,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IProjectUpdateProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IProjectUpdateProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(jsonText)); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -113,13 +113,13 @@ internal ProjectUpdateProperties(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("Description")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IProjectUpdatePropertiesInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IProjectUpdatePropertiesInternal)this).Description, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IProjectUpdatePropertiesInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IProjectUpdatePropertiesInternal)this).Description, global::System.Convert.ToString); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -134,7 +134,7 @@ internal ProjectUpdateProperties(global::System.Management.Automation.PSObject c // actually deserialize if (content.Contains("Description")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IProjectUpdatePropertiesInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IProjectUpdatePropertiesInternal)this).Description, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IProjectUpdatePropertiesInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IProjectUpdatePropertiesInternal)this).Description, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/ProjectUpdateProperties.TypeConverter.cs b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/ProjectUpdateProperties.TypeConverter.cs similarity index 98% rename from generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/ProjectUpdateProperties.TypeConverter.cs rename to generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/ProjectUpdateProperties.TypeConverter.cs index 65aaee1adb89..b96a79080d9f 100644 --- a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/ProjectUpdateProperties.TypeConverter.cs +++ b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/ProjectUpdateProperties.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701 { using Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IProjectUpdateProperties ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IProjectUpdateProperties ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IProjectUpdateProperties).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IProjectUpdateProperties).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/ProjectUpdateProperties.cs b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/ProjectUpdateProperties.cs similarity index 95% rename from generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/ProjectUpdateProperties.cs rename to generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/ProjectUpdateProperties.cs index 29c4fb839e58..b78c47d3a50e 100644 --- a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/ProjectUpdateProperties.cs +++ b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/ProjectUpdateProperties.cs @@ -3,15 +3,15 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701 { using static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Extensions; /// Project properties. [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.DoNotFormat] public partial class ProjectUpdateProperties : - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IProjectUpdateProperties, - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IProjectUpdatePropertiesInternal + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IProjectUpdateProperties, + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IProjectUpdatePropertiesInternal { /// Backing field for property. diff --git a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/ProjectUpdateProperties.json.cs b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/ProjectUpdateProperties.json.cs similarity index 97% rename from generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/ProjectUpdateProperties.json.cs rename to generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/ProjectUpdateProperties.json.cs index 1888392b7aa3..05c61f38b4b5 100644 --- a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/ProjectUpdateProperties.json.cs +++ b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/ProjectUpdateProperties.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701 { using static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class ProjectUpdateProperties partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IProjectUpdateProperties. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IProjectUpdateProperties. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IProjectUpdateProperties. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IProjectUpdateProperties. /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IProjectUpdateProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IProjectUpdateProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject json ? new ProjectUpdateProperties(json) : null; } diff --git a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/Recurrence.PowerShell.cs b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/Recurrence.PowerShell.cs similarity index 81% rename from generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/Recurrence.PowerShell.cs rename to generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/Recurrence.PowerShell.cs index e206d42af3f8..bce8ede6f05b 100644 --- a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/Recurrence.PowerShell.cs +++ b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/Recurrence.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701 { using Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.PowerShell; @@ -63,27 +63,27 @@ public partial class Recurrence partial void OverrideToString(ref string stringResult, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IRecurrence DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IRecurrence DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new Recurrence(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IRecurrence DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IRecurrence DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new Recurrence(content); } @@ -93,10 +93,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IRecurrence FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IRecurrence FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(jsonText)); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -111,33 +111,33 @@ internal Recurrence(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("StartTime")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IRecurrenceInternal)this).StartTime = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.ITime) content.GetValueForProperty("StartTime",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IRecurrenceInternal)this).StartTime, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.TimeTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IRecurrenceInternal)this).StartTime = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ITime) content.GetValueForProperty("StartTime",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IRecurrenceInternal)this).StartTime, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.TimeTypeConverter.ConvertFrom); } if (content.Contains("EndTime")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IRecurrenceInternal)this).EndTime = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.ITime) content.GetValueForProperty("EndTime",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IRecurrenceInternal)this).EndTime, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.TimeTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IRecurrenceInternal)this).EndTime = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ITime) content.GetValueForProperty("EndTime",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IRecurrenceInternal)this).EndTime, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.TimeTypeConverter.ConvertFrom); } if (content.Contains("StartTimeHour")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IRecurrenceInternal)this).StartTimeHour = (int) content.GetValueForProperty("StartTimeHour",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IRecurrenceInternal)this).StartTimeHour, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IRecurrenceInternal)this).StartTimeHour = (int) content.GetValueForProperty("StartTimeHour",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IRecurrenceInternal)this).StartTimeHour, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("StartTimeMinute")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IRecurrenceInternal)this).StartTimeMinute = (int?) content.GetValueForProperty("StartTimeMinute",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IRecurrenceInternal)this).StartTimeMinute, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IRecurrenceInternal)this).StartTimeMinute = (int?) content.GetValueForProperty("StartTimeMinute",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IRecurrenceInternal)this).StartTimeMinute, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("EndTimeHour")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IRecurrenceInternal)this).EndTimeHour = (int) content.GetValueForProperty("EndTimeHour",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IRecurrenceInternal)this).EndTimeHour, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IRecurrenceInternal)this).EndTimeHour = (int) content.GetValueForProperty("EndTimeHour",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IRecurrenceInternal)this).EndTimeHour, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("EndTimeMinute")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IRecurrenceInternal)this).EndTimeMinute = (int?) content.GetValueForProperty("EndTimeMinute",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IRecurrenceInternal)this).EndTimeMinute, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IRecurrenceInternal)this).EndTimeMinute = (int?) content.GetValueForProperty("EndTimeMinute",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IRecurrenceInternal)this).EndTimeMinute, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -152,27 +152,27 @@ internal Recurrence(global::System.Management.Automation.PSObject content) // actually deserialize if (content.Contains("StartTime")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IRecurrenceInternal)this).StartTime = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.ITime) content.GetValueForProperty("StartTime",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IRecurrenceInternal)this).StartTime, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.TimeTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IRecurrenceInternal)this).StartTime = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ITime) content.GetValueForProperty("StartTime",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IRecurrenceInternal)this).StartTime, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.TimeTypeConverter.ConvertFrom); } if (content.Contains("EndTime")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IRecurrenceInternal)this).EndTime = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.ITime) content.GetValueForProperty("EndTime",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IRecurrenceInternal)this).EndTime, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.TimeTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IRecurrenceInternal)this).EndTime = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ITime) content.GetValueForProperty("EndTime",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IRecurrenceInternal)this).EndTime, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.TimeTypeConverter.ConvertFrom); } if (content.Contains("StartTimeHour")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IRecurrenceInternal)this).StartTimeHour = (int) content.GetValueForProperty("StartTimeHour",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IRecurrenceInternal)this).StartTimeHour, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IRecurrenceInternal)this).StartTimeHour = (int) content.GetValueForProperty("StartTimeHour",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IRecurrenceInternal)this).StartTimeHour, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("StartTimeMinute")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IRecurrenceInternal)this).StartTimeMinute = (int?) content.GetValueForProperty("StartTimeMinute",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IRecurrenceInternal)this).StartTimeMinute, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IRecurrenceInternal)this).StartTimeMinute = (int?) content.GetValueForProperty("StartTimeMinute",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IRecurrenceInternal)this).StartTimeMinute, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("EndTimeHour")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IRecurrenceInternal)this).EndTimeHour = (int) content.GetValueForProperty("EndTimeHour",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IRecurrenceInternal)this).EndTimeHour, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IRecurrenceInternal)this).EndTimeHour = (int) content.GetValueForProperty("EndTimeHour",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IRecurrenceInternal)this).EndTimeHour, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("EndTimeMinute")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IRecurrenceInternal)this).EndTimeMinute = (int?) content.GetValueForProperty("EndTimeMinute",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IRecurrenceInternal)this).EndTimeMinute, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IRecurrenceInternal)this).EndTimeMinute = (int?) content.GetValueForProperty("EndTimeMinute",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IRecurrenceInternal)this).EndTimeMinute, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } AfterDeserializePSObject(content); } diff --git a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/Recurrence.TypeConverter.cs b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/Recurrence.TypeConverter.cs similarity index 98% rename from generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/Recurrence.TypeConverter.cs rename to generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/Recurrence.TypeConverter.cs index 2efc680dc434..a3a7098360c3 100644 --- a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/Recurrence.TypeConverter.cs +++ b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/Recurrence.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701 { using Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.PowerShell; @@ -105,14 +105,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IRecurrence ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IRecurrence ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IRecurrence).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IRecurrence).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/Recurrence.cs b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/Recurrence.cs similarity index 86% rename from generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/Recurrence.cs rename to generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/Recurrence.cs index 437476486311..d1a0cffd0e3f 100644 --- a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/Recurrence.cs +++ b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/Recurrence.cs @@ -3,65 +3,65 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701 { using static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Extensions; /// The schedule recurrence. public partial class Recurrence : - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IRecurrence, - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IRecurrenceInternal + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IRecurrence, + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IRecurrenceInternal { /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.ITime _endTime; + private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ITime _endTime; /// /// The end time of the schedule recurrence. Full hour and 30-minute intervals are supported. /// [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.ITime EndTime { get => (this._endTime = this._endTime ?? new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.Time()); set => this._endTime = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ITime EndTime { get => (this._endTime = this._endTime ?? new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.Time()); set => this._endTime = value; } /// /// The hour element of the time. Allowed values range from 0 (start of the selected day) to 24 (end of the selected day). /// Hour value 24 cannot be combined with any other minute value but 0. /// [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inlined)] - public int EndTimeHour { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.ITimeInternal)EndTime).Hour; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.ITimeInternal)EndTime).Hour = value ; } + public int EndTimeHour { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ITimeInternal)EndTime).Hour; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ITimeInternal)EndTime).Hour = value ; } /// /// The minute element of the time. Allowed values are 0 and 30. If not specified, its value defaults to 0. /// [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inlined)] - public int? EndTimeMinute { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.ITimeInternal)EndTime).Minute; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.ITimeInternal)EndTime).Minute = value ?? default(int); } + public int? EndTimeMinute { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ITimeInternal)EndTime).Minute; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ITimeInternal)EndTime).Minute = value ?? default(int); } /// Internal Acessors for EndTime - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.ITime Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IRecurrenceInternal.EndTime { get => (this._endTime = this._endTime ?? new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.Time()); set { {_endTime = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ITime Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IRecurrenceInternal.EndTime { get => (this._endTime = this._endTime ?? new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.Time()); set { {_endTime = value;} } } /// Internal Acessors for StartTime - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.ITime Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IRecurrenceInternal.StartTime { get => (this._startTime = this._startTime ?? new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.Time()); set { {_startTime = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ITime Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IRecurrenceInternal.StartTime { get => (this._startTime = this._startTime ?? new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.Time()); set { {_startTime = value;} } } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.ITime _startTime; + private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ITime _startTime; /// /// The start time of the schedule recurrence. Full hour and 30-minute intervals are supported. /// [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.ITime StartTime { get => (this._startTime = this._startTime ?? new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.Time()); set => this._startTime = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ITime StartTime { get => (this._startTime = this._startTime ?? new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.Time()); set => this._startTime = value; } /// /// The hour element of the time. Allowed values range from 0 (start of the selected day) to 24 (end of the selected day). /// Hour value 24 cannot be combined with any other minute value but 0. /// [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inlined)] - public int StartTimeHour { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.ITimeInternal)StartTime).Hour; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.ITimeInternal)StartTime).Hour = value ; } + public int StartTimeHour { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ITimeInternal)StartTime).Hour; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ITimeInternal)StartTime).Hour = value ; } /// /// The minute element of the time. Allowed values are 0 and 30. If not specified, its value defaults to 0. /// [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inlined)] - public int? StartTimeMinute { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.ITimeInternal)StartTime).Minute; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.ITimeInternal)StartTime).Minute = value ?? default(int); } + public int? StartTimeMinute { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ITimeInternal)StartTime).Minute; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ITimeInternal)StartTime).Minute = value ?? default(int); } /// Creates an new instance. public Recurrence() @@ -124,7 +124,7 @@ internal partial interface IRecurrenceInternal /// /// The end time of the schedule recurrence. Full hour and 30-minute intervals are supported. /// - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.ITime EndTime { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ITime EndTime { get; set; } /// /// The hour element of the time. Allowed values range from 0 (start of the selected day) to 24 (end of the selected day). /// Hour value 24 cannot be combined with any other minute value but 0. @@ -137,7 +137,7 @@ internal partial interface IRecurrenceInternal /// /// The start time of the schedule recurrence. Full hour and 30-minute intervals are supported. /// - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.ITime StartTime { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ITime StartTime { get; set; } /// /// The hour element of the time. Allowed values range from 0 (start of the selected day) to 24 (end of the selected day). /// Hour value 24 cannot be combined with any other minute value but 0. diff --git a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/Recurrence.json.cs b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/Recurrence.json.cs similarity index 96% rename from generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/Recurrence.json.cs rename to generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/Recurrence.json.cs index 9c1c27f92036..f4dc107083f6 100644 --- a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/Recurrence.json.cs +++ b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/Recurrence.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701 { using static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class Recurrence partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IRecurrence. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IRecurrence. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IRecurrence. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IRecurrence. /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IRecurrence FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IRecurrence FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject json ? new Recurrence(json) : null; } @@ -77,8 +77,8 @@ internal Recurrence(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json { return; } - {_startTime = If( json?.PropertyT("startTime"), out var __jsonStartTime) ? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.Time.FromJson(__jsonStartTime) : StartTime;} - {_endTime = If( json?.PropertyT("endTime"), out var __jsonEndTime) ? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.Time.FromJson(__jsonEndTime) : EndTime;} + {_startTime = If( json?.PropertyT("startTime"), out var __jsonStartTime) ? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.Time.FromJson(__jsonStartTime) : StartTime;} + {_endTime = If( json?.PropertyT("endTime"), out var __jsonEndTime) ? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.Time.FromJson(__jsonEndTime) : EndTime;} AfterFromJson(json); } diff --git a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/SmbMountEndpointProperties.PowerShell.cs b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/SmbMountEndpointProperties.PowerShell.cs similarity index 81% rename from generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/SmbMountEndpointProperties.PowerShell.cs rename to generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/SmbMountEndpointProperties.PowerShell.cs index a43fad376449..d0ce0e2b228a 100644 --- a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/SmbMountEndpointProperties.PowerShell.cs +++ b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/SmbMountEndpointProperties.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701 { using Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.PowerShell; @@ -63,29 +63,29 @@ public partial class SmbMountEndpointProperties partial void OverrideToString(ref string stringResult, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.ISmbMountEndpointProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ISmbMountEndpointProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new SmbMountEndpointProperties(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.ISmbMountEndpointProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ISmbMountEndpointProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new SmbMountEndpointProperties(content); } @@ -95,10 +95,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.ISmbMountEndpointProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ISmbMountEndpointProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(jsonText)); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -113,45 +113,45 @@ internal SmbMountEndpointProperties(global::System.Collections.IDictionary conte // actually deserialize if (content.Contains("Credentials")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.ISmbMountEndpointPropertiesInternal)this).Credentials = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAzureKeyVaultSmbCredentials) content.GetValueForProperty("Credentials",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.ISmbMountEndpointPropertiesInternal)this).Credentials, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.AzureKeyVaultSmbCredentialsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ISmbMountEndpointPropertiesInternal)this).Credentials = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAzureKeyVaultSmbCredentials) content.GetValueForProperty("Credentials",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ISmbMountEndpointPropertiesInternal)this).Credentials, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.AzureKeyVaultSmbCredentialsTypeConverter.ConvertFrom); } if (content.Contains("Host")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.ISmbMountEndpointPropertiesInternal)this).Host = (string) content.GetValueForProperty("Host",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.ISmbMountEndpointPropertiesInternal)this).Host, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ISmbMountEndpointPropertiesInternal)this).Host = (string) content.GetValueForProperty("Host",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ISmbMountEndpointPropertiesInternal)this).Host, global::System.Convert.ToString); } if (content.Contains("ShareName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.ISmbMountEndpointPropertiesInternal)this).ShareName = (string) content.GetValueForProperty("ShareName",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.ISmbMountEndpointPropertiesInternal)this).ShareName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ISmbMountEndpointPropertiesInternal)this).ShareName = (string) content.GetValueForProperty("ShareName",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ISmbMountEndpointPropertiesInternal)this).ShareName, global::System.Convert.ToString); } if (content.Contains("EndpointType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpointBasePropertiesInternal)this).EndpointType = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.EndpointType) content.GetValueForProperty("EndpointType",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpointBasePropertiesInternal)this).EndpointType, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.EndpointType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBasePropertiesInternal)this).EndpointType = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.EndpointType) content.GetValueForProperty("EndpointType",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBasePropertiesInternal)this).EndpointType, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.EndpointType.CreateFrom); } if (content.Contains("Description")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpointBasePropertiesInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpointBasePropertiesInternal)this).Description, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBasePropertiesInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBasePropertiesInternal)this).Description, global::System.Convert.ToString); } if (content.Contains("ProvisioningState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpointBasePropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpointBasePropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBasePropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBasePropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState.CreateFrom); } if (content.Contains("CredentialsType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.ISmbMountEndpointPropertiesInternal)this).CredentialsType = (string) content.GetValueForProperty("CredentialsType",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.ISmbMountEndpointPropertiesInternal)this).CredentialsType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ISmbMountEndpointPropertiesInternal)this).CredentialsType = (string) content.GetValueForProperty("CredentialsType",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ISmbMountEndpointPropertiesInternal)this).CredentialsType, global::System.Convert.ToString); } if (content.Contains("CredentialsUsernameUri")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.ISmbMountEndpointPropertiesInternal)this).CredentialsUsernameUri = (string) content.GetValueForProperty("CredentialsUsernameUri",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.ISmbMountEndpointPropertiesInternal)this).CredentialsUsernameUri, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ISmbMountEndpointPropertiesInternal)this).CredentialsUsernameUri = (string) content.GetValueForProperty("CredentialsUsernameUri",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ISmbMountEndpointPropertiesInternal)this).CredentialsUsernameUri, global::System.Convert.ToString); } if (content.Contains("CredentialsPasswordUri")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.ISmbMountEndpointPropertiesInternal)this).CredentialsPasswordUri = (string) content.GetValueForProperty("CredentialsPasswordUri",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.ISmbMountEndpointPropertiesInternal)this).CredentialsPasswordUri, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ISmbMountEndpointPropertiesInternal)this).CredentialsPasswordUri = (string) content.GetValueForProperty("CredentialsPasswordUri",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ISmbMountEndpointPropertiesInternal)this).CredentialsPasswordUri, global::System.Convert.ToString); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -166,39 +166,39 @@ internal SmbMountEndpointProperties(global::System.Management.Automation.PSObjec // actually deserialize if (content.Contains("Credentials")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.ISmbMountEndpointPropertiesInternal)this).Credentials = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAzureKeyVaultSmbCredentials) content.GetValueForProperty("Credentials",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.ISmbMountEndpointPropertiesInternal)this).Credentials, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.AzureKeyVaultSmbCredentialsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ISmbMountEndpointPropertiesInternal)this).Credentials = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAzureKeyVaultSmbCredentials) content.GetValueForProperty("Credentials",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ISmbMountEndpointPropertiesInternal)this).Credentials, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.AzureKeyVaultSmbCredentialsTypeConverter.ConvertFrom); } if (content.Contains("Host")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.ISmbMountEndpointPropertiesInternal)this).Host = (string) content.GetValueForProperty("Host",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.ISmbMountEndpointPropertiesInternal)this).Host, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ISmbMountEndpointPropertiesInternal)this).Host = (string) content.GetValueForProperty("Host",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ISmbMountEndpointPropertiesInternal)this).Host, global::System.Convert.ToString); } if (content.Contains("ShareName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.ISmbMountEndpointPropertiesInternal)this).ShareName = (string) content.GetValueForProperty("ShareName",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.ISmbMountEndpointPropertiesInternal)this).ShareName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ISmbMountEndpointPropertiesInternal)this).ShareName = (string) content.GetValueForProperty("ShareName",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ISmbMountEndpointPropertiesInternal)this).ShareName, global::System.Convert.ToString); } if (content.Contains("EndpointType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpointBasePropertiesInternal)this).EndpointType = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.EndpointType) content.GetValueForProperty("EndpointType",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpointBasePropertiesInternal)this).EndpointType, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.EndpointType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBasePropertiesInternal)this).EndpointType = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.EndpointType) content.GetValueForProperty("EndpointType",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBasePropertiesInternal)this).EndpointType, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.EndpointType.CreateFrom); } if (content.Contains("Description")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpointBasePropertiesInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpointBasePropertiesInternal)this).Description, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBasePropertiesInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBasePropertiesInternal)this).Description, global::System.Convert.ToString); } if (content.Contains("ProvisioningState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpointBasePropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpointBasePropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBasePropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBasePropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState.CreateFrom); } if (content.Contains("CredentialsType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.ISmbMountEndpointPropertiesInternal)this).CredentialsType = (string) content.GetValueForProperty("CredentialsType",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.ISmbMountEndpointPropertiesInternal)this).CredentialsType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ISmbMountEndpointPropertiesInternal)this).CredentialsType = (string) content.GetValueForProperty("CredentialsType",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ISmbMountEndpointPropertiesInternal)this).CredentialsType, global::System.Convert.ToString); } if (content.Contains("CredentialsUsernameUri")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.ISmbMountEndpointPropertiesInternal)this).CredentialsUsernameUri = (string) content.GetValueForProperty("CredentialsUsernameUri",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.ISmbMountEndpointPropertiesInternal)this).CredentialsUsernameUri, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ISmbMountEndpointPropertiesInternal)this).CredentialsUsernameUri = (string) content.GetValueForProperty("CredentialsUsernameUri",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ISmbMountEndpointPropertiesInternal)this).CredentialsUsernameUri, global::System.Convert.ToString); } if (content.Contains("CredentialsPasswordUri")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.ISmbMountEndpointPropertiesInternal)this).CredentialsPasswordUri = (string) content.GetValueForProperty("CredentialsPasswordUri",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.ISmbMountEndpointPropertiesInternal)this).CredentialsPasswordUri, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ISmbMountEndpointPropertiesInternal)this).CredentialsPasswordUri = (string) content.GetValueForProperty("CredentialsPasswordUri",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ISmbMountEndpointPropertiesInternal)this).CredentialsPasswordUri, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/SmbMountEndpointProperties.TypeConverter.cs b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/SmbMountEndpointProperties.TypeConverter.cs similarity index 98% rename from generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/SmbMountEndpointProperties.TypeConverter.cs rename to generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/SmbMountEndpointProperties.TypeConverter.cs index 4acc466830a6..372a569500be 100644 --- a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/SmbMountEndpointProperties.TypeConverter.cs +++ b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/SmbMountEndpointProperties.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701 { using Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.ISmbMountEndpointProperties ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ISmbMountEndpointProperties ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.ISmbMountEndpointProperties).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ISmbMountEndpointProperties).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/SmbMountEndpointProperties.cs b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/SmbMountEndpointProperties.cs similarity index 85% rename from generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/SmbMountEndpointProperties.cs rename to generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/SmbMountEndpointProperties.cs index f2c5653c8884..065f7930d06c 100644 --- a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/SmbMountEndpointProperties.cs +++ b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/SmbMountEndpointProperties.cs @@ -3,55 +3,55 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701 { using static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Extensions; /// The properties of SMB share endpoint. [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.DoNotFormat] public partial class SmbMountEndpointProperties : - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.ISmbMountEndpointProperties, - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.ISmbMountEndpointPropertiesInternal, + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ISmbMountEndpointProperties, + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ISmbMountEndpointPropertiesInternal, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpointBaseProperties __endpointBaseProperties = new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.EndpointBaseProperties(); + private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBaseProperties __endpointBaseProperties = new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.EndpointBaseProperties(); /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAzureKeyVaultSmbCredentials _credentials; + private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAzureKeyVaultSmbCredentials _credentials; /// /// The Azure Key Vault secret URIs which store the required credentials to access the SMB share. /// [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAzureKeyVaultSmbCredentials Credentials { get => (this._credentials = this._credentials ?? new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.AzureKeyVaultSmbCredentials()); set => this._credentials = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAzureKeyVaultSmbCredentials Credentials { get => (this._credentials = this._credentials ?? new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.AzureKeyVaultSmbCredentials()); set => this._credentials = value; } /// /// The Azure Key Vault secret URI which stores the password. Use empty string to clean-up existing value. /// [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inlined)] - public string CredentialsPasswordUri { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAzureKeyVaultSmbCredentialsInternal)Credentials).PasswordUri; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAzureKeyVaultSmbCredentialsInternal)Credentials).PasswordUri = value ?? null; } + public string CredentialsPasswordUri { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAzureKeyVaultSmbCredentialsInternal)Credentials).PasswordUri; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAzureKeyVaultSmbCredentialsInternal)Credentials).PasswordUri = value ?? null; } /// The Credentials type. [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inlined)] - public string CredentialsType { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.ICredentialsInternal)Credentials).Type; } + public string CredentialsType { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ICredentialsInternal)Credentials).Type; } /// /// The Azure Key Vault secret URI which stores the username. Use empty string to clean-up existing value. /// [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inlined)] - public string CredentialsUsernameUri { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAzureKeyVaultSmbCredentialsInternal)Credentials).UsernameUri; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAzureKeyVaultSmbCredentialsInternal)Credentials).UsernameUri = value ?? null; } + public string CredentialsUsernameUri { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAzureKeyVaultSmbCredentialsInternal)Credentials).UsernameUri; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAzureKeyVaultSmbCredentialsInternal)Credentials).UsernameUri = value ?? null; } /// A description for the Endpoint. [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inherited)] - public string Description { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpointBasePropertiesInternal)__endpointBaseProperties).Description; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpointBasePropertiesInternal)__endpointBaseProperties).Description = value ?? null; } + public string Description { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBasePropertiesInternal)__endpointBaseProperties).Description; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBasePropertiesInternal)__endpointBaseProperties).Description = value ?? null; } /// The Endpoint resource type. [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.EndpointType EndpointType { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpointBasePropertiesInternal)__endpointBaseProperties).EndpointType; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpointBasePropertiesInternal)__endpointBaseProperties).EndpointType = value ; } + public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.EndpointType EndpointType { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBasePropertiesInternal)__endpointBaseProperties).EndpointType; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBasePropertiesInternal)__endpointBaseProperties).EndpointType = value ; } /// Backing field for property. private string _host; @@ -61,17 +61,17 @@ public partial class SmbMountEndpointProperties : public string Host { get => this._host; set => this._host = value; } /// Internal Acessors for ProvisioningState - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpointBasePropertiesInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpointBasePropertiesInternal)__endpointBaseProperties).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpointBasePropertiesInternal)__endpointBaseProperties).ProvisioningState = value; } + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBasePropertiesInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBasePropertiesInternal)__endpointBaseProperties).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBasePropertiesInternal)__endpointBaseProperties).ProvisioningState = value; } /// Internal Acessors for Credentials - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAzureKeyVaultSmbCredentials Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.ISmbMountEndpointPropertiesInternal.Credentials { get => (this._credentials = this._credentials ?? new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.AzureKeyVaultSmbCredentials()); set { {_credentials = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAzureKeyVaultSmbCredentials Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ISmbMountEndpointPropertiesInternal.Credentials { get => (this._credentials = this._credentials ?? new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.AzureKeyVaultSmbCredentials()); set { {_credentials = value;} } } /// Internal Acessors for CredentialsType - string Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.ISmbMountEndpointPropertiesInternal.CredentialsType { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.ICredentialsInternal)Credentials).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.ICredentialsInternal)Credentials).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ISmbMountEndpointPropertiesInternal.CredentialsType { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ICredentialsInternal)Credentials).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ICredentialsInternal)Credentials).Type = value; } /// The provisioning state of this resource. [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState? ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpointBasePropertiesInternal)__endpointBaseProperties).ProvisioningState; } + public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState? ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBasePropertiesInternal)__endpointBaseProperties).ProvisioningState; } /// Backing field for property. private string _shareName; @@ -101,7 +101,7 @@ public SmbMountEndpointProperties() /// The properties of SMB share endpoint. public partial interface ISmbMountEndpointProperties : Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpointBaseProperties + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBaseProperties { /// /// The Azure Key Vault secret URI which stores the password. Use empty string to clean-up existing value. @@ -151,12 +151,12 @@ public partial interface ISmbMountEndpointProperties : } /// The properties of SMB share endpoint. internal partial interface ISmbMountEndpointPropertiesInternal : - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpointBasePropertiesInternal + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBasePropertiesInternal { /// /// The Azure Key Vault secret URIs which store the required credentials to access the SMB share. /// - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAzureKeyVaultSmbCredentials Credentials { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAzureKeyVaultSmbCredentials Credentials { get; set; } /// /// The Azure Key Vault secret URI which stores the password. Use empty string to clean-up existing value. /// diff --git a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/SmbMountEndpointProperties.json.cs b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/SmbMountEndpointProperties.json.cs similarity index 96% rename from generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/SmbMountEndpointProperties.json.cs rename to generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/SmbMountEndpointProperties.json.cs index 371ec1b57dcd..4814569a8993 100644 --- a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/SmbMountEndpointProperties.json.cs +++ b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/SmbMountEndpointProperties.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701 { using static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class SmbMountEndpointProperties partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.ISmbMountEndpointProperties. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ISmbMountEndpointProperties. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.ISmbMountEndpointProperties. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ISmbMountEndpointProperties. /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.ISmbMountEndpointProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ISmbMountEndpointProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject json ? new SmbMountEndpointProperties(json) : null; } @@ -77,8 +77,8 @@ internal SmbMountEndpointProperties(Microsoft.Azure.PowerShell.Cmdlets.StorageMo { return; } - __endpointBaseProperties = new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.EndpointBaseProperties(json); - {_credentials = If( json?.PropertyT("credentials"), out var __jsonCredentials) ? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.AzureKeyVaultSmbCredentials.FromJson(__jsonCredentials) : Credentials;} + __endpointBaseProperties = new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.EndpointBaseProperties(json); + {_credentials = If( json?.PropertyT("credentials"), out var __jsonCredentials) ? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.AzureKeyVaultSmbCredentials.FromJson(__jsonCredentials) : Credentials;} {_host = If( json?.PropertyT("host"), out var __jsonHost) ? (string)__jsonHost : (string)Host;} {_shareName = If( json?.PropertyT("shareName"), out var __jsonShareName) ? (string)__jsonShareName : (string)ShareName;} AfterFromJson(json); diff --git a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/SmbMountEndpointUpdateProperties.PowerShell.cs b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/SmbMountEndpointUpdateProperties.PowerShell.cs similarity index 83% rename from generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/SmbMountEndpointUpdateProperties.PowerShell.cs rename to generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/SmbMountEndpointUpdateProperties.PowerShell.cs index 68c3280b135b..7c468a232b14 100644 --- a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/SmbMountEndpointUpdateProperties.PowerShell.cs +++ b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/SmbMountEndpointUpdateProperties.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701 { using Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.PowerShell; @@ -63,29 +63,29 @@ public partial class SmbMountEndpointUpdateProperties partial void OverrideToString(ref string stringResult, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.ISmbMountEndpointUpdateProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ISmbMountEndpointUpdateProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new SmbMountEndpointUpdateProperties(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.ISmbMountEndpointUpdateProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ISmbMountEndpointUpdateProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new SmbMountEndpointUpdateProperties(content); } @@ -95,10 +95,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.ISmbMountEndpointUpdateProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ISmbMountEndpointUpdateProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(jsonText)); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -113,33 +113,33 @@ internal SmbMountEndpointUpdateProperties(global::System.Collections.IDictionary // actually deserialize if (content.Contains("Credentials")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.ISmbMountEndpointUpdatePropertiesInternal)this).Credentials = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAzureKeyVaultSmbCredentials) content.GetValueForProperty("Credentials",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.ISmbMountEndpointUpdatePropertiesInternal)this).Credentials, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.AzureKeyVaultSmbCredentialsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ISmbMountEndpointUpdatePropertiesInternal)this).Credentials = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAzureKeyVaultSmbCredentials) content.GetValueForProperty("Credentials",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ISmbMountEndpointUpdatePropertiesInternal)this).Credentials, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.AzureKeyVaultSmbCredentialsTypeConverter.ConvertFrom); } if (content.Contains("EndpointType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpointBaseUpdatePropertiesInternal)this).EndpointType = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.EndpointType) content.GetValueForProperty("EndpointType",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpointBaseUpdatePropertiesInternal)this).EndpointType, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.EndpointType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBaseUpdatePropertiesInternal)this).EndpointType = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.EndpointType) content.GetValueForProperty("EndpointType",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBaseUpdatePropertiesInternal)this).EndpointType, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.EndpointType.CreateFrom); } if (content.Contains("Description")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpointBaseUpdatePropertiesInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpointBaseUpdatePropertiesInternal)this).Description, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBaseUpdatePropertiesInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBaseUpdatePropertiesInternal)this).Description, global::System.Convert.ToString); } if (content.Contains("CredentialsType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.ISmbMountEndpointUpdatePropertiesInternal)this).CredentialsType = (string) content.GetValueForProperty("CredentialsType",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.ISmbMountEndpointUpdatePropertiesInternal)this).CredentialsType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ISmbMountEndpointUpdatePropertiesInternal)this).CredentialsType = (string) content.GetValueForProperty("CredentialsType",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ISmbMountEndpointUpdatePropertiesInternal)this).CredentialsType, global::System.Convert.ToString); } if (content.Contains("CredentialsUsernameUri")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.ISmbMountEndpointUpdatePropertiesInternal)this).CredentialsUsernameUri = (string) content.GetValueForProperty("CredentialsUsernameUri",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.ISmbMountEndpointUpdatePropertiesInternal)this).CredentialsUsernameUri, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ISmbMountEndpointUpdatePropertiesInternal)this).CredentialsUsernameUri = (string) content.GetValueForProperty("CredentialsUsernameUri",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ISmbMountEndpointUpdatePropertiesInternal)this).CredentialsUsernameUri, global::System.Convert.ToString); } if (content.Contains("CredentialsPasswordUri")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.ISmbMountEndpointUpdatePropertiesInternal)this).CredentialsPasswordUri = (string) content.GetValueForProperty("CredentialsPasswordUri",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.ISmbMountEndpointUpdatePropertiesInternal)this).CredentialsPasswordUri, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ISmbMountEndpointUpdatePropertiesInternal)this).CredentialsPasswordUri = (string) content.GetValueForProperty("CredentialsPasswordUri",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ISmbMountEndpointUpdatePropertiesInternal)this).CredentialsPasswordUri, global::System.Convert.ToString); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -154,27 +154,27 @@ internal SmbMountEndpointUpdateProperties(global::System.Management.Automation.P // actually deserialize if (content.Contains("Credentials")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.ISmbMountEndpointUpdatePropertiesInternal)this).Credentials = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAzureKeyVaultSmbCredentials) content.GetValueForProperty("Credentials",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.ISmbMountEndpointUpdatePropertiesInternal)this).Credentials, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.AzureKeyVaultSmbCredentialsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ISmbMountEndpointUpdatePropertiesInternal)this).Credentials = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAzureKeyVaultSmbCredentials) content.GetValueForProperty("Credentials",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ISmbMountEndpointUpdatePropertiesInternal)this).Credentials, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.AzureKeyVaultSmbCredentialsTypeConverter.ConvertFrom); } if (content.Contains("EndpointType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpointBaseUpdatePropertiesInternal)this).EndpointType = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.EndpointType) content.GetValueForProperty("EndpointType",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpointBaseUpdatePropertiesInternal)this).EndpointType, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.EndpointType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBaseUpdatePropertiesInternal)this).EndpointType = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.EndpointType) content.GetValueForProperty("EndpointType",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBaseUpdatePropertiesInternal)this).EndpointType, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.EndpointType.CreateFrom); } if (content.Contains("Description")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpointBaseUpdatePropertiesInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpointBaseUpdatePropertiesInternal)this).Description, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBaseUpdatePropertiesInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBaseUpdatePropertiesInternal)this).Description, global::System.Convert.ToString); } if (content.Contains("CredentialsType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.ISmbMountEndpointUpdatePropertiesInternal)this).CredentialsType = (string) content.GetValueForProperty("CredentialsType",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.ISmbMountEndpointUpdatePropertiesInternal)this).CredentialsType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ISmbMountEndpointUpdatePropertiesInternal)this).CredentialsType = (string) content.GetValueForProperty("CredentialsType",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ISmbMountEndpointUpdatePropertiesInternal)this).CredentialsType, global::System.Convert.ToString); } if (content.Contains("CredentialsUsernameUri")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.ISmbMountEndpointUpdatePropertiesInternal)this).CredentialsUsernameUri = (string) content.GetValueForProperty("CredentialsUsernameUri",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.ISmbMountEndpointUpdatePropertiesInternal)this).CredentialsUsernameUri, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ISmbMountEndpointUpdatePropertiesInternal)this).CredentialsUsernameUri = (string) content.GetValueForProperty("CredentialsUsernameUri",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ISmbMountEndpointUpdatePropertiesInternal)this).CredentialsUsernameUri, global::System.Convert.ToString); } if (content.Contains("CredentialsPasswordUri")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.ISmbMountEndpointUpdatePropertiesInternal)this).CredentialsPasswordUri = (string) content.GetValueForProperty("CredentialsPasswordUri",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.ISmbMountEndpointUpdatePropertiesInternal)this).CredentialsPasswordUri, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ISmbMountEndpointUpdatePropertiesInternal)this).CredentialsPasswordUri = (string) content.GetValueForProperty("CredentialsPasswordUri",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ISmbMountEndpointUpdatePropertiesInternal)this).CredentialsPasswordUri, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/SmbMountEndpointUpdateProperties.TypeConverter.cs b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/SmbMountEndpointUpdateProperties.TypeConverter.cs similarity index 98% rename from generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/SmbMountEndpointUpdateProperties.TypeConverter.cs rename to generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/SmbMountEndpointUpdateProperties.TypeConverter.cs index a3524056ef4e..918aff4b609f 100644 --- a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/SmbMountEndpointUpdateProperties.TypeConverter.cs +++ b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/SmbMountEndpointUpdateProperties.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701 { using Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.PowerShell; @@ -107,14 +107,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.ISmbMountEndpointUpdateProperties ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ISmbMountEndpointUpdateProperties ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.ISmbMountEndpointUpdateProperties).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ISmbMountEndpointUpdateProperties).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/SmbMountEndpointUpdateProperties.cs b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/SmbMountEndpointUpdateProperties.cs similarity index 83% rename from generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/SmbMountEndpointUpdateProperties.cs rename to generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/SmbMountEndpointUpdateProperties.cs index 176005df579f..c5e22de8b3da 100644 --- a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/SmbMountEndpointUpdateProperties.cs +++ b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/SmbMountEndpointUpdateProperties.cs @@ -3,61 +3,61 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701 { using static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Extensions; /// The properties of SMB share endpoint to update. [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.DoNotFormat] public partial class SmbMountEndpointUpdateProperties : - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.ISmbMountEndpointUpdateProperties, - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.ISmbMountEndpointUpdatePropertiesInternal, + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ISmbMountEndpointUpdateProperties, + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ISmbMountEndpointUpdatePropertiesInternal, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpointBaseUpdateProperties __endpointBaseUpdateProperties = new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.EndpointBaseUpdateProperties(); + private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBaseUpdateProperties __endpointBaseUpdateProperties = new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.EndpointBaseUpdateProperties(); /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAzureKeyVaultSmbCredentials _credentials; + private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAzureKeyVaultSmbCredentials _credentials; /// /// The Azure Key Vault secret URIs which store the required credentials to access the SMB share. /// [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAzureKeyVaultSmbCredentials Credentials { get => (this._credentials = this._credentials ?? new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.AzureKeyVaultSmbCredentials()); set => this._credentials = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAzureKeyVaultSmbCredentials Credentials { get => (this._credentials = this._credentials ?? new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.AzureKeyVaultSmbCredentials()); set => this._credentials = value; } /// /// The Azure Key Vault secret URI which stores the password. Use empty string to clean-up existing value. /// [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inlined)] - public string CredentialsPasswordUri { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAzureKeyVaultSmbCredentialsInternal)Credentials).PasswordUri; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAzureKeyVaultSmbCredentialsInternal)Credentials).PasswordUri = value ?? null; } + public string CredentialsPasswordUri { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAzureKeyVaultSmbCredentialsInternal)Credentials).PasswordUri; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAzureKeyVaultSmbCredentialsInternal)Credentials).PasswordUri = value ?? null; } /// The Credentials type. [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inlined)] - public string CredentialsType { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.ICredentialsInternal)Credentials).Type; } + public string CredentialsType { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ICredentialsInternal)Credentials).Type; } /// /// The Azure Key Vault secret URI which stores the username. Use empty string to clean-up existing value. /// [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inlined)] - public string CredentialsUsernameUri { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAzureKeyVaultSmbCredentialsInternal)Credentials).UsernameUri; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAzureKeyVaultSmbCredentialsInternal)Credentials).UsernameUri = value ?? null; } + public string CredentialsUsernameUri { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAzureKeyVaultSmbCredentialsInternal)Credentials).UsernameUri; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAzureKeyVaultSmbCredentialsInternal)Credentials).UsernameUri = value ?? null; } /// A description for the Endpoint. [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inherited)] - public string Description { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpointBaseUpdatePropertiesInternal)__endpointBaseUpdateProperties).Description; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpointBaseUpdatePropertiesInternal)__endpointBaseUpdateProperties).Description = value ?? null; } + public string Description { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBaseUpdatePropertiesInternal)__endpointBaseUpdateProperties).Description; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBaseUpdatePropertiesInternal)__endpointBaseUpdateProperties).Description = value ?? null; } /// The Endpoint resource type. [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.EndpointType EndpointType { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpointBaseUpdatePropertiesInternal)__endpointBaseUpdateProperties).EndpointType; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpointBaseUpdatePropertiesInternal)__endpointBaseUpdateProperties).EndpointType = value ; } + public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.EndpointType EndpointType { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBaseUpdatePropertiesInternal)__endpointBaseUpdateProperties).EndpointType; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBaseUpdatePropertiesInternal)__endpointBaseUpdateProperties).EndpointType = value ; } /// Internal Acessors for Credentials - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAzureKeyVaultSmbCredentials Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.ISmbMountEndpointUpdatePropertiesInternal.Credentials { get => (this._credentials = this._credentials ?? new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.AzureKeyVaultSmbCredentials()); set { {_credentials = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAzureKeyVaultSmbCredentials Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ISmbMountEndpointUpdatePropertiesInternal.Credentials { get => (this._credentials = this._credentials ?? new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.AzureKeyVaultSmbCredentials()); set { {_credentials = value;} } } /// Internal Acessors for CredentialsType - string Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.ISmbMountEndpointUpdatePropertiesInternal.CredentialsType { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.ICredentialsInternal)Credentials).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.ICredentialsInternal)Credentials).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ISmbMountEndpointUpdatePropertiesInternal.CredentialsType { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ICredentialsInternal)Credentials).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ICredentialsInternal)Credentials).Type = value; } /// Creates an new instance. public SmbMountEndpointUpdateProperties() @@ -80,7 +80,7 @@ public SmbMountEndpointUpdateProperties() /// The properties of SMB share endpoint to update. public partial interface ISmbMountEndpointUpdateProperties : Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpointBaseUpdateProperties + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBaseUpdateProperties { /// /// The Azure Key Vault secret URI which stores the password. Use empty string to clean-up existing value. @@ -114,12 +114,12 @@ public partial interface ISmbMountEndpointUpdateProperties : } /// The properties of SMB share endpoint to update. internal partial interface ISmbMountEndpointUpdatePropertiesInternal : - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpointBaseUpdatePropertiesInternal + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBaseUpdatePropertiesInternal { /// /// The Azure Key Vault secret URIs which store the required credentials to access the SMB share. /// - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAzureKeyVaultSmbCredentials Credentials { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAzureKeyVaultSmbCredentials Credentials { get; set; } /// /// The Azure Key Vault secret URI which stores the password. Use empty string to clean-up existing value. /// diff --git a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/SmbMountEndpointUpdateProperties.json.cs b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/SmbMountEndpointUpdateProperties.json.cs similarity index 95% rename from generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/SmbMountEndpointUpdateProperties.json.cs rename to generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/SmbMountEndpointUpdateProperties.json.cs index fc8b98fa12fd..3eb346023786 100644 --- a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/SmbMountEndpointUpdateProperties.json.cs +++ b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/SmbMountEndpointUpdateProperties.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701 { using static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class SmbMountEndpointUpdateProperties partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.ISmbMountEndpointUpdateProperties. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ISmbMountEndpointUpdateProperties. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.ISmbMountEndpointUpdateProperties. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ISmbMountEndpointUpdateProperties. /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.ISmbMountEndpointUpdateProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ISmbMountEndpointUpdateProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject json ? new SmbMountEndpointUpdateProperties(json) : null; } @@ -77,8 +77,8 @@ internal SmbMountEndpointUpdateProperties(Microsoft.Azure.PowerShell.Cmdlets.Sto { return; } - __endpointBaseUpdateProperties = new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.EndpointBaseUpdateProperties(json); - {_credentials = If( json?.PropertyT("credentials"), out var __jsonCredentials) ? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.AzureKeyVaultSmbCredentials.FromJson(__jsonCredentials) : Credentials;} + __endpointBaseUpdateProperties = new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.EndpointBaseUpdateProperties(json); + {_credentials = If( json?.PropertyT("credentials"), out var __jsonCredentials) ? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.AzureKeyVaultSmbCredentials.FromJson(__jsonCredentials) : Credentials;} AfterFromJson(json); } diff --git a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/SourceEndpoint.PowerShell.cs b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/SourceEndpoint.PowerShell.cs new file mode 100644 index 000000000000..bfe1f89abd0b --- /dev/null +++ b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/SourceEndpoint.PowerShell.cs @@ -0,0 +1,188 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701 +{ + using Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.PowerShell; + + /// The source endpoint resource for source and target mapping. + [System.ComponentModel.TypeConverter(typeof(SourceEndpointTypeConverter))] + public partial class SourceEndpoint + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// OverrideToString will be called if it is implemented. Implement this method in a partial class to enable this behavior + /// + /// /// instance serialized to a string, normally it is a Json + /// /// set returnNow to true if you provide a customized OverrideToString function + + partial void OverrideToString(ref string stringResult, ref bool returnNow); + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ISourceEndpoint DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new SourceEndpoint(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ISourceEndpoint DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new SourceEndpoint(content); + } + + /// + /// Creates a new instance of , deserializing the content from a json string. + /// + /// a string containing a JSON serialized instance of this model. + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ISourceEndpoint FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal SourceEndpoint(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Property")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ISourceEndpointInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ISourceEndpointProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ISourceEndpointInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.SourceEndpointPropertiesTypeConverter.ConvertFrom); + } + if (content.Contains("Name")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ISourceEndpointInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ISourceEndpointInternal)this).Name, global::System.Convert.ToString); + } + if (content.Contains("ResourceId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ISourceEndpointInternal)this).ResourceId = (string) content.GetValueForProperty("ResourceId",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ISourceEndpointInternal)this).ResourceId, global::System.Convert.ToString); + } + if (content.Contains("AwsS3BucketId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ISourceEndpointInternal)this).AwsS3BucketId = (string) content.GetValueForProperty("AwsS3BucketId",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ISourceEndpointInternal)this).AwsS3BucketId, global::System.Convert.ToString); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal SourceEndpoint(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Property")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ISourceEndpointInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ISourceEndpointProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ISourceEndpointInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.SourceEndpointPropertiesTypeConverter.ConvertFrom); + } + if (content.Contains("Name")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ISourceEndpointInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ISourceEndpointInternal)this).Name, global::System.Convert.ToString); + } + if (content.Contains("ResourceId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ISourceEndpointInternal)this).ResourceId = (string) content.GetValueForProperty("ResourceId",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ISourceEndpointInternal)this).ResourceId, global::System.Convert.ToString); + } + if (content.Contains("AwsS3BucketId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ISourceEndpointInternal)this).AwsS3BucketId = (string) content.GetValueForProperty("AwsS3BucketId",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ISourceEndpointInternal)this).AwsS3BucketId, global::System.Convert.ToString); + } + AfterDeserializePSObject(content); + } + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.SerializationMode.IncludeAll)?.ToString(); + + public override string ToString() + { + var returnNow = false; + var result = global::System.String.Empty; + OverrideToString(ref result, ref returnNow); + if (returnNow) + { + return result; + } + return ToJsonString(); + } + } + /// The source endpoint resource for source and target mapping. + [System.ComponentModel.TypeConverter(typeof(SourceEndpointTypeConverter))] + public partial interface ISourceEndpoint + + { + + } +} \ No newline at end of file diff --git a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/UploadLimit.TypeConverter.cs b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/SourceEndpoint.TypeConverter.cs similarity index 85% rename from generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/UploadLimit.TypeConverter.cs rename to generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/SourceEndpoint.TypeConverter.cs index eaf6e095e576..19756e6e4682 100644 --- a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/UploadLimit.TypeConverter.cs +++ b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/SourceEndpoint.TypeConverter.cs @@ -3,14 +3,14 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701 { using Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.PowerShell; /// - /// A PowerShell PSTypeConverter to support converting to an instance of + /// A PowerShell PSTypeConverter to support converting to an instance of /// - public partial class UploadLimitTypeConverter : global::System.Management.Automation.PSTypeConverter + public partial class SourceEndpointTypeConverter : global::System.Management.Automation.PSTypeConverter { /// @@ -26,13 +26,13 @@ public partial class UploadLimitTypeConverter : global::System.Management.Automa public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the + /// Determines if the converter can convert the parameter to the /// type. /// - /// the instance to check if it can be converted to the the instance to check if it can be converted to the type. /// - /// true if the instance could be converted to a type, otherwise false + /// true if the instance could be converted to a type, otherwise false /// public static bool CanConvertFrom(dynamic sourceValue) { @@ -95,31 +95,31 @@ public static bool CanConvertFrom(dynamic sourceValue) /// not used by this TypeConverter. /// when set to true, will ignore the case when converting. /// - /// an instance of , or null if there is no suitable conversion. + /// an instance of , or null if there is no suitable conversion. /// public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter into an instance of + /// Converts the parameter into an instance of /// - /// the value to convert into an instance of . + /// the value to convert into an instance of . /// - /// an instance of , or null if there is no suitable conversion. + /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IUploadLimit ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ISourceEndpoint ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IUploadLimit).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ISourceEndpoint).IsAssignableFrom(type)) { return sourceValue; } try { - return UploadLimit.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + return SourceEndpoint.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; } catch { @@ -127,11 +127,11 @@ public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701 } if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) { - return UploadLimit.DeserializeFromPSObject(sourceValue); + return SourceEndpoint.DeserializeFromPSObject(sourceValue); } if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) { - return UploadLimit.DeserializeFromDictionary(sourceValue); + return SourceEndpoint.DeserializeFromDictionary(sourceValue); } return null; } diff --git a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/SourceEndpoint.cs b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/SourceEndpoint.cs new file mode 100644 index 000000000000..f56423868c53 --- /dev/null +++ b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/SourceEndpoint.cs @@ -0,0 +1,89 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Extensions; + + /// The source endpoint resource for source and target mapping. + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.DoNotFormat] + public partial class SourceEndpoint : + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ISourceEndpoint, + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ISourceEndpointInternal + { + + /// The fully qualified ARM resource ID of the AWS S3 bucket to migrate. + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inlined)] + public string AwsS3BucketId { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ISourceEndpointPropertiesInternal)Property).AwsS3BucketId; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ISourceEndpointPropertiesInternal)Property).AwsS3BucketId = value ?? null; } + + /// Internal Acessors for Property + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ISourceEndpointProperties Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ISourceEndpointInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.SourceEndpointProperties()); set { {_property = value;} } } + + /// The name of the cloud source endpoint to migrate. + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inlined)] + public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ISourceEndpointPropertiesInternal)Property).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ISourceEndpointPropertiesInternal)Property).Name = value ?? null; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ISourceEndpointProperties _property; + + /// The properties of the cloud source endpoint to migrate. + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ISourceEndpointProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.SourceEndpointProperties()); set => this._property = value; } + + /// The fully qualified ARM resource ID of the cloud source endpoint to migrate. + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inlined)] + public string ResourceId { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ISourceEndpointPropertiesInternal)Property).SourceEndpointResourceId; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ISourceEndpointPropertiesInternal)Property).SourceEndpointResourceId = value ?? null; } + + /// Creates an new instance. + public SourceEndpoint() + { + + } + } + /// The source endpoint resource for source and target mapping. + public partial interface ISourceEndpoint : + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IJsonSerializable + { + /// The fully qualified ARM resource ID of the AWS S3 bucket to migrate. + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The fully qualified ARM resource ID of the AWS S3 bucket to migrate.", + SerializedName = @"awsS3BucketId", + PossibleTypes = new [] { typeof(string) })] + string AwsS3BucketId { get; set; } + /// The name of the cloud source endpoint to migrate. + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The name of the cloud source endpoint to migrate.", + SerializedName = @"name", + PossibleTypes = new [] { typeof(string) })] + string Name { get; set; } + /// The fully qualified ARM resource ID of the cloud source endpoint to migrate. + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The fully qualified ARM resource ID of the cloud source endpoint to migrate.", + SerializedName = @"sourceEndpointResourceId", + PossibleTypes = new [] { typeof(string) })] + string ResourceId { get; set; } + + } + /// The source endpoint resource for source and target mapping. + internal partial interface ISourceEndpointInternal + + { + /// The fully qualified ARM resource ID of the AWS S3 bucket to migrate. + string AwsS3BucketId { get; set; } + /// The name of the cloud source endpoint to migrate. + string Name { get; set; } + /// The properties of the cloud source endpoint to migrate. + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ISourceEndpointProperties Property { get; set; } + /// The fully qualified ARM resource ID of the cloud source endpoint to migrate. + string ResourceId { get; set; } + + } +} \ No newline at end of file diff --git a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/UploadLimit.json.cs b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/SourceEndpoint.json.cs similarity index 80% rename from generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/UploadLimit.json.cs rename to generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/SourceEndpoint.json.cs index 791d205433a9..879448d149c8 100644 --- a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/UploadLimit.json.cs +++ b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/SourceEndpoint.json.cs @@ -3,12 +3,12 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701 { using static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Extensions; - /// The WAN-link upload limit. - public partial class UploadLimit + /// The source endpoint resource for source and target mapping. + public partial class SourceEndpoint { /// @@ -54,25 +54,41 @@ public partial class UploadLimit partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IUploadLimit. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ISourceEndpoint. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IUploadLimit. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ISourceEndpoint. /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IUploadLimit FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ISourceEndpoint FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode node) { - return node is Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject json ? new UploadLimit(json) : null; + return node is Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject json ? new SourceEndpoint(json) : null; } /// - /// Serializes this instance of into a . + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject instance to deserialize from. + internal SourceEndpoint(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.SourceEndpointProperties.FromJson(__jsonProperties) : Property;} + AfterFromJson(json); + } + + /// + /// Serializes this instance of into a . /// /// The container to serialize this object into. If the caller /// passes in null, a new instance will be created and returned to the caller. /// Allows the caller to choose the depth of the serialization. See . /// - /// a serialized instance of as a . + /// a serialized instance of as a . /// public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.SerializationMode serializationMode) { @@ -84,25 +100,9 @@ public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode ToJ { return container; } - AddIf( (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode)new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNumber(this._limitInMbps), "limitInMbps" ,container.Add ); + AddIf( null != this._property ? (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode) this._property.ToJson(null,serializationMode) : null, "properties" ,container.Add ); AfterToJson(ref container); return container; } - - /// - /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject into a new instance of . - /// - /// A Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject instance to deserialize from. - internal UploadLimit(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject json) - { - bool returnNow = false; - BeforeFromJson(json, ref returnNow); - if (returnNow) - { - return; - } - {_limitInMbps = If( json?.PropertyT("limitInMbps"), out var __jsonLimitInMbps) ? (int)__jsonLimitInMbps : LimitInMbps;} - AfterFromJson(json); - } } } \ No newline at end of file diff --git a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/SourceEndpointProperties.PowerShell.cs b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/SourceEndpointProperties.PowerShell.cs new file mode 100644 index 000000000000..a15ddf4c827d --- /dev/null +++ b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/SourceEndpointProperties.PowerShell.cs @@ -0,0 +1,182 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701 +{ + using Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.PowerShell; + + /// The properties of the cloud source endpoint to migrate. + [System.ComponentModel.TypeConverter(typeof(SourceEndpointPropertiesTypeConverter))] + public partial class SourceEndpointProperties + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// OverrideToString will be called if it is implemented. Implement this method in a partial class to enable this behavior + /// + /// /// instance serialized to a string, normally it is a Json + /// /// set returnNow to true if you provide a customized OverrideToString function + + partial void OverrideToString(ref string stringResult, ref bool returnNow); + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ISourceEndpointProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new SourceEndpointProperties(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ISourceEndpointProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new SourceEndpointProperties(content); + } + + /// + /// Creates a new instance of , deserializing the content from a json string. + /// + /// a string containing a JSON serialized instance of this model. + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ISourceEndpointProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal SourceEndpointProperties(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Name")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ISourceEndpointPropertiesInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ISourceEndpointPropertiesInternal)this).Name, global::System.Convert.ToString); + } + if (content.Contains("SourceEndpointResourceId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ISourceEndpointPropertiesInternal)this).SourceEndpointResourceId = (string) content.GetValueForProperty("SourceEndpointResourceId",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ISourceEndpointPropertiesInternal)this).SourceEndpointResourceId, global::System.Convert.ToString); + } + if (content.Contains("AwsS3BucketId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ISourceEndpointPropertiesInternal)this).AwsS3BucketId = (string) content.GetValueForProperty("AwsS3BucketId",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ISourceEndpointPropertiesInternal)this).AwsS3BucketId, global::System.Convert.ToString); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal SourceEndpointProperties(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Name")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ISourceEndpointPropertiesInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ISourceEndpointPropertiesInternal)this).Name, global::System.Convert.ToString); + } + if (content.Contains("SourceEndpointResourceId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ISourceEndpointPropertiesInternal)this).SourceEndpointResourceId = (string) content.GetValueForProperty("SourceEndpointResourceId",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ISourceEndpointPropertiesInternal)this).SourceEndpointResourceId, global::System.Convert.ToString); + } + if (content.Contains("AwsS3BucketId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ISourceEndpointPropertiesInternal)this).AwsS3BucketId = (string) content.GetValueForProperty("AwsS3BucketId",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ISourceEndpointPropertiesInternal)this).AwsS3BucketId, global::System.Convert.ToString); + } + AfterDeserializePSObject(content); + } + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.SerializationMode.IncludeAll)?.ToString(); + + public override string ToString() + { + var returnNow = false; + var result = global::System.String.Empty; + OverrideToString(ref result, ref returnNow); + if (returnNow) + { + return result; + } + return ToJsonString(); + } + } + /// The properties of the cloud source endpoint to migrate. + [System.ComponentModel.TypeConverter(typeof(SourceEndpointPropertiesTypeConverter))] + public partial interface ISourceEndpointProperties + + { + + } +} \ No newline at end of file diff --git a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/SourceEndpointProperties.TypeConverter.cs b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/SourceEndpointProperties.TypeConverter.cs new file mode 100644 index 000000000000..2bf4e06f9808 --- /dev/null +++ b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/SourceEndpointProperties.TypeConverter.cs @@ -0,0 +1,147 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701 +{ + using Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class SourceEndpointPropertiesTypeConverter : global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); + + /// + /// Determines if the converter can convert the parameter to the + /// type. + /// + /// the instance to check if it can be converted to the type. + /// + /// true if the instance could be converted to a type, otherwise false + /// + public static bool CanConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return true; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + // we say yest to PSObjects + return true; + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + // we say yest to Hashtables/dictionaries + return true; + } + try + { + if (null != sourceValue.ToJsonString()) + { + return true; + } + } + catch + { + // Not one of our objects + } + try + { + string text = sourceValue.ToString()?.Trim(); + return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonType.Object; + } + catch + { + // Doesn't look like it can be treated as JSON + } + return false; + } + + /// + /// Determines if the parameter can be converted to the + /// parameter + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false + /// + public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; + + /// + /// Converts the parameter to the parameter using and + /// + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// + /// an instance of , or null if there is no suitable conversion. + /// + public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); + + /// + /// Converts the parameter into an instance of + /// + /// the value to convert into an instance of . + /// + /// an instance of , or null if there is no suitable conversion. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ISourceEndpointProperties ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ISourceEndpointProperties).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return SourceEndpointProperties.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return SourceEndpointProperties.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return SourceEndpointProperties.DeserializeFromDictionary(sourceValue); + } + return null; + } + + /// NotImplemented -- this will return null + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// will always return null. + public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; + } +} \ No newline at end of file diff --git a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/SourceEndpointProperties.cs b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/SourceEndpointProperties.cs new file mode 100644 index 000000000000..ee5cce9020af --- /dev/null +++ b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/SourceEndpointProperties.cs @@ -0,0 +1,86 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Extensions; + + /// The properties of the cloud source endpoint to migrate. + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.DoNotFormat] + public partial class SourceEndpointProperties : + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ISourceEndpointProperties, + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ISourceEndpointPropertiesInternal + { + + /// Backing field for property. + private string _awsS3BucketId; + + /// The fully qualified ARM resource ID of the AWS S3 bucket to migrate. + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Owned)] + public string AwsS3BucketId { get => this._awsS3BucketId; set => this._awsS3BucketId = value; } + + /// Backing field for property. + private string _name; + + /// The name of the cloud source endpoint to migrate. + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Owned)] + public string Name { get => this._name; set => this._name = value; } + + /// Backing field for property. + private string _sourceEndpointResourceId; + + /// The fully qualified ARM resource ID of the cloud source endpoint to migrate. + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Owned)] + public string SourceEndpointResourceId { get => this._sourceEndpointResourceId; set => this._sourceEndpointResourceId = value; } + + /// Creates an new instance. + public SourceEndpointProperties() + { + + } + } + /// The properties of the cloud source endpoint to migrate. + public partial interface ISourceEndpointProperties : + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IJsonSerializable + { + /// The fully qualified ARM resource ID of the AWS S3 bucket to migrate. + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The fully qualified ARM resource ID of the AWS S3 bucket to migrate.", + SerializedName = @"awsS3BucketId", + PossibleTypes = new [] { typeof(string) })] + string AwsS3BucketId { get; set; } + /// The name of the cloud source endpoint to migrate. + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The name of the cloud source endpoint to migrate.", + SerializedName = @"name", + PossibleTypes = new [] { typeof(string) })] + string Name { get; set; } + /// The fully qualified ARM resource ID of the cloud source endpoint to migrate. + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The fully qualified ARM resource ID of the cloud source endpoint to migrate.", + SerializedName = @"sourceEndpointResourceId", + PossibleTypes = new [] { typeof(string) })] + string SourceEndpointResourceId { get; set; } + + } + /// The properties of the cloud source endpoint to migrate. + internal partial interface ISourceEndpointPropertiesInternal + + { + /// The fully qualified ARM resource ID of the AWS S3 bucket to migrate. + string AwsS3BucketId { get; set; } + /// The name of the cloud source endpoint to migrate. + string Name { get; set; } + /// The fully qualified ARM resource ID of the cloud source endpoint to migrate. + string SourceEndpointResourceId { get; set; } + + } +} \ No newline at end of file diff --git a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/SourceEndpointProperties.json.cs b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/SourceEndpointProperties.json.cs new file mode 100644 index 000000000000..0703c3757b72 --- /dev/null +++ b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/SourceEndpointProperties.json.cs @@ -0,0 +1,112 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Extensions; + + /// The properties of the cloud source endpoint to migrate. + public partial class SourceEndpointProperties + { + + /// + /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JsonNode that should be deserialized into this object. + + partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JSON container that the serialization result will be placed in. + + partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject container); + + /// + /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of + /// the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the + /// output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JsonNode that should be deserialized into this object. + /// Determines if the rest of the deserialization should be processed, or if the method should return + /// instantly. + + partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject json, ref bool returnNow); + + /// + /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the + /// object before it is serialized. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JSON container that the serialization result will be placed in. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ISourceEndpointProperties. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ISourceEndpointProperties. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ISourceEndpointProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject json ? new SourceEndpointProperties(json) : null; + } + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject instance to deserialize from. + internal SourceEndpointProperties(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_name = If( json?.PropertyT("name"), out var __jsonName) ? (string)__jsonName : (string)Name;} + {_sourceEndpointResourceId = If( json?.PropertyT("sourceEndpointResourceId"), out var __jsonSourceEndpointResourceId) ? (string)__jsonSourceEndpointResourceId : (string)SourceEndpointResourceId;} + {_awsS3BucketId = If( json?.PropertyT("awsS3BucketId"), out var __jsonAwsS3BucketId) ? (string)__jsonAwsS3BucketId : (string)AwsS3BucketId;} + AfterFromJson(json); + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + AddIf( null != (((object)this._name)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonString(this._name.ToString()) : null, "name" ,container.Add ); + AddIf( null != (((object)this._sourceEndpointResourceId)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonString(this._sourceEndpointResourceId.ToString()) : null, "sourceEndpointResourceId" ,container.Add ); + AddIf( null != (((object)this._awsS3BucketId)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonString(this._awsS3BucketId.ToString()) : null, "awsS3BucketId" ,container.Add ); + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/SourceTargetMap.PowerShell.cs b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/SourceTargetMap.PowerShell.cs new file mode 100644 index 000000000000..97a89e3ebef0 --- /dev/null +++ b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/SourceTargetMap.PowerShell.cs @@ -0,0 +1,244 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701 +{ + using Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.PowerShell; + + /// The properties of cloud endpoints to migrate. + [System.ComponentModel.TypeConverter(typeof(SourceTargetMapTypeConverter))] + public partial class SourceTargetMap + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// OverrideToString will be called if it is implemented. Implement this method in a partial class to enable this behavior + /// + /// /// instance serialized to a string, normally it is a Json + /// /// set returnNow to true if you provide a customized OverrideToString function + + partial void OverrideToString(ref string stringResult, ref bool returnNow); + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ISourceTargetMap DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new SourceTargetMap(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ISourceTargetMap DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new SourceTargetMap(content); + } + + /// + /// Creates a new instance of , deserializing the content from a json string. + /// + /// a string containing a JSON serialized instance of this model. + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ISourceTargetMap FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal SourceTargetMap(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("SourceEndpoint")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ISourceTargetMapInternal)this).SourceEndpoint = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ISourceEndpoint) content.GetValueForProperty("SourceEndpoint",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ISourceTargetMapInternal)this).SourceEndpoint, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.SourceEndpointTypeConverter.ConvertFrom); + } + if (content.Contains("TargetEndpoint")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ISourceTargetMapInternal)this).TargetEndpoint = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ITargetEndpoint) content.GetValueForProperty("TargetEndpoint",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ISourceTargetMapInternal)this).TargetEndpoint, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.TargetEndpointTypeConverter.ConvertFrom); + } + if (content.Contains("SourceEndpointProperty")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ISourceTargetMapInternal)this).SourceEndpointProperty = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ISourceEndpointProperties) content.GetValueForProperty("SourceEndpointProperty",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ISourceTargetMapInternal)this).SourceEndpointProperty, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.SourceEndpointPropertiesTypeConverter.ConvertFrom); + } + if (content.Contains("TargetEndpointProperty")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ISourceTargetMapInternal)this).TargetEndpointProperty = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ITargetEndpointProperties) content.GetValueForProperty("TargetEndpointProperty",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ISourceTargetMapInternal)this).TargetEndpointProperty, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.TargetEndpointPropertiesTypeConverter.ConvertFrom); + } + if (content.Contains("SourceEndpointPropertiesName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ISourceTargetMapInternal)this).SourceEndpointPropertiesName = (string) content.GetValueForProperty("SourceEndpointPropertiesName",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ISourceTargetMapInternal)this).SourceEndpointPropertiesName, global::System.Convert.ToString); + } + if (content.Contains("TargetEndpointPropertiesName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ISourceTargetMapInternal)this).TargetEndpointPropertiesName = (string) content.GetValueForProperty("TargetEndpointPropertiesName",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ISourceTargetMapInternal)this).TargetEndpointPropertiesName, global::System.Convert.ToString); + } + if (content.Contains("SourceEndpointResourceId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ISourceTargetMapInternal)this).SourceEndpointResourceId = (string) content.GetValueForProperty("SourceEndpointResourceId",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ISourceTargetMapInternal)this).SourceEndpointResourceId, global::System.Convert.ToString); + } + if (content.Contains("AwsS3BucketId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ISourceTargetMapInternal)this).AwsS3BucketId = (string) content.GetValueForProperty("AwsS3BucketId",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ISourceTargetMapInternal)this).AwsS3BucketId, global::System.Convert.ToString); + } + if (content.Contains("TargetEndpointResourceId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ISourceTargetMapInternal)this).TargetEndpointResourceId = (string) content.GetValueForProperty("TargetEndpointResourceId",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ISourceTargetMapInternal)this).TargetEndpointResourceId, global::System.Convert.ToString); + } + if (content.Contains("AzureStorageAccountResourceId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ISourceTargetMapInternal)this).AzureStorageAccountResourceId = (string) content.GetValueForProperty("AzureStorageAccountResourceId",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ISourceTargetMapInternal)this).AzureStorageAccountResourceId, global::System.Convert.ToString); + } + if (content.Contains("AzureStorageBlobContainerName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ISourceTargetMapInternal)this).AzureStorageBlobContainerName = (string) content.GetValueForProperty("AzureStorageBlobContainerName",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ISourceTargetMapInternal)this).AzureStorageBlobContainerName, global::System.Convert.ToString); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal SourceTargetMap(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("SourceEndpoint")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ISourceTargetMapInternal)this).SourceEndpoint = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ISourceEndpoint) content.GetValueForProperty("SourceEndpoint",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ISourceTargetMapInternal)this).SourceEndpoint, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.SourceEndpointTypeConverter.ConvertFrom); + } + if (content.Contains("TargetEndpoint")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ISourceTargetMapInternal)this).TargetEndpoint = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ITargetEndpoint) content.GetValueForProperty("TargetEndpoint",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ISourceTargetMapInternal)this).TargetEndpoint, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.TargetEndpointTypeConverter.ConvertFrom); + } + if (content.Contains("SourceEndpointProperty")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ISourceTargetMapInternal)this).SourceEndpointProperty = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ISourceEndpointProperties) content.GetValueForProperty("SourceEndpointProperty",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ISourceTargetMapInternal)this).SourceEndpointProperty, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.SourceEndpointPropertiesTypeConverter.ConvertFrom); + } + if (content.Contains("TargetEndpointProperty")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ISourceTargetMapInternal)this).TargetEndpointProperty = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ITargetEndpointProperties) content.GetValueForProperty("TargetEndpointProperty",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ISourceTargetMapInternal)this).TargetEndpointProperty, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.TargetEndpointPropertiesTypeConverter.ConvertFrom); + } + if (content.Contains("SourceEndpointPropertiesName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ISourceTargetMapInternal)this).SourceEndpointPropertiesName = (string) content.GetValueForProperty("SourceEndpointPropertiesName",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ISourceTargetMapInternal)this).SourceEndpointPropertiesName, global::System.Convert.ToString); + } + if (content.Contains("TargetEndpointPropertiesName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ISourceTargetMapInternal)this).TargetEndpointPropertiesName = (string) content.GetValueForProperty("TargetEndpointPropertiesName",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ISourceTargetMapInternal)this).TargetEndpointPropertiesName, global::System.Convert.ToString); + } + if (content.Contains("SourceEndpointResourceId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ISourceTargetMapInternal)this).SourceEndpointResourceId = (string) content.GetValueForProperty("SourceEndpointResourceId",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ISourceTargetMapInternal)this).SourceEndpointResourceId, global::System.Convert.ToString); + } + if (content.Contains("AwsS3BucketId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ISourceTargetMapInternal)this).AwsS3BucketId = (string) content.GetValueForProperty("AwsS3BucketId",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ISourceTargetMapInternal)this).AwsS3BucketId, global::System.Convert.ToString); + } + if (content.Contains("TargetEndpointResourceId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ISourceTargetMapInternal)this).TargetEndpointResourceId = (string) content.GetValueForProperty("TargetEndpointResourceId",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ISourceTargetMapInternal)this).TargetEndpointResourceId, global::System.Convert.ToString); + } + if (content.Contains("AzureStorageAccountResourceId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ISourceTargetMapInternal)this).AzureStorageAccountResourceId = (string) content.GetValueForProperty("AzureStorageAccountResourceId",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ISourceTargetMapInternal)this).AzureStorageAccountResourceId, global::System.Convert.ToString); + } + if (content.Contains("AzureStorageBlobContainerName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ISourceTargetMapInternal)this).AzureStorageBlobContainerName = (string) content.GetValueForProperty("AzureStorageBlobContainerName",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ISourceTargetMapInternal)this).AzureStorageBlobContainerName, global::System.Convert.ToString); + } + AfterDeserializePSObject(content); + } + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.SerializationMode.IncludeAll)?.ToString(); + + public override string ToString() + { + var returnNow = false; + var result = global::System.String.Empty; + OverrideToString(ref result, ref returnNow); + if (returnNow) + { + return result; + } + return ToJsonString(); + } + } + /// The properties of cloud endpoints to migrate. + [System.ComponentModel.TypeConverter(typeof(SourceTargetMapTypeConverter))] + public partial interface ISourceTargetMap + + { + + } +} \ No newline at end of file diff --git a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/SourceTargetMap.TypeConverter.cs b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/SourceTargetMap.TypeConverter.cs new file mode 100644 index 000000000000..6b040bfa90b5 --- /dev/null +++ b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/SourceTargetMap.TypeConverter.cs @@ -0,0 +1,147 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701 +{ + using Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class SourceTargetMapTypeConverter : global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); + + /// + /// Determines if the converter can convert the parameter to the + /// type. + /// + /// the instance to check if it can be converted to the type. + /// + /// true if the instance could be converted to a type, otherwise false + /// + public static bool CanConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return true; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + // we say yest to PSObjects + return true; + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + // we say yest to Hashtables/dictionaries + return true; + } + try + { + if (null != sourceValue.ToJsonString()) + { + return true; + } + } + catch + { + // Not one of our objects + } + try + { + string text = sourceValue.ToString()?.Trim(); + return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonType.Object; + } + catch + { + // Doesn't look like it can be treated as JSON + } + return false; + } + + /// + /// Determines if the parameter can be converted to the + /// parameter + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false + /// + public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; + + /// + /// Converts the parameter to the parameter using and + /// + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// + /// an instance of , or null if there is no suitable conversion. + /// + public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); + + /// + /// Converts the parameter into an instance of + /// + /// the value to convert into an instance of . + /// + /// an instance of , or null if there is no suitable conversion. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ISourceTargetMap ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ISourceTargetMap).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return SourceTargetMap.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return SourceTargetMap.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return SourceTargetMap.DeserializeFromDictionary(sourceValue); + } + return null; + } + + /// NotImplemented -- this will return null + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// will always return null. + public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; + } +} \ No newline at end of file diff --git a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/SourceTargetMap.cs b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/SourceTargetMap.cs new file mode 100644 index 000000000000..fc51867c4812 --- /dev/null +++ b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/SourceTargetMap.cs @@ -0,0 +1,166 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Extensions; + + /// The properties of cloud endpoints to migrate. + public partial class SourceTargetMap : + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ISourceTargetMap, + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ISourceTargetMapInternal + { + + /// The fully qualified ARM resource ID of the AWS S3 bucket to migrate. + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inlined)] + public string AwsS3BucketId { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ISourceEndpointInternal)SourceEndpoint).AwsS3BucketId; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ISourceEndpointInternal)SourceEndpoint).AwsS3BucketId = value ?? null; } + + /// The fully qualified ARM resource ID of the Azure Storage account. + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inlined)] + public string AzureStorageAccountResourceId { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ITargetEndpointInternal)TargetEndpoint).AzureStorageAccountResourceId; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ITargetEndpointInternal)TargetEndpoint).AzureStorageAccountResourceId = value ?? null; } + + /// The name of the Azure Storage blob container. + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inlined)] + public string AzureStorageBlobContainerName { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ITargetEndpointInternal)TargetEndpoint).AzureStorageBlobContainerName; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ITargetEndpointInternal)TargetEndpoint).AzureStorageBlobContainerName = value ?? null; } + + /// Internal Acessors for SourceEndpoint + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ISourceEndpoint Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ISourceTargetMapInternal.SourceEndpoint { get => (this._sourceEndpoint = this._sourceEndpoint ?? new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.SourceEndpoint()); set { {_sourceEndpoint = value;} } } + + /// Internal Acessors for SourceEndpointProperty + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ISourceEndpointProperties Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ISourceTargetMapInternal.SourceEndpointProperty { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ISourceEndpointInternal)SourceEndpoint).Property; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ISourceEndpointInternal)SourceEndpoint).Property = value; } + + /// Internal Acessors for TargetEndpoint + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ITargetEndpoint Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ISourceTargetMapInternal.TargetEndpoint { get => (this._targetEndpoint = this._targetEndpoint ?? new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.TargetEndpoint()); set { {_targetEndpoint = value;} } } + + /// Internal Acessors for TargetEndpointProperty + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ITargetEndpointProperties Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ISourceTargetMapInternal.TargetEndpointProperty { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ITargetEndpointInternal)TargetEndpoint).Property; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ITargetEndpointInternal)TargetEndpoint).Property = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ISourceEndpoint _sourceEndpoint; + + /// The source endpoint resource for source and target mapping. + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ISourceEndpoint SourceEndpoint { get => (this._sourceEndpoint = this._sourceEndpoint ?? new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.SourceEndpoint()); set => this._sourceEndpoint = value; } + + /// The name of the cloud source endpoint to migrate. + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inlined)] + public string SourceEndpointPropertiesName { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ISourceEndpointInternal)SourceEndpoint).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ISourceEndpointInternal)SourceEndpoint).Name = value ?? null; } + + /// The fully qualified ARM resource ID of the cloud source endpoint to migrate. + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inlined)] + public string SourceEndpointResourceId { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ISourceEndpointInternal)SourceEndpoint).ResourceId; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ISourceEndpointInternal)SourceEndpoint).ResourceId = value ?? null; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ITargetEndpoint _targetEndpoint; + + /// The target endpoint resource for source and target mapping. + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ITargetEndpoint TargetEndpoint { get => (this._targetEndpoint = this._targetEndpoint ?? new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.TargetEndpoint()); set => this._targetEndpoint = value; } + + /// The name of the cloud target endpoint to migrate. + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inlined)] + public string TargetEndpointPropertiesName { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ITargetEndpointInternal)TargetEndpoint).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ITargetEndpointInternal)TargetEndpoint).Name = value ?? null; } + + /// The fully qualified ARM resource ID of the cloud target endpoint to migrate. + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inlined)] + public string TargetEndpointResourceId { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ITargetEndpointInternal)TargetEndpoint).ResourceId; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ITargetEndpointInternal)TargetEndpoint).ResourceId = value ?? null; } + + /// Creates an new instance. + public SourceTargetMap() + { + + } + } + /// The properties of cloud endpoints to migrate. + public partial interface ISourceTargetMap : + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IJsonSerializable + { + /// The fully qualified ARM resource ID of the AWS S3 bucket to migrate. + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The fully qualified ARM resource ID of the AWS S3 bucket to migrate.", + SerializedName = @"awsS3BucketId", + PossibleTypes = new [] { typeof(string) })] + string AwsS3BucketId { get; set; } + /// The fully qualified ARM resource ID of the Azure Storage account. + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The fully qualified ARM resource ID of the Azure Storage account.", + SerializedName = @"azureStorageAccountResourceId", + PossibleTypes = new [] { typeof(string) })] + string AzureStorageAccountResourceId { get; set; } + /// The name of the Azure Storage blob container. + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The name of the Azure Storage blob container.", + SerializedName = @"azureStorageBlobContainerName", + PossibleTypes = new [] { typeof(string) })] + string AzureStorageBlobContainerName { get; set; } + /// The name of the cloud source endpoint to migrate. + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The name of the cloud source endpoint to migrate.", + SerializedName = @"name", + PossibleTypes = new [] { typeof(string) })] + string SourceEndpointPropertiesName { get; set; } + /// The fully qualified ARM resource ID of the cloud source endpoint to migrate. + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The fully qualified ARM resource ID of the cloud source endpoint to migrate.", + SerializedName = @"sourceEndpointResourceId", + PossibleTypes = new [] { typeof(string) })] + string SourceEndpointResourceId { get; set; } + /// The name of the cloud target endpoint to migrate. + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The name of the cloud target endpoint to migrate.", + SerializedName = @"name", + PossibleTypes = new [] { typeof(string) })] + string TargetEndpointPropertiesName { get; set; } + /// The fully qualified ARM resource ID of the cloud target endpoint to migrate. + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The fully qualified ARM resource ID of the cloud target endpoint to migrate.", + SerializedName = @"targetEndpointResourceId", + PossibleTypes = new [] { typeof(string) })] + string TargetEndpointResourceId { get; set; } + + } + /// The properties of cloud endpoints to migrate. + internal partial interface ISourceTargetMapInternal + + { + /// The fully qualified ARM resource ID of the AWS S3 bucket to migrate. + string AwsS3BucketId { get; set; } + /// The fully qualified ARM resource ID of the Azure Storage account. + string AzureStorageAccountResourceId { get; set; } + /// The name of the Azure Storage blob container. + string AzureStorageBlobContainerName { get; set; } + /// The source endpoint resource for source and target mapping. + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ISourceEndpoint SourceEndpoint { get; set; } + /// The name of the cloud source endpoint to migrate. + string SourceEndpointPropertiesName { get; set; } + /// The properties of the cloud source endpoint to migrate. + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ISourceEndpointProperties SourceEndpointProperty { get; set; } + /// The fully qualified ARM resource ID of the cloud source endpoint to migrate. + string SourceEndpointResourceId { get; set; } + /// The target endpoint resource for source and target mapping. + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ITargetEndpoint TargetEndpoint { get; set; } + /// The name of the cloud target endpoint to migrate. + string TargetEndpointPropertiesName { get; set; } + /// The properties of the cloud target endpoint to migrate. + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ITargetEndpointProperties TargetEndpointProperty { get; set; } + /// The fully qualified ARM resource ID of the cloud target endpoint to migrate. + string TargetEndpointResourceId { get; set; } + + } +} \ No newline at end of file diff --git a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/SourceTargetMap.json.cs b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/SourceTargetMap.json.cs new file mode 100644 index 000000000000..98627006472f --- /dev/null +++ b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/SourceTargetMap.json.cs @@ -0,0 +1,110 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Extensions; + + /// The properties of cloud endpoints to migrate. + public partial class SourceTargetMap + { + + /// + /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JsonNode that should be deserialized into this object. + + partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JSON container that the serialization result will be placed in. + + partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject container); + + /// + /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of + /// the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the + /// output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JsonNode that should be deserialized into this object. + /// Determines if the rest of the deserialization should be processed, or if the method should return + /// instantly. + + partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject json, ref bool returnNow); + + /// + /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the + /// object before it is serialized. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JSON container that the serialization result will be placed in. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ISourceTargetMap. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ISourceTargetMap. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ISourceTargetMap FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject json ? new SourceTargetMap(json) : null; + } + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject instance to deserialize from. + internal SourceTargetMap(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_sourceEndpoint = If( json?.PropertyT("sourceEndpoint"), out var __jsonSourceEndpoint) ? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.SourceEndpoint.FromJson(__jsonSourceEndpoint) : SourceEndpoint;} + {_targetEndpoint = If( json?.PropertyT("targetEndpoint"), out var __jsonTargetEndpoint) ? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.TargetEndpoint.FromJson(__jsonTargetEndpoint) : TargetEndpoint;} + AfterFromJson(json); + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + AddIf( null != this._sourceEndpoint ? (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode) this._sourceEndpoint.ToJson(null,serializationMode) : null, "sourceEndpoint" ,container.Add ); + AddIf( null != this._targetEndpoint ? (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode) this._targetEndpoint.ToJson(null,serializationMode) : null, "targetEndpoint" ,container.Add ); + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/StorageMover.PowerShell.cs b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/StorageMover.PowerShell.cs similarity index 92% rename from generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/StorageMover.PowerShell.cs rename to generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/StorageMover.PowerShell.cs index d541f87f9c1a..792cf089ca8a 100644 --- a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/StorageMover.PowerShell.cs +++ b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/StorageMover.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701 { using Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.PowerShell; @@ -65,27 +65,27 @@ public partial class StorageMover partial void OverrideToString(ref string stringResult, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IStorageMover DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IStorageMover DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new StorageMover(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IStorageMover DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IStorageMover DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new StorageMover(content); } @@ -95,10 +95,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IStorageMover FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IStorageMover FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(jsonText)); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -113,7 +113,7 @@ internal StorageMover(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("Property")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IStorageMoverInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IStorageMoverProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IStorageMoverInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.StorageMoverPropertiesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IStorageMoverInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IStorageMoverProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IStorageMoverInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.StorageMoverPropertiesTypeConverter.ConvertFrom); } if (content.Contains("SystemDataCreatedBy")) { @@ -165,17 +165,17 @@ internal StorageMover(global::System.Collections.IDictionary content) } if (content.Contains("ProvisioningState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IStorageMoverInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IStorageMoverInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IStorageMoverInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IStorageMoverInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState.CreateFrom); } if (content.Contains("Description")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IStorageMoverInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IStorageMoverInternal)this).Description, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IStorageMoverInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IStorageMoverInternal)this).Description, global::System.Convert.ToString); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -190,7 +190,7 @@ internal StorageMover(global::System.Management.Automation.PSObject content) // actually deserialize if (content.Contains("Property")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IStorageMoverInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IStorageMoverProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IStorageMoverInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.StorageMoverPropertiesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IStorageMoverInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IStorageMoverProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IStorageMoverInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.StorageMoverPropertiesTypeConverter.ConvertFrom); } if (content.Contains("SystemDataCreatedBy")) { @@ -242,11 +242,11 @@ internal StorageMover(global::System.Management.Automation.PSObject content) } if (content.Contains("ProvisioningState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IStorageMoverInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IStorageMoverInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IStorageMoverInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IStorageMoverInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState.CreateFrom); } if (content.Contains("Description")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IStorageMoverInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IStorageMoverInternal)this).Description, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IStorageMoverInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IStorageMoverInternal)this).Description, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/StorageMover.TypeConverter.cs b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/StorageMover.TypeConverter.cs similarity index 98% rename from generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/StorageMover.TypeConverter.cs rename to generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/StorageMover.TypeConverter.cs index d53cf095b834..29e2e24209f2 100644 --- a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/StorageMover.TypeConverter.cs +++ b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/StorageMover.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701 { using Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IStorageMover ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IStorageMover ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IStorageMover).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IStorageMover).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/StorageMover.cs b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/StorageMover.cs similarity index 94% rename from generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/StorageMover.cs rename to generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/StorageMover.cs index 3050608686a9..a0770fe4f8b2 100644 --- a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/StorageMover.cs +++ b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/StorageMover.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701 { using static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Extensions; @@ -12,8 +12,8 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701 /// [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.DoNotFormat] public partial class StorageMover : - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IStorageMover, - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IStorageMoverInternal, + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IStorageMover, + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IStorageMoverInternal, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IValidates { /// @@ -24,7 +24,7 @@ public partial class StorageMover : /// A description for the Storage Mover. [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inlined)] - public string Description { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IStorageMoverPropertiesInternal)Property).Description; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IStorageMoverPropertiesInternal)Property).Description = value ?? null; } + public string Description { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IStorageMoverPropertiesInternal)Property).Description; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IStorageMoverPropertiesInternal)Property).Description = value ?? null; } /// /// Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} @@ -37,10 +37,10 @@ public partial class StorageMover : public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.ITrackedResourceInternal)__trackedResource).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.ITrackedResourceInternal)__trackedResource).Location = value ; } /// Internal Acessors for Property - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IStorageMoverProperties Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IStorageMoverInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.StorageMoverProperties()); set { {_property = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IStorageMoverProperties Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IStorageMoverInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.StorageMoverProperties()); set { {_property = value;} } } /// Internal Acessors for ProvisioningState - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IStorageMoverInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IStorageMoverPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IStorageMoverPropertiesInternal)Property).ProvisioningState = value; } + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IStorageMoverInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IStorageMoverPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IStorageMoverPropertiesInternal)Property).ProvisioningState = value; } /// Internal Acessors for Id string Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)__trackedResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)__trackedResource).Id = value; } @@ -59,15 +59,15 @@ public partial class StorageMover : public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)__trackedResource).Name; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IStorageMoverProperties _property; + private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IStorageMoverProperties _property; /// The resource specific properties for the Storage Mover resource. [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IStorageMoverProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.StorageMoverProperties()); set => this._property = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IStorageMoverProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.StorageMoverProperties()); set => this._property = value; } /// The provisioning state of this resource. [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState? ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IStorageMoverPropertiesInternal)Property).ProvisioningState; } + public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState? ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IStorageMoverPropertiesInternal)Property).ProvisioningState; } /// /// Azure Resource Manager metadata containing createdBy and modifiedBy information. @@ -157,7 +157,7 @@ internal partial interface IStorageMoverInternal : /// A description for the Storage Mover. string Description { get; set; } /// The resource specific properties for the Storage Mover resource. - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IStorageMoverProperties Property { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IStorageMoverProperties Property { get; set; } /// The provisioning state of this resource. Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState? ProvisioningState { get; set; } diff --git a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/StorageMover.json.cs b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/StorageMover.json.cs similarity index 97% rename from generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/StorageMover.json.cs rename to generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/StorageMover.json.cs index 7b6b15ee70cf..5d5002507fe8 100644 --- a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/StorageMover.json.cs +++ b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/StorageMover.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701 { using static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Extensions; @@ -56,13 +56,13 @@ public partial class StorageMover partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IStorageMover. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IStorageMover. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IStorageMover. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IStorageMover. /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IStorageMover FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IStorageMover FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject json ? new StorageMover(json) : null; } @@ -80,7 +80,7 @@ internal StorageMover(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Js return; } __trackedResource = new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.TrackedResource(json); - {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.StorageMoverProperties.FromJson(__jsonProperties) : Property;} + {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.StorageMoverProperties.FromJson(__jsonProperties) : Property;} AfterFromJson(json); } diff --git a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/StorageMoverList.PowerShell.cs b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/StorageMoverList.PowerShell.cs similarity index 85% rename from generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/StorageMoverList.PowerShell.cs rename to generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/StorageMoverList.PowerShell.cs index e13de51cbdc1..5e6d5ef32a5b 100644 --- a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/StorageMoverList.PowerShell.cs +++ b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/StorageMoverList.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701 { using Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.PowerShell; @@ -63,27 +63,27 @@ public partial class StorageMoverList partial void OverrideToString(ref string stringResult, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IStorageMoverList DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IStorageMoverList DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new StorageMoverList(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IStorageMoverList DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IStorageMoverList DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new StorageMoverList(content); } @@ -93,10 +93,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IStorageMoverList FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IStorageMoverList FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(jsonText)); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -111,17 +111,17 @@ internal StorageMoverList(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("Value")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IStorageMoverListInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IStorageMover[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IStorageMoverListInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.StorageMoverTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IStorageMoverListInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IStorageMover[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IStorageMoverListInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.StorageMoverTypeConverter.ConvertFrom)); } if (content.Contains("NextLink")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IStorageMoverListInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IStorageMoverListInternal)this).NextLink, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IStorageMoverListInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IStorageMoverListInternal)this).NextLink, global::System.Convert.ToString); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -136,11 +136,11 @@ internal StorageMoverList(global::System.Management.Automation.PSObject content) // actually deserialize if (content.Contains("Value")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IStorageMoverListInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IStorageMover[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IStorageMoverListInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.StorageMoverTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IStorageMoverListInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IStorageMover[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IStorageMoverListInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.StorageMoverTypeConverter.ConvertFrom)); } if (content.Contains("NextLink")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IStorageMoverListInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IStorageMoverListInternal)this).NextLink, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IStorageMoverListInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IStorageMoverListInternal)this).NextLink, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/StorageMoverList.TypeConverter.cs b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/StorageMoverList.TypeConverter.cs similarity index 98% rename from generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/StorageMoverList.TypeConverter.cs rename to generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/StorageMoverList.TypeConverter.cs index 6ef898d1b92e..713cd0c1eec1 100644 --- a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/StorageMoverList.TypeConverter.cs +++ b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/StorageMoverList.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701 { using Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IStorageMoverList ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IStorageMoverList ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IStorageMoverList).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IStorageMoverList).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/StorageMoverList.cs b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/StorageMoverList.cs similarity index 59% rename from generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/StorageMoverList.cs rename to generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/StorageMoverList.cs index 03ea939294b1..7ea2ace6b4a9 100644 --- a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/StorageMoverList.cs +++ b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/StorageMoverList.cs @@ -3,38 +3,33 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701 { using static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Extensions; /// List of Storage Movers. [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.DoNotFormat] public partial class StorageMoverList : - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IStorageMoverList, - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IStorageMoverListInternal + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IStorageMoverList, + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IStorageMoverListInternal { - /// Internal Acessors for NextLink - string Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IStorageMoverListInternal.NextLink { get => this._nextLink; set { {_nextLink = value;} } } - /// Internal Acessors for Value - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IStorageMover[] Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IStorageMoverListInternal.Value { get => this._value; set { {_value = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IStorageMover[] Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IStorageMoverListInternal.Value { get => this._value; set { {_value = value;} } } /// Backing field for property. private string _nextLink; - /// - /// Request URL that can be used to query next page of containers. Returned when total number of requested containers exceed - /// maximum page size. - /// + /// The link to the next page of items [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Owned)] - public string NextLink { get => this._nextLink; } + public string NextLink { get => this._nextLink; set => this._nextLink = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IStorageMover[] _value; + private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IStorageMover[] _value; + /// The StorageMover items on this page [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IStorageMover[] Value { get => this._value; } + public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IStorageMover[] Value { get => this._value; } /// Creates an new instance. public StorageMoverList() @@ -46,38 +41,32 @@ public StorageMoverList() public partial interface IStorageMoverList : Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IJsonSerializable { - /// - /// Request URL that can be used to query next page of containers. Returned when total number of requested containers exceed - /// maximum page size. - /// + /// The link to the next page of items [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Info( Required = false, - ReadOnly = true, - Description = @"Request URL that can be used to query next page of containers. Returned when total number of requested containers exceed maximum page size.", + ReadOnly = false, + Description = @"The link to the next page of items", SerializedName = @"nextLink", PossibleTypes = new [] { typeof(string) })] - string NextLink { get; } - + string NextLink { get; set; } + /// The StorageMover items on this page [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Info( - Required = false, + Required = true, ReadOnly = true, - Description = @"", + Description = @"The StorageMover items on this page", SerializedName = @"value", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IStorageMover) })] - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IStorageMover[] Value { get; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IStorageMover) })] + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IStorageMover[] Value { get; } } /// List of Storage Movers. internal partial interface IStorageMoverListInternal { - /// - /// Request URL that can be used to query next page of containers. Returned when total number of requested containers exceed - /// maximum page size. - /// + /// The link to the next page of items string NextLink { get; set; } - - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IStorageMover[] Value { get; set; } + /// The StorageMover items on this page + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IStorageMover[] Value { get; set; } } } \ No newline at end of file diff --git a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/StorageMoverList.json.cs b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/StorageMoverList.json.cs similarity index 90% rename from generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/StorageMoverList.json.cs rename to generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/StorageMoverList.json.cs index ee926b081e34..d9c54ef8cc09 100644 --- a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/StorageMoverList.json.cs +++ b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/StorageMoverList.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701 { using static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class StorageMoverList partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IStorageMoverList. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IStorageMoverList. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IStorageMoverList. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IStorageMoverList. /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IStorageMoverList FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IStorageMoverList FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject json ? new StorageMoverList(json) : null; } @@ -77,7 +77,7 @@ internal StorageMoverList(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtim { return; } - {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IStorageMover) (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.StorageMover.FromJson(__u) )) ))() : null : Value;} + {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IStorageMover) (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.StorageMover.FromJson(__u) )) ))() : null : Value;} {_nextLink = If( json?.PropertyT("nextLink"), out var __jsonNextLink) ? (string)__jsonNextLink : (string)NextLink;} AfterFromJson(json); } @@ -113,10 +113,7 @@ public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode ToJ container.Add("value",__w); } } - if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.SerializationMode.IncludeReadOnly)) - { - AddIf( null != (((object)this._nextLink)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonString(this._nextLink.ToString()) : null, "nextLink" ,container.Add ); - } + AddIf( null != (((object)this._nextLink)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonString(this._nextLink.ToString()) : null, "nextLink" ,container.Add ); AfterToJson(ref container); return container; } diff --git a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/StorageMoverProperties.PowerShell.cs b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/StorageMoverProperties.PowerShell.cs similarity index 89% rename from generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/StorageMoverProperties.PowerShell.cs rename to generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/StorageMoverProperties.PowerShell.cs index 8c137430a93b..08be1e6dfaf4 100644 --- a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/StorageMoverProperties.PowerShell.cs +++ b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/StorageMoverProperties.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701 { using Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.PowerShell; @@ -63,29 +63,29 @@ public partial class StorageMoverProperties partial void OverrideToString(ref string stringResult, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IStorageMoverProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IStorageMoverProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new StorageMoverProperties(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IStorageMoverProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IStorageMoverProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new StorageMoverProperties(content); } @@ -95,10 +95,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IStorageMoverProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IStorageMoverProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(jsonText)); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -113,17 +113,17 @@ internal StorageMoverProperties(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("Description")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IStorageMoverPropertiesInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IStorageMoverPropertiesInternal)this).Description, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IStorageMoverPropertiesInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IStorageMoverPropertiesInternal)this).Description, global::System.Convert.ToString); } if (content.Contains("ProvisioningState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IStorageMoverPropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IStorageMoverPropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IStorageMoverPropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IStorageMoverPropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState.CreateFrom); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -138,11 +138,11 @@ internal StorageMoverProperties(global::System.Management.Automation.PSObject co // actually deserialize if (content.Contains("Description")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IStorageMoverPropertiesInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IStorageMoverPropertiesInternal)this).Description, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IStorageMoverPropertiesInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IStorageMoverPropertiesInternal)this).Description, global::System.Convert.ToString); } if (content.Contains("ProvisioningState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IStorageMoverPropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IStorageMoverPropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IStorageMoverPropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IStorageMoverPropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState.CreateFrom); } AfterDeserializePSObject(content); } diff --git a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/StorageMoverProperties.TypeConverter.cs b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/StorageMoverProperties.TypeConverter.cs similarity index 98% rename from generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/StorageMoverProperties.TypeConverter.cs rename to generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/StorageMoverProperties.TypeConverter.cs index b9155ee75c5f..733160be0fd8 100644 --- a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/StorageMoverProperties.TypeConverter.cs +++ b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/StorageMoverProperties.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701 { using Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IStorageMoverProperties ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IStorageMoverProperties ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IStorageMoverProperties).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IStorageMoverProperties).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/StorageMoverProperties.cs b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/StorageMoverProperties.cs similarity index 96% rename from generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/StorageMoverProperties.cs rename to generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/StorageMoverProperties.cs index 1356d6ea8258..ddf32bf4e0fa 100644 --- a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/StorageMoverProperties.cs +++ b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/StorageMoverProperties.cs @@ -3,15 +3,15 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701 { using static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Extensions; /// The resource specific properties for the Storage Mover resource. [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.DoNotFormat] public partial class StorageMoverProperties : - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IStorageMoverProperties, - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IStorageMoverPropertiesInternal + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IStorageMoverProperties, + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IStorageMoverPropertiesInternal { /// Backing field for property. @@ -22,7 +22,7 @@ public partial class StorageMoverProperties : public string Description { get => this._description; set => this._description = value; } /// Internal Acessors for ProvisioningState - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IStorageMoverPropertiesInternal.ProvisioningState { get => this._provisioningState; set { {_provisioningState = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IStorageMoverPropertiesInternal.ProvisioningState { get => this._provisioningState; set { {_provisioningState = value;} } } /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState? _provisioningState; diff --git a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/StorageMoverProperties.json.cs b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/StorageMoverProperties.json.cs similarity index 97% rename from generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/StorageMoverProperties.json.cs rename to generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/StorageMoverProperties.json.cs index 9bb7fd877d64..9a4984876b1e 100644 --- a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/StorageMoverProperties.json.cs +++ b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/StorageMoverProperties.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701 { using static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class StorageMoverProperties partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IStorageMoverProperties. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IStorageMoverProperties. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IStorageMoverProperties. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IStorageMoverProperties. /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IStorageMoverProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IStorageMoverProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject json ? new StorageMoverProperties(json) : null; } diff --git a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/StorageMoverUpdateParameters.PowerShell.cs b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/StorageMoverUpdateParameters.PowerShell.cs similarity index 84% rename from generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/StorageMoverUpdateParameters.PowerShell.cs rename to generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/StorageMoverUpdateParameters.PowerShell.cs index f1e4ee5ea8a4..1f81c70d6c6f 100644 --- a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/StorageMoverUpdateParameters.PowerShell.cs +++ b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/StorageMoverUpdateParameters.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701 { using Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.PowerShell; @@ -63,29 +63,29 @@ public partial class StorageMoverUpdateParameters partial void OverrideToString(ref string stringResult, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IStorageMoverUpdateParameters DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IStorageMoverUpdateParameters DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new StorageMoverUpdateParameters(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IStorageMoverUpdateParameters DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IStorageMoverUpdateParameters DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new StorageMoverUpdateParameters(content); } @@ -95,10 +95,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IStorageMoverUpdateParameters FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IStorageMoverUpdateParameters FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(jsonText)); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -113,21 +113,21 @@ internal StorageMoverUpdateParameters(global::System.Collections.IDictionary con // actually deserialize if (content.Contains("Property")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IStorageMoverUpdateParametersInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IStorageMoverUpdateProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IStorageMoverUpdateParametersInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.StorageMoverUpdatePropertiesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IStorageMoverUpdateParametersInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IStorageMoverUpdateProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IStorageMoverUpdateParametersInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.StorageMoverUpdatePropertiesTypeConverter.ConvertFrom); } if (content.Contains("Tag")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IStorageMoverUpdateParametersInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IStorageMoverUpdateParametersTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IStorageMoverUpdateParametersInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.StorageMoverUpdateParametersTagsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IStorageMoverUpdateParametersInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IStorageMoverUpdateParametersTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IStorageMoverUpdateParametersInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.StorageMoverUpdateParametersTagsTypeConverter.ConvertFrom); } if (content.Contains("Description")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IStorageMoverUpdateParametersInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IStorageMoverUpdateParametersInternal)this).Description, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IStorageMoverUpdateParametersInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IStorageMoverUpdateParametersInternal)this).Description, global::System.Convert.ToString); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -142,15 +142,15 @@ internal StorageMoverUpdateParameters(global::System.Management.Automation.PSObj // actually deserialize if (content.Contains("Property")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IStorageMoverUpdateParametersInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IStorageMoverUpdateProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IStorageMoverUpdateParametersInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.StorageMoverUpdatePropertiesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IStorageMoverUpdateParametersInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IStorageMoverUpdateProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IStorageMoverUpdateParametersInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.StorageMoverUpdatePropertiesTypeConverter.ConvertFrom); } if (content.Contains("Tag")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IStorageMoverUpdateParametersInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IStorageMoverUpdateParametersTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IStorageMoverUpdateParametersInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.StorageMoverUpdateParametersTagsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IStorageMoverUpdateParametersInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IStorageMoverUpdateParametersTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IStorageMoverUpdateParametersInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.StorageMoverUpdateParametersTagsTypeConverter.ConvertFrom); } if (content.Contains("Description")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IStorageMoverUpdateParametersInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IStorageMoverUpdateParametersInternal)this).Description, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IStorageMoverUpdateParametersInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IStorageMoverUpdateParametersInternal)this).Description, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/StorageMoverUpdateParameters.TypeConverter.cs b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/StorageMoverUpdateParameters.TypeConverter.cs similarity index 98% rename from generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/StorageMoverUpdateParameters.TypeConverter.cs rename to generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/StorageMoverUpdateParameters.TypeConverter.cs index 60e073bf876e..3e3683f47d88 100644 --- a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/StorageMoverUpdateParameters.TypeConverter.cs +++ b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/StorageMoverUpdateParameters.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701 { using Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IStorageMoverUpdateParameters ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IStorageMoverUpdateParameters ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IStorageMoverUpdateParameters).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IStorageMoverUpdateParameters).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/StorageMoverUpdateParameters.cs b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/StorageMoverUpdateParameters.cs similarity index 79% rename from generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/StorageMoverUpdateParameters.cs rename to generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/StorageMoverUpdateParameters.cs index a748cb6fcc0c..6efe553f73ad 100644 --- a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/StorageMoverUpdateParameters.cs +++ b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/StorageMoverUpdateParameters.cs @@ -3,37 +3,37 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701 { using static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Extensions; /// The Storage Mover resource. [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.DoNotFormat] public partial class StorageMoverUpdateParameters : - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IStorageMoverUpdateParameters, - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IStorageMoverUpdateParametersInternal + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IStorageMoverUpdateParameters, + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IStorageMoverUpdateParametersInternal { /// A description for the Storage Mover. [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inlined)] - public string Description { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IStorageMoverUpdatePropertiesInternal)Property).Description; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IStorageMoverUpdatePropertiesInternal)Property).Description = value ?? null; } + public string Description { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IStorageMoverUpdatePropertiesInternal)Property).Description; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IStorageMoverUpdatePropertiesInternal)Property).Description = value ?? null; } /// Internal Acessors for Property - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IStorageMoverUpdateProperties Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IStorageMoverUpdateParametersInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.StorageMoverUpdateProperties()); set { {_property = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IStorageMoverUpdateProperties Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IStorageMoverUpdateParametersInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.StorageMoverUpdateProperties()); set { {_property = value;} } } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IStorageMoverUpdateProperties _property; + private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IStorageMoverUpdateProperties _property; /// The resource specific properties for the Storage Mover resource. [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IStorageMoverUpdateProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.StorageMoverUpdateProperties()); set => this._property = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IStorageMoverUpdateProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.StorageMoverUpdateProperties()); set => this._property = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IStorageMoverUpdateParametersTags _tag; + private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IStorageMoverUpdateParametersTags _tag; /// Resource tags. [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IStorageMoverUpdateParametersTags Tag { get => (this._tag = this._tag ?? new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.StorageMoverUpdateParametersTags()); set => this._tag = value; } + public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IStorageMoverUpdateParametersTags Tag { get => (this._tag = this._tag ?? new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.StorageMoverUpdateParametersTags()); set => this._tag = value; } /// Creates an new instance. public StorageMoverUpdateParameters() @@ -59,8 +59,8 @@ public partial interface IStorageMoverUpdateParameters : ReadOnly = false, Description = @"Resource tags.", SerializedName = @"tags", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IStorageMoverUpdateParametersTags) })] - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IStorageMoverUpdateParametersTags Tag { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IStorageMoverUpdateParametersTags) })] + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IStorageMoverUpdateParametersTags Tag { get; set; } } /// The Storage Mover resource. @@ -70,9 +70,9 @@ internal partial interface IStorageMoverUpdateParametersInternal /// A description for the Storage Mover. string Description { get; set; } /// The resource specific properties for the Storage Mover resource. - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IStorageMoverUpdateProperties Property { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IStorageMoverUpdateProperties Property { get; set; } /// Resource tags. - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IStorageMoverUpdateParametersTags Tag { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IStorageMoverUpdateParametersTags Tag { get; set; } } } \ No newline at end of file diff --git a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/StorageMoverUpdateParameters.json.cs b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/StorageMoverUpdateParameters.json.cs similarity index 96% rename from generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/StorageMoverUpdateParameters.json.cs rename to generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/StorageMoverUpdateParameters.json.cs index 38067ecb39b2..1acdf2f8a6a8 100644 --- a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/StorageMoverUpdateParameters.json.cs +++ b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/StorageMoverUpdateParameters.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701 { using static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class StorageMoverUpdateParameters partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IStorageMoverUpdateParameters. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IStorageMoverUpdateParameters. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IStorageMoverUpdateParameters. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IStorageMoverUpdateParameters. /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IStorageMoverUpdateParameters FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IStorageMoverUpdateParameters FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject json ? new StorageMoverUpdateParameters(json) : null; } @@ -77,8 +77,8 @@ internal StorageMoverUpdateParameters(Microsoft.Azure.PowerShell.Cmdlets.Storage { return; } - {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.StorageMoverUpdateProperties.FromJson(__jsonProperties) : Property;} - {_tag = If( json?.PropertyT("tags"), out var __jsonTags) ? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.StorageMoverUpdateParametersTags.FromJson(__jsonTags) : Tag;} + {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.StorageMoverUpdateProperties.FromJson(__jsonProperties) : Property;} + {_tag = If( json?.PropertyT("tags"), out var __jsonTags) ? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.StorageMoverUpdateParametersTags.FromJson(__jsonTags) : Tag;} AfterFromJson(json); } diff --git a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/StorageMoverUpdateParametersTags.PowerShell.cs b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/StorageMoverUpdateParametersTags.PowerShell.cs similarity index 93% rename from generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/StorageMoverUpdateParametersTags.PowerShell.cs rename to generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/StorageMoverUpdateParametersTags.PowerShell.cs index 945eab15bc2b..b9d48ca27124 100644 --- a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/StorageMoverUpdateParametersTags.PowerShell.cs +++ b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/StorageMoverUpdateParametersTags.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701 { using Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.PowerShell; @@ -63,29 +63,29 @@ public partial class StorageMoverUpdateParametersTags partial void OverrideToString(ref string stringResult, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IStorageMoverUpdateParametersTags DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IStorageMoverUpdateParametersTags DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new StorageMoverUpdateParametersTags(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IStorageMoverUpdateParametersTags DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IStorageMoverUpdateParametersTags DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new StorageMoverUpdateParametersTags(content); } @@ -95,10 +95,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IStorageMoverUpdateParametersTags FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IStorageMoverUpdateParametersTags FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(jsonText)); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -117,7 +117,7 @@ internal StorageMoverUpdateParametersTags(global::System.Collections.IDictionary } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. diff --git a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/StorageMoverUpdateParametersTags.TypeConverter.cs b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/StorageMoverUpdateParametersTags.TypeConverter.cs similarity index 98% rename from generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/StorageMoverUpdateParametersTags.TypeConverter.cs rename to generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/StorageMoverUpdateParametersTags.TypeConverter.cs index 73669d192e65..cf19825b2e25 100644 --- a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/StorageMoverUpdateParametersTags.TypeConverter.cs +++ b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/StorageMoverUpdateParametersTags.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701 { using Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.PowerShell; @@ -107,14 +107,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IStorageMoverUpdateParametersTags ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IStorageMoverUpdateParametersTags ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IStorageMoverUpdateParametersTags).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IStorageMoverUpdateParametersTags).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/StorageMoverUpdateParametersTags.cs b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/StorageMoverUpdateParametersTags.cs similarity index 91% rename from generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/StorageMoverUpdateParametersTags.cs rename to generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/StorageMoverUpdateParametersTags.cs index 0b9da438e14e..e8bf6fcece4a 100644 --- a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/StorageMoverUpdateParametersTags.cs +++ b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/StorageMoverUpdateParametersTags.cs @@ -3,14 +3,14 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701 { using static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Extensions; /// Resource tags. public partial class StorageMoverUpdateParametersTags : - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IStorageMoverUpdateParametersTags, - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IStorageMoverUpdateParametersTagsInternal + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IStorageMoverUpdateParametersTags, + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IStorageMoverUpdateParametersTagsInternal { /// Creates an new instance. diff --git a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/StorageMoverUpdateParametersTags.dictionary.cs b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/StorageMoverUpdateParametersTags.dictionary.cs similarity index 98% rename from generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/StorageMoverUpdateParametersTags.dictionary.cs rename to generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/StorageMoverUpdateParametersTags.dictionary.cs index 38226adfa86f..75d6f100d4c8 100644 --- a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/StorageMoverUpdateParametersTags.dictionary.cs +++ b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/StorageMoverUpdateParametersTags.dictionary.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701 { using static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Extensions; @@ -70,6 +70,6 @@ public void CopyFrom(global::System.Management.Automation.PSObject source) /// - public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.StorageMoverUpdateParametersTags source) => source.__additionalProperties; + public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.StorageMoverUpdateParametersTags source) => source.__additionalProperties; } } \ No newline at end of file diff --git a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/StorageMoverUpdateParametersTags.json.cs b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/StorageMoverUpdateParametersTags.json.cs similarity index 97% rename from generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/StorageMoverUpdateParametersTags.json.cs rename to generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/StorageMoverUpdateParametersTags.json.cs index 17d57bc5106d..6544e17f5916 100644 --- a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/StorageMoverUpdateParametersTags.json.cs +++ b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/StorageMoverUpdateParametersTags.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701 { using static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class StorageMoverUpdateParametersTags partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IStorageMoverUpdateParametersTags. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IStorageMoverUpdateParametersTags. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IStorageMoverUpdateParametersTags. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IStorageMoverUpdateParametersTags. /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IStorageMoverUpdateParametersTags FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IStorageMoverUpdateParametersTags FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject json ? new StorageMoverUpdateParametersTags(json) : null; } diff --git a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/StorageMoverUpdateProperties.PowerShell.cs b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/StorageMoverUpdateProperties.PowerShell.cs similarity index 91% rename from generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/StorageMoverUpdateProperties.PowerShell.cs rename to generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/StorageMoverUpdateProperties.PowerShell.cs index 487b87fc44a4..ce70974b712f 100644 --- a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/StorageMoverUpdateProperties.PowerShell.cs +++ b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/StorageMoverUpdateProperties.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701 { using Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.PowerShell; @@ -63,29 +63,29 @@ public partial class StorageMoverUpdateProperties partial void OverrideToString(ref string stringResult, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IStorageMoverUpdateProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IStorageMoverUpdateProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new StorageMoverUpdateProperties(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IStorageMoverUpdateProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IStorageMoverUpdateProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new StorageMoverUpdateProperties(content); } @@ -95,10 +95,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IStorageMoverUpdateProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IStorageMoverUpdateProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(jsonText)); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -113,13 +113,13 @@ internal StorageMoverUpdateProperties(global::System.Collections.IDictionary con // actually deserialize if (content.Contains("Description")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IStorageMoverUpdatePropertiesInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IStorageMoverUpdatePropertiesInternal)this).Description, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IStorageMoverUpdatePropertiesInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IStorageMoverUpdatePropertiesInternal)this).Description, global::System.Convert.ToString); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -134,7 +134,7 @@ internal StorageMoverUpdateProperties(global::System.Management.Automation.PSObj // actually deserialize if (content.Contains("Description")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IStorageMoverUpdatePropertiesInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IStorageMoverUpdatePropertiesInternal)this).Description, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IStorageMoverUpdatePropertiesInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IStorageMoverUpdatePropertiesInternal)this).Description, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/StorageMoverUpdateProperties.TypeConverter.cs b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/StorageMoverUpdateProperties.TypeConverter.cs similarity index 98% rename from generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/StorageMoverUpdateProperties.TypeConverter.cs rename to generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/StorageMoverUpdateProperties.TypeConverter.cs index 5b24dda7412b..203cb6a25627 100644 --- a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/StorageMoverUpdateProperties.TypeConverter.cs +++ b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/StorageMoverUpdateProperties.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701 { using Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IStorageMoverUpdateProperties ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IStorageMoverUpdateProperties ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IStorageMoverUpdateProperties).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IStorageMoverUpdateProperties).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/StorageMoverUpdateProperties.cs b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/StorageMoverUpdateProperties.cs similarity index 95% rename from generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/StorageMoverUpdateProperties.cs rename to generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/StorageMoverUpdateProperties.cs index 47a07dc342c8..b9df2d462a92 100644 --- a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/StorageMoverUpdateProperties.cs +++ b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/StorageMoverUpdateProperties.cs @@ -3,15 +3,15 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701 { using static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Extensions; /// The resource specific properties for the Storage Mover resource. [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.DoNotFormat] public partial class StorageMoverUpdateProperties : - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IStorageMoverUpdateProperties, - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IStorageMoverUpdatePropertiesInternal + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IStorageMoverUpdateProperties, + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IStorageMoverUpdatePropertiesInternal { /// Backing field for property. diff --git a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/StorageMoverUpdateProperties.json.cs b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/StorageMoverUpdateProperties.json.cs similarity index 97% rename from generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/StorageMoverUpdateProperties.json.cs rename to generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/StorageMoverUpdateProperties.json.cs index ae08813cea32..cbeaeea6d2fb 100644 --- a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/StorageMoverUpdateProperties.json.cs +++ b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/StorageMoverUpdateProperties.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701 { using static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class StorageMoverUpdateProperties partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IStorageMoverUpdateProperties. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IStorageMoverUpdateProperties. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IStorageMoverUpdateProperties. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IStorageMoverUpdateProperties. /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IStorageMoverUpdateProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IStorageMoverUpdateProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject json ? new StorageMoverUpdateProperties(json) : null; } diff --git a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/TargetEndpoint.PowerShell.cs b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/TargetEndpoint.PowerShell.cs new file mode 100644 index 000000000000..62fa7feaeb08 --- /dev/null +++ b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/TargetEndpoint.PowerShell.cs @@ -0,0 +1,196 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701 +{ + using Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.PowerShell; + + /// The target endpoint resource for source and target mapping. + [System.ComponentModel.TypeConverter(typeof(TargetEndpointTypeConverter))] + public partial class TargetEndpoint + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// OverrideToString will be called if it is implemented. Implement this method in a partial class to enable this behavior + /// + /// /// instance serialized to a string, normally it is a Json + /// /// set returnNow to true if you provide a customized OverrideToString function + + partial void OverrideToString(ref string stringResult, ref bool returnNow); + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ITargetEndpoint DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new TargetEndpoint(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ITargetEndpoint DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new TargetEndpoint(content); + } + + /// + /// Creates a new instance of , deserializing the content from a json string. + /// + /// a string containing a JSON serialized instance of this model. + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ITargetEndpoint FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal TargetEndpoint(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Property")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ITargetEndpointInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ITargetEndpointProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ITargetEndpointInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.TargetEndpointPropertiesTypeConverter.ConvertFrom); + } + if (content.Contains("Name")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ITargetEndpointInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ITargetEndpointInternal)this).Name, global::System.Convert.ToString); + } + if (content.Contains("ResourceId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ITargetEndpointInternal)this).ResourceId = (string) content.GetValueForProperty("ResourceId",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ITargetEndpointInternal)this).ResourceId, global::System.Convert.ToString); + } + if (content.Contains("AzureStorageAccountResourceId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ITargetEndpointInternal)this).AzureStorageAccountResourceId = (string) content.GetValueForProperty("AzureStorageAccountResourceId",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ITargetEndpointInternal)this).AzureStorageAccountResourceId, global::System.Convert.ToString); + } + if (content.Contains("AzureStorageBlobContainerName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ITargetEndpointInternal)this).AzureStorageBlobContainerName = (string) content.GetValueForProperty("AzureStorageBlobContainerName",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ITargetEndpointInternal)this).AzureStorageBlobContainerName, global::System.Convert.ToString); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal TargetEndpoint(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Property")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ITargetEndpointInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ITargetEndpointProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ITargetEndpointInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.TargetEndpointPropertiesTypeConverter.ConvertFrom); + } + if (content.Contains("Name")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ITargetEndpointInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ITargetEndpointInternal)this).Name, global::System.Convert.ToString); + } + if (content.Contains("ResourceId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ITargetEndpointInternal)this).ResourceId = (string) content.GetValueForProperty("ResourceId",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ITargetEndpointInternal)this).ResourceId, global::System.Convert.ToString); + } + if (content.Contains("AzureStorageAccountResourceId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ITargetEndpointInternal)this).AzureStorageAccountResourceId = (string) content.GetValueForProperty("AzureStorageAccountResourceId",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ITargetEndpointInternal)this).AzureStorageAccountResourceId, global::System.Convert.ToString); + } + if (content.Contains("AzureStorageBlobContainerName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ITargetEndpointInternal)this).AzureStorageBlobContainerName = (string) content.GetValueForProperty("AzureStorageBlobContainerName",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ITargetEndpointInternal)this).AzureStorageBlobContainerName, global::System.Convert.ToString); + } + AfterDeserializePSObject(content); + } + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.SerializationMode.IncludeAll)?.ToString(); + + public override string ToString() + { + var returnNow = false; + var result = global::System.String.Empty; + OverrideToString(ref result, ref returnNow); + if (returnNow) + { + return result; + } + return ToJsonString(); + } + } + /// The target endpoint resource for source and target mapping. + [System.ComponentModel.TypeConverter(typeof(TargetEndpointTypeConverter))] + public partial interface ITargetEndpoint + + { + + } +} \ No newline at end of file diff --git a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/TargetEndpoint.TypeConverter.cs b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/TargetEndpoint.TypeConverter.cs new file mode 100644 index 000000000000..614361f7c3cf --- /dev/null +++ b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/TargetEndpoint.TypeConverter.cs @@ -0,0 +1,147 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701 +{ + using Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class TargetEndpointTypeConverter : global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); + + /// + /// Determines if the converter can convert the parameter to the + /// type. + /// + /// the instance to check if it can be converted to the type. + /// + /// true if the instance could be converted to a type, otherwise false + /// + public static bool CanConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return true; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + // we say yest to PSObjects + return true; + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + // we say yest to Hashtables/dictionaries + return true; + } + try + { + if (null != sourceValue.ToJsonString()) + { + return true; + } + } + catch + { + // Not one of our objects + } + try + { + string text = sourceValue.ToString()?.Trim(); + return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonType.Object; + } + catch + { + // Doesn't look like it can be treated as JSON + } + return false; + } + + /// + /// Determines if the parameter can be converted to the + /// parameter + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false + /// + public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; + + /// + /// Converts the parameter to the parameter using and + /// + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// + /// an instance of , or null if there is no suitable conversion. + /// + public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); + + /// + /// Converts the parameter into an instance of + /// + /// the value to convert into an instance of . + /// + /// an instance of , or null if there is no suitable conversion. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ITargetEndpoint ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ITargetEndpoint).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return TargetEndpoint.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return TargetEndpoint.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return TargetEndpoint.DeserializeFromDictionary(sourceValue); + } + return null; + } + + /// NotImplemented -- this will return null + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// will always return null. + public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; + } +} \ No newline at end of file diff --git a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/TargetEndpoint.cs b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/TargetEndpoint.cs new file mode 100644 index 000000000000..677daf1a2fdb --- /dev/null +++ b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/TargetEndpoint.cs @@ -0,0 +1,103 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Extensions; + + /// The target endpoint resource for source and target mapping. + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.DoNotFormat] + public partial class TargetEndpoint : + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ITargetEndpoint, + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ITargetEndpointInternal + { + + /// The fully qualified ARM resource ID of the Azure Storage account. + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inlined)] + public string AzureStorageAccountResourceId { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ITargetEndpointPropertiesInternal)Property).AzureStorageAccountResourceId; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ITargetEndpointPropertiesInternal)Property).AzureStorageAccountResourceId = value ?? null; } + + /// The name of the Azure Storage blob container. + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inlined)] + public string AzureStorageBlobContainerName { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ITargetEndpointPropertiesInternal)Property).AzureStorageBlobContainerName; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ITargetEndpointPropertiesInternal)Property).AzureStorageBlobContainerName = value ?? null; } + + /// Internal Acessors for Property + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ITargetEndpointProperties Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ITargetEndpointInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.TargetEndpointProperties()); set { {_property = value;} } } + + /// The name of the cloud target endpoint to migrate. + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inlined)] + public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ITargetEndpointPropertiesInternal)Property).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ITargetEndpointPropertiesInternal)Property).Name = value ?? null; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ITargetEndpointProperties _property; + + /// The properties of the cloud target endpoint to migrate. + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ITargetEndpointProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.TargetEndpointProperties()); set => this._property = value; } + + /// The fully qualified ARM resource ID of the cloud target endpoint to migrate. + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inlined)] + public string ResourceId { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ITargetEndpointPropertiesInternal)Property).TargetEndpointResourceId; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ITargetEndpointPropertiesInternal)Property).TargetEndpointResourceId = value ?? null; } + + /// Creates an new instance. + public TargetEndpoint() + { + + } + } + /// The target endpoint resource for source and target mapping. + public partial interface ITargetEndpoint : + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IJsonSerializable + { + /// The fully qualified ARM resource ID of the Azure Storage account. + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The fully qualified ARM resource ID of the Azure Storage account.", + SerializedName = @"azureStorageAccountResourceId", + PossibleTypes = new [] { typeof(string) })] + string AzureStorageAccountResourceId { get; set; } + /// The name of the Azure Storage blob container. + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The name of the Azure Storage blob container.", + SerializedName = @"azureStorageBlobContainerName", + PossibleTypes = new [] { typeof(string) })] + string AzureStorageBlobContainerName { get; set; } + /// The name of the cloud target endpoint to migrate. + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The name of the cloud target endpoint to migrate.", + SerializedName = @"name", + PossibleTypes = new [] { typeof(string) })] + string Name { get; set; } + /// The fully qualified ARM resource ID of the cloud target endpoint to migrate. + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The fully qualified ARM resource ID of the cloud target endpoint to migrate.", + SerializedName = @"targetEndpointResourceId", + PossibleTypes = new [] { typeof(string) })] + string ResourceId { get; set; } + + } + /// The target endpoint resource for source and target mapping. + internal partial interface ITargetEndpointInternal + + { + /// The fully qualified ARM resource ID of the Azure Storage account. + string AzureStorageAccountResourceId { get; set; } + /// The name of the Azure Storage blob container. + string AzureStorageBlobContainerName { get; set; } + /// The name of the cloud target endpoint to migrate. + string Name { get; set; } + /// The properties of the cloud target endpoint to migrate. + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ITargetEndpointProperties Property { get; set; } + /// The fully qualified ARM resource ID of the cloud target endpoint to migrate. + string ResourceId { get; set; } + + } +} \ No newline at end of file diff --git a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/TargetEndpoint.json.cs b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/TargetEndpoint.json.cs new file mode 100644 index 000000000000..52881946feef --- /dev/null +++ b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/TargetEndpoint.json.cs @@ -0,0 +1,108 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Extensions; + + /// The target endpoint resource for source and target mapping. + public partial class TargetEndpoint + { + + /// + /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JsonNode that should be deserialized into this object. + + partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JSON container that the serialization result will be placed in. + + partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject container); + + /// + /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of + /// the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the + /// output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JsonNode that should be deserialized into this object. + /// Determines if the rest of the deserialization should be processed, or if the method should return + /// instantly. + + partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject json, ref bool returnNow); + + /// + /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the + /// object before it is serialized. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JSON container that the serialization result will be placed in. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ITargetEndpoint. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ITargetEndpoint. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ITargetEndpoint FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject json ? new TargetEndpoint(json) : null; + } + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject instance to deserialize from. + internal TargetEndpoint(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.TargetEndpointProperties.FromJson(__jsonProperties) : Property;} + AfterFromJson(json); + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + AddIf( null != this._property ? (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode) this._property.ToJson(null,serializationMode) : null, "properties" ,container.Add ); + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/TargetEndpointProperties.PowerShell.cs b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/TargetEndpointProperties.PowerShell.cs new file mode 100644 index 000000000000..3bf7c8a3d630 --- /dev/null +++ b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/TargetEndpointProperties.PowerShell.cs @@ -0,0 +1,190 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701 +{ + using Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.PowerShell; + + /// The properties of the cloud target endpoint to migrate. + [System.ComponentModel.TypeConverter(typeof(TargetEndpointPropertiesTypeConverter))] + public partial class TargetEndpointProperties + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// OverrideToString will be called if it is implemented. Implement this method in a partial class to enable this behavior + /// + /// /// instance serialized to a string, normally it is a Json + /// /// set returnNow to true if you provide a customized OverrideToString function + + partial void OverrideToString(ref string stringResult, ref bool returnNow); + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ITargetEndpointProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new TargetEndpointProperties(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ITargetEndpointProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new TargetEndpointProperties(content); + } + + /// + /// Creates a new instance of , deserializing the content from a json string. + /// + /// a string containing a JSON serialized instance of this model. + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ITargetEndpointProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal TargetEndpointProperties(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Name")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ITargetEndpointPropertiesInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ITargetEndpointPropertiesInternal)this).Name, global::System.Convert.ToString); + } + if (content.Contains("TargetEndpointResourceId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ITargetEndpointPropertiesInternal)this).TargetEndpointResourceId = (string) content.GetValueForProperty("TargetEndpointResourceId",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ITargetEndpointPropertiesInternal)this).TargetEndpointResourceId, global::System.Convert.ToString); + } + if (content.Contains("AzureStorageAccountResourceId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ITargetEndpointPropertiesInternal)this).AzureStorageAccountResourceId = (string) content.GetValueForProperty("AzureStorageAccountResourceId",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ITargetEndpointPropertiesInternal)this).AzureStorageAccountResourceId, global::System.Convert.ToString); + } + if (content.Contains("AzureStorageBlobContainerName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ITargetEndpointPropertiesInternal)this).AzureStorageBlobContainerName = (string) content.GetValueForProperty("AzureStorageBlobContainerName",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ITargetEndpointPropertiesInternal)this).AzureStorageBlobContainerName, global::System.Convert.ToString); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal TargetEndpointProperties(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Name")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ITargetEndpointPropertiesInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ITargetEndpointPropertiesInternal)this).Name, global::System.Convert.ToString); + } + if (content.Contains("TargetEndpointResourceId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ITargetEndpointPropertiesInternal)this).TargetEndpointResourceId = (string) content.GetValueForProperty("TargetEndpointResourceId",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ITargetEndpointPropertiesInternal)this).TargetEndpointResourceId, global::System.Convert.ToString); + } + if (content.Contains("AzureStorageAccountResourceId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ITargetEndpointPropertiesInternal)this).AzureStorageAccountResourceId = (string) content.GetValueForProperty("AzureStorageAccountResourceId",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ITargetEndpointPropertiesInternal)this).AzureStorageAccountResourceId, global::System.Convert.ToString); + } + if (content.Contains("AzureStorageBlobContainerName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ITargetEndpointPropertiesInternal)this).AzureStorageBlobContainerName = (string) content.GetValueForProperty("AzureStorageBlobContainerName",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ITargetEndpointPropertiesInternal)this).AzureStorageBlobContainerName, global::System.Convert.ToString); + } + AfterDeserializePSObject(content); + } + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.SerializationMode.IncludeAll)?.ToString(); + + public override string ToString() + { + var returnNow = false; + var result = global::System.String.Empty; + OverrideToString(ref result, ref returnNow); + if (returnNow) + { + return result; + } + return ToJsonString(); + } + } + /// The properties of the cloud target endpoint to migrate. + [System.ComponentModel.TypeConverter(typeof(TargetEndpointPropertiesTypeConverter))] + public partial interface ITargetEndpointProperties + + { + + } +} \ No newline at end of file diff --git a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/TargetEndpointProperties.TypeConverter.cs b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/TargetEndpointProperties.TypeConverter.cs new file mode 100644 index 000000000000..c113bc52c62a --- /dev/null +++ b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/TargetEndpointProperties.TypeConverter.cs @@ -0,0 +1,147 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701 +{ + using Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class TargetEndpointPropertiesTypeConverter : global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); + + /// + /// Determines if the converter can convert the parameter to the + /// type. + /// + /// the instance to check if it can be converted to the type. + /// + /// true if the instance could be converted to a type, otherwise false + /// + public static bool CanConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return true; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + // we say yest to PSObjects + return true; + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + // we say yest to Hashtables/dictionaries + return true; + } + try + { + if (null != sourceValue.ToJsonString()) + { + return true; + } + } + catch + { + // Not one of our objects + } + try + { + string text = sourceValue.ToString()?.Trim(); + return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonType.Object; + } + catch + { + // Doesn't look like it can be treated as JSON + } + return false; + } + + /// + /// Determines if the parameter can be converted to the + /// parameter + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false + /// + public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; + + /// + /// Converts the parameter to the parameter using and + /// + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// + /// an instance of , or null if there is no suitable conversion. + /// + public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); + + /// + /// Converts the parameter into an instance of + /// + /// the value to convert into an instance of . + /// + /// an instance of , or null if there is no suitable conversion. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ITargetEndpointProperties ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ITargetEndpointProperties).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return TargetEndpointProperties.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return TargetEndpointProperties.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return TargetEndpointProperties.DeserializeFromDictionary(sourceValue); + } + return null; + } + + /// NotImplemented -- this will return null + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// will always return null. + public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; + } +} \ No newline at end of file diff --git a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/TargetEndpointProperties.cs b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/TargetEndpointProperties.cs new file mode 100644 index 000000000000..495aa8d5091d --- /dev/null +++ b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/TargetEndpointProperties.cs @@ -0,0 +1,103 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Extensions; + + /// The properties of the cloud target endpoint to migrate. + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.DoNotFormat] + public partial class TargetEndpointProperties : + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ITargetEndpointProperties, + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ITargetEndpointPropertiesInternal + { + + /// Backing field for property. + private string _azureStorageAccountResourceId; + + /// The fully qualified ARM resource ID of the Azure Storage account. + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Owned)] + public string AzureStorageAccountResourceId { get => this._azureStorageAccountResourceId; set => this._azureStorageAccountResourceId = value; } + + /// Backing field for property. + private string _azureStorageBlobContainerName; + + /// The name of the Azure Storage blob container. + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Owned)] + public string AzureStorageBlobContainerName { get => this._azureStorageBlobContainerName; set => this._azureStorageBlobContainerName = value; } + + /// Backing field for property. + private string _name; + + /// The name of the cloud target endpoint to migrate. + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Owned)] + public string Name { get => this._name; set => this._name = value; } + + /// Backing field for property. + private string _targetEndpointResourceId; + + /// The fully qualified ARM resource ID of the cloud target endpoint to migrate. + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Owned)] + public string TargetEndpointResourceId { get => this._targetEndpointResourceId; set => this._targetEndpointResourceId = value; } + + /// Creates an new instance. + public TargetEndpointProperties() + { + + } + } + /// The properties of the cloud target endpoint to migrate. + public partial interface ITargetEndpointProperties : + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IJsonSerializable + { + /// The fully qualified ARM resource ID of the Azure Storage account. + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The fully qualified ARM resource ID of the Azure Storage account.", + SerializedName = @"azureStorageAccountResourceId", + PossibleTypes = new [] { typeof(string) })] + string AzureStorageAccountResourceId { get; set; } + /// The name of the Azure Storage blob container. + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The name of the Azure Storage blob container.", + SerializedName = @"azureStorageBlobContainerName", + PossibleTypes = new [] { typeof(string) })] + string AzureStorageBlobContainerName { get; set; } + /// The name of the cloud target endpoint to migrate. + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The name of the cloud target endpoint to migrate.", + SerializedName = @"name", + PossibleTypes = new [] { typeof(string) })] + string Name { get; set; } + /// The fully qualified ARM resource ID of the cloud target endpoint to migrate. + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The fully qualified ARM resource ID of the cloud target endpoint to migrate.", + SerializedName = @"targetEndpointResourceId", + PossibleTypes = new [] { typeof(string) })] + string TargetEndpointResourceId { get; set; } + + } + /// The properties of the cloud target endpoint to migrate. + internal partial interface ITargetEndpointPropertiesInternal + + { + /// The fully qualified ARM resource ID of the Azure Storage account. + string AzureStorageAccountResourceId { get; set; } + /// The name of the Azure Storage blob container. + string AzureStorageBlobContainerName { get; set; } + /// The name of the cloud target endpoint to migrate. + string Name { get; set; } + /// The fully qualified ARM resource ID of the cloud target endpoint to migrate. + string TargetEndpointResourceId { get; set; } + + } +} \ No newline at end of file diff --git a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/TargetEndpointProperties.json.cs b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/TargetEndpointProperties.json.cs new file mode 100644 index 000000000000..418f4b038460 --- /dev/null +++ b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/TargetEndpointProperties.json.cs @@ -0,0 +1,114 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Extensions; + + /// The properties of the cloud target endpoint to migrate. + public partial class TargetEndpointProperties + { + + /// + /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JsonNode that should be deserialized into this object. + + partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JSON container that the serialization result will be placed in. + + partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject container); + + /// + /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of + /// the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the + /// output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JsonNode that should be deserialized into this object. + /// Determines if the rest of the deserialization should be processed, or if the method should return + /// instantly. + + partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject json, ref bool returnNow); + + /// + /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the + /// object before it is serialized. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JSON container that the serialization result will be placed in. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ITargetEndpointProperties. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ITargetEndpointProperties. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ITargetEndpointProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject json ? new TargetEndpointProperties(json) : null; + } + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject instance to deserialize from. + internal TargetEndpointProperties(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_name = If( json?.PropertyT("name"), out var __jsonName) ? (string)__jsonName : (string)Name;} + {_targetEndpointResourceId = If( json?.PropertyT("targetEndpointResourceId"), out var __jsonTargetEndpointResourceId) ? (string)__jsonTargetEndpointResourceId : (string)TargetEndpointResourceId;} + {_azureStorageAccountResourceId = If( json?.PropertyT("azureStorageAccountResourceId"), out var __jsonAzureStorageAccountResourceId) ? (string)__jsonAzureStorageAccountResourceId : (string)AzureStorageAccountResourceId;} + {_azureStorageBlobContainerName = If( json?.PropertyT("azureStorageBlobContainerName"), out var __jsonAzureStorageBlobContainerName) ? (string)__jsonAzureStorageBlobContainerName : (string)AzureStorageBlobContainerName;} + AfterFromJson(json); + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + AddIf( null != (((object)this._name)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonString(this._name.ToString()) : null, "name" ,container.Add ); + AddIf( null != (((object)this._targetEndpointResourceId)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonString(this._targetEndpointResourceId.ToString()) : null, "targetEndpointResourceId" ,container.Add ); + AddIf( null != (((object)this._azureStorageAccountResourceId)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonString(this._azureStorageAccountResourceId.ToString()) : null, "azureStorageAccountResourceId" ,container.Add ); + AddIf( null != (((object)this._azureStorageBlobContainerName)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonString(this._azureStorageBlobContainerName.ToString()) : null, "azureStorageBlobContainerName" ,container.Add ); + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/Time.PowerShell.cs b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/Time.PowerShell.cs similarity index 89% rename from generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/Time.PowerShell.cs rename to generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/Time.PowerShell.cs index a532bb93a0e3..47be755afc8c 100644 --- a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/Time.PowerShell.cs +++ b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/Time.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701 { using Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.PowerShell; @@ -63,27 +63,27 @@ public partial class Time partial void OverrideToString(ref string stringResult, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.ITime DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ITime DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new Time(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.ITime DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ITime DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new Time(content); } @@ -93,10 +93,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.ITime FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ITime FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(jsonText)); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -111,17 +111,17 @@ internal Time(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("Hour")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.ITimeInternal)this).Hour = (int) content.GetValueForProperty("Hour",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.ITimeInternal)this).Hour, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ITimeInternal)this).Hour = (int) content.GetValueForProperty("Hour",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ITimeInternal)this).Hour, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("Minute")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.ITimeInternal)this).Minute = (int?) content.GetValueForProperty("Minute",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.ITimeInternal)this).Minute, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ITimeInternal)this).Minute = (int?) content.GetValueForProperty("Minute",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ITimeInternal)this).Minute, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -136,11 +136,11 @@ internal Time(global::System.Management.Automation.PSObject content) // actually deserialize if (content.Contains("Hour")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.ITimeInternal)this).Hour = (int) content.GetValueForProperty("Hour",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.ITimeInternal)this).Hour, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ITimeInternal)this).Hour = (int) content.GetValueForProperty("Hour",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ITimeInternal)this).Hour, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("Minute")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.ITimeInternal)this).Minute = (int?) content.GetValueForProperty("Minute",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.ITimeInternal)this).Minute, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ITimeInternal)this).Minute = (int?) content.GetValueForProperty("Minute",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ITimeInternal)this).Minute, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } AfterDeserializePSObject(content); } diff --git a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/Time.TypeConverter.cs b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/Time.TypeConverter.cs similarity index 98% rename from generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/Time.TypeConverter.cs rename to generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/Time.TypeConverter.cs index 00c25fd83568..a4709c8bfad0 100644 --- a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/Time.TypeConverter.cs +++ b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/Time.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701 { using Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.PowerShell; @@ -105,14 +105,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.ITime ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ITime ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.ITime).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ITime).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/Time.cs b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/Time.cs similarity index 98% rename from generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/Time.cs rename to generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/Time.cs index 74e3e00c9676..ce6467010674 100644 --- a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/Time.cs +++ b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/Time.cs @@ -3,14 +3,14 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701 { using static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Extensions; /// The time of day. public partial class Time : - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.ITime, - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.ITimeInternal + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ITime, + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ITimeInternal { /// Backing field for property. diff --git a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/Time.json.cs b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/Time.json.cs similarity index 98% rename from generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/Time.json.cs rename to generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/Time.json.cs index 7356329ff45d..f725bd850b2c 100644 --- a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/Time.json.cs +++ b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/Time.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701 { using static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class Time partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.ITime. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ITime. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.ITime. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ITime. /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.ITime FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ITime FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject json ? new Time(json) : null; } diff --git a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/UploadLimitSchedule.PowerShell.cs b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/UploadLimitSchedule.PowerShell.cs similarity index 87% rename from generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/UploadLimitSchedule.PowerShell.cs rename to generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/UploadLimitSchedule.PowerShell.cs index 6d59e64f0303..4a57ecbae9a4 100644 --- a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/UploadLimitSchedule.PowerShell.cs +++ b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/UploadLimitSchedule.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701 { using Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.PowerShell; @@ -63,27 +63,27 @@ public partial class UploadLimitSchedule partial void OverrideToString(ref string stringResult, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IUploadLimitSchedule DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IUploadLimitSchedule DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new UploadLimitSchedule(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IUploadLimitSchedule DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IUploadLimitSchedule DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new UploadLimitSchedule(content); } @@ -93,7 +93,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IUploadLimitSchedule FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IUploadLimitSchedule FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. @@ -113,7 +113,7 @@ public override string ToString() } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -128,13 +128,13 @@ internal UploadLimitSchedule(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("WeeklyRecurrence")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IUploadLimitScheduleInternal)this).WeeklyRecurrence = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IUploadLimitWeeklyRecurrence[]) content.GetValueForProperty("WeeklyRecurrence",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IUploadLimitScheduleInternal)this).WeeklyRecurrence, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.UploadLimitWeeklyRecurrenceTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IUploadLimitScheduleInternal)this).WeeklyRecurrence = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IUploadLimitWeeklyRecurrence[]) content.GetValueForProperty("WeeklyRecurrence",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IUploadLimitScheduleInternal)this).WeeklyRecurrence, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.UploadLimitWeeklyRecurrenceTypeConverter.ConvertFrom)); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -149,7 +149,7 @@ internal UploadLimitSchedule(global::System.Management.Automation.PSObject conte // actually deserialize if (content.Contains("WeeklyRecurrence")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IUploadLimitScheduleInternal)this).WeeklyRecurrence = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IUploadLimitWeeklyRecurrence[]) content.GetValueForProperty("WeeklyRecurrence",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IUploadLimitScheduleInternal)this).WeeklyRecurrence, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.UploadLimitWeeklyRecurrenceTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IUploadLimitScheduleInternal)this).WeeklyRecurrence = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IUploadLimitWeeklyRecurrence[]) content.GetValueForProperty("WeeklyRecurrence",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IUploadLimitScheduleInternal)this).WeeklyRecurrence, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.UploadLimitWeeklyRecurrenceTypeConverter.ConvertFrom)); } AfterDeserializePSObject(content); } diff --git a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/UploadLimitSchedule.TypeConverter.cs b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/UploadLimitSchedule.TypeConverter.cs similarity index 98% rename from generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/UploadLimitSchedule.TypeConverter.cs rename to generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/UploadLimitSchedule.TypeConverter.cs index 5334312c52f7..d002477668d8 100644 --- a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/UploadLimitSchedule.TypeConverter.cs +++ b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/UploadLimitSchedule.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701 { using Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IUploadLimitSchedule ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IUploadLimitSchedule ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IUploadLimitSchedule).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IUploadLimitSchedule).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/UploadLimitSchedule.cs b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/UploadLimitSchedule.cs similarity index 86% rename from generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/UploadLimitSchedule.cs rename to generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/UploadLimitSchedule.cs index db6cbd535dad..bf8588ce214b 100644 --- a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/UploadLimitSchedule.cs +++ b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/UploadLimitSchedule.cs @@ -3,22 +3,22 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701 { using static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Extensions; /// The WAN-link upload limit schedule. Overlapping recurrences are not allowed. public partial class UploadLimitSchedule : - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IUploadLimitSchedule, - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IUploadLimitScheduleInternal + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IUploadLimitSchedule, + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IUploadLimitScheduleInternal { /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IUploadLimitWeeklyRecurrence[] _weeklyRecurrence; + private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IUploadLimitWeeklyRecurrence[] _weeklyRecurrence; /// The set of weekly repeating recurrences of the WAN-link upload limit schedule. [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IUploadLimitWeeklyRecurrence[] WeeklyRecurrence { get => this._weeklyRecurrence; set => this._weeklyRecurrence = value; } + public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IUploadLimitWeeklyRecurrence[] WeeklyRecurrence { get => this._weeklyRecurrence; set => this._weeklyRecurrence = value; } /// Creates an new instance. public UploadLimitSchedule() @@ -36,8 +36,8 @@ public partial interface IUploadLimitSchedule : ReadOnly = false, Description = @"The set of weekly repeating recurrences of the WAN-link upload limit schedule.", SerializedName = @"weeklyRecurrences", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IUploadLimitWeeklyRecurrence) })] - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IUploadLimitWeeklyRecurrence[] WeeklyRecurrence { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IUploadLimitWeeklyRecurrence) })] + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IUploadLimitWeeklyRecurrence[] WeeklyRecurrence { get; set; } } /// The WAN-link upload limit schedule. Overlapping recurrences are not allowed. @@ -45,7 +45,7 @@ internal partial interface IUploadLimitScheduleInternal { /// The set of weekly repeating recurrences of the WAN-link upload limit schedule. - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IUploadLimitWeeklyRecurrence[] WeeklyRecurrence { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IUploadLimitWeeklyRecurrence[] WeeklyRecurrence { get; set; } } } \ No newline at end of file diff --git a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/UploadLimitSchedule.json.cs b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/UploadLimitSchedule.json.cs similarity index 95% rename from generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/UploadLimitSchedule.json.cs rename to generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/UploadLimitSchedule.json.cs index 4f8ed37f20e9..d6f7cb9c1956 100644 --- a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/UploadLimitSchedule.json.cs +++ b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/UploadLimitSchedule.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701 { using static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class UploadLimitSchedule partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IUploadLimitSchedule. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IUploadLimitSchedule. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IUploadLimitSchedule. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IUploadLimitSchedule. /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IUploadLimitSchedule FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IUploadLimitSchedule FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject json ? new UploadLimitSchedule(json) : null; } @@ -109,7 +109,7 @@ internal UploadLimitSchedule(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Run { return; } - {_weeklyRecurrence = If( json?.PropertyT("weeklyRecurrences"), out var __jsonWeeklyRecurrences) ? If( __jsonWeeklyRecurrences as Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IUploadLimitWeeklyRecurrence) (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.UploadLimitWeeklyRecurrence.FromJson(__u) )) ))() : null : WeeklyRecurrence;} + {_weeklyRecurrence = If( json?.PropertyT("weeklyRecurrences"), out var __jsonWeeklyRecurrences) ? If( __jsonWeeklyRecurrences as Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IUploadLimitWeeklyRecurrence) (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.UploadLimitWeeklyRecurrence.FromJson(__u) )) ))() : null : WeeklyRecurrence;} AfterFromJson(json); } } diff --git a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/UploadLimitWeeklyRecurrence.PowerShell.cs b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/UploadLimitWeeklyRecurrence.PowerShell.cs similarity index 79% rename from generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/UploadLimitWeeklyRecurrence.PowerShell.cs rename to generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/UploadLimitWeeklyRecurrence.PowerShell.cs index ddf1ece09829..ef359f53aacd 100644 --- a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/UploadLimitWeeklyRecurrence.PowerShell.cs +++ b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/UploadLimitWeeklyRecurrence.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701 { using Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.PowerShell; @@ -66,29 +66,29 @@ public partial class UploadLimitWeeklyRecurrence partial void OverrideToString(ref string stringResult, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IUploadLimitWeeklyRecurrence DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IUploadLimitWeeklyRecurrence DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new UploadLimitWeeklyRecurrence(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IUploadLimitWeeklyRecurrence DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IUploadLimitWeeklyRecurrence DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new UploadLimitWeeklyRecurrence(content); } @@ -98,7 +98,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IUploadLimitWeeklyRecurrence FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IUploadLimitWeeklyRecurrence FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. @@ -118,7 +118,7 @@ public override string ToString() } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -131,43 +131,43 @@ internal UploadLimitWeeklyRecurrence(global::System.Collections.IDictionary cont return; } // actually deserialize + if (content.Contains("LimitInMbps")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IUploadLimitWeeklyRecurrenceInternal)this).LimitInMbps = (int) content.GetValueForProperty("LimitInMbps",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IUploadLimitWeeklyRecurrenceInternal)this).LimitInMbps, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } if (content.Contains("StartTimeHour")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IRecurrenceInternal)this).StartTimeHour = (int) content.GetValueForProperty("StartTimeHour",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IRecurrenceInternal)this).StartTimeHour, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IRecurrenceInternal)this).StartTimeHour = (int) content.GetValueForProperty("StartTimeHour",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IRecurrenceInternal)this).StartTimeHour, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("StartTimeMinute")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IRecurrenceInternal)this).StartTimeMinute = (int?) content.GetValueForProperty("StartTimeMinute",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IRecurrenceInternal)this).StartTimeMinute, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IRecurrenceInternal)this).StartTimeMinute = (int?) content.GetValueForProperty("StartTimeMinute",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IRecurrenceInternal)this).StartTimeMinute, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("EndTimeHour")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IRecurrenceInternal)this).EndTimeHour = (int) content.GetValueForProperty("EndTimeHour",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IRecurrenceInternal)this).EndTimeHour, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IRecurrenceInternal)this).EndTimeHour = (int) content.GetValueForProperty("EndTimeHour",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IRecurrenceInternal)this).EndTimeHour, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("EndTimeMinute")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IRecurrenceInternal)this).EndTimeMinute = (int?) content.GetValueForProperty("EndTimeMinute",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IRecurrenceInternal)this).EndTimeMinute, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IRecurrenceInternal)this).EndTimeMinute = (int?) content.GetValueForProperty("EndTimeMinute",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IRecurrenceInternal)this).EndTimeMinute, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("StartTime")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IRecurrenceInternal)this).StartTime = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.ITime) content.GetValueForProperty("StartTime",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IRecurrenceInternal)this).StartTime, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.TimeTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IRecurrenceInternal)this).StartTime = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ITime) content.GetValueForProperty("StartTime",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IRecurrenceInternal)this).StartTime, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.TimeTypeConverter.ConvertFrom); } if (content.Contains("EndTime")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IRecurrenceInternal)this).EndTime = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.ITime) content.GetValueForProperty("EndTime",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IRecurrenceInternal)this).EndTime, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.TimeTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IRecurrenceInternal)this).EndTime = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ITime) content.GetValueForProperty("EndTime",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IRecurrenceInternal)this).EndTime, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.TimeTypeConverter.ConvertFrom); } if (content.Contains("Day")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IWeeklyRecurrenceInternal)this).Day = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.DayOfWeek[]) content.GetValueForProperty("Day",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IWeeklyRecurrenceInternal)this).Day, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.DayOfWeek.CreateFrom)); - } - if (content.Contains("LimitInMbps")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IUploadLimitInternal)this).LimitInMbps = (int) content.GetValueForProperty("LimitInMbps",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IUploadLimitInternal)this).LimitInMbps, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IWeeklyRecurrenceInternal)this).Day = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.DayOfWeek[]) content.GetValueForProperty("Day",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IWeeklyRecurrenceInternal)this).Day, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.DayOfWeek.CreateFrom)); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -180,37 +180,37 @@ internal UploadLimitWeeklyRecurrence(global::System.Management.Automation.PSObje return; } // actually deserialize + if (content.Contains("LimitInMbps")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IUploadLimitWeeklyRecurrenceInternal)this).LimitInMbps = (int) content.GetValueForProperty("LimitInMbps",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IUploadLimitWeeklyRecurrenceInternal)this).LimitInMbps, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } if (content.Contains("StartTimeHour")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IRecurrenceInternal)this).StartTimeHour = (int) content.GetValueForProperty("StartTimeHour",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IRecurrenceInternal)this).StartTimeHour, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IRecurrenceInternal)this).StartTimeHour = (int) content.GetValueForProperty("StartTimeHour",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IRecurrenceInternal)this).StartTimeHour, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("StartTimeMinute")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IRecurrenceInternal)this).StartTimeMinute = (int?) content.GetValueForProperty("StartTimeMinute",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IRecurrenceInternal)this).StartTimeMinute, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IRecurrenceInternal)this).StartTimeMinute = (int?) content.GetValueForProperty("StartTimeMinute",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IRecurrenceInternal)this).StartTimeMinute, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("EndTimeHour")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IRecurrenceInternal)this).EndTimeHour = (int) content.GetValueForProperty("EndTimeHour",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IRecurrenceInternal)this).EndTimeHour, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IRecurrenceInternal)this).EndTimeHour = (int) content.GetValueForProperty("EndTimeHour",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IRecurrenceInternal)this).EndTimeHour, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("EndTimeMinute")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IRecurrenceInternal)this).EndTimeMinute = (int?) content.GetValueForProperty("EndTimeMinute",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IRecurrenceInternal)this).EndTimeMinute, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IRecurrenceInternal)this).EndTimeMinute = (int?) content.GetValueForProperty("EndTimeMinute",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IRecurrenceInternal)this).EndTimeMinute, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("StartTime")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IRecurrenceInternal)this).StartTime = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.ITime) content.GetValueForProperty("StartTime",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IRecurrenceInternal)this).StartTime, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.TimeTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IRecurrenceInternal)this).StartTime = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ITime) content.GetValueForProperty("StartTime",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IRecurrenceInternal)this).StartTime, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.TimeTypeConverter.ConvertFrom); } if (content.Contains("EndTime")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IRecurrenceInternal)this).EndTime = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.ITime) content.GetValueForProperty("EndTime",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IRecurrenceInternal)this).EndTime, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.TimeTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IRecurrenceInternal)this).EndTime = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ITime) content.GetValueForProperty("EndTime",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IRecurrenceInternal)this).EndTime, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.TimeTypeConverter.ConvertFrom); } if (content.Contains("Day")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IWeeklyRecurrenceInternal)this).Day = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.DayOfWeek[]) content.GetValueForProperty("Day",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IWeeklyRecurrenceInternal)this).Day, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.DayOfWeek.CreateFrom)); - } - if (content.Contains("LimitInMbps")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IUploadLimitInternal)this).LimitInMbps = (int) content.GetValueForProperty("LimitInMbps",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IUploadLimitInternal)this).LimitInMbps, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IWeeklyRecurrenceInternal)this).Day = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.DayOfWeek[]) content.GetValueForProperty("Day",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IWeeklyRecurrenceInternal)this).Day, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.DayOfWeek.CreateFrom)); } AfterDeserializePSObject(content); } diff --git a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/UploadLimitWeeklyRecurrence.TypeConverter.cs b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/UploadLimitWeeklyRecurrence.TypeConverter.cs similarity index 98% rename from generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/UploadLimitWeeklyRecurrence.TypeConverter.cs rename to generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/UploadLimitWeeklyRecurrence.TypeConverter.cs index 6b8d73da3052..8b59da293bd0 100644 --- a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/UploadLimitWeeklyRecurrence.TypeConverter.cs +++ b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/UploadLimitWeeklyRecurrence.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701 { using Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IUploadLimitWeeklyRecurrence ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IUploadLimitWeeklyRecurrence ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IUploadLimitWeeklyRecurrence).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IUploadLimitWeeklyRecurrence).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/UploadLimitWeeklyRecurrence.cs b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/UploadLimitWeeklyRecurrence.cs similarity index 68% rename from generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/UploadLimitWeeklyRecurrence.cs rename to generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/UploadLimitWeeklyRecurrence.cs index d53e45fef3ec..fcf816758cac 100644 --- a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/UploadLimitWeeklyRecurrence.cs +++ b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/UploadLimitWeeklyRecurrence.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701 { using static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Extensions; @@ -12,46 +12,43 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701 /// The recurrence must not span across multiple days. /// public partial class UploadLimitWeeklyRecurrence : - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IUploadLimitWeeklyRecurrence, - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IUploadLimitWeeklyRecurrenceInternal, + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IUploadLimitWeeklyRecurrence, + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IUploadLimitWeeklyRecurrenceInternal, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IUploadLimit __uploadLimit = new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.UploadLimit(); - - /// - /// Backing field for Inherited model - /// - private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IWeeklyRecurrence __weeklyRecurrence = new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.WeeklyRecurrence(); + private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IWeeklyRecurrence __weeklyRecurrence = new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.WeeklyRecurrence(); /// /// The set of days of week for the schedule recurrence. A day must not be specified more than once in a recurrence. /// [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.DayOfWeek[] Day { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IWeeklyRecurrenceInternal)__weeklyRecurrence).Day; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IWeeklyRecurrenceInternal)__weeklyRecurrence).Day = value ; } + public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.DayOfWeek[] Day { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IWeeklyRecurrenceInternal)__weeklyRecurrence).Day; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IWeeklyRecurrenceInternal)__weeklyRecurrence).Day = value ; } /// /// The end time of the schedule recurrence. Full hour and 30-minute intervals are supported. /// [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.ITime EndTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IRecurrenceInternal)__weeklyRecurrence).EndTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IRecurrenceInternal)__weeklyRecurrence).EndTime = value ; } + public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ITime EndTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IRecurrenceInternal)__weeklyRecurrence).EndTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IRecurrenceInternal)__weeklyRecurrence).EndTime = value ; } /// /// The hour element of the time. Allowed values range from 0 (start of the selected day) to 24 (end of the selected day). /// Hour value 24 cannot be combined with any other minute value but 0. /// [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inherited)] - public int EndTimeHour { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IRecurrenceInternal)__weeklyRecurrence).EndTimeHour; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IRecurrenceInternal)__weeklyRecurrence).EndTimeHour = value ; } + public int EndTimeHour { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IRecurrenceInternal)__weeklyRecurrence).EndTimeHour; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IRecurrenceInternal)__weeklyRecurrence).EndTimeHour = value ; } /// /// The minute element of the time. Allowed values are 0 and 30. If not specified, its value defaults to 0. /// [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inherited)] - public int? EndTimeMinute { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IRecurrenceInternal)__weeklyRecurrence).EndTimeMinute; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IRecurrenceInternal)__weeklyRecurrence).EndTimeMinute = value ?? default(int); } + public int? EndTimeMinute { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IRecurrenceInternal)__weeklyRecurrence).EndTimeMinute; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IRecurrenceInternal)__weeklyRecurrence).EndTimeMinute = value ?? default(int); } + + /// Backing field for property. + private int _limitInMbps; /// /// The WAN-link upload bandwidth (maximum data transfer rate) in megabits per second. Value of 0 indicates no throughput @@ -59,27 +56,27 @@ public partial class UploadLimitWeeklyRecurrence : /// are governed by this limit. Control plane operations ensure seamless functionality. The agent may exceed this limit with /// control messages, if necessary. /// - [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inherited)] - public int LimitInMbps { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IUploadLimitInternal)__uploadLimit).LimitInMbps; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IUploadLimitInternal)__uploadLimit).LimitInMbps = value ; } + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Owned)] + public int LimitInMbps { get => this._limitInMbps; set => this._limitInMbps = value; } /// /// The start time of the schedule recurrence. Full hour and 30-minute intervals are supported. /// [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.ITime StartTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IRecurrenceInternal)__weeklyRecurrence).StartTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IRecurrenceInternal)__weeklyRecurrence).StartTime = value ; } + public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ITime StartTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IRecurrenceInternal)__weeklyRecurrence).StartTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IRecurrenceInternal)__weeklyRecurrence).StartTime = value ; } /// /// The hour element of the time. Allowed values range from 0 (start of the selected day) to 24 (end of the selected day). /// Hour value 24 cannot be combined with any other minute value but 0. /// [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inherited)] - public int StartTimeHour { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IRecurrenceInternal)__weeklyRecurrence).StartTimeHour; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IRecurrenceInternal)__weeklyRecurrence).StartTimeHour = value ; } + public int StartTimeHour { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IRecurrenceInternal)__weeklyRecurrence).StartTimeHour; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IRecurrenceInternal)__weeklyRecurrence).StartTimeHour = value ; } /// /// The minute element of the time. Allowed values are 0 and 30. If not specified, its value defaults to 0. /// [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inherited)] - public int? StartTimeMinute { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IRecurrenceInternal)__weeklyRecurrence).StartTimeMinute; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IRecurrenceInternal)__weeklyRecurrence).StartTimeMinute = value ?? default(int); } + public int? StartTimeMinute { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IRecurrenceInternal)__weeklyRecurrence).StartTimeMinute; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IRecurrenceInternal)__weeklyRecurrence).StartTimeMinute = value ?? default(int); } /// Creates an new instance. public UploadLimitWeeklyRecurrence() @@ -97,25 +94,41 @@ public UploadLimitWeeklyRecurrence() { await eventListener.AssertNotNull(nameof(__weeklyRecurrence), __weeklyRecurrence); await eventListener.AssertObjectIsValid(nameof(__weeklyRecurrence), __weeklyRecurrence); - await eventListener.AssertNotNull(nameof(__uploadLimit), __uploadLimit); - await eventListener.AssertObjectIsValid(nameof(__uploadLimit), __uploadLimit); } } /// The weekly recurrence of the WAN-link upload limit schedule. The start time must be earlier in the day than the end time. /// The recurrence must not span across multiple days. public partial interface IUploadLimitWeeklyRecurrence : Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IWeeklyRecurrence, - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IUploadLimit + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IWeeklyRecurrence { + /// + /// The WAN-link upload bandwidth (maximum data transfer rate) in megabits per second. Value of 0 indicates no throughput + /// is allowed and any running migration job is effectively paused for the duration of this recurrence. Only data plane operations + /// are governed by this limit. Control plane operations ensure seamless functionality. The agent may exceed this limit with + /// control messages, if necessary. + /// + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The WAN-link upload bandwidth (maximum data transfer rate) in megabits per second. Value of 0 indicates no throughput is allowed and any running migration job is effectively paused for the duration of this recurrence. Only data plane operations are governed by this limit. Control plane operations ensure seamless functionality. The agent may exceed this limit with control messages, if necessary.", + SerializedName = @"limitInMbps", + PossibleTypes = new [] { typeof(int) })] + int LimitInMbps { get; set; } } /// The weekly recurrence of the WAN-link upload limit schedule. The start time must be earlier in the day than the end time. /// The recurrence must not span across multiple days. internal partial interface IUploadLimitWeeklyRecurrenceInternal : - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IWeeklyRecurrenceInternal, - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IUploadLimitInternal + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IWeeklyRecurrenceInternal { + /// + /// The WAN-link upload bandwidth (maximum data transfer rate) in megabits per second. Value of 0 indicates no throughput + /// is allowed and any running migration job is effectively paused for the duration of this recurrence. Only data plane operations + /// are governed by this limit. Control plane operations ensure seamless functionality. The agent may exceed this limit with + /// control messages, if necessary. + /// + int LimitInMbps { get; set; } } } \ No newline at end of file diff --git a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/UploadLimitWeeklyRecurrence.json.cs b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/UploadLimitWeeklyRecurrence.json.cs similarity index 91% rename from generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/UploadLimitWeeklyRecurrence.json.cs rename to generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/UploadLimitWeeklyRecurrence.json.cs index 72d2d7b74e27..fb81c5c7e45d 100644 --- a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/UploadLimitWeeklyRecurrence.json.cs +++ b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/UploadLimitWeeklyRecurrence.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701 { using static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Extensions; @@ -57,13 +57,13 @@ public partial class UploadLimitWeeklyRecurrence partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IUploadLimitWeeklyRecurrence. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IUploadLimitWeeklyRecurrence. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IUploadLimitWeeklyRecurrence. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IUploadLimitWeeklyRecurrence. /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IUploadLimitWeeklyRecurrence FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IUploadLimitWeeklyRecurrence FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject json ? new UploadLimitWeeklyRecurrence(json) : null; } @@ -88,7 +88,7 @@ public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode ToJ return container; } __weeklyRecurrence?.ToJson(container, serializationMode); - __uploadLimit?.ToJson(container, serializationMode); + AddIf( (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode)new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNumber(this._limitInMbps), "limitInMbps" ,container.Add ); AfterToJson(ref container); return container; } @@ -105,8 +105,8 @@ internal UploadLimitWeeklyRecurrence(Microsoft.Azure.PowerShell.Cmdlets.StorageM { return; } - __weeklyRecurrence = new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.WeeklyRecurrence(json); - __uploadLimit = new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.UploadLimit(json); + __weeklyRecurrence = new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.WeeklyRecurrence(json); + {_limitInMbps = If( json?.PropertyT("limitInMbps"), out var __jsonLimitInMbps) ? (int)__jsonLimitInMbps : LimitInMbps;} AfterFromJson(json); } } diff --git a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/WeeklyRecurrence.PowerShell.cs b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/WeeklyRecurrence.PowerShell.cs similarity index 81% rename from generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/WeeklyRecurrence.PowerShell.cs rename to generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/WeeklyRecurrence.PowerShell.cs index 4cde3af4857b..acb9b4d099db 100644 --- a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/WeeklyRecurrence.PowerShell.cs +++ b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/WeeklyRecurrence.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701 { using Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.PowerShell; @@ -63,27 +63,27 @@ public partial class WeeklyRecurrence partial void OverrideToString(ref string stringResult, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IWeeklyRecurrence DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IWeeklyRecurrence DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new WeeklyRecurrence(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IWeeklyRecurrence DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IWeeklyRecurrence DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new WeeklyRecurrence(content); } @@ -93,7 +93,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IWeeklyRecurrence FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IWeeklyRecurrence FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. @@ -113,7 +113,7 @@ public override string ToString() } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -128,37 +128,37 @@ internal WeeklyRecurrence(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("Day")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IWeeklyRecurrenceInternal)this).Day = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.DayOfWeek[]) content.GetValueForProperty("Day",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IWeeklyRecurrenceInternal)this).Day, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.DayOfWeek.CreateFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IWeeklyRecurrenceInternal)this).Day = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.DayOfWeek[]) content.GetValueForProperty("Day",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IWeeklyRecurrenceInternal)this).Day, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.DayOfWeek.CreateFrom)); } if (content.Contains("StartTimeHour")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IRecurrenceInternal)this).StartTimeHour = (int) content.GetValueForProperty("StartTimeHour",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IRecurrenceInternal)this).StartTimeHour, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IRecurrenceInternal)this).StartTimeHour = (int) content.GetValueForProperty("StartTimeHour",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IRecurrenceInternal)this).StartTimeHour, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("StartTimeMinute")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IRecurrenceInternal)this).StartTimeMinute = (int?) content.GetValueForProperty("StartTimeMinute",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IRecurrenceInternal)this).StartTimeMinute, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IRecurrenceInternal)this).StartTimeMinute = (int?) content.GetValueForProperty("StartTimeMinute",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IRecurrenceInternal)this).StartTimeMinute, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("EndTimeHour")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IRecurrenceInternal)this).EndTimeHour = (int) content.GetValueForProperty("EndTimeHour",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IRecurrenceInternal)this).EndTimeHour, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IRecurrenceInternal)this).EndTimeHour = (int) content.GetValueForProperty("EndTimeHour",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IRecurrenceInternal)this).EndTimeHour, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("EndTimeMinute")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IRecurrenceInternal)this).EndTimeMinute = (int?) content.GetValueForProperty("EndTimeMinute",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IRecurrenceInternal)this).EndTimeMinute, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IRecurrenceInternal)this).EndTimeMinute = (int?) content.GetValueForProperty("EndTimeMinute",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IRecurrenceInternal)this).EndTimeMinute, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("StartTime")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IRecurrenceInternal)this).StartTime = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.ITime) content.GetValueForProperty("StartTime",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IRecurrenceInternal)this).StartTime, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.TimeTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IRecurrenceInternal)this).StartTime = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ITime) content.GetValueForProperty("StartTime",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IRecurrenceInternal)this).StartTime, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.TimeTypeConverter.ConvertFrom); } if (content.Contains("EndTime")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IRecurrenceInternal)this).EndTime = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.ITime) content.GetValueForProperty("EndTime",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IRecurrenceInternal)this).EndTime, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.TimeTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IRecurrenceInternal)this).EndTime = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ITime) content.GetValueForProperty("EndTime",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IRecurrenceInternal)this).EndTime, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.TimeTypeConverter.ConvertFrom); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -173,31 +173,31 @@ internal WeeklyRecurrence(global::System.Management.Automation.PSObject content) // actually deserialize if (content.Contains("Day")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IWeeklyRecurrenceInternal)this).Day = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.DayOfWeek[]) content.GetValueForProperty("Day",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IWeeklyRecurrenceInternal)this).Day, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.DayOfWeek.CreateFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IWeeklyRecurrenceInternal)this).Day = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.DayOfWeek[]) content.GetValueForProperty("Day",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IWeeklyRecurrenceInternal)this).Day, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.DayOfWeek.CreateFrom)); } if (content.Contains("StartTimeHour")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IRecurrenceInternal)this).StartTimeHour = (int) content.GetValueForProperty("StartTimeHour",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IRecurrenceInternal)this).StartTimeHour, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IRecurrenceInternal)this).StartTimeHour = (int) content.GetValueForProperty("StartTimeHour",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IRecurrenceInternal)this).StartTimeHour, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("StartTimeMinute")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IRecurrenceInternal)this).StartTimeMinute = (int?) content.GetValueForProperty("StartTimeMinute",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IRecurrenceInternal)this).StartTimeMinute, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IRecurrenceInternal)this).StartTimeMinute = (int?) content.GetValueForProperty("StartTimeMinute",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IRecurrenceInternal)this).StartTimeMinute, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("EndTimeHour")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IRecurrenceInternal)this).EndTimeHour = (int) content.GetValueForProperty("EndTimeHour",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IRecurrenceInternal)this).EndTimeHour, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IRecurrenceInternal)this).EndTimeHour = (int) content.GetValueForProperty("EndTimeHour",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IRecurrenceInternal)this).EndTimeHour, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("EndTimeMinute")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IRecurrenceInternal)this).EndTimeMinute = (int?) content.GetValueForProperty("EndTimeMinute",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IRecurrenceInternal)this).EndTimeMinute, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IRecurrenceInternal)this).EndTimeMinute = (int?) content.GetValueForProperty("EndTimeMinute",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IRecurrenceInternal)this).EndTimeMinute, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("StartTime")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IRecurrenceInternal)this).StartTime = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.ITime) content.GetValueForProperty("StartTime",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IRecurrenceInternal)this).StartTime, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.TimeTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IRecurrenceInternal)this).StartTime = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ITime) content.GetValueForProperty("StartTime",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IRecurrenceInternal)this).StartTime, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.TimeTypeConverter.ConvertFrom); } if (content.Contains("EndTime")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IRecurrenceInternal)this).EndTime = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.ITime) content.GetValueForProperty("EndTime",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IRecurrenceInternal)this).EndTime, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.TimeTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IRecurrenceInternal)this).EndTime = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ITime) content.GetValueForProperty("EndTime",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IRecurrenceInternal)this).EndTime, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.TimeTypeConverter.ConvertFrom); } AfterDeserializePSObject(content); } diff --git a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/WeeklyRecurrence.TypeConverter.cs b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/WeeklyRecurrence.TypeConverter.cs similarity index 98% rename from generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/WeeklyRecurrence.TypeConverter.cs rename to generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/WeeklyRecurrence.TypeConverter.cs index fb7002377c7d..eafdc7095ef1 100644 --- a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/WeeklyRecurrence.TypeConverter.cs +++ b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/WeeklyRecurrence.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701 { using Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IWeeklyRecurrence ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IWeeklyRecurrence ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IWeeklyRecurrence).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IWeeklyRecurrence).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/WeeklyRecurrence.cs b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/WeeklyRecurrence.cs similarity index 84% rename from generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/WeeklyRecurrence.cs rename to generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/WeeklyRecurrence.cs index 887b00b50736..39e5aa62caf5 100644 --- a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/WeeklyRecurrence.cs +++ b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/WeeklyRecurrence.cs @@ -3,21 +3,21 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701 { using static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Extensions; /// The weekly recurrence of the schedule. public partial class WeeklyRecurrence : - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IWeeklyRecurrence, - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IWeeklyRecurrenceInternal, + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IWeeklyRecurrence, + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IWeeklyRecurrenceInternal, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IRecurrence __recurrence = new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.Recurrence(); + private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IRecurrence __recurrence = new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.Recurrence(); /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.DayOfWeek[] _day; @@ -32,39 +32,39 @@ public partial class WeeklyRecurrence : /// The end time of the schedule recurrence. Full hour and 30-minute intervals are supported. /// [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.ITime EndTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IRecurrenceInternal)__recurrence).EndTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IRecurrenceInternal)__recurrence).EndTime = value ; } + public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ITime EndTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IRecurrenceInternal)__recurrence).EndTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IRecurrenceInternal)__recurrence).EndTime = value ; } /// /// The hour element of the time. Allowed values range from 0 (start of the selected day) to 24 (end of the selected day). /// Hour value 24 cannot be combined with any other minute value but 0. /// [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inherited)] - public int EndTimeHour { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IRecurrenceInternal)__recurrence).EndTimeHour; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IRecurrenceInternal)__recurrence).EndTimeHour = value ; } + public int EndTimeHour { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IRecurrenceInternal)__recurrence).EndTimeHour; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IRecurrenceInternal)__recurrence).EndTimeHour = value ; } /// /// The minute element of the time. Allowed values are 0 and 30. If not specified, its value defaults to 0. /// [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inherited)] - public int? EndTimeMinute { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IRecurrenceInternal)__recurrence).EndTimeMinute; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IRecurrenceInternal)__recurrence).EndTimeMinute = value ?? default(int); } + public int? EndTimeMinute { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IRecurrenceInternal)__recurrence).EndTimeMinute; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IRecurrenceInternal)__recurrence).EndTimeMinute = value ?? default(int); } /// /// The start time of the schedule recurrence. Full hour and 30-minute intervals are supported. /// [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.ITime StartTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IRecurrenceInternal)__recurrence).StartTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IRecurrenceInternal)__recurrence).StartTime = value ; } + public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ITime StartTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IRecurrenceInternal)__recurrence).StartTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IRecurrenceInternal)__recurrence).StartTime = value ; } /// /// The hour element of the time. Allowed values range from 0 (start of the selected day) to 24 (end of the selected day). /// Hour value 24 cannot be combined with any other minute value but 0. /// [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inherited)] - public int StartTimeHour { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IRecurrenceInternal)__recurrence).StartTimeHour; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IRecurrenceInternal)__recurrence).StartTimeHour = value ; } + public int StartTimeHour { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IRecurrenceInternal)__recurrence).StartTimeHour; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IRecurrenceInternal)__recurrence).StartTimeHour = value ; } /// /// The minute element of the time. Allowed values are 0 and 30. If not specified, its value defaults to 0. /// [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inherited)] - public int? StartTimeMinute { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IRecurrenceInternal)__recurrence).StartTimeMinute; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IRecurrenceInternal)__recurrence).StartTimeMinute = value ?? default(int); } + public int? StartTimeMinute { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IRecurrenceInternal)__recurrence).StartTimeMinute; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IRecurrenceInternal)__recurrence).StartTimeMinute = value ?? default(int); } /// Validates that this object meets the validation criteria. /// an instance that will receive validation @@ -87,7 +87,7 @@ public WeeklyRecurrence() /// The weekly recurrence of the schedule. public partial interface IWeeklyRecurrence : Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IRecurrence + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IRecurrence { /// /// The set of days of week for the schedule recurrence. A day must not be specified more than once in a recurrence. @@ -103,7 +103,7 @@ public partial interface IWeeklyRecurrence : } /// The weekly recurrence of the schedule. internal partial interface IWeeklyRecurrenceInternal : - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IRecurrenceInternal + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IRecurrenceInternal { /// /// The set of days of week for the schedule recurrence. A day must not be specified more than once in a recurrence. diff --git a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/WeeklyRecurrence.json.cs b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/WeeklyRecurrence.json.cs similarity index 97% rename from generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/WeeklyRecurrence.json.cs rename to generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/WeeklyRecurrence.json.cs index 468c0a1c5201..25c8b2f350e2 100644 --- a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/WeeklyRecurrence.json.cs +++ b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20250701/WeeklyRecurrence.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701 { using static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class WeeklyRecurrence partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IWeeklyRecurrence. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IWeeklyRecurrence. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IWeeklyRecurrence. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IWeeklyRecurrence. /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IWeeklyRecurrence FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IWeeklyRecurrence FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject json ? new WeeklyRecurrence(json) : null; } @@ -110,7 +110,7 @@ internal WeeklyRecurrence(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtim { return; } - __recurrence = new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.Recurrence(json); + __recurrence = new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.Recurrence(json); {_day = If( json?.PropertyT("days"), out var __jsonDays) ? If( __jsonDays as Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.DayOfWeek) (__u is Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonString __t ? (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.DayOfWeek)(__t.ToString()) : ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.DayOfWeek)""))) ))() : null : Day;} AfterFromJson(json); } diff --git a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api30/ManagedServiceIdentity.PowerShell.cs b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api30/ManagedServiceIdentity.PowerShell.cs new file mode 100644 index 000000000000..9f0e7d271fbc --- /dev/null +++ b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api30/ManagedServiceIdentity.PowerShell.cs @@ -0,0 +1,188 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30 +{ + using Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.PowerShell; + + /// Managed service identity (system assigned and/or user assigned identities) + [System.ComponentModel.TypeConverter(typeof(ManagedServiceIdentityTypeConverter))] + public partial class ManagedServiceIdentity + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// OverrideToString will be called if it is implemented. Implement this method in a partial class to enable this behavior + /// + /// /// instance serialized to a string, normally it is a Json + /// /// set returnNow to true if you provide a customized OverrideToString function + + partial void OverrideToString(ref string stringResult, ref bool returnNow); + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IManagedServiceIdentity DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new ManagedServiceIdentity(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IManagedServiceIdentity DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new ManagedServiceIdentity(content); + } + + /// + /// Creates a new instance of , deserializing the content from a json string. + /// + /// a string containing a JSON serialized instance of this model. + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IManagedServiceIdentity FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal ManagedServiceIdentity(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("PrincipalId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IManagedServiceIdentityInternal)this).PrincipalId = (string) content.GetValueForProperty("PrincipalId",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IManagedServiceIdentityInternal)this).PrincipalId, global::System.Convert.ToString); + } + if (content.Contains("TenantId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IManagedServiceIdentityInternal)this).TenantId = (string) content.GetValueForProperty("TenantId",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IManagedServiceIdentityInternal)this).TenantId, global::System.Convert.ToString); + } + if (content.Contains("Type")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IManagedServiceIdentityInternal)this).Type = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ManagedServiceIdentityType) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IManagedServiceIdentityInternal)this).Type, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ManagedServiceIdentityType.CreateFrom); + } + if (content.Contains("UserAssignedIdentity")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IManagedServiceIdentityInternal)this).UserAssignedIdentity = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IUserAssignedIdentities) content.GetValueForProperty("UserAssignedIdentity",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IManagedServiceIdentityInternal)this).UserAssignedIdentity, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.UserAssignedIdentitiesTypeConverter.ConvertFrom); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal ManagedServiceIdentity(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("PrincipalId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IManagedServiceIdentityInternal)this).PrincipalId = (string) content.GetValueForProperty("PrincipalId",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IManagedServiceIdentityInternal)this).PrincipalId, global::System.Convert.ToString); + } + if (content.Contains("TenantId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IManagedServiceIdentityInternal)this).TenantId = (string) content.GetValueForProperty("TenantId",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IManagedServiceIdentityInternal)this).TenantId, global::System.Convert.ToString); + } + if (content.Contains("Type")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IManagedServiceIdentityInternal)this).Type = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ManagedServiceIdentityType) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IManagedServiceIdentityInternal)this).Type, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ManagedServiceIdentityType.CreateFrom); + } + if (content.Contains("UserAssignedIdentity")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IManagedServiceIdentityInternal)this).UserAssignedIdentity = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IUserAssignedIdentities) content.GetValueForProperty("UserAssignedIdentity",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IManagedServiceIdentityInternal)this).UserAssignedIdentity, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.UserAssignedIdentitiesTypeConverter.ConvertFrom); + } + AfterDeserializePSObject(content); + } + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.SerializationMode.IncludeAll)?.ToString(); + + public override string ToString() + { + var returnNow = false; + var result = global::System.String.Empty; + OverrideToString(ref result, ref returnNow); + if (returnNow) + { + return result; + } + return ToJsonString(); + } + } + /// Managed service identity (system assigned and/or user assigned identities) + [System.ComponentModel.TypeConverter(typeof(ManagedServiceIdentityTypeConverter))] + public partial interface IManagedServiceIdentity + + { + + } +} \ No newline at end of file diff --git a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api30/ManagedServiceIdentity.TypeConverter.cs b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api30/ManagedServiceIdentity.TypeConverter.cs new file mode 100644 index 000000000000..ddde9d1dcc18 --- /dev/null +++ b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api30/ManagedServiceIdentity.TypeConverter.cs @@ -0,0 +1,147 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30 +{ + using Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class ManagedServiceIdentityTypeConverter : global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); + + /// + /// Determines if the converter can convert the parameter to the + /// type. + /// + /// the instance to check if it can be converted to the type. + /// + /// true if the instance could be converted to a type, otherwise false + /// + public static bool CanConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return true; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + // we say yest to PSObjects + return true; + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + // we say yest to Hashtables/dictionaries + return true; + } + try + { + if (null != sourceValue.ToJsonString()) + { + return true; + } + } + catch + { + // Not one of our objects + } + try + { + string text = sourceValue.ToString()?.Trim(); + return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonType.Object; + } + catch + { + // Doesn't look like it can be treated as JSON + } + return false; + } + + /// + /// Determines if the parameter can be converted to the + /// parameter + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false + /// + public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; + + /// + /// Converts the parameter to the parameter using and + /// + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// + /// an instance of , or null if there is no suitable conversion. + /// + public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); + + /// + /// Converts the parameter into an instance of + /// + /// the value to convert into an instance of . + /// + /// an instance of , or null if there is no suitable conversion. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IManagedServiceIdentity ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IManagedServiceIdentity).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return ManagedServiceIdentity.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return ManagedServiceIdentity.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return ManagedServiceIdentity.DeserializeFromDictionary(sourceValue); + } + return null; + } + + /// NotImplemented -- this will return null + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// will always return null. + public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; + } +} \ No newline at end of file diff --git a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api30/ManagedServiceIdentity.cs b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api30/ManagedServiceIdentity.cs new file mode 100644 index 000000000000..923acd9e4653 --- /dev/null +++ b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api30/ManagedServiceIdentity.cs @@ -0,0 +1,138 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Extensions; + + /// Managed service identity (system assigned and/or user assigned identities) + public partial class ManagedServiceIdentity : + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IManagedServiceIdentity, + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IManagedServiceIdentityInternal + { + + /// Internal Acessors for PrincipalId + string Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IManagedServiceIdentityInternal.PrincipalId { get => this._principalId; set { {_principalId = value;} } } + + /// Internal Acessors for TenantId + string Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IManagedServiceIdentityInternal.TenantId { get => this._tenantId; set { {_tenantId = value;} } } + + /// Backing field for property. + private string _principalId; + + /// + /// The service principal ID of the system assigned identity. This property will only be provided for a system assigned identity. + /// + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Owned)] + public string PrincipalId { get => this._principalId; } + + /// Backing field for property. + private string _tenantId; + + /// + /// The tenant ID of the system assigned identity. This property will only be provided for a system assigned identity. + /// + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Owned)] + public string TenantId { get => this._tenantId; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ManagedServiceIdentityType _type; + + /// + /// Type of managed service identity (where both SystemAssigned and UserAssigned types are allowed). + /// + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ManagedServiceIdentityType Type { get => this._type; set => this._type = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IUserAssignedIdentities _userAssignedIdentity; + + /// + /// The set of user assigned identities associated with the resource. The userAssignedIdentities dictionary keys will be ARM + /// resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}. + /// The dictionary values can be empty objects ({}) in requests. + /// + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IUserAssignedIdentities UserAssignedIdentity { get => (this._userAssignedIdentity = this._userAssignedIdentity ?? new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.UserAssignedIdentities()); set => this._userAssignedIdentity = value; } + + /// Creates an new instance. + public ManagedServiceIdentity() + { + + } + } + /// Managed service identity (system assigned and/or user assigned identities) + public partial interface IManagedServiceIdentity : + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IJsonSerializable + { + /// + /// The service principal ID of the system assigned identity. This property will only be provided for a system assigned identity. + /// + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The service principal ID of the system assigned identity. This property will only be provided for a system assigned identity.", + SerializedName = @"principalId", + PossibleTypes = new [] { typeof(string) })] + string PrincipalId { get; } + /// + /// The tenant ID of the system assigned identity. This property will only be provided for a system assigned identity. + /// + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The tenant ID of the system assigned identity. This property will only be provided for a system assigned identity.", + SerializedName = @"tenantId", + PossibleTypes = new [] { typeof(string) })] + string TenantId { get; } + /// + /// Type of managed service identity (where both SystemAssigned and UserAssigned types are allowed). + /// + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"Type of managed service identity (where both SystemAssigned and UserAssigned types are allowed).", + SerializedName = @"type", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ManagedServiceIdentityType) })] + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ManagedServiceIdentityType Type { get; set; } + /// + /// The set of user assigned identities associated with the resource. The userAssignedIdentities dictionary keys will be ARM + /// resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}. + /// The dictionary values can be empty objects ({}) in requests. + /// + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The set of user assigned identities associated with the resource. The userAssignedIdentities dictionary keys will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}. The dictionary values can be empty objects ({}) in requests.", + SerializedName = @"userAssignedIdentities", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IUserAssignedIdentities) })] + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IUserAssignedIdentities UserAssignedIdentity { get; set; } + + } + /// Managed service identity (system assigned and/or user assigned identities) + internal partial interface IManagedServiceIdentityInternal + + { + /// + /// The service principal ID of the system assigned identity. This property will only be provided for a system assigned identity. + /// + string PrincipalId { get; set; } + /// + /// The tenant ID of the system assigned identity. This property will only be provided for a system assigned identity. + /// + string TenantId { get; set; } + /// + /// Type of managed service identity (where both SystemAssigned and UserAssigned types are allowed). + /// + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ManagedServiceIdentityType Type { get; set; } + /// + /// The set of user assigned identities associated with the resource. The userAssignedIdentities dictionary keys will be ARM + /// resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}. + /// The dictionary values can be empty objects ({}) in requests. + /// + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IUserAssignedIdentities UserAssignedIdentity { get; set; } + + } +} \ No newline at end of file diff --git a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api30/ManagedServiceIdentity.json.cs b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api30/ManagedServiceIdentity.json.cs new file mode 100644 index 000000000000..71890b1343d1 --- /dev/null +++ b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api30/ManagedServiceIdentity.json.cs @@ -0,0 +1,120 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Extensions; + + /// Managed service identity (system assigned and/or user assigned identities) + public partial class ManagedServiceIdentity + { + + /// + /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JsonNode that should be deserialized into this object. + + partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JSON container that the serialization result will be placed in. + + partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject container); + + /// + /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of + /// the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the + /// output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JsonNode that should be deserialized into this object. + /// Determines if the rest of the deserialization should be processed, or if the method should return + /// instantly. + + partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject json, ref bool returnNow); + + /// + /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the + /// object before it is serialized. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JSON container that the serialization result will be placed in. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IManagedServiceIdentity. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IManagedServiceIdentity. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IManagedServiceIdentity FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject json ? new ManagedServiceIdentity(json) : null; + } + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject instance to deserialize from. + internal ManagedServiceIdentity(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_principalId = If( json?.PropertyT("principalId"), out var __jsonPrincipalId) ? (string)__jsonPrincipalId : (string)PrincipalId;} + {_tenantId = If( json?.PropertyT("tenantId"), out var __jsonTenantId) ? (string)__jsonTenantId : (string)TenantId;} + {_type = If( json?.PropertyT("type"), out var __jsonType) ? (string)__jsonType : (string)Type;} + {_userAssignedIdentity = If( json?.PropertyT("userAssignedIdentities"), out var __jsonUserAssignedIdentities) ? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.UserAssignedIdentities.FromJson(__jsonUserAssignedIdentities) : UserAssignedIdentity;} + AfterFromJson(json); + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.SerializationMode.IncludeReadOnly)) + { + AddIf( null != (((object)this._principalId)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonString(this._principalId.ToString()) : null, "principalId" ,container.Add ); + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.SerializationMode.IncludeReadOnly)) + { + AddIf( null != (((object)this._tenantId)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonString(this._tenantId.ToString()) : null, "tenantId" ,container.Add ); + } + AddIf( null != (((object)this._type)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonString(this._type.ToString()) : null, "type" ,container.Add ); + AddIf( null != this._userAssignedIdentity ? (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode) this._userAssignedIdentity.ToJson(null,serializationMode) : null, "userAssignedIdentities" ,container.Add ); + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/UploadLimit.PowerShell.cs b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api30/UserAssignedIdentities.PowerShell.cs similarity index 71% rename from generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/UploadLimit.PowerShell.cs rename to generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api30/UserAssignedIdentities.PowerShell.cs index 57d35a533e2f..97dcb3951a79 100644 --- a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/UploadLimit.PowerShell.cs +++ b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api30/UserAssignedIdentities.PowerShell.cs @@ -3,13 +3,17 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30 { using Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.PowerShell; - /// The WAN-link upload limit. - [System.ComponentModel.TypeConverter(typeof(UploadLimitTypeConverter))] - public partial class UploadLimit + /// + /// The set of user assigned identities associated with the resource. The userAssignedIdentities dictionary keys will be ARM + /// resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}. + /// The dictionary values can be empty objects ({}) in requests. + /// + [System.ComponentModel.TypeConverter(typeof(UserAssignedIdentitiesTypeConverter))] + public partial class UserAssignedIdentities { /// @@ -63,37 +67,37 @@ public partial class UploadLimit partial void OverrideToString(ref string stringResult, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IUploadLimit DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IUserAssignedIdentities DeserializeFromDictionary(global::System.Collections.IDictionary content) { - return new UploadLimit(content); + return new UserAssignedIdentities(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IUploadLimit DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IUserAssignedIdentities DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { - return new UploadLimit(content); + return new UserAssignedIdentities(content); } /// - /// Creates a new instance of , deserializing the content from a json string. + /// Creates a new instance of , deserializing the content from a json string. /// /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IUploadLimit FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(jsonText)); + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IUserAssignedIdentities FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. @@ -113,11 +117,11 @@ public override string ToString() } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. - internal UploadLimit(global::System.Collections.IDictionary content) + internal UserAssignedIdentities(global::System.Collections.IDictionary content) { bool returnNow = false; BeforeDeserializeDictionary(content, ref returnNow); @@ -126,19 +130,17 @@ internal UploadLimit(global::System.Collections.IDictionary content) return; } // actually deserialize - if (content.Contains("LimitInMbps")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IUploadLimitInternal)this).LimitInMbps = (int) content.GetValueForProperty("LimitInMbps",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IUploadLimitInternal)this).LimitInMbps, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } + // this type is a dictionary; copy elements from source to here. + CopyFrom(content); AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. - internal UploadLimit(global::System.Management.Automation.PSObject content) + internal UserAssignedIdentities(global::System.Management.Automation.PSObject content) { bool returnNow = false; BeforeDeserializePSObject(content, ref returnNow); @@ -147,16 +149,16 @@ internal UploadLimit(global::System.Management.Automation.PSObject content) return; } // actually deserialize - if (content.Contains("LimitInMbps")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IUploadLimitInternal)this).LimitInMbps = (int) content.GetValueForProperty("LimitInMbps",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IUploadLimitInternal)this).LimitInMbps, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } + // this type is a dictionary; copy elements from source to here. + CopyFrom(content); AfterDeserializePSObject(content); } } - /// The WAN-link upload limit. - [System.ComponentModel.TypeConverter(typeof(UploadLimitTypeConverter))] - public partial interface IUploadLimit + /// The set of user assigned identities associated with the resource. The userAssignedIdentities dictionary keys will be ARM + /// resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}. + /// The dictionary values can be empty objects ({}) in requests. + [System.ComponentModel.TypeConverter(typeof(UserAssignedIdentitiesTypeConverter))] + public partial interface IUserAssignedIdentities { diff --git a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api30/UserAssignedIdentities.TypeConverter.cs b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api30/UserAssignedIdentities.TypeConverter.cs new file mode 100644 index 000000000000..249661fcc182 --- /dev/null +++ b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api30/UserAssignedIdentities.TypeConverter.cs @@ -0,0 +1,147 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30 +{ + using Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class UserAssignedIdentitiesTypeConverter : global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); + + /// + /// Determines if the converter can convert the parameter to the + /// type. + /// + /// the instance to check if it can be converted to the type. + /// + /// true if the instance could be converted to a type, otherwise false + /// + public static bool CanConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return true; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + // we say yest to PSObjects + return true; + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + // we say yest to Hashtables/dictionaries + return true; + } + try + { + if (null != sourceValue.ToJsonString()) + { + return true; + } + } + catch + { + // Not one of our objects + } + try + { + string text = sourceValue.ToString()?.Trim(); + return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonType.Object; + } + catch + { + // Doesn't look like it can be treated as JSON + } + return false; + } + + /// + /// Determines if the parameter can be converted to the + /// parameter + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false + /// + public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; + + /// + /// Converts the parameter to the parameter using and + /// + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// + /// an instance of , or null if there is no suitable conversion. + /// + public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); + + /// + /// Converts the parameter into an instance of + /// + /// the value to convert into an instance of . + /// + /// an instance of , or null if there is no suitable conversion. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IUserAssignedIdentities ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IUserAssignedIdentities).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return UserAssignedIdentities.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return UserAssignedIdentities.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return UserAssignedIdentities.DeserializeFromDictionary(sourceValue); + } + return null; + } + + /// NotImplemented -- this will return null + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// will always return null. + public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; + } +} \ No newline at end of file diff --git a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api30/UserAssignedIdentities.cs b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api30/UserAssignedIdentities.cs new file mode 100644 index 000000000000..c9e85ce486f8 --- /dev/null +++ b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api30/UserAssignedIdentities.cs @@ -0,0 +1,43 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Extensions; + + /// + /// The set of user assigned identities associated with the resource. The userAssignedIdentities dictionary keys will be ARM + /// resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}. + /// The dictionary values can be empty objects ({}) in requests. + /// + public partial class UserAssignedIdentities : + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IUserAssignedIdentities, + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IUserAssignedIdentitiesInternal + { + + /// Creates an new instance. + public UserAssignedIdentities() + { + + } + } + /// The set of user assigned identities associated with the resource. The userAssignedIdentities dictionary keys will be ARM + /// resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}. + /// The dictionary values can be empty objects ({}) in requests. + public partial interface IUserAssignedIdentities : + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IJsonSerializable, + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IAssociativeArray + { + + } + /// The set of user assigned identities associated with the resource. The userAssignedIdentities dictionary keys will be ARM + /// resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}. + /// The dictionary values can be empty objects ({}) in requests. + internal partial interface IUserAssignedIdentitiesInternal + + { + + } +} \ No newline at end of file diff --git a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api30/UserAssignedIdentities.dictionary.cs b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api30/UserAssignedIdentities.dictionary.cs new file mode 100644 index 000000000000..0bca80023fda --- /dev/null +++ b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api30/UserAssignedIdentities.dictionary.cs @@ -0,0 +1,75 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Extensions; + + public partial class UserAssignedIdentities : + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IAssociativeArray + { + protected global::System.Collections.Generic.Dictionary __additionalProperties = new global::System.Collections.Generic.Dictionary(); + + global::System.Collections.Generic.IDictionary Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IAssociativeArray.AdditionalProperties { get => __additionalProperties; } + + int Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IAssociativeArray.Count { get => __additionalProperties.Count; } + + global::System.Collections.Generic.IEnumerable Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IAssociativeArray.Keys { get => __additionalProperties.Keys; } + + global::System.Collections.Generic.IEnumerable Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IAssociativeArray.Values { get => __additionalProperties.Values; } + + public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IUserAssignedIdentity this[global::System.String index] { get => __additionalProperties[index]; set => __additionalProperties[index] = value; } + + /// + /// + public void Add(global::System.String key, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IUserAssignedIdentity value) => __additionalProperties.Add( key, value); + + public void Clear() => __additionalProperties.Clear(); + + /// + public bool ContainsKey(global::System.String key) => __additionalProperties.ContainsKey( key); + + /// + public void CopyFrom(global::System.Collections.IDictionary source) + { + if (null != source) + { + foreach( var property in Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.PowerShell.TypeConverterExtensions.GetFilteredProperties(source, new global::System.Collections.Generic.HashSet() { } ) ) + { + if ((null != property.Key && null != property.Value)) + { + this.__additionalProperties.Add(property.Key.ToString(), global::System.Management.Automation.LanguagePrimitives.ConvertTo( property.Value)); + } + } + } + } + + /// + public void CopyFrom(global::System.Management.Automation.PSObject source) + { + if (null != source) + { + foreach( var property in Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.PowerShell.TypeConverterExtensions.GetFilteredProperties(source, new global::System.Collections.Generic.HashSet() { } ) ) + { + if ((null != property.Key && null != property.Value)) + { + this.__additionalProperties.Add(property.Key.ToString(), global::System.Management.Automation.LanguagePrimitives.ConvertTo( property.Value)); + } + } + } + } + + /// + public bool Remove(global::System.String key) => __additionalProperties.Remove( key); + + /// + /// + public bool TryGetValue(global::System.String key, out Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IUserAssignedIdentity value) => __additionalProperties.TryGetValue( key, out value); + + /// + + public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.UserAssignedIdentities source) => source.__additionalProperties; + } +} \ No newline at end of file diff --git a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api30/UserAssignedIdentities.json.cs b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api30/UserAssignedIdentities.json.cs new file mode 100644 index 000000000000..6bd97840a13d --- /dev/null +++ b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api30/UserAssignedIdentities.json.cs @@ -0,0 +1,113 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Extensions; + + /// + /// The set of user assigned identities associated with the resource. The userAssignedIdentities dictionary keys will be ARM + /// resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}. + /// The dictionary values can be empty objects ({}) in requests. + /// + public partial class UserAssignedIdentities + { + + /// + /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JsonNode that should be deserialized into this object. + + partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JSON container that the serialization result will be placed in. + + partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject container); + + /// + /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of + /// the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the + /// output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JsonNode that should be deserialized into this object. + /// Determines if the rest of the deserialization should be processed, or if the method should return + /// instantly. + + partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject json, ref bool returnNow); + + /// + /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the + /// object before it is serialized. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JSON container that the serialization result will be placed in. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IUserAssignedIdentities. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IUserAssignedIdentities. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IUserAssignedIdentities FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject json ? new UserAssignedIdentities(json) : null; + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.JsonSerializable.ToJson( ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IAssociativeArray)this).AdditionalProperties, container); + AfterToJson(ref container); + return container; + } + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject instance to deserialize from. + /// + internal UserAssignedIdentities(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject json, global::System.Collections.Generic.HashSet exclusions = null) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.JsonSerializable.FromJson( json, ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IAssociativeArray)this).AdditionalProperties, (j) => Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.UserAssignedIdentity.FromJson(j) ,exclusions ); + AfterFromJson(json); + } + } +} \ No newline at end of file diff --git a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/EndpointBaseUpdateParameters.PowerShell.cs b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api30/UserAssignedIdentity.PowerShell.cs similarity index 69% rename from generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/EndpointBaseUpdateParameters.PowerShell.cs rename to generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api30/UserAssignedIdentity.PowerShell.cs index e158853b1859..97ce83fd7a2a 100644 --- a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api20240701/EndpointBaseUpdateParameters.PowerShell.cs +++ b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api30/UserAssignedIdentity.PowerShell.cs @@ -3,13 +3,13 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30 { using Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.PowerShell; - /// The Endpoint resource. - [System.ComponentModel.TypeConverter(typeof(EndpointBaseUpdateParametersTypeConverter))] - public partial class EndpointBaseUpdateParameters + /// User assigned identity properties + [System.ComponentModel.TypeConverter(typeof(UserAssignedIdentityTypeConverter))] + public partial class UserAssignedIdentity { /// @@ -63,39 +63,61 @@ public partial class EndpointBaseUpdateParameters partial void OverrideToString(ref string stringResult, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpointBaseUpdateParameters DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IUserAssignedIdentity DeserializeFromDictionary(global::System.Collections.IDictionary content) { - return new EndpointBaseUpdateParameters(content); + return new UserAssignedIdentity(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpointBaseUpdateParameters DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IUserAssignedIdentity DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { - return new EndpointBaseUpdateParameters(content); + return new UserAssignedIdentity(content); + } + + /// + /// Creates a new instance of , deserializing the content from a json string. + /// + /// a string containing a JSON serialized instance of this model. + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IUserAssignedIdentity FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(jsonText)); + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.SerializationMode.IncludeAll)?.ToString(); + + public override string ToString() + { + var returnNow = false; + var result = global::System.String.Empty; + OverrideToString(ref result, ref returnNow); + if (returnNow) + { + return result; + } + return ToJsonString(); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. - internal EndpointBaseUpdateParameters(global::System.Collections.IDictionary content) + internal UserAssignedIdentity(global::System.Collections.IDictionary content) { bool returnNow = false; BeforeDeserializeDictionary(content, ref returnNow); @@ -104,19 +126,23 @@ internal EndpointBaseUpdateParameters(global::System.Collections.IDictionary con return; } // actually deserialize - if (content.Contains("Property")) + if (content.Contains("PrincipalId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpointBaseUpdateParametersInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpointBaseUpdateProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpointBaseUpdateParametersInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.EndpointBaseUpdatePropertiesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IUserAssignedIdentityInternal)this).PrincipalId = (string) content.GetValueForProperty("PrincipalId",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IUserAssignedIdentityInternal)this).PrincipalId, global::System.Convert.ToString); + } + if (content.Contains("ClientId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IUserAssignedIdentityInternal)this).ClientId = (string) content.GetValueForProperty("ClientId",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IUserAssignedIdentityInternal)this).ClientId, global::System.Convert.ToString); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. - internal EndpointBaseUpdateParameters(global::System.Management.Automation.PSObject content) + internal UserAssignedIdentity(global::System.Management.Automation.PSObject content) { bool returnNow = false; BeforeDeserializePSObject(content, ref returnNow); @@ -125,40 +151,20 @@ internal EndpointBaseUpdateParameters(global::System.Management.Automation.PSObj return; } // actually deserialize - if (content.Contains("Property")) + if (content.Contains("PrincipalId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpointBaseUpdateParametersInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpointBaseUpdateProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpointBaseUpdateParametersInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.EndpointBaseUpdatePropertiesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IUserAssignedIdentityInternal)this).PrincipalId = (string) content.GetValueForProperty("PrincipalId",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IUserAssignedIdentityInternal)this).PrincipalId, global::System.Convert.ToString); } - AfterDeserializePSObject(content); - } - - /// - /// Creates a new instance of , deserializing the content from a json string. - /// - /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpointBaseUpdateParameters FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(jsonText)); - - /// Serializes this instance to a json string. - - /// a containing this model serialized to JSON text. - public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.SerializationMode.IncludeAll)?.ToString(); - - public override string ToString() - { - var returnNow = false; - var result = global::System.String.Empty; - OverrideToString(ref result, ref returnNow); - if (returnNow) + if (content.Contains("ClientId")) { - return result; + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IUserAssignedIdentityInternal)this).ClientId = (string) content.GetValueForProperty("ClientId",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IUserAssignedIdentityInternal)this).ClientId, global::System.Convert.ToString); } - return ToJsonString(); + AfterDeserializePSObject(content); } } - /// The Endpoint resource. - [System.ComponentModel.TypeConverter(typeof(EndpointBaseUpdateParametersTypeConverter))] - public partial interface IEndpointBaseUpdateParameters + /// User assigned identity properties + [System.ComponentModel.TypeConverter(typeof(UserAssignedIdentityTypeConverter))] + public partial interface IUserAssignedIdentity { diff --git a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api30/UserAssignedIdentity.TypeConverter.cs b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api30/UserAssignedIdentity.TypeConverter.cs new file mode 100644 index 000000000000..ce6aced1f82c --- /dev/null +++ b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api30/UserAssignedIdentity.TypeConverter.cs @@ -0,0 +1,147 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30 +{ + using Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class UserAssignedIdentityTypeConverter : global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); + + /// + /// Determines if the converter can convert the parameter to the + /// type. + /// + /// the instance to check if it can be converted to the type. + /// + /// true if the instance could be converted to a type, otherwise false + /// + public static bool CanConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return true; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + // we say yest to PSObjects + return true; + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + // we say yest to Hashtables/dictionaries + return true; + } + try + { + if (null != sourceValue.ToJsonString()) + { + return true; + } + } + catch + { + // Not one of our objects + } + try + { + string text = sourceValue.ToString()?.Trim(); + return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonType.Object; + } + catch + { + // Doesn't look like it can be treated as JSON + } + return false; + } + + /// + /// Determines if the parameter can be converted to the + /// parameter + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false + /// + public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; + + /// + /// Converts the parameter to the parameter using and + /// + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// + /// an instance of , or null if there is no suitable conversion. + /// + public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); + + /// + /// Converts the parameter into an instance of + /// + /// the value to convert into an instance of . + /// + /// an instance of , or null if there is no suitable conversion. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IUserAssignedIdentity ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IUserAssignedIdentity).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return UserAssignedIdentity.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return UserAssignedIdentity.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return UserAssignedIdentity.DeserializeFromDictionary(sourceValue); + } + return null; + } + + /// NotImplemented -- this will return null + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// will always return null. + public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; + } +} \ No newline at end of file diff --git a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api30/UserAssignedIdentity.cs b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api30/UserAssignedIdentity.cs new file mode 100644 index 000000000000..571d288d11e8 --- /dev/null +++ b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api30/UserAssignedIdentity.cs @@ -0,0 +1,74 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Extensions; + + /// User assigned identity properties + public partial class UserAssignedIdentity : + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IUserAssignedIdentity, + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IUserAssignedIdentityInternal + { + + /// Backing field for property. + private string _clientId; + + /// The client ID of the assigned identity. + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Owned)] + public string ClientId { get => this._clientId; } + + /// Internal Acessors for ClientId + string Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IUserAssignedIdentityInternal.ClientId { get => this._clientId; set { {_clientId = value;} } } + + /// Internal Acessors for PrincipalId + string Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IUserAssignedIdentityInternal.PrincipalId { get => this._principalId; set { {_principalId = value;} } } + + /// Backing field for property. + private string _principalId; + + /// The principal ID of the assigned identity. + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Owned)] + public string PrincipalId { get => this._principalId; } + + /// Creates an new instance. + public UserAssignedIdentity() + { + + } + } + /// User assigned identity properties + public partial interface IUserAssignedIdentity : + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IJsonSerializable + { + /// The client ID of the assigned identity. + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The client ID of the assigned identity.", + SerializedName = @"clientId", + PossibleTypes = new [] { typeof(string) })] + string ClientId { get; } + /// The principal ID of the assigned identity. + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The principal ID of the assigned identity.", + SerializedName = @"principalId", + PossibleTypes = new [] { typeof(string) })] + string PrincipalId { get; } + + } + /// User assigned identity properties + internal partial interface IUserAssignedIdentityInternal + + { + /// The client ID of the assigned identity. + string ClientId { get; set; } + /// The principal ID of the assigned identity. + string PrincipalId { get; set; } + + } +} \ No newline at end of file diff --git a/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api30/UserAssignedIdentity.json.cs b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api30/UserAssignedIdentity.json.cs new file mode 100644 index 000000000000..544ef2be4097 --- /dev/null +++ b/generated/StorageMover/StorageMover.Autorest/generated/api/Models/Api30/UserAssignedIdentity.json.cs @@ -0,0 +1,116 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Extensions; + + /// User assigned identity properties + public partial class UserAssignedIdentity + { + + /// + /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JsonNode that should be deserialized into this object. + + partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JSON container that the serialization result will be placed in. + + partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject container); + + /// + /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of + /// the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the + /// output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JsonNode that should be deserialized into this object. + /// Determines if the rest of the deserialization should be processed, or if the method should return + /// instantly. + + partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject json, ref bool returnNow); + + /// + /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the + /// object before it is serialized. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JSON container that the serialization result will be placed in. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IUserAssignedIdentity. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IUserAssignedIdentity. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IUserAssignedIdentity FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject json ? new UserAssignedIdentity(json) : null; + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.SerializationMode.IncludeReadOnly)) + { + AddIf( null != (((object)this._principalId)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonString(this._principalId.ToString()) : null, "principalId" ,container.Add ); + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.SerializationMode.IncludeReadOnly)) + { + AddIf( null != (((object)this._clientId)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonString(this._clientId.ToString()) : null, "clientId" ,container.Add ); + } + AfterToJson(ref container); + return container; + } + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject instance to deserialize from. + internal UserAssignedIdentity(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_principalId = If( json?.PropertyT("principalId"), out var __jsonPrincipalId) ? (string)__jsonPrincipalId : (string)PrincipalId;} + {_clientId = If( json?.PropertyT("clientId"), out var __jsonClientId) ? (string)__jsonClientId : (string)ClientId;} + AfterFromJson(json); + } + } +} \ No newline at end of file diff --git a/generated/StorageMover/StorageMover.Autorest/generated/api/StorageMover.cs b/generated/StorageMover/StorageMover.Autorest/generated/api/StorageMover.cs index 8337f6b58510..1fb353ee8b82 100644 --- a/generated/StorageMover/StorageMover.Autorest/generated/api/StorageMover.cs +++ b/generated/StorageMover/StorageMover.Autorest/generated/api/StorageMover.cs @@ -30,9 +30,9 @@ public partial class StorageMover /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task AgentsCreateOrUpdate(string subscriptionId, string resourceGroupName, string storageMoverName, string agentName, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgent body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task AgentsCreateOrUpdate(string subscriptionId, string resourceGroupName, string storageMoverName, string agentName, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgent body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) { - var apiVersion = @"2024-07-01"; + var apiVersion = @"2025-07-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -80,9 +80,9 @@ public partial class StorageMover /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task AgentsCreateOrUpdateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgent body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task AgentsCreateOrUpdateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgent body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) { - var apiVersion = @"2024-07-01"; + var apiVersion = @"2025-07-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -140,7 +140,7 @@ public partial class StorageMover /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task AgentsCreateOrUpdate_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task AgentsCreateOrUpdate_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -158,7 +158,7 @@ public partial class StorageMover case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.Agent.FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.Agent.FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: @@ -192,7 +192,7 @@ public partial class StorageMover /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task AgentsCreateOrUpdate_Validate(string subscriptionId, string resourceGroupName, string storageMoverName, string agentName, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgent body, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task AgentsCreateOrUpdate_Validate(string subscriptionId, string resourceGroupName, string storageMoverName, string agentName, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgent body, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { @@ -224,7 +224,7 @@ public partial class StorageMover /// public async global::System.Threading.Tasks.Task AgentsDelete(string subscriptionId, string resourceGroupName, string storageMoverName, string agentName, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) { - var apiVersion = @"2024-07-01"; + var apiVersion = @"2025-07-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -268,7 +268,7 @@ public partial class StorageMover /// public async global::System.Threading.Tasks.Task AgentsDeleteViaIdentity(global::System.String viaIdentity, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) { - var apiVersion = @"2024-07-01"; + var apiVersion = @"2025-07-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -504,9 +504,9 @@ public partial class StorageMover /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task AgentsGet(string subscriptionId, string resourceGroupName, string storageMoverName, string agentName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task AgentsGet(string subscriptionId, string resourceGroupName, string storageMoverName, string agentName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) { - var apiVersion = @"2024-07-01"; + var apiVersion = @"2025-07-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -547,9 +547,9 @@ public partial class StorageMover /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task AgentsGetViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task AgentsGetViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) { - var apiVersion = @"2024-07-01"; + var apiVersion = @"2025-07-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -603,7 +603,7 @@ public partial class StorageMover /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task AgentsGet_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task AgentsGet_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -621,7 +621,7 @@ public partial class StorageMover case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.Agent.FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.Agent.FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: @@ -680,9 +680,9 @@ public partial class StorageMover /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task AgentsList(string subscriptionId, string resourceGroupName, string storageMoverName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task AgentsList(string subscriptionId, string resourceGroupName, string storageMoverName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) { - var apiVersion = @"2024-07-01"; + var apiVersion = @"2025-07-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -722,9 +722,9 @@ public partial class StorageMover /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task AgentsListViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task AgentsListViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) { - var apiVersion = @"2024-07-01"; + var apiVersion = @"2025-07-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -776,7 +776,7 @@ public partial class StorageMover /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task AgentsList_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task AgentsList_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -794,7 +794,7 @@ public partial class StorageMover case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.AgentList.FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.AgentList.FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: @@ -853,9 +853,9 @@ public partial class StorageMover /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task AgentsUpdate(string subscriptionId, string resourceGroupName, string storageMoverName, string agentName, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentUpdateParameters body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task AgentsUpdate(string subscriptionId, string resourceGroupName, string storageMoverName, string agentName, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentUpdateParameters body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) { - var apiVersion = @"2024-07-01"; + var apiVersion = @"2025-07-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -901,9 +901,9 @@ public partial class StorageMover /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task AgentsUpdateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentUpdateParameters body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task AgentsUpdateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentUpdateParameters body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) { - var apiVersion = @"2024-07-01"; + var apiVersion = @"2025-07-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -961,7 +961,7 @@ public partial class StorageMover /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task AgentsUpdate_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task AgentsUpdate_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -979,7 +979,7 @@ public partial class StorageMover case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.Agent.FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.Agent.FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: @@ -1013,7 +1013,7 @@ public partial class StorageMover /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task AgentsUpdate_Validate(string subscriptionId, string resourceGroupName, string storageMoverName, string agentName, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentUpdateParameters body, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task AgentsUpdate_Validate(string subscriptionId, string resourceGroupName, string storageMoverName, string agentName, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentUpdateParameters body, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { @@ -1045,9 +1045,9 @@ public partial class StorageMover /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task EndpointsCreateOrUpdate(string subscriptionId, string resourceGroupName, string storageMoverName, string endpointName, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpoint body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task EndpointsCreateOrUpdate(string subscriptionId, string resourceGroupName, string storageMoverName, string endpointName, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpoint body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) { - var apiVersion = @"2024-07-01"; + var apiVersion = @"2025-07-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -1095,9 +1095,9 @@ public partial class StorageMover /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task EndpointsCreateOrUpdateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpoint body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task EndpointsCreateOrUpdateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpoint body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) { - var apiVersion = @"2024-07-01"; + var apiVersion = @"2025-07-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -1155,7 +1155,7 @@ public partial class StorageMover /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task EndpointsCreateOrUpdate_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task EndpointsCreateOrUpdate_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -1173,7 +1173,7 @@ public partial class StorageMover case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.Endpoint.FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.Endpoint.FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: @@ -1207,7 +1207,7 @@ public partial class StorageMover /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task EndpointsCreateOrUpdate_Validate(string subscriptionId, string resourceGroupName, string storageMoverName, string endpointName, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpoint body, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task EndpointsCreateOrUpdate_Validate(string subscriptionId, string resourceGroupName, string storageMoverName, string endpointName, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpoint body, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { @@ -1239,7 +1239,7 @@ public partial class StorageMover /// public async global::System.Threading.Tasks.Task EndpointsDelete(string subscriptionId, string resourceGroupName, string storageMoverName, string endpointName, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) { - var apiVersion = @"2024-07-01"; + var apiVersion = @"2025-07-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -1283,7 +1283,7 @@ public partial class StorageMover /// public async global::System.Threading.Tasks.Task EndpointsDeleteViaIdentity(global::System.String viaIdentity, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) { - var apiVersion = @"2024-07-01"; + var apiVersion = @"2025-07-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -1519,9 +1519,9 @@ public partial class StorageMover /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task EndpointsGet(string subscriptionId, string resourceGroupName, string storageMoverName, string endpointName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task EndpointsGet(string subscriptionId, string resourceGroupName, string storageMoverName, string endpointName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) { - var apiVersion = @"2024-07-01"; + var apiVersion = @"2025-07-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -1562,9 +1562,9 @@ public partial class StorageMover /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task EndpointsGetViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task EndpointsGetViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) { - var apiVersion = @"2024-07-01"; + var apiVersion = @"2025-07-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -1618,7 +1618,7 @@ public partial class StorageMover /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task EndpointsGet_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task EndpointsGet_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -1636,7 +1636,7 @@ public partial class StorageMover case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.Endpoint.FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.Endpoint.FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: @@ -1695,9 +1695,9 @@ public partial class StorageMover /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task EndpointsList(string subscriptionId, string resourceGroupName, string storageMoverName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task EndpointsList(string subscriptionId, string resourceGroupName, string storageMoverName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) { - var apiVersion = @"2024-07-01"; + var apiVersion = @"2025-07-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -1737,9 +1737,9 @@ public partial class StorageMover /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task EndpointsListViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task EndpointsListViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) { - var apiVersion = @"2024-07-01"; + var apiVersion = @"2025-07-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -1791,7 +1791,7 @@ public partial class StorageMover /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task EndpointsList_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task EndpointsList_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -1809,7 +1809,7 @@ public partial class StorageMover case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.EndpointList.FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.EndpointList.FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: @@ -1870,9 +1870,9 @@ public partial class StorageMover /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task EndpointsUpdate(string subscriptionId, string resourceGroupName, string storageMoverName, string endpointName, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpointBaseUpdateParameters body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task EndpointsUpdate(string subscriptionId, string resourceGroupName, string storageMoverName, string endpointName, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBaseUpdateParameters body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) { - var apiVersion = @"2024-07-01"; + var apiVersion = @"2025-07-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -1920,9 +1920,9 @@ public partial class StorageMover /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task EndpointsUpdateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpointBaseUpdateParameters body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task EndpointsUpdateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBaseUpdateParameters body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) { - var apiVersion = @"2024-07-01"; + var apiVersion = @"2025-07-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -1980,7 +1980,7 @@ public partial class StorageMover /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task EndpointsUpdate_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task EndpointsUpdate_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -1998,7 +1998,7 @@ public partial class StorageMover case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.Endpoint.FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.Endpoint.FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: @@ -2032,7 +2032,7 @@ public partial class StorageMover /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task EndpointsUpdate_Validate(string subscriptionId, string resourceGroupName, string storageMoverName, string endpointName, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpointBaseUpdateParameters body, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task EndpointsUpdate_Validate(string subscriptionId, string resourceGroupName, string storageMoverName, string endpointName, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBaseUpdateParameters body, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { @@ -2065,9 +2065,9 @@ public partial class StorageMover /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task JobDefinitionsCreateOrUpdate(string subscriptionId, string resourceGroupName, string storageMoverName, string projectName, string jobDefinitionName, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinition body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task JobDefinitionsCreateOrUpdate(string subscriptionId, string resourceGroupName, string storageMoverName, string projectName, string jobDefinitionName, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinition body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) { - var apiVersion = @"2024-07-01"; + var apiVersion = @"2025-07-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -2117,9 +2117,9 @@ public partial class StorageMover /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task JobDefinitionsCreateOrUpdateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinition body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task JobDefinitionsCreateOrUpdateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinition body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) { - var apiVersion = @"2024-07-01"; + var apiVersion = @"2025-07-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -2180,7 +2180,7 @@ public partial class StorageMover /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task JobDefinitionsCreateOrUpdate_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task JobDefinitionsCreateOrUpdate_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -2198,7 +2198,7 @@ public partial class StorageMover case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.JobDefinition.FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.JobDefinition.FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: @@ -2233,7 +2233,7 @@ public partial class StorageMover /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task JobDefinitionsCreateOrUpdate_Validate(string subscriptionId, string resourceGroupName, string storageMoverName, string projectName, string jobDefinitionName, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinition body, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task JobDefinitionsCreateOrUpdate_Validate(string subscriptionId, string resourceGroupName, string storageMoverName, string projectName, string jobDefinitionName, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinition body, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { @@ -2267,7 +2267,7 @@ public partial class StorageMover /// public async global::System.Threading.Tasks.Task JobDefinitionsDelete(string subscriptionId, string resourceGroupName, string storageMoverName, string projectName, string jobDefinitionName, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) { - var apiVersion = @"2024-07-01"; + var apiVersion = @"2025-07-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -2313,7 +2313,7 @@ public partial class StorageMover /// public async global::System.Threading.Tasks.Task JobDefinitionsDeleteViaIdentity(global::System.String viaIdentity, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) { - var apiVersion = @"2024-07-01"; + var apiVersion = @"2025-07-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -2555,9 +2555,9 @@ public partial class StorageMover /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task JobDefinitionsGet(string subscriptionId, string resourceGroupName, string storageMoverName, string projectName, string jobDefinitionName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task JobDefinitionsGet(string subscriptionId, string resourceGroupName, string storageMoverName, string projectName, string jobDefinitionName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) { - var apiVersion = @"2024-07-01"; + var apiVersion = @"2025-07-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -2600,9 +2600,9 @@ public partial class StorageMover /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task JobDefinitionsGetViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task JobDefinitionsGetViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) { - var apiVersion = @"2024-07-01"; + var apiVersion = @"2025-07-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -2659,7 +2659,7 @@ public partial class StorageMover /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task JobDefinitionsGet_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task JobDefinitionsGet_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -2677,7 +2677,7 @@ public partial class StorageMover case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.JobDefinition.FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.JobDefinition.FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: @@ -2739,9 +2739,9 @@ public partial class StorageMover /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task JobDefinitionsList(string subscriptionId, string resourceGroupName, string storageMoverName, string projectName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task JobDefinitionsList(string subscriptionId, string resourceGroupName, string storageMoverName, string projectName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) { - var apiVersion = @"2024-07-01"; + var apiVersion = @"2025-07-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -2783,9 +2783,9 @@ public partial class StorageMover /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task JobDefinitionsListViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task JobDefinitionsListViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) { - var apiVersion = @"2024-07-01"; + var apiVersion = @"2025-07-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -2840,7 +2840,7 @@ public partial class StorageMover /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task JobDefinitionsList_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task JobDefinitionsList_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -2858,7 +2858,7 @@ public partial class StorageMover case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.JobDefinitionList.FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.JobDefinitionList.FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: @@ -2921,9 +2921,9 @@ public partial class StorageMover /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task JobDefinitionsStartJob(string subscriptionId, string resourceGroupName, string storageMoverName, string projectName, string jobDefinitionName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task JobDefinitionsStartJob(string subscriptionId, string resourceGroupName, string storageMoverName, string projectName, string jobDefinitionName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) { - var apiVersion = @"2024-07-01"; + var apiVersion = @"2025-07-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -2969,9 +2969,9 @@ public partial class StorageMover /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task JobDefinitionsStartJobViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task JobDefinitionsStartJobViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) { - var apiVersion = @"2024-07-01"; + var apiVersion = @"2025-07-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -3029,7 +3029,7 @@ public partial class StorageMover /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task JobDefinitionsStartJob_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task JobDefinitionsStartJob_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -3047,7 +3047,7 @@ public partial class StorageMover case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.JobRunResourceId.FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.JobRunResourceId.FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: @@ -3110,9 +3110,9 @@ public partial class StorageMover /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task JobDefinitionsStopJob(string subscriptionId, string resourceGroupName, string storageMoverName, string projectName, string jobDefinitionName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task JobDefinitionsStopJob(string subscriptionId, string resourceGroupName, string storageMoverName, string projectName, string jobDefinitionName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) { - var apiVersion = @"2024-07-01"; + var apiVersion = @"2025-07-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -3156,9 +3156,9 @@ public partial class StorageMover /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task JobDefinitionsStopJobViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task JobDefinitionsStopJobViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) { - var apiVersion = @"2024-07-01"; + var apiVersion = @"2025-07-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -3216,7 +3216,7 @@ public partial class StorageMover /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task JobDefinitionsStopJob_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task JobDefinitionsStopJob_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -3234,7 +3234,7 @@ public partial class StorageMover case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.JobRunResourceId.FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.JobRunResourceId.FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: @@ -3300,9 +3300,9 @@ public partial class StorageMover /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task JobDefinitionsUpdate(string subscriptionId, string resourceGroupName, string storageMoverName, string projectName, string jobDefinitionName, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinitionUpdateParameters body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task JobDefinitionsUpdate(string subscriptionId, string resourceGroupName, string storageMoverName, string projectName, string jobDefinitionName, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionUpdateParameters body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) { - var apiVersion = @"2024-07-01"; + var apiVersion = @"2025-07-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -3352,9 +3352,9 @@ public partial class StorageMover /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task JobDefinitionsUpdateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinitionUpdateParameters body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task JobDefinitionsUpdateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionUpdateParameters body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) { - var apiVersion = @"2024-07-01"; + var apiVersion = @"2025-07-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -3415,7 +3415,7 @@ public partial class StorageMover /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task JobDefinitionsUpdate_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task JobDefinitionsUpdate_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -3433,7 +3433,7 @@ public partial class StorageMover case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.JobDefinition.FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.JobDefinition.FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: @@ -3468,7 +3468,7 @@ public partial class StorageMover /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task JobDefinitionsUpdate_Validate(string subscriptionId, string resourceGroupName, string storageMoverName, string projectName, string jobDefinitionName, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinitionUpdateParameters body, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task JobDefinitionsUpdate_Validate(string subscriptionId, string resourceGroupName, string storageMoverName, string projectName, string jobDefinitionName, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionUpdateParameters body, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { @@ -3500,9 +3500,9 @@ public partial class StorageMover /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task JobRunsGet(string subscriptionId, string resourceGroupName, string storageMoverName, string projectName, string jobDefinitionName, string jobRunName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task JobRunsGet(string subscriptionId, string resourceGroupName, string storageMoverName, string projectName, string jobDefinitionName, string jobRunName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) { - var apiVersion = @"2024-07-01"; + var apiVersion = @"2025-07-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -3547,9 +3547,9 @@ public partial class StorageMover /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task JobRunsGetViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task JobRunsGetViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) { - var apiVersion = @"2024-07-01"; + var apiVersion = @"2025-07-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -3609,7 +3609,7 @@ public partial class StorageMover /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task JobRunsGet_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task JobRunsGet_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -3627,7 +3627,7 @@ public partial class StorageMover case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.JobRun.FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.JobRun.FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: @@ -3692,9 +3692,9 @@ public partial class StorageMover /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task JobRunsList(string subscriptionId, string resourceGroupName, string storageMoverName, string projectName, string jobDefinitionName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task JobRunsList(string subscriptionId, string resourceGroupName, string storageMoverName, string projectName, string jobDefinitionName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) { - var apiVersion = @"2024-07-01"; + var apiVersion = @"2025-07-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -3738,9 +3738,9 @@ public partial class StorageMover /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task JobRunsListViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task JobRunsListViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) { - var apiVersion = @"2024-07-01"; + var apiVersion = @"2025-07-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -3798,7 +3798,7 @@ public partial class StorageMover /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task JobRunsList_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task JobRunsList_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -3816,7 +3816,7 @@ public partial class StorageMover case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.JobRunList.FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.JobRunList.FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: @@ -3865,7 +3865,7 @@ public partial class StorageMover } } - /// Lists all the supported operations for the Azure Storage Mover REST API. + /// List the operations for the provider /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). @@ -3876,7 +3876,7 @@ public partial class StorageMover /// public async global::System.Threading.Tasks.Task OperationsList(global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) { - var apiVersion = @"2024-07-01"; + var apiVersion = @"2025-07-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -3900,7 +3900,7 @@ public partial class StorageMover } } - /// Lists all the supported operations for the Azure Storage Mover REST API. + /// List the operations for the provider /// /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled @@ -3912,7 +3912,7 @@ public partial class StorageMover /// public async global::System.Threading.Tasks.Task OperationsListViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) { - var apiVersion = @"2024-07-01"; + var apiVersion = @"2025-07-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -4026,9 +4026,9 @@ public partial class StorageMover /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ProjectsCreateOrUpdate(string subscriptionId, string resourceGroupName, string storageMoverName, string projectName, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IProject body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ProjectsCreateOrUpdate(string subscriptionId, string resourceGroupName, string storageMoverName, string projectName, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IProject body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) { - var apiVersion = @"2024-07-01"; + var apiVersion = @"2025-07-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -4076,9 +4076,9 @@ public partial class StorageMover /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ProjectsCreateOrUpdateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IProject body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ProjectsCreateOrUpdateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IProject body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) { - var apiVersion = @"2024-07-01"; + var apiVersion = @"2025-07-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -4136,7 +4136,7 @@ public partial class StorageMover /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task ProjectsCreateOrUpdate_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task ProjectsCreateOrUpdate_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -4154,7 +4154,7 @@ public partial class StorageMover case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.Project.FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.Project.FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: @@ -4188,7 +4188,7 @@ public partial class StorageMover /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task ProjectsCreateOrUpdate_Validate(string subscriptionId, string resourceGroupName, string storageMoverName, string projectName, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IProject body, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task ProjectsCreateOrUpdate_Validate(string subscriptionId, string resourceGroupName, string storageMoverName, string projectName, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IProject body, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { @@ -4220,7 +4220,7 @@ public partial class StorageMover /// public async global::System.Threading.Tasks.Task ProjectsDelete(string subscriptionId, string resourceGroupName, string storageMoverName, string projectName, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) { - var apiVersion = @"2024-07-01"; + var apiVersion = @"2025-07-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -4264,7 +4264,7 @@ public partial class StorageMover /// public async global::System.Threading.Tasks.Task ProjectsDeleteViaIdentity(global::System.String viaIdentity, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) { - var apiVersion = @"2024-07-01"; + var apiVersion = @"2025-07-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -4500,9 +4500,9 @@ public partial class StorageMover /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ProjectsGet(string subscriptionId, string resourceGroupName, string storageMoverName, string projectName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ProjectsGet(string subscriptionId, string resourceGroupName, string storageMoverName, string projectName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) { - var apiVersion = @"2024-07-01"; + var apiVersion = @"2025-07-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -4543,9 +4543,9 @@ public partial class StorageMover /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ProjectsGetViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ProjectsGetViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) { - var apiVersion = @"2024-07-01"; + var apiVersion = @"2025-07-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -4599,7 +4599,7 @@ public partial class StorageMover /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task ProjectsGet_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task ProjectsGet_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -4617,7 +4617,7 @@ public partial class StorageMover case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.Project.FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.Project.FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: @@ -4676,9 +4676,9 @@ public partial class StorageMover /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ProjectsList(string subscriptionId, string resourceGroupName, string storageMoverName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ProjectsList(string subscriptionId, string resourceGroupName, string storageMoverName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) { - var apiVersion = @"2024-07-01"; + var apiVersion = @"2025-07-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -4718,9 +4718,9 @@ public partial class StorageMover /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ProjectsListViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ProjectsListViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) { - var apiVersion = @"2024-07-01"; + var apiVersion = @"2025-07-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -4772,7 +4772,7 @@ public partial class StorageMover /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task ProjectsList_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task ProjectsList_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -4790,7 +4790,7 @@ public partial class StorageMover case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.ProjectList.FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ProjectList.FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: @@ -4851,9 +4851,9 @@ public partial class StorageMover /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ProjectsUpdate(string subscriptionId, string resourceGroupName, string storageMoverName, string projectName, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IProjectUpdateParameters body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ProjectsUpdate(string subscriptionId, string resourceGroupName, string storageMoverName, string projectName, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IProjectUpdateParameters body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) { - var apiVersion = @"2024-07-01"; + var apiVersion = @"2025-07-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -4901,9 +4901,9 @@ public partial class StorageMover /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ProjectsUpdateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IProjectUpdateParameters body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ProjectsUpdateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IProjectUpdateParameters body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) { - var apiVersion = @"2024-07-01"; + var apiVersion = @"2025-07-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -4961,7 +4961,7 @@ public partial class StorageMover /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task ProjectsUpdate_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task ProjectsUpdate_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -4979,7 +4979,7 @@ public partial class StorageMover case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.Project.FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.Project.FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: @@ -5013,7 +5013,7 @@ public partial class StorageMover /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task ProjectsUpdate_Validate(string subscriptionId, string resourceGroupName, string storageMoverName, string projectName, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IProjectUpdateParameters body, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task ProjectsUpdate_Validate(string subscriptionId, string resourceGroupName, string storageMoverName, string projectName, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IProjectUpdateParameters body, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { @@ -5042,9 +5042,9 @@ public partial class StorageMover /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task StorageMoversCreateOrUpdate(string subscriptionId, string resourceGroupName, string storageMoverName, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IStorageMover body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task StorageMoversCreateOrUpdate(string subscriptionId, string resourceGroupName, string storageMoverName, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IStorageMover body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) { - var apiVersion = @"2024-07-01"; + var apiVersion = @"2025-07-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -5088,9 +5088,9 @@ public partial class StorageMover /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task StorageMoversCreateOrUpdateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IStorageMover body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task StorageMoversCreateOrUpdateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IStorageMover body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) { - var apiVersion = @"2024-07-01"; + var apiVersion = @"2025-07-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -5145,7 +5145,7 @@ public partial class StorageMover /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task StorageMoversCreateOrUpdate_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task StorageMoversCreateOrUpdate_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -5163,7 +5163,7 @@ public partial class StorageMover case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.StorageMover.FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.StorageMover.FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: @@ -5196,7 +5196,7 @@ public partial class StorageMover /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task StorageMoversCreateOrUpdate_Validate(string subscriptionId, string resourceGroupName, string storageMoverName, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IStorageMover body, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task StorageMoversCreateOrUpdate_Validate(string subscriptionId, string resourceGroupName, string storageMoverName, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IStorageMover body, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { @@ -5226,7 +5226,7 @@ public partial class StorageMover /// public async global::System.Threading.Tasks.Task StorageMoversDelete(string subscriptionId, string resourceGroupName, string storageMoverName, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) { - var apiVersion = @"2024-07-01"; + var apiVersion = @"2025-07-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -5268,7 +5268,7 @@ public partial class StorageMover /// public async global::System.Threading.Tasks.Task StorageMoversDeleteViaIdentity(global::System.String viaIdentity, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) { - var apiVersion = @"2024-07-01"; + var apiVersion = @"2025-07-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -5498,9 +5498,9 @@ public partial class StorageMover /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task StorageMoversGet(string subscriptionId, string resourceGroupName, string storageMoverName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task StorageMoversGet(string subscriptionId, string resourceGroupName, string storageMoverName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) { - var apiVersion = @"2024-07-01"; + var apiVersion = @"2025-07-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -5539,9 +5539,9 @@ public partial class StorageMover /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task StorageMoversGetViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task StorageMoversGetViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) { - var apiVersion = @"2024-07-01"; + var apiVersion = @"2025-07-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -5592,7 +5592,7 @@ public partial class StorageMover /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task StorageMoversGet_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task StorageMoversGet_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -5610,7 +5610,7 @@ public partial class StorageMover case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.StorageMover.FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.StorageMover.FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: @@ -5666,9 +5666,9 @@ public partial class StorageMover /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task StorageMoversList(string subscriptionId, string resourceGroupName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task StorageMoversList(string subscriptionId, string resourceGroupName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) { - var apiVersion = @"2024-07-01"; + var apiVersion = @"2025-07-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -5706,9 +5706,9 @@ public partial class StorageMover /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task StorageMoversListBySubscription(string subscriptionId, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task StorageMoversListBySubscription(string subscriptionId, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) { - var apiVersion = @"2024-07-01"; + var apiVersion = @"2025-07-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -5744,9 +5744,9 @@ public partial class StorageMover /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task StorageMoversListBySubscriptionViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task StorageMoversListBySubscriptionViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) { - var apiVersion = @"2024-07-01"; + var apiVersion = @"2025-07-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -5792,7 +5792,7 @@ public partial class StorageMover /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task StorageMoversListBySubscription_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task StorageMoversListBySubscription_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -5810,7 +5810,7 @@ public partial class StorageMover case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.StorageMoverList.FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.StorageMoverList.FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: @@ -5859,9 +5859,9 @@ public partial class StorageMover /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task StorageMoversListViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task StorageMoversListViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) { - var apiVersion = @"2024-07-01"; + var apiVersion = @"2025-07-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -5910,7 +5910,7 @@ public partial class StorageMover /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task StorageMoversList_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task StorageMoversList_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -5928,7 +5928,7 @@ public partial class StorageMover case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.StorageMoverList.FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.StorageMoverList.FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: @@ -5986,9 +5986,9 @@ public partial class StorageMover /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task StorageMoversUpdate(string subscriptionId, string resourceGroupName, string storageMoverName, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IStorageMoverUpdateParameters body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task StorageMoversUpdate(string subscriptionId, string resourceGroupName, string storageMoverName, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IStorageMoverUpdateParameters body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) { - var apiVersion = @"2024-07-01"; + var apiVersion = @"2025-07-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -6034,9 +6034,9 @@ public partial class StorageMover /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task StorageMoversUpdateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IStorageMoverUpdateParameters body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task StorageMoversUpdateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IStorageMoverUpdateParameters body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) { - var apiVersion = @"2024-07-01"; + var apiVersion = @"2025-07-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -6091,7 +6091,7 @@ public partial class StorageMover /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task StorageMoversUpdate_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task StorageMoversUpdate_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -6109,7 +6109,7 @@ public partial class StorageMover case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.StorageMover.FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.StorageMover.FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: @@ -6142,7 +6142,7 @@ public partial class StorageMover /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task StorageMoversUpdate_Validate(string subscriptionId, string resourceGroupName, string storageMoverName, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IStorageMoverUpdateParameters body, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task StorageMoversUpdate_Validate(string subscriptionId, string resourceGroupName, string storageMoverName, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IStorageMoverUpdateParameters body, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { diff --git a/generated/StorageMover/StorageMover.Autorest/generated/api/Support/EndpointType.Completer.cs b/generated/StorageMover/StorageMover.Autorest/generated/api/Support/EndpointType.Completer.cs index 90410c7d613d..29a81f5ccd54 100644 --- a/generated/StorageMover/StorageMover.Autorest/generated/api/Support/EndpointType.Completer.cs +++ b/generated/StorageMover/StorageMover.Autorest/generated/api/Support/EndpointType.Completer.cs @@ -42,6 +42,14 @@ public partial struct EndpointType : { yield return new global::System.Management.Automation.CompletionResult("'SmbMount'", "SmbMount", global::System.Management.Automation.CompletionResultType.ParameterValue, "SmbMount"); } + if (global::System.String.IsNullOrEmpty(wordToComplete) || "AzureMultiCloudConnector".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) + { + yield return new global::System.Management.Automation.CompletionResult("'AzureMultiCloudConnector'", "AzureMultiCloudConnector", global::System.Management.Automation.CompletionResultType.ParameterValue, "AzureMultiCloudConnector"); + } + if (global::System.String.IsNullOrEmpty(wordToComplete) || "AzureStorageNfsFileShare".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) + { + yield return new global::System.Management.Automation.CompletionResult("'AzureStorageNfsFileShare'", "AzureStorageNfsFileShare", global::System.Management.Automation.CompletionResultType.ParameterValue, "AzureStorageNfsFileShare"); + } } } } \ No newline at end of file diff --git a/generated/StorageMover/StorageMover.Autorest/generated/api/Support/EndpointType.cs b/generated/StorageMover/StorageMover.Autorest/generated/api/Support/EndpointType.cs index 2663442436b0..9e12812352cb 100644 --- a/generated/StorageMover/StorageMover.Autorest/generated/api/Support/EndpointType.cs +++ b/generated/StorageMover/StorageMover.Autorest/generated/api/Support/EndpointType.cs @@ -10,8 +10,12 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support public partial struct EndpointType : System.IEquatable { + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.EndpointType AzureMultiCloudConnector = @"AzureMultiCloudConnector"; + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.EndpointType AzureStorageBlobContainer = @"AzureStorageBlobContainer"; + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.EndpointType AzureStorageNfsFileShare = @"AzureStorageNfsFileShare"; + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.EndpointType AzureStorageSmbFileShare = @"AzureStorageSmbFileShare"; public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.EndpointType NfsMount = @"NfsMount"; diff --git a/generated/StorageMover/StorageMover.Autorest/generated/api/Support/JobType.Completer.cs b/generated/StorageMover/StorageMover.Autorest/generated/api/Support/JobType.Completer.cs new file mode 100644 index 000000000000..c70a9de2e163 --- /dev/null +++ b/generated/StorageMover/StorageMover.Autorest/generated/api/Support/JobType.Completer.cs @@ -0,0 +1,39 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support +{ + + /// The type of the Job. + [System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.JobTypeTypeConverter))] + public partial struct JobType : + System.Management.Automation.IArgumentCompleter + { + + /// + /// Implementations of this function are called by PowerShell to complete arguments. + /// + /// The name of the command that needs argument completion. + /// The name of the parameter that needs argument completion. + /// The (possibly empty) word being completed. + /// The command ast in case it is needed for completion. + /// This parameter is similar to $PSBoundParameters, except that sometimes PowerShell cannot + /// or will not attempt to evaluate an argument, in which case you may need to use commandAst. + /// + /// A collection of completion results, most like with ResultType set to ParameterValue. + /// + public global::System.Collections.Generic.IEnumerable CompleteArgument(global::System.String commandName, global::System.String parameterName, global::System.String wordToComplete, global::System.Management.Automation.Language.CommandAst commandAst, global::System.Collections.IDictionary fakeBoundParameters) + { + if (global::System.String.IsNullOrEmpty(wordToComplete) || "OnPremToCloud".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) + { + yield return new global::System.Management.Automation.CompletionResult("'OnPremToCloud'", "OnPremToCloud", global::System.Management.Automation.CompletionResultType.ParameterValue, "OnPremToCloud"); + } + if (global::System.String.IsNullOrEmpty(wordToComplete) || "CloudToCloud".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) + { + yield return new global::System.Management.Automation.CompletionResult("'CloudToCloud'", "CloudToCloud", global::System.Management.Automation.CompletionResultType.ParameterValue, "CloudToCloud"); + } + } + } +} \ No newline at end of file diff --git a/generated/StorageMover/StorageMover.Autorest/generated/api/Support/JobType.TypeConverter.cs b/generated/StorageMover/StorageMover.Autorest/generated/api/Support/JobType.TypeConverter.cs new file mode 100644 index 000000000000..6b1d50c4f26b --- /dev/null +++ b/generated/StorageMover/StorageMover.Autorest/generated/api/Support/JobType.TypeConverter.cs @@ -0,0 +1,59 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support +{ + + /// The type of the Job. + public partial class JobTypeTypeConverter : + global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => true; + + /// + /// Determines if the converter can convert the parameter to the parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false. + /// + public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; + + /// + /// Converts the parameter to the parameter using and + /// + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// + /// an instance of , or null if there is no suitable conversion. + /// + public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => JobType.CreateFrom(sourceValue); + + /// NotImplemented -- this will return null + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// will always return null. + public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; + } +} \ No newline at end of file diff --git a/generated/StorageMover/StorageMover.Autorest/generated/api/Support/JobType.cs b/generated/StorageMover/StorageMover.Autorest/generated/api/Support/JobType.cs new file mode 100644 index 000000000000..2ba078a62580 --- /dev/null +++ b/generated/StorageMover/StorageMover.Autorest/generated/api/Support/JobType.cs @@ -0,0 +1,98 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support +{ + + /// The type of the Job. + public partial struct JobType : + System.IEquatable + { + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.JobType CloudToCloud = @"CloudToCloud"; + + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.JobType OnPremToCloud = @"OnPremToCloud"; + + /// the value for an instance of the Enum. + private string _value { get; set; } + + /// Conversion from arbitrary object to JobType + /// the value to convert to an instance of . + internal static object CreateFrom(object value) + { + return new JobType(global::System.Convert.ToString(value)); + } + + /// Compares values of enum type JobType + /// the value to compare against this instance. + /// true if the two instances are equal to the same value + public bool Equals(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.JobType e) + { + return _value.Equals(e._value); + } + + /// Compares values of enum type JobType (override for Object) + /// the value to compare against this instance. + /// true if the two instances are equal to the same value + public override bool Equals(object obj) + { + return obj is JobType && Equals((JobType)obj); + } + + /// Returns hashCode for enum JobType + /// The hashCode of the value + public override int GetHashCode() + { + return this._value.GetHashCode(); + } + + /// Creates an instance of the Enum class. + /// the value to create an instance for. + private JobType(string underlyingValue) + { + this._value = underlyingValue; + } + + /// Returns string representation for JobType + /// A string for this value. + public override string ToString() + { + return this._value; + } + + /// Implicit operator to convert string to JobType + /// the value to convert to an instance of . + + public static implicit operator JobType(string value) + { + return new JobType(value); + } + + /// Implicit operator to convert JobType to string + /// the value to convert to an instance of . + + public static implicit operator string(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.JobType e) + { + return e._value; + } + + /// Overriding != operator for enum JobType + /// the value to compare against + /// the value to compare against + /// true if the two instances are not equal to the same value + public static bool operator !=(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.JobType e1, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.JobType e2) + { + return !e2.Equals(e1); + } + + /// Overriding == operator for enum JobType + /// the value to compare against + /// the value to compare against + /// true if the two instances are equal to the same value + public static bool operator ==(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.JobType e1, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.JobType e2) + { + return e2.Equals(e1); + } + } +} \ No newline at end of file diff --git a/generated/StorageMover/StorageMover.Autorest/generated/api/Support/ManagedServiceIdentityType.Completer.cs b/generated/StorageMover/StorageMover.Autorest/generated/api/Support/ManagedServiceIdentityType.Completer.cs new file mode 100644 index 000000000000..d3431a98f48e --- /dev/null +++ b/generated/StorageMover/StorageMover.Autorest/generated/api/Support/ManagedServiceIdentityType.Completer.cs @@ -0,0 +1,49 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support +{ + + /// + /// Type of managed service identity (where both SystemAssigned and UserAssigned types are allowed). + /// + [System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ManagedServiceIdentityTypeTypeConverter))] + public partial struct ManagedServiceIdentityType : + System.Management.Automation.IArgumentCompleter + { + + /// + /// Implementations of this function are called by PowerShell to complete arguments. + /// + /// The name of the command that needs argument completion. + /// The name of the parameter that needs argument completion. + /// The (possibly empty) word being completed. + /// The command ast in case it is needed for completion. + /// This parameter is similar to $PSBoundParameters, except that sometimes PowerShell cannot + /// or will not attempt to evaluate an argument, in which case you may need to use commandAst. + /// + /// A collection of completion results, most like with ResultType set to ParameterValue. + /// + public global::System.Collections.Generic.IEnumerable CompleteArgument(global::System.String commandName, global::System.String parameterName, global::System.String wordToComplete, global::System.Management.Automation.Language.CommandAst commandAst, global::System.Collections.IDictionary fakeBoundParameters) + { + if (global::System.String.IsNullOrEmpty(wordToComplete) || "None".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) + { + yield return new global::System.Management.Automation.CompletionResult("'None'", "None", global::System.Management.Automation.CompletionResultType.ParameterValue, "None"); + } + if (global::System.String.IsNullOrEmpty(wordToComplete) || "SystemAssigned".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) + { + yield return new global::System.Management.Automation.CompletionResult("'SystemAssigned'", "SystemAssigned", global::System.Management.Automation.CompletionResultType.ParameterValue, "SystemAssigned"); + } + if (global::System.String.IsNullOrEmpty(wordToComplete) || "UserAssigned".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) + { + yield return new global::System.Management.Automation.CompletionResult("'UserAssigned'", "UserAssigned", global::System.Management.Automation.CompletionResultType.ParameterValue, "UserAssigned"); + } + if (global::System.String.IsNullOrEmpty(wordToComplete) || "SystemAssigned,UserAssigned".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) + { + yield return new global::System.Management.Automation.CompletionResult("'SystemAssigned,UserAssigned'", "SystemAssigned,UserAssigned", global::System.Management.Automation.CompletionResultType.ParameterValue, "SystemAssigned,UserAssigned"); + } + } + } +} \ No newline at end of file diff --git a/generated/StorageMover/StorageMover.Autorest/generated/api/Support/ManagedServiceIdentityType.TypeConverter.cs b/generated/StorageMover/StorageMover.Autorest/generated/api/Support/ManagedServiceIdentityType.TypeConverter.cs new file mode 100644 index 000000000000..0485458d9b89 --- /dev/null +++ b/generated/StorageMover/StorageMover.Autorest/generated/api/Support/ManagedServiceIdentityType.TypeConverter.cs @@ -0,0 +1,61 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support +{ + + /// + /// Type of managed service identity (where both SystemAssigned and UserAssigned types are allowed). + /// + public partial class ManagedServiceIdentityTypeTypeConverter : + global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => true; + + /// + /// Determines if the converter can convert the parameter to the parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false. + /// + public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; + + /// + /// Converts the parameter to the parameter using and + /// + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// + /// an instance of , or null if there is no suitable conversion. + /// + public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ManagedServiceIdentityType.CreateFrom(sourceValue); + + /// NotImplemented -- this will return null + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// will always return null. + public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; + } +} \ No newline at end of file diff --git a/generated/StorageMover/StorageMover.Autorest/generated/api/Support/ManagedServiceIdentityType.cs b/generated/StorageMover/StorageMover.Autorest/generated/api/Support/ManagedServiceIdentityType.cs new file mode 100644 index 000000000000..75b46912a913 --- /dev/null +++ b/generated/StorageMover/StorageMover.Autorest/generated/api/Support/ManagedServiceIdentityType.cs @@ -0,0 +1,106 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support +{ + + /// + /// Type of managed service identity (where both SystemAssigned and UserAssigned types are allowed). + /// + public partial struct ManagedServiceIdentityType : + System.IEquatable + { + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ManagedServiceIdentityType None = @"None"; + + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ManagedServiceIdentityType SystemAssigned = @"SystemAssigned"; + + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ManagedServiceIdentityType SystemAssignedUserAssigned = @"SystemAssigned,UserAssigned"; + + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ManagedServiceIdentityType UserAssigned = @"UserAssigned"; + + /// + /// the value for an instance of the Enum. + /// + private string _value { get; set; } + + /// Conversion from arbitrary object to ManagedServiceIdentityType + /// the value to convert to an instance of . + internal static object CreateFrom(object value) + { + return new ManagedServiceIdentityType(global::System.Convert.ToString(value)); + } + + /// Compares values of enum type ManagedServiceIdentityType + /// the value to compare against this instance. + /// true if the two instances are equal to the same value + public bool Equals(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ManagedServiceIdentityType e) + { + return _value.Equals(e._value); + } + + /// Compares values of enum type ManagedServiceIdentityType (override for Object) + /// the value to compare against this instance. + /// true if the two instances are equal to the same value + public override bool Equals(object obj) + { + return obj is ManagedServiceIdentityType && Equals((ManagedServiceIdentityType)obj); + } + + /// Returns hashCode for enum ManagedServiceIdentityType + /// The hashCode of the value + public override int GetHashCode() + { + return this._value.GetHashCode(); + } + + /// Creates an instance of the Enum class. + /// the value to create an instance for. + private ManagedServiceIdentityType(string underlyingValue) + { + this._value = underlyingValue; + } + + /// Returns string representation for ManagedServiceIdentityType + /// A string for this value. + public override string ToString() + { + return this._value; + } + + /// Implicit operator to convert string to ManagedServiceIdentityType + /// the value to convert to an instance of . + + public static implicit operator ManagedServiceIdentityType(string value) + { + return new ManagedServiceIdentityType(value); + } + + /// Implicit operator to convert ManagedServiceIdentityType to string + /// the value to convert to an instance of . + + public static implicit operator string(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ManagedServiceIdentityType e) + { + return e._value; + } + + /// Overriding != operator for enum ManagedServiceIdentityType + /// the value to compare against + /// the value to compare against + /// true if the two instances are not equal to the same value + public static bool operator !=(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ManagedServiceIdentityType e1, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ManagedServiceIdentityType e2) + { + return !e2.Equals(e1); + } + + /// Overriding == operator for enum ManagedServiceIdentityType + /// the value to compare against + /// the value to compare against + /// true if the two instances are equal to the same value + public static bool operator ==(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ManagedServiceIdentityType e1, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ManagedServiceIdentityType e2) + { + return e2.Equals(e1); + } + } +} \ No newline at end of file diff --git a/generated/StorageMover/StorageMover.Autorest/generated/cmdlets/GetAzStorageMoverAgent_Get.cs b/generated/StorageMover/StorageMover.Autorest/generated/cmdlets/GetAzStorageMoverAgent_Get.cs index da5b824814a7..4dc5fb39a153 100644 --- a/generated/StorageMover/StorageMover.Autorest/generated/cmdlets/GetAzStorageMoverAgent_Get.cs +++ b/generated/StorageMover/StorageMover.Autorest/generated/cmdlets/GetAzStorageMoverAgent_Get.cs @@ -13,11 +13,11 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Cmdlets /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageMover/storageMovers/{storageMoverName}/agents/{agentName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzStorageMoverAgent_Get")] - [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.OutputBreakingChange("Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgent", "15.0.0", "2.0.0", "2025/11/03", DeprecatedOutputProperties=new string[] {"UploadLimitScheduleWeeklyRecurrence"}, NewOutputProperties=new string[] {"UploadLimitScheduleWeeklyRecurrence"}, ChangeDescription="The type of the property UploadLimitScheduleWeeklyRecurrence will be changed from fixed array to 'List'.")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgent))] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.OutputBreakingChange("Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgent", "15.0.0", "2.0.0", "2025/11/03", DeprecatedOutputProperties=new string[] {"UploadLimitScheduleWeeklyRecurrence"}, NewOutputProperties=new string[] {"UploadLimitScheduleWeeklyRecurrence"}, ChangeDescription="The type of the property UploadLimitScheduleWeeklyRecurrence will be changed from fixed array to 'List'.")] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgent))] [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Description(@"Gets an Agent resource.")] [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageMover/storageMovers/{storageMoverName}/agents/{agentName}", ApiVersion = "2024-07-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageMover/storageMovers/{storageMoverName}/agents/{agentName}", ApiVersion = "2025-07-01")] public partial class GetAzStorageMoverAgent_Get : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener { @@ -175,12 +175,12 @@ public partial class GetAzStorageMoverAgent_Get : global::System.Management.Auto /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgent + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgent /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -428,12 +428,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgent + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgent /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -445,7 +445,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgent + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgent WriteObject((await response)); } } diff --git a/generated/StorageMover/StorageMover.Autorest/generated/cmdlets/GetAzStorageMoverAgent_GetViaIdentity.cs b/generated/StorageMover/StorageMover.Autorest/generated/cmdlets/GetAzStorageMoverAgent_GetViaIdentity.cs index 4a39fdfc47b4..35c21f4c6923 100644 --- a/generated/StorageMover/StorageMover.Autorest/generated/cmdlets/GetAzStorageMoverAgent_GetViaIdentity.cs +++ b/generated/StorageMover/StorageMover.Autorest/generated/cmdlets/GetAzStorageMoverAgent_GetViaIdentity.cs @@ -13,11 +13,11 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Cmdlets /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageMover/storageMovers/{storageMoverName}/agents/{agentName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzStorageMoverAgent_GetViaIdentity")] - [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.OutputBreakingChange("Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgent", "15.0.0", "2.0.0", "2025/11/03", DeprecatedOutputProperties=new string[] {"UploadLimitScheduleWeeklyRecurrence"}, NewOutputProperties=new string[] {"UploadLimitScheduleWeeklyRecurrence"}, ChangeDescription="The type of the property UploadLimitScheduleWeeklyRecurrence will be changed from fixed array to 'List'.")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgent))] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.OutputBreakingChange("Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgent", "15.0.0", "2.0.0", "2025/11/03", DeprecatedOutputProperties=new string[] {"UploadLimitScheduleWeeklyRecurrence"}, NewOutputProperties=new string[] {"UploadLimitScheduleWeeklyRecurrence"}, ChangeDescription="The type of the property UploadLimitScheduleWeeklyRecurrence will be changed from fixed array to 'List'.")] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgent))] [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Description(@"Gets an Agent resource.")] [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageMover/storageMovers/{storageMoverName}/agents/{agentName}", ApiVersion = "2024-07-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageMover/storageMovers/{storageMoverName}/agents/{agentName}", ApiVersion = "2025-07-01")] public partial class GetAzStorageMoverAgent_GetViaIdentity : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener { @@ -122,12 +122,12 @@ public partial class GetAzStorageMoverAgent_GetViaIdentity : global::System.Mana /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgent + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgent /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -396,12 +396,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgent + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgent /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -413,7 +413,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgent + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgent WriteObject((await response)); } } diff --git a/generated/StorageMover/StorageMover.Autorest/generated/cmdlets/GetAzStorageMoverAgent_List.cs b/generated/StorageMover/StorageMover.Autorest/generated/cmdlets/GetAzStorageMoverAgent_List.cs index 169c473b68a6..f4a9b7d45424 100644 --- a/generated/StorageMover/StorageMover.Autorest/generated/cmdlets/GetAzStorageMoverAgent_List.cs +++ b/generated/StorageMover/StorageMover.Autorest/generated/cmdlets/GetAzStorageMoverAgent_List.cs @@ -13,11 +13,11 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Cmdlets /// [OpenAPI] List=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageMover/storageMovers/{storageMoverName}/agents" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzStorageMoverAgent_List")] - [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.OutputBreakingChange("Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgent", "15.0.0", "2.0.0", "2025/11/03", DeprecatedOutputProperties=new string[] {"UploadLimitScheduleWeeklyRecurrence"}, NewOutputProperties=new string[] {"UploadLimitScheduleWeeklyRecurrence"}, ChangeDescription="The type of the property UploadLimitScheduleWeeklyRecurrence will be changed from fixed array to 'List'.")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgent))] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.OutputBreakingChange("Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgent", "15.0.0", "2.0.0", "2025/11/03", DeprecatedOutputProperties=new string[] {"UploadLimitScheduleWeeklyRecurrence"}, NewOutputProperties=new string[] {"UploadLimitScheduleWeeklyRecurrence"}, ChangeDescription="The type of the property UploadLimitScheduleWeeklyRecurrence will be changed from fixed array to 'List'.")] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgent))] [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Description(@"Lists all Agents in a Storage Mover.")] [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageMover/storageMovers/{storageMoverName}/agents", ApiVersion = "2024-07-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageMover/storageMovers/{storageMoverName}/agents", ApiVersion = "2025-07-01")] public partial class GetAzStorageMoverAgent_List : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener { @@ -166,12 +166,12 @@ public partial class GetAzStorageMoverAgent_List : global::System.Management.Aut /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentList + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentList /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -419,12 +419,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentList + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentList /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { diff --git a/generated/StorageMover/StorageMover.Autorest/generated/cmdlets/GetAzStorageMoverEndpoint_Get.cs b/generated/StorageMover/StorageMover.Autorest/generated/cmdlets/GetAzStorageMoverEndpoint_Get.cs index 57ff0f889d89..e2212f308877 100644 --- a/generated/StorageMover/StorageMover.Autorest/generated/cmdlets/GetAzStorageMoverEndpoint_Get.cs +++ b/generated/StorageMover/StorageMover.Autorest/generated/cmdlets/GetAzStorageMoverEndpoint_Get.cs @@ -13,10 +13,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Cmdlets /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageMover/storageMovers/{storageMoverName}/endpoints/{endpointName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzStorageMoverEndpoint_Get")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpoint))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpoint))] [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Description(@"Gets an Endpoint resource.")] [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageMover/storageMovers/{storageMoverName}/endpoints/{endpointName}", ApiVersion = "2024-07-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageMover/storageMovers/{storageMoverName}/endpoints/{endpointName}", ApiVersion = "2025-07-01")] public partial class GetAzStorageMoverEndpoint_Get : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener { @@ -174,12 +174,12 @@ public partial class GetAzStorageMoverEndpoint_Get : global::System.Management.A /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpoint + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpoint /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -427,12 +427,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpoint + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpoint /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -444,7 +444,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpoint + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpoint WriteObject((await response)); } } diff --git a/generated/StorageMover/StorageMover.Autorest/generated/cmdlets/GetAzStorageMoverEndpoint_GetViaIdentity.cs b/generated/StorageMover/StorageMover.Autorest/generated/cmdlets/GetAzStorageMoverEndpoint_GetViaIdentity.cs index 934faec856c1..7d5f4d8c4630 100644 --- a/generated/StorageMover/StorageMover.Autorest/generated/cmdlets/GetAzStorageMoverEndpoint_GetViaIdentity.cs +++ b/generated/StorageMover/StorageMover.Autorest/generated/cmdlets/GetAzStorageMoverEndpoint_GetViaIdentity.cs @@ -13,10 +13,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Cmdlets /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageMover/storageMovers/{storageMoverName}/endpoints/{endpointName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzStorageMoverEndpoint_GetViaIdentity")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpoint))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpoint))] [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Description(@"Gets an Endpoint resource.")] [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageMover/storageMovers/{storageMoverName}/endpoints/{endpointName}", ApiVersion = "2024-07-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageMover/storageMovers/{storageMoverName}/endpoints/{endpointName}", ApiVersion = "2025-07-01")] public partial class GetAzStorageMoverEndpoint_GetViaIdentity : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener { @@ -121,12 +121,12 @@ public partial class GetAzStorageMoverEndpoint_GetViaIdentity : global::System.M /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpoint + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpoint /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -395,12 +395,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpoint + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpoint /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -412,7 +412,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpoint + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpoint WriteObject((await response)); } } diff --git a/generated/StorageMover/StorageMover.Autorest/generated/cmdlets/GetAzStorageMoverEndpoint_List.cs b/generated/StorageMover/StorageMover.Autorest/generated/cmdlets/GetAzStorageMoverEndpoint_List.cs index 240673029f25..d448ad8f5813 100644 --- a/generated/StorageMover/StorageMover.Autorest/generated/cmdlets/GetAzStorageMoverEndpoint_List.cs +++ b/generated/StorageMover/StorageMover.Autorest/generated/cmdlets/GetAzStorageMoverEndpoint_List.cs @@ -13,10 +13,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Cmdlets /// [OpenAPI] List=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageMover/storageMovers/{storageMoverName}/endpoints" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzStorageMoverEndpoint_List")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpoint))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpoint))] [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Description(@"Lists all Endpoints in a Storage Mover.")] [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageMover/storageMovers/{storageMoverName}/endpoints", ApiVersion = "2024-07-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageMover/storageMovers/{storageMoverName}/endpoints", ApiVersion = "2025-07-01")] public partial class GetAzStorageMoverEndpoint_List : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener { @@ -165,12 +165,12 @@ public partial class GetAzStorageMoverEndpoint_List : global::System.Management. /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpointList + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointList /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -418,12 +418,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpointList + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointList /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { diff --git a/generated/StorageMover/StorageMover.Autorest/generated/cmdlets/GetAzStorageMoverJobDefinition_Get.cs b/generated/StorageMover/StorageMover.Autorest/generated/cmdlets/GetAzStorageMoverJobDefinition_Get.cs index 9c75b643d376..93d05590149f 100644 --- a/generated/StorageMover/StorageMover.Autorest/generated/cmdlets/GetAzStorageMoverJobDefinition_Get.cs +++ b/generated/StorageMover/StorageMover.Autorest/generated/cmdlets/GetAzStorageMoverJobDefinition_Get.cs @@ -13,10 +13,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Cmdlets /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageMover/storageMovers/{storageMoverName}/projects/{projectName}/jobDefinitions/{jobDefinitionName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzStorageMoverJobDefinition_Get")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinition))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinition))] [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Description(@"Gets a Job Definition resource.")] [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageMover/storageMovers/{storageMoverName}/projects/{projectName}/jobDefinitions/{jobDefinitionName}", ApiVersion = "2024-07-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageMover/storageMovers/{storageMoverName}/projects/{projectName}/jobDefinitions/{jobDefinitionName}", ApiVersion = "2025-07-01")] public partial class GetAzStorageMoverJobDefinition_Get : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener { @@ -188,12 +188,12 @@ public partial class GetAzStorageMoverJobDefinition_Get : global::System.Managem /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinition + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinition /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -441,12 +441,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinition + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinition /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -458,7 +458,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinition + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinition WriteObject((await response)); } } diff --git a/generated/StorageMover/StorageMover.Autorest/generated/cmdlets/GetAzStorageMoverJobDefinition_GetViaIdentity.cs b/generated/StorageMover/StorageMover.Autorest/generated/cmdlets/GetAzStorageMoverJobDefinition_GetViaIdentity.cs index fe788ebddd91..8bdc142f84c2 100644 --- a/generated/StorageMover/StorageMover.Autorest/generated/cmdlets/GetAzStorageMoverJobDefinition_GetViaIdentity.cs +++ b/generated/StorageMover/StorageMover.Autorest/generated/cmdlets/GetAzStorageMoverJobDefinition_GetViaIdentity.cs @@ -13,10 +13,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Cmdlets /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageMover/storageMovers/{storageMoverName}/projects/{projectName}/jobDefinitions/{jobDefinitionName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzStorageMoverJobDefinition_GetViaIdentity")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinition))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinition))] [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Description(@"Gets a Job Definition resource.")] [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageMover/storageMovers/{storageMoverName}/projects/{projectName}/jobDefinitions/{jobDefinitionName}", ApiVersion = "2024-07-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageMover/storageMovers/{storageMoverName}/projects/{projectName}/jobDefinitions/{jobDefinitionName}", ApiVersion = "2025-07-01")] public partial class GetAzStorageMoverJobDefinition_GetViaIdentity : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener { @@ -121,12 +121,12 @@ public partial class GetAzStorageMoverJobDefinition_GetViaIdentity : global::Sys /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinition + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinition /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -399,12 +399,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinition + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinition /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -416,7 +416,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinition + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinition WriteObject((await response)); } } diff --git a/generated/StorageMover/StorageMover.Autorest/generated/cmdlets/GetAzStorageMoverJobDefinition_List.cs b/generated/StorageMover/StorageMover.Autorest/generated/cmdlets/GetAzStorageMoverJobDefinition_List.cs index b8d1beac4225..52d9e7403f82 100644 --- a/generated/StorageMover/StorageMover.Autorest/generated/cmdlets/GetAzStorageMoverJobDefinition_List.cs +++ b/generated/StorageMover/StorageMover.Autorest/generated/cmdlets/GetAzStorageMoverJobDefinition_List.cs @@ -13,10 +13,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Cmdlets /// [OpenAPI] List=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageMover/storageMovers/{storageMoverName}/projects/{projectName}/jobDefinitions" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzStorageMoverJobDefinition_List")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinition))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinition))] [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Description(@"Lists all Job Definitions in a Project.")] [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageMover/storageMovers/{storageMoverName}/projects/{projectName}/jobDefinitions", ApiVersion = "2024-07-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageMover/storageMovers/{storageMoverName}/projects/{projectName}/jobDefinitions", ApiVersion = "2025-07-01")] public partial class GetAzStorageMoverJobDefinition_List : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener { @@ -179,12 +179,12 @@ public partial class GetAzStorageMoverJobDefinition_List : global::System.Manage /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinitionList + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionList /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -432,12 +432,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinitionList + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionList /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { diff --git a/generated/StorageMover/StorageMover.Autorest/generated/cmdlets/GetAzStorageMoverJobRun_Get.cs b/generated/StorageMover/StorageMover.Autorest/generated/cmdlets/GetAzStorageMoverJobRun_Get.cs index 143d1f728d4d..bb8795c2f0a6 100644 --- a/generated/StorageMover/StorageMover.Autorest/generated/cmdlets/GetAzStorageMoverJobRun_Get.cs +++ b/generated/StorageMover/StorageMover.Autorest/generated/cmdlets/GetAzStorageMoverJobRun_Get.cs @@ -13,10 +13,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Cmdlets /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageMover/storageMovers/{storageMoverName}/projects/{projectName}/jobDefinitions/{jobDefinitionName}/jobRuns/{jobRunName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzStorageMoverJobRun_Get")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRun))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRun))] [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Description(@"Gets a Job Run resource.")] [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageMover/storageMovers/{storageMoverName}/projects/{projectName}/jobDefinitions/{jobDefinitionName}/jobRuns/{jobRunName}", ApiVersion = "2024-07-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageMover/storageMovers/{storageMoverName}/projects/{projectName}/jobDefinitions/{jobDefinitionName}/jobRuns/{jobRunName}", ApiVersion = "2025-07-01")] public partial class GetAzStorageMoverJobRun_Get : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener { @@ -202,12 +202,12 @@ public partial class GetAzStorageMoverJobRun_Get : global::System.Management.Aut /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRun + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRun /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -455,12 +455,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRun + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRun /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -472,7 +472,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRun + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRun WriteObject((await response)); } } diff --git a/generated/StorageMover/StorageMover.Autorest/generated/cmdlets/GetAzStorageMoverJobRun_GetViaIdentity.cs b/generated/StorageMover/StorageMover.Autorest/generated/cmdlets/GetAzStorageMoverJobRun_GetViaIdentity.cs index f7e69f8be4a7..9810e6771e80 100644 --- a/generated/StorageMover/StorageMover.Autorest/generated/cmdlets/GetAzStorageMoverJobRun_GetViaIdentity.cs +++ b/generated/StorageMover/StorageMover.Autorest/generated/cmdlets/GetAzStorageMoverJobRun_GetViaIdentity.cs @@ -13,10 +13,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Cmdlets /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageMover/storageMovers/{storageMoverName}/projects/{projectName}/jobDefinitions/{jobDefinitionName}/jobRuns/{jobRunName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzStorageMoverJobRun_GetViaIdentity")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRun))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRun))] [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Description(@"Gets a Job Run resource.")] [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageMover/storageMovers/{storageMoverName}/projects/{projectName}/jobDefinitions/{jobDefinitionName}/jobRuns/{jobRunName}", ApiVersion = "2024-07-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageMover/storageMovers/{storageMoverName}/projects/{projectName}/jobDefinitions/{jobDefinitionName}/jobRuns/{jobRunName}", ApiVersion = "2025-07-01")] public partial class GetAzStorageMoverJobRun_GetViaIdentity : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener { @@ -121,12 +121,12 @@ public partial class GetAzStorageMoverJobRun_GetViaIdentity : global::System.Man /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRun + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRun /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -403,12 +403,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRun + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRun /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -420,7 +420,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRun + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRun WriteObject((await response)); } } diff --git a/generated/StorageMover/StorageMover.Autorest/generated/cmdlets/GetAzStorageMoverJobRun_List.cs b/generated/StorageMover/StorageMover.Autorest/generated/cmdlets/GetAzStorageMoverJobRun_List.cs index a1c92aee1a9c..04ad9aad0462 100644 --- a/generated/StorageMover/StorageMover.Autorest/generated/cmdlets/GetAzStorageMoverJobRun_List.cs +++ b/generated/StorageMover/StorageMover.Autorest/generated/cmdlets/GetAzStorageMoverJobRun_List.cs @@ -13,10 +13,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Cmdlets /// [OpenAPI] List=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageMover/storageMovers/{storageMoverName}/projects/{projectName}/jobDefinitions/{jobDefinitionName}/jobRuns" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzStorageMoverJobRun_List")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRun))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRun))] [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Description(@"Lists all Job Runs in a Job Definition.")] [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageMover/storageMovers/{storageMoverName}/projects/{projectName}/jobDefinitions/{jobDefinitionName}/jobRuns", ApiVersion = "2024-07-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageMover/storageMovers/{storageMoverName}/projects/{projectName}/jobDefinitions/{jobDefinitionName}/jobRuns", ApiVersion = "2025-07-01")] public partial class GetAzStorageMoverJobRun_List : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener { @@ -193,12 +193,12 @@ public partial class GetAzStorageMoverJobRun_List : global::System.Management.Au /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunList + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunList /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -446,12 +446,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunList + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunList /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { diff --git a/generated/StorageMover/StorageMover.Autorest/generated/cmdlets/GetAzStorageMoverOperation_List.cs b/generated/StorageMover/StorageMover.Autorest/generated/cmdlets/GetAzStorageMoverOperation_List.cs index 3e35c75ab5c3..20bd96db8430 100644 --- a/generated/StorageMover/StorageMover.Autorest/generated/cmdlets/GetAzStorageMoverOperation_List.cs +++ b/generated/StorageMover/StorageMover.Autorest/generated/cmdlets/GetAzStorageMoverOperation_List.cs @@ -8,16 +8,16 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Cmdlets using static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Extensions; using System; - /// Lists all the supported operations for the Azure Storage Mover REST API. + /// List the operations for the provider /// /// [OpenAPI] List=>GET:"/providers/Microsoft.StorageMover/operations" /// [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzStorageMoverOperation_List")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IOperation))] - [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Description(@"Lists all the supported operations for the Azure Storage Mover REST API.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Description(@"List the operations for the provider")] [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.HttpPath(Path = "/providers/Microsoft.StorageMover/operations", ApiVersion = "2024-07-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.HttpPath(Path = "/providers/Microsoft.StorageMover/operations", ApiVersion = "2025-07-01")] public partial class GetAzStorageMoverOperation_List : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener { diff --git a/generated/StorageMover/StorageMover.Autorest/generated/cmdlets/GetAzStorageMoverProject_Get.cs b/generated/StorageMover/StorageMover.Autorest/generated/cmdlets/GetAzStorageMoverProject_Get.cs index c1246056dccb..7f09f7fa8930 100644 --- a/generated/StorageMover/StorageMover.Autorest/generated/cmdlets/GetAzStorageMoverProject_Get.cs +++ b/generated/StorageMover/StorageMover.Autorest/generated/cmdlets/GetAzStorageMoverProject_Get.cs @@ -13,10 +13,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Cmdlets /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageMover/storageMovers/{storageMoverName}/projects/{projectName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzStorageMoverProject_Get")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IProject))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IProject))] [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Description(@"Gets a Project resource.")] [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageMover/storageMovers/{storageMoverName}/projects/{projectName}", ApiVersion = "2024-07-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageMover/storageMovers/{storageMoverName}/projects/{projectName}", ApiVersion = "2025-07-01")] public partial class GetAzStorageMoverProject_Get : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener { @@ -174,12 +174,12 @@ public partial class GetAzStorageMoverProject_Get : global::System.Management.Au /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IProject + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IProject /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -427,12 +427,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IProject + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IProject /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -444,7 +444,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IProject + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IProject WriteObject((await response)); } } diff --git a/generated/StorageMover/StorageMover.Autorest/generated/cmdlets/GetAzStorageMoverProject_GetViaIdentity.cs b/generated/StorageMover/StorageMover.Autorest/generated/cmdlets/GetAzStorageMoverProject_GetViaIdentity.cs index c41eaae7b756..9a7a09b6a21d 100644 --- a/generated/StorageMover/StorageMover.Autorest/generated/cmdlets/GetAzStorageMoverProject_GetViaIdentity.cs +++ b/generated/StorageMover/StorageMover.Autorest/generated/cmdlets/GetAzStorageMoverProject_GetViaIdentity.cs @@ -13,10 +13,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Cmdlets /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageMover/storageMovers/{storageMoverName}/projects/{projectName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzStorageMoverProject_GetViaIdentity")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IProject))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IProject))] [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Description(@"Gets a Project resource.")] [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageMover/storageMovers/{storageMoverName}/projects/{projectName}", ApiVersion = "2024-07-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageMover/storageMovers/{storageMoverName}/projects/{projectName}", ApiVersion = "2025-07-01")] public partial class GetAzStorageMoverProject_GetViaIdentity : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener { @@ -121,12 +121,12 @@ public partial class GetAzStorageMoverProject_GetViaIdentity : global::System.Ma /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IProject + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IProject /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -395,12 +395,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IProject + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IProject /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -412,7 +412,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IProject + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IProject WriteObject((await response)); } } diff --git a/generated/StorageMover/StorageMover.Autorest/generated/cmdlets/GetAzStorageMoverProject_List.cs b/generated/StorageMover/StorageMover.Autorest/generated/cmdlets/GetAzStorageMoverProject_List.cs index 86c02c207dfa..1b5e18c63d82 100644 --- a/generated/StorageMover/StorageMover.Autorest/generated/cmdlets/GetAzStorageMoverProject_List.cs +++ b/generated/StorageMover/StorageMover.Autorest/generated/cmdlets/GetAzStorageMoverProject_List.cs @@ -13,10 +13,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Cmdlets /// [OpenAPI] List=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageMover/storageMovers/{storageMoverName}/projects" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzStorageMoverProject_List")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IProject))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IProject))] [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Description(@"Lists all Projects in a Storage Mover.")] [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageMover/storageMovers/{storageMoverName}/projects", ApiVersion = "2024-07-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageMover/storageMovers/{storageMoverName}/projects", ApiVersion = "2025-07-01")] public partial class GetAzStorageMoverProject_List : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener { @@ -165,12 +165,12 @@ public partial class GetAzStorageMoverProject_List : global::System.Management.A /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IProjectList + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IProjectList /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -418,12 +418,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IProjectList + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IProjectList /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { diff --git a/generated/StorageMover/StorageMover.Autorest/generated/cmdlets/GetAzStorageMover_Get.cs b/generated/StorageMover/StorageMover.Autorest/generated/cmdlets/GetAzStorageMover_Get.cs index 65d0417707cc..c0cf305881ab 100644 --- a/generated/StorageMover/StorageMover.Autorest/generated/cmdlets/GetAzStorageMover_Get.cs +++ b/generated/StorageMover/StorageMover.Autorest/generated/cmdlets/GetAzStorageMover_Get.cs @@ -13,10 +13,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Cmdlets /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageMover/storageMovers/{storageMoverName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzStorageMover_Get")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IStorageMover))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IStorageMover))] [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Description(@"Gets a Storage Mover resource.")] [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageMover/storageMovers/{storageMoverName}", ApiVersion = "2024-07-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageMover/storageMovers/{storageMoverName}", ApiVersion = "2025-07-01")] public partial class GetAzStorageMover_Get : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener { @@ -160,12 +160,12 @@ public partial class GetAzStorageMover_Get : global::System.Management.Automatio /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IStorageMover + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IStorageMover /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -413,12 +413,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IStorageMover + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IStorageMover /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -430,7 +430,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IStorageMover + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IStorageMover WriteObject((await response)); } } diff --git a/generated/StorageMover/StorageMover.Autorest/generated/cmdlets/GetAzStorageMover_GetViaIdentity.cs b/generated/StorageMover/StorageMover.Autorest/generated/cmdlets/GetAzStorageMover_GetViaIdentity.cs index 165acbc6fa15..bab871c7d2aa 100644 --- a/generated/StorageMover/StorageMover.Autorest/generated/cmdlets/GetAzStorageMover_GetViaIdentity.cs +++ b/generated/StorageMover/StorageMover.Autorest/generated/cmdlets/GetAzStorageMover_GetViaIdentity.cs @@ -13,10 +13,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Cmdlets /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageMover/storageMovers/{storageMoverName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzStorageMover_GetViaIdentity")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IStorageMover))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IStorageMover))] [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Description(@"Gets a Storage Mover resource.")] [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageMover/storageMovers/{storageMoverName}", ApiVersion = "2024-07-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageMover/storageMovers/{storageMoverName}", ApiVersion = "2025-07-01")] public partial class GetAzStorageMover_GetViaIdentity : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener { @@ -121,12 +121,12 @@ public partial class GetAzStorageMover_GetViaIdentity : global::System.Managemen /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IStorageMover + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IStorageMover /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -391,12 +391,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IStorageMover + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IStorageMover /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -408,7 +408,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IStorageMover + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IStorageMover WriteObject((await response)); } } diff --git a/generated/StorageMover/StorageMover.Autorest/generated/cmdlets/GetAzStorageMover_List.cs b/generated/StorageMover/StorageMover.Autorest/generated/cmdlets/GetAzStorageMover_List.cs index 4c8c1c6fcaf4..f4e7e20844a9 100644 --- a/generated/StorageMover/StorageMover.Autorest/generated/cmdlets/GetAzStorageMover_List.cs +++ b/generated/StorageMover/StorageMover.Autorest/generated/cmdlets/GetAzStorageMover_List.cs @@ -13,10 +13,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Cmdlets /// [OpenAPI] ListBySubscription=>GET:"/subscriptions/{subscriptionId}/providers/Microsoft.StorageMover/storageMovers" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzStorageMover_List")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IStorageMover))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IStorageMover))] [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Description(@"Lists all Storage Movers in a subscription.")] [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.HttpPath(Path = "/subscriptions/{subscriptionId}/providers/Microsoft.StorageMover/storageMovers", ApiVersion = "2024-07-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.HttpPath(Path = "/subscriptions/{subscriptionId}/providers/Microsoft.StorageMover/storageMovers", ApiVersion = "2025-07-01")] public partial class GetAzStorageMover_List : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener { @@ -137,12 +137,12 @@ public partial class GetAzStorageMover_List : global::System.Management.Automati /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IStorageMoverList + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IStorageMoverList /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -390,12 +390,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IStorageMoverList + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IStorageMoverList /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { diff --git a/generated/StorageMover/StorageMover.Autorest/generated/cmdlets/GetAzStorageMover_List1.cs b/generated/StorageMover/StorageMover.Autorest/generated/cmdlets/GetAzStorageMover_List1.cs index 1121f354555d..6ea5fde13842 100644 --- a/generated/StorageMover/StorageMover.Autorest/generated/cmdlets/GetAzStorageMover_List1.cs +++ b/generated/StorageMover/StorageMover.Autorest/generated/cmdlets/GetAzStorageMover_List1.cs @@ -13,10 +13,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Cmdlets /// [OpenAPI] List=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageMover/storageMovers" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzStorageMover_List1")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IStorageMover))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IStorageMover))] [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Description(@"Lists all Storage Movers in a resource group.")] [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageMover/storageMovers", ApiVersion = "2024-07-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageMover/storageMovers", ApiVersion = "2025-07-01")] public partial class GetAzStorageMover_List1 : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener { @@ -151,12 +151,12 @@ public partial class GetAzStorageMover_List1 : global::System.Management.Automat /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IStorageMoverList + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IStorageMoverList /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -404,12 +404,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IStorageMoverList + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IStorageMoverList /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { diff --git a/generated/StorageMover/StorageMover.Autorest/generated/cmdlets/NewAzStorageMoverEndpoint_CreateExpanded.cs b/generated/StorageMover/StorageMover.Autorest/generated/cmdlets/NewAzStorageMoverEndpoint_CreateExpanded.cs index 1be608d56f1e..07bc400ec0d8 100644 --- a/generated/StorageMover/StorageMover.Autorest/generated/cmdlets/NewAzStorageMoverEndpoint_CreateExpanded.cs +++ b/generated/StorageMover/StorageMover.Autorest/generated/cmdlets/NewAzStorageMoverEndpoint_CreateExpanded.cs @@ -16,10 +16,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Cmdlets /// [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzStorageMoverEndpoint_CreateExpanded", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpoint))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpoint))] [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Description(@"Creates or updates an Endpoint resource, which represents a data transfer source or destination.")] [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageMover/storageMovers/{storageMoverName}/endpoints/{endpointName}", ApiVersion = "2024-07-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageMover/storageMovers/{storageMoverName}/endpoints/{endpointName}", ApiVersion = "2025-07-01")] public partial class NewAzStorageMoverEndpoint_CreateExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener { @@ -40,7 +40,7 @@ public partial class NewAzStorageMoverEndpoint_CreateExpanded : global::System.M /// /// The Endpoint resource, which contains information about file sources and targets. /// - private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpoint _endpointBody = new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.Endpoint(); + private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpoint _endpointBody = new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.Endpoint(); /// Wait for .NET debugger to attach [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] @@ -72,6 +72,36 @@ public partial class NewAzStorageMoverEndpoint_CreateExpanded : global::System.M [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category(global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.ParameterCategory.Runtime)] public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + /// + /// Type of managed service identity (where both SystemAssigned and UserAssigned types are allowed). + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Type of managed service identity (where both SystemAssigned and UserAssigned types are allowed).")] + [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category(global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Type of managed service identity (where both SystemAssigned and UserAssigned types are allowed).", + SerializedName = @"type", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ManagedServiceIdentityType) })] + [global::System.Management.Automation.ArgumentCompleter(typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ManagedServiceIdentityType))] + public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ManagedServiceIdentityType IdentityType { get => _endpointBody.IdentityType ?? ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ManagedServiceIdentityType)""); set => _endpointBody.IdentityType = value; } + + /// + /// The set of user assigned identities associated with the resource. The userAssignedIdentities dictionary keys will be ARM + /// resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}. + /// The dictionary values can be empty objects ({}) in requests. + /// + [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.ExportAs(typeof(global::System.Collections.Hashtable))] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The set of user assigned identities associated with the resource. The userAssignedIdentities dictionary keys will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}. The dictionary values can be empty objects ({}) in requests.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category(global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The set of user assigned identities associated with the resource. The userAssignedIdentities dictionary keys will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}. The dictionary values can be empty objects ({}) in requests.", + SerializedName = @"userAssignedIdentities", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IUserAssignedIdentities) })] + public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IUserAssignedIdentities IdentityUserAssignedIdentity { get => _endpointBody.IdentityUserAssignedIdentity ?? null /* object */; set => _endpointBody.IdentityUserAssignedIdentity = value; } + /// Accessor for our copy of the InvocationInfo. public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } @@ -111,8 +141,8 @@ public partial class NewAzStorageMoverEndpoint_CreateExpanded : global::System.M ReadOnly = false, Description = @"The resource specific properties for the Storage Mover resource.", SerializedName = @"properties", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpointBaseProperties) })] - public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpointBaseProperties Property { get => _endpointBody.Property ?? null /* object */; set => _endpointBody.Property = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBaseProperties) })] + public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBaseProperties Property { get => _endpointBody.Property ?? null /* object */; set => _endpointBody.Property = value; } /// The URI for the proxy server to use [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] @@ -193,12 +223,12 @@ public partial class NewAzStorageMoverEndpoint_CreateExpanded : global::System.M /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpoint + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpoint /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -446,12 +476,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpoint + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpoint /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -463,7 +493,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpoint + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpoint WriteObject((await response)); } } diff --git a/generated/StorageMover/StorageMover.Autorest/generated/cmdlets/NewAzStorageMoverJobDefinition_Create.cs b/generated/StorageMover/StorageMover.Autorest/generated/cmdlets/NewAzStorageMoverJobDefinition_Create.cs index 802bfd3c985a..e88b0f2a5bef 100644 --- a/generated/StorageMover/StorageMover.Autorest/generated/cmdlets/NewAzStorageMoverJobDefinition_Create.cs +++ b/generated/StorageMover/StorageMover.Autorest/generated/cmdlets/NewAzStorageMoverJobDefinition_Create.cs @@ -16,10 +16,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Cmdlets /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzStorageMoverJobDefinition_Create", SupportsShouldProcess = true)] [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ParameterSetBreakingChange(new string[] {"Create"}, "15.0.0", "2.0.0", "2025/11/03", ChangeDescription="The parameter set Create will be removed. Suggest to use CreateExpanded and CreateViaJsonString instead.")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinition))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinition))] [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Description(@"Creates or updates a Job Definition resource, which contains configuration for a single unit of managed data transfer.")] [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageMover/storageMovers/{storageMoverName}/projects/{projectName}/jobDefinitions/{jobDefinitionName}", ApiVersion = "2024-07-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageMover/storageMovers/{storageMoverName}/projects/{projectName}/jobDefinitions/{jobDefinitionName}", ApiVersion = "2025-07-01")] public partial class NewAzStorageMoverJobDefinition_Create : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener { @@ -71,7 +71,7 @@ public partial class NewAzStorageMoverJobDefinition_Create : global::System.Mana public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinition _jobDefinition; + private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinition _jobDefinition; /// The Job Definition resource. [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The Job Definition resource.", ValueFromPipeline = true)] @@ -80,8 +80,8 @@ public partial class NewAzStorageMoverJobDefinition_Create : global::System.Mana ReadOnly = false, Description = @"The Job Definition resource.", SerializedName = @"jobDefinition", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinition) })] - public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinition JobDefinition { get => this._jobDefinition; set => this._jobDefinition = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinition) })] + public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinition JobDefinition { get => this._jobDefinition; set => this._jobDefinition = value; } /// /// cancellation delegate. Stops the cmdlet when called. @@ -204,12 +204,12 @@ public partial class NewAzStorageMoverJobDefinition_Create : global::System.Mana /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinition + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinition /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -457,12 +457,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinition + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinition /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -474,7 +474,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinition + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinition WriteObject((await response)); } } diff --git a/generated/StorageMover/StorageMover.Autorest/generated/cmdlets/NewAzStorageMoverJobDefinition_CreateExpanded.cs b/generated/StorageMover/StorageMover.Autorest/generated/cmdlets/NewAzStorageMoverJobDefinition_CreateExpanded.cs index 39199a3bb572..f59aa9dd49da 100644 --- a/generated/StorageMover/StorageMover.Autorest/generated/cmdlets/NewAzStorageMoverJobDefinition_CreateExpanded.cs +++ b/generated/StorageMover/StorageMover.Autorest/generated/cmdlets/NewAzStorageMoverJobDefinition_CreateExpanded.cs @@ -15,10 +15,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Cmdlets /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageMover/storageMovers/{storageMoverName}/projects/{projectName}/jobDefinitions/{jobDefinitionName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzStorageMoverJobDefinition_CreateExpanded", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinition))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinition))] [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Description(@"Creates or updates a Job Definition resource, which contains configuration for a single unit of managed data transfer.")] [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageMover/storageMovers/{storageMoverName}/projects/{projectName}/jobDefinitions/{jobDefinitionName}", ApiVersion = "2024-07-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageMover/storageMovers/{storageMoverName}/projects/{projectName}/jobDefinitions/{jobDefinitionName}", ApiVersion = "2025-07-01")] public partial class NewAzStorageMoverJobDefinition_CreateExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener { @@ -37,7 +37,7 @@ public partial class NewAzStorageMoverJobDefinition_CreateExpanded : global::Sys private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); /// The Job Definition resource. - private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinition _jobDefinitionBody = new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.JobDefinition(); + private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinition _jobDefinitionBody = new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.JobDefinition(); /// Name of the Agent to assign for new Job Runs of this Job Definition. [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Name of the Agent to assign for new Job Runs of this Job Definition.")] @@ -80,13 +80,16 @@ public partial class NewAzStorageMoverJobDefinition_CreateExpanded : global::Sys [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category(global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.ParameterCategory.Azure)] public global::System.Management.Automation.PSObject DefaultProfile { get; set; } - /// A description for the Job Definition. - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "A description for the Job Definition.")] + /// + /// A description for the Job Definition. OnPremToCloud is for migrating data from on-premises to cloud. CloudToCloud is for + /// migrating data between cloud to cloud. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "A description for the Job Definition. OnPremToCloud is for migrating data from on-premises to cloud. CloudToCloud is for migrating data between cloud to cloud.")] [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category(global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.ParameterCategory.Body)] [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Info( Required = false, ReadOnly = false, - Description = @"A description for the Job Definition.", + Description = @"A description for the Job Definition. OnPremToCloud is for migrating data from on-premises to cloud. CloudToCloud is for migrating data between cloud to cloud.", SerializedName = @"description", PossibleTypes = new [] { typeof(string) })] public string Description { get => _jobDefinitionBody.Description ?? null; set => _jobDefinitionBody.Description = value; } @@ -106,6 +109,18 @@ public partial class NewAzStorageMoverJobDefinition_CreateExpanded : global::Sys /// Accessor for our copy of the InvocationInfo. public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + /// The type of the Job. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The type of the Job.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category(global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The type of the Job.", + SerializedName = @"jobType", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.JobType) })] + [global::System.Management.Automation.ArgumentCompleter(typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.JobType))] + public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.JobType JobType { get => _jobDefinitionBody.JobType ?? ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.JobType)""); set => _jobDefinitionBody.JobType = value; } + /// /// cancellation delegate. Stops the cmdlet when called. /// @@ -271,12 +286,12 @@ public partial class NewAzStorageMoverJobDefinition_CreateExpanded : global::Sys /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinition + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinition /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -524,12 +539,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinition + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinition /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -541,7 +556,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinition + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinition WriteObject((await response)); } } diff --git a/generated/StorageMover/StorageMover.Autorest/generated/cmdlets/NewAzStorageMoverProject_Create.cs b/generated/StorageMover/StorageMover.Autorest/generated/cmdlets/NewAzStorageMoverProject_Create.cs index 0b873a050ab6..485b89fefe4c 100644 --- a/generated/StorageMover/StorageMover.Autorest/generated/cmdlets/NewAzStorageMoverProject_Create.cs +++ b/generated/StorageMover/StorageMover.Autorest/generated/cmdlets/NewAzStorageMoverProject_Create.cs @@ -16,10 +16,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Cmdlets /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzStorageMoverProject_Create", SupportsShouldProcess = true)] [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ParameterSetBreakingChange(new string[] {"Create"}, "15.0.0", "2.0.0", "2025/11/03", ChangeDescription="The parameter set Create will be removed. Suggest to use CreateExpanded and CreateViaJsonString instead.")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IProject))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IProject))] [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Description(@"Creates or updates a Project resource, which is a logical grouping of related jobs.")] [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageMover/storageMovers/{storageMoverName}/projects/{projectName}", ApiVersion = "2024-07-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageMover/storageMovers/{storageMoverName}/projects/{projectName}", ApiVersion = "2025-07-01")] public partial class NewAzStorageMoverProject_Create : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener { @@ -99,7 +99,7 @@ public partial class NewAzStorageMoverProject_Create : global::System.Management private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.HttpPipeline Pipeline { get; set; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IProject _project; + private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IProject _project; /// The Project resource. [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The Project resource.", ValueFromPipeline = true)] @@ -108,8 +108,8 @@ public partial class NewAzStorageMoverProject_Create : global::System.Management ReadOnly = false, Description = @"The Project resource.", SerializedName = @"project", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IProject) })] - public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IProject Project { get => this._project; set => this._project = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IProject) })] + public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IProject Project { get => this._project; set => this._project = value; } /// The URI for the proxy server to use [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] @@ -190,12 +190,12 @@ public partial class NewAzStorageMoverProject_Create : global::System.Management /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IProject + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IProject /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -443,12 +443,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IProject + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IProject /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -460,7 +460,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IProject + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IProject WriteObject((await response)); } } diff --git a/generated/StorageMover/StorageMover.Autorest/generated/cmdlets/NewAzStorageMoverProject_CreateExpanded.cs b/generated/StorageMover/StorageMover.Autorest/generated/cmdlets/NewAzStorageMoverProject_CreateExpanded.cs index 9b7270ce3b69..ba6103ee1a1a 100644 --- a/generated/StorageMover/StorageMover.Autorest/generated/cmdlets/NewAzStorageMoverProject_CreateExpanded.cs +++ b/generated/StorageMover/StorageMover.Autorest/generated/cmdlets/NewAzStorageMoverProject_CreateExpanded.cs @@ -15,10 +15,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Cmdlets /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageMover/storageMovers/{storageMoverName}/projects/{projectName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzStorageMoverProject_CreateExpanded", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IProject))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IProject))] [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Description(@"Creates or updates a Project resource, which is a logical grouping of related jobs.")] [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageMover/storageMovers/{storageMoverName}/projects/{projectName}", ApiVersion = "2024-07-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageMover/storageMovers/{storageMoverName}/projects/{projectName}", ApiVersion = "2025-07-01")] public partial class NewAzStorageMoverProject_CreateExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener { @@ -37,7 +37,7 @@ public partial class NewAzStorageMoverProject_CreateExpanded : global::System.Ma private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); /// The Project resource. - private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IProject _projectBody = new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.Project(); + private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IProject _projectBody = new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.Project(); /// Wait for .NET debugger to attach [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] @@ -190,12 +190,12 @@ public partial class NewAzStorageMoverProject_CreateExpanded : global::System.Ma /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IProject + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IProject /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -443,12 +443,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IProject + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IProject /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -460,7 +460,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IProject + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IProject WriteObject((await response)); } } diff --git a/generated/StorageMover/StorageMover.Autorest/generated/cmdlets/NewAzStorageMover_Create.cs b/generated/StorageMover/StorageMover.Autorest/generated/cmdlets/NewAzStorageMover_Create.cs index 9773c8bc8227..0642974ee108 100644 --- a/generated/StorageMover/StorageMover.Autorest/generated/cmdlets/NewAzStorageMover_Create.cs +++ b/generated/StorageMover/StorageMover.Autorest/generated/cmdlets/NewAzStorageMover_Create.cs @@ -13,10 +13,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Cmdlets /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageMover/storageMovers/{storageMoverName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzStorageMover_Create", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IStorageMover))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IStorageMover))] [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Description(@"Creates or updates a top-level Storage Mover resource.")] [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageMover/storageMovers/{storageMoverName}", ApiVersion = "2024-07-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageMover/storageMovers/{storageMoverName}", ApiVersion = "2025-07-01")] public partial class NewAzStorageMover_Create : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener { @@ -126,7 +126,7 @@ public partial class NewAzStorageMover_Create : global::System.Management.Automa public string ResourceGroupName { get => this._resourceGroupName; set => this._resourceGroupName = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IStorageMover _storageMover; + private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IStorageMover _storageMover; /// /// The Storage Mover resource, which is a container for a group of Agents, Projects, and Endpoints. @@ -137,8 +137,8 @@ public partial class NewAzStorageMover_Create : global::System.Management.Automa ReadOnly = false, Description = @"The Storage Mover resource, which is a container for a group of Agents, Projects, and Endpoints.", SerializedName = @"storageMover", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IStorageMover) })] - public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IStorageMover StorageMover { get => this._storageMover; set => this._storageMover = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IStorageMover) })] + public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IStorageMover StorageMover { get => this._storageMover; set => this._storageMover = value; } /// Backing field for property. private string _subscriptionId; @@ -175,12 +175,12 @@ public partial class NewAzStorageMover_Create : global::System.Management.Automa /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IStorageMover + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IStorageMover /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -428,12 +428,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IStorageMover + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IStorageMover /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -445,7 +445,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IStorageMover + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IStorageMover WriteObject((await response)); } } diff --git a/generated/StorageMover/StorageMover.Autorest/generated/cmdlets/NewAzStorageMover_CreateExpanded.cs b/generated/StorageMover/StorageMover.Autorest/generated/cmdlets/NewAzStorageMover_CreateExpanded.cs index 20fd2be36a28..5b157a1f0b76 100644 --- a/generated/StorageMover/StorageMover.Autorest/generated/cmdlets/NewAzStorageMover_CreateExpanded.cs +++ b/generated/StorageMover/StorageMover.Autorest/generated/cmdlets/NewAzStorageMover_CreateExpanded.cs @@ -13,10 +13,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Cmdlets /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageMover/storageMovers/{storageMoverName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzStorageMover_CreateExpanded", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IStorageMover))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IStorageMover))] [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Description(@"Creates or updates a top-level Storage Mover resource.")] [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageMover/storageMovers/{storageMoverName}", ApiVersion = "2024-07-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageMover/storageMovers/{storageMoverName}", ApiVersion = "2025-07-01")] public partial class NewAzStorageMover_CreateExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener { @@ -37,7 +37,7 @@ public partial class NewAzStorageMover_CreateExpanded : global::System.Managemen /// /// The Storage Mover resource, which is a container for a group of Agents, Projects, and Endpoints. /// - private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IStorageMover _storageMoverBody = new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.StorageMover(); + private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IStorageMover _storageMoverBody = new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.StorageMover(); /// Wait for .NET debugger to attach [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] @@ -199,12 +199,12 @@ public partial class NewAzStorageMover_CreateExpanded : global::System.Managemen /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IStorageMover + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IStorageMover /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -452,12 +452,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IStorageMover + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IStorageMover /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -469,7 +469,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IStorageMover + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IStorageMover WriteObject((await response)); } } diff --git a/generated/StorageMover/StorageMover.Autorest/generated/cmdlets/RemoveAzStorageMoverAgent_Delete.cs b/generated/StorageMover/StorageMover.Autorest/generated/cmdlets/RemoveAzStorageMoverAgent_Delete.cs index 80c2df685529..a3c7e5e6274f 100644 --- a/generated/StorageMover/StorageMover.Autorest/generated/cmdlets/RemoveAzStorageMoverAgent_Delete.cs +++ b/generated/StorageMover/StorageMover.Autorest/generated/cmdlets/RemoveAzStorageMoverAgent_Delete.cs @@ -17,7 +17,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Cmdlets [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Description(@"Deletes an Agent resource.")] [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageMover/storageMovers/{storageMoverName}/agents/{agentName}", ApiVersion = "2024-07-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageMover/storageMovers/{storageMoverName}/agents/{agentName}", ApiVersion = "2025-07-01")] public partial class RemoveAzStorageMoverAgent_Delete : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener { diff --git a/generated/StorageMover/StorageMover.Autorest/generated/cmdlets/RemoveAzStorageMoverAgent_DeleteViaIdentity.cs b/generated/StorageMover/StorageMover.Autorest/generated/cmdlets/RemoveAzStorageMoverAgent_DeleteViaIdentity.cs index a2737f34bdb0..683d2189348f 100644 --- a/generated/StorageMover/StorageMover.Autorest/generated/cmdlets/RemoveAzStorageMoverAgent_DeleteViaIdentity.cs +++ b/generated/StorageMover/StorageMover.Autorest/generated/cmdlets/RemoveAzStorageMoverAgent_DeleteViaIdentity.cs @@ -17,7 +17,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Cmdlets [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Description(@"Deletes an Agent resource.")] [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageMover/storageMovers/{storageMoverName}/agents/{agentName}", ApiVersion = "2024-07-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageMover/storageMovers/{storageMoverName}/agents/{agentName}", ApiVersion = "2025-07-01")] public partial class RemoveAzStorageMoverAgent_DeleteViaIdentity : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener { diff --git a/generated/StorageMover/StorageMover.Autorest/generated/cmdlets/RemoveAzStorageMoverEndpoint_Delete.cs b/generated/StorageMover/StorageMover.Autorest/generated/cmdlets/RemoveAzStorageMoverEndpoint_Delete.cs index fdb0c1631a6e..77672ccdc54d 100644 --- a/generated/StorageMover/StorageMover.Autorest/generated/cmdlets/RemoveAzStorageMoverEndpoint_Delete.cs +++ b/generated/StorageMover/StorageMover.Autorest/generated/cmdlets/RemoveAzStorageMoverEndpoint_Delete.cs @@ -16,7 +16,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Cmdlets [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Description(@"Deletes an Endpoint resource.")] [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageMover/storageMovers/{storageMoverName}/endpoints/{endpointName}", ApiVersion = "2024-07-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageMover/storageMovers/{storageMoverName}/endpoints/{endpointName}", ApiVersion = "2025-07-01")] public partial class RemoveAzStorageMoverEndpoint_Delete : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener { diff --git a/generated/StorageMover/StorageMover.Autorest/generated/cmdlets/RemoveAzStorageMoverEndpoint_DeleteViaIdentity.cs b/generated/StorageMover/StorageMover.Autorest/generated/cmdlets/RemoveAzStorageMoverEndpoint_DeleteViaIdentity.cs index 59e9485f3468..46040fd6e8b2 100644 --- a/generated/StorageMover/StorageMover.Autorest/generated/cmdlets/RemoveAzStorageMoverEndpoint_DeleteViaIdentity.cs +++ b/generated/StorageMover/StorageMover.Autorest/generated/cmdlets/RemoveAzStorageMoverEndpoint_DeleteViaIdentity.cs @@ -16,7 +16,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Cmdlets [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Description(@"Deletes an Endpoint resource.")] [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageMover/storageMovers/{storageMoverName}/endpoints/{endpointName}", ApiVersion = "2024-07-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageMover/storageMovers/{storageMoverName}/endpoints/{endpointName}", ApiVersion = "2025-07-01")] public partial class RemoveAzStorageMoverEndpoint_DeleteViaIdentity : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener { diff --git a/generated/StorageMover/StorageMover.Autorest/generated/cmdlets/RemoveAzStorageMoverJobDefinition_Delete.cs b/generated/StorageMover/StorageMover.Autorest/generated/cmdlets/RemoveAzStorageMoverJobDefinition_Delete.cs index c7900e374409..822b0408ee52 100644 --- a/generated/StorageMover/StorageMover.Autorest/generated/cmdlets/RemoveAzStorageMoverJobDefinition_Delete.cs +++ b/generated/StorageMover/StorageMover.Autorest/generated/cmdlets/RemoveAzStorageMoverJobDefinition_Delete.cs @@ -16,7 +16,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Cmdlets [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Description(@"Deletes a Job Definition resource.")] [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageMover/storageMovers/{storageMoverName}/projects/{projectName}/jobDefinitions/{jobDefinitionName}", ApiVersion = "2024-07-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageMover/storageMovers/{storageMoverName}/projects/{projectName}/jobDefinitions/{jobDefinitionName}", ApiVersion = "2025-07-01")] public partial class RemoveAzStorageMoverJobDefinition_Delete : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener { diff --git a/generated/StorageMover/StorageMover.Autorest/generated/cmdlets/RemoveAzStorageMoverJobDefinition_DeleteViaIdentity.cs b/generated/StorageMover/StorageMover.Autorest/generated/cmdlets/RemoveAzStorageMoverJobDefinition_DeleteViaIdentity.cs index fbd52481b5c0..5933792a0a34 100644 --- a/generated/StorageMover/StorageMover.Autorest/generated/cmdlets/RemoveAzStorageMoverJobDefinition_DeleteViaIdentity.cs +++ b/generated/StorageMover/StorageMover.Autorest/generated/cmdlets/RemoveAzStorageMoverJobDefinition_DeleteViaIdentity.cs @@ -16,7 +16,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Cmdlets [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Description(@"Deletes a Job Definition resource.")] [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageMover/storageMovers/{storageMoverName}/projects/{projectName}/jobDefinitions/{jobDefinitionName}", ApiVersion = "2024-07-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageMover/storageMovers/{storageMoverName}/projects/{projectName}/jobDefinitions/{jobDefinitionName}", ApiVersion = "2025-07-01")] public partial class RemoveAzStorageMoverJobDefinition_DeleteViaIdentity : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener { diff --git a/generated/StorageMover/StorageMover.Autorest/generated/cmdlets/RemoveAzStorageMoverProject_Delete.cs b/generated/StorageMover/StorageMover.Autorest/generated/cmdlets/RemoveAzStorageMoverProject_Delete.cs index 3ea7ce3e4738..e59d9b32b719 100644 --- a/generated/StorageMover/StorageMover.Autorest/generated/cmdlets/RemoveAzStorageMoverProject_Delete.cs +++ b/generated/StorageMover/StorageMover.Autorest/generated/cmdlets/RemoveAzStorageMoverProject_Delete.cs @@ -16,7 +16,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Cmdlets [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Description(@"Deletes a Project resource.")] [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageMover/storageMovers/{storageMoverName}/projects/{projectName}", ApiVersion = "2024-07-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageMover/storageMovers/{storageMoverName}/projects/{projectName}", ApiVersion = "2025-07-01")] public partial class RemoveAzStorageMoverProject_Delete : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener { diff --git a/generated/StorageMover/StorageMover.Autorest/generated/cmdlets/RemoveAzStorageMoverProject_DeleteViaIdentity.cs b/generated/StorageMover/StorageMover.Autorest/generated/cmdlets/RemoveAzStorageMoverProject_DeleteViaIdentity.cs index ab8efc8e3e42..05af58e85cfe 100644 --- a/generated/StorageMover/StorageMover.Autorest/generated/cmdlets/RemoveAzStorageMoverProject_DeleteViaIdentity.cs +++ b/generated/StorageMover/StorageMover.Autorest/generated/cmdlets/RemoveAzStorageMoverProject_DeleteViaIdentity.cs @@ -16,7 +16,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Cmdlets [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Description(@"Deletes a Project resource.")] [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageMover/storageMovers/{storageMoverName}/projects/{projectName}", ApiVersion = "2024-07-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageMover/storageMovers/{storageMoverName}/projects/{projectName}", ApiVersion = "2025-07-01")] public partial class RemoveAzStorageMoverProject_DeleteViaIdentity : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener { diff --git a/generated/StorageMover/StorageMover.Autorest/generated/cmdlets/RemoveAzStorageMover_Delete.cs b/generated/StorageMover/StorageMover.Autorest/generated/cmdlets/RemoveAzStorageMover_Delete.cs index 423ee4ff10d7..e83566ea009f 100644 --- a/generated/StorageMover/StorageMover.Autorest/generated/cmdlets/RemoveAzStorageMover_Delete.cs +++ b/generated/StorageMover/StorageMover.Autorest/generated/cmdlets/RemoveAzStorageMover_Delete.cs @@ -17,7 +17,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Cmdlets [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Description(@"Deletes a Storage Mover resource.")] [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageMover/storageMovers/{storageMoverName}", ApiVersion = "2024-07-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageMover/storageMovers/{storageMoverName}", ApiVersion = "2025-07-01")] public partial class RemoveAzStorageMover_Delete : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener { diff --git a/generated/StorageMover/StorageMover.Autorest/generated/cmdlets/RemoveAzStorageMover_DeleteViaIdentity.cs b/generated/StorageMover/StorageMover.Autorest/generated/cmdlets/RemoveAzStorageMover_DeleteViaIdentity.cs index a3ffab8a4bd6..97a75ed8d1dd 100644 --- a/generated/StorageMover/StorageMover.Autorest/generated/cmdlets/RemoveAzStorageMover_DeleteViaIdentity.cs +++ b/generated/StorageMover/StorageMover.Autorest/generated/cmdlets/RemoveAzStorageMover_DeleteViaIdentity.cs @@ -17,7 +17,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Cmdlets [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Description(@"Deletes a Storage Mover resource.")] [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageMover/storageMovers/{storageMoverName}", ApiVersion = "2024-07-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageMover/storageMovers/{storageMoverName}", ApiVersion = "2025-07-01")] public partial class RemoveAzStorageMover_DeleteViaIdentity : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener { diff --git a/generated/StorageMover/StorageMover.Autorest/generated/cmdlets/StartAzStorageMoverJobDefinition_Start.cs b/generated/StorageMover/StorageMover.Autorest/generated/cmdlets/StartAzStorageMoverJobDefinition_Start.cs index 77c0b2a7bf9b..0812652f7eae 100644 --- a/generated/StorageMover/StorageMover.Autorest/generated/cmdlets/StartAzStorageMoverJobDefinition_Start.cs +++ b/generated/StorageMover/StorageMover.Autorest/generated/cmdlets/StartAzStorageMoverJobDefinition_Start.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Cmdlets [global::System.Management.Automation.OutputType(typeof(string))] [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Description(@"Creates a new Job Run resource for the specified Job Definition and passes it to the Agent for execution.")] [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageMover/storageMovers/{storageMoverName}/projects/{projectName}/jobDefinitions/{jobDefinitionName}/startJob", ApiVersion = "2024-07-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageMover/storageMovers/{storageMoverName}/projects/{projectName}/jobDefinitions/{jobDefinitionName}/startJob", ApiVersion = "2025-07-01")] public partial class StartAzStorageMoverJobDefinition_Start : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener { @@ -189,12 +189,12 @@ public partial class StartAzStorageMoverJobDefinition_Start : global::System.Man /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunResourceId + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunResourceId /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -442,12 +442,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunResourceId + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunResourceId /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -459,7 +459,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunResourceId + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunResourceId WriteObject((await response).JobRunResourceId1); } } diff --git a/generated/StorageMover/StorageMover.Autorest/generated/cmdlets/StartAzStorageMoverJobDefinition_StartViaIdentity.cs b/generated/StorageMover/StorageMover.Autorest/generated/cmdlets/StartAzStorageMoverJobDefinition_StartViaIdentity.cs index 61da6104bf5f..9f0700e0024c 100644 --- a/generated/StorageMover/StorageMover.Autorest/generated/cmdlets/StartAzStorageMoverJobDefinition_StartViaIdentity.cs +++ b/generated/StorageMover/StorageMover.Autorest/generated/cmdlets/StartAzStorageMoverJobDefinition_StartViaIdentity.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Cmdlets [global::System.Management.Automation.OutputType(typeof(string))] [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Description(@"Creates a new Job Run resource for the specified Job Definition and passes it to the Agent for execution.")] [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageMover/storageMovers/{storageMoverName}/projects/{projectName}/jobDefinitions/{jobDefinitionName}/startJob", ApiVersion = "2024-07-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageMover/storageMovers/{storageMoverName}/projects/{projectName}/jobDefinitions/{jobDefinitionName}/startJob", ApiVersion = "2025-07-01")] public partial class StartAzStorageMoverJobDefinition_StartViaIdentity : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener { @@ -123,12 +123,12 @@ public partial class StartAzStorageMoverJobDefinition_StartViaIdentity : global: /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunResourceId + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunResourceId /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -404,12 +404,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunResourceId + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunResourceId /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -421,7 +421,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunResourceId + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunResourceId WriteObject((await response).JobRunResourceId1); } } diff --git a/generated/StorageMover/StorageMover.Autorest/generated/cmdlets/StopAzStorageMoverJobDefinition_Stop.cs b/generated/StorageMover/StorageMover.Autorest/generated/cmdlets/StopAzStorageMoverJobDefinition_Stop.cs index 3c948c5f44c4..63717c340e30 100644 --- a/generated/StorageMover/StorageMover.Autorest/generated/cmdlets/StopAzStorageMoverJobDefinition_Stop.cs +++ b/generated/StorageMover/StorageMover.Autorest/generated/cmdlets/StopAzStorageMoverJobDefinition_Stop.cs @@ -16,7 +16,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Cmdlets [global::System.Management.Automation.OutputType(typeof(string))] [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Description(@"Requests the Agent of any active instance of this Job Definition to stop.")] [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageMover/storageMovers/{storageMoverName}/projects/{projectName}/jobDefinitions/{jobDefinitionName}/stopJob", ApiVersion = "2024-07-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageMover/storageMovers/{storageMoverName}/projects/{projectName}/jobDefinitions/{jobDefinitionName}/stopJob", ApiVersion = "2025-07-01")] public partial class StopAzStorageMoverJobDefinition_Stop : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener { @@ -187,12 +187,12 @@ public partial class StopAzStorageMoverJobDefinition_Stop : global::System.Manag /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunResourceId + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunResourceId /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -440,12 +440,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunResourceId + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunResourceId /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -457,7 +457,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunResourceId + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunResourceId WriteObject((await response).JobRunResourceId1); } } diff --git a/generated/StorageMover/StorageMover.Autorest/generated/cmdlets/StopAzStorageMoverJobDefinition_StopViaIdentity.cs b/generated/StorageMover/StorageMover.Autorest/generated/cmdlets/StopAzStorageMoverJobDefinition_StopViaIdentity.cs index 5d641171c2c8..0dca50aece03 100644 --- a/generated/StorageMover/StorageMover.Autorest/generated/cmdlets/StopAzStorageMoverJobDefinition_StopViaIdentity.cs +++ b/generated/StorageMover/StorageMover.Autorest/generated/cmdlets/StopAzStorageMoverJobDefinition_StopViaIdentity.cs @@ -16,7 +16,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Cmdlets [global::System.Management.Automation.OutputType(typeof(string))] [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Description(@"Requests the Agent of any active instance of this Job Definition to stop.")] [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageMover/storageMovers/{storageMoverName}/projects/{projectName}/jobDefinitions/{jobDefinitionName}/stopJob", ApiVersion = "2024-07-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageMover/storageMovers/{storageMoverName}/projects/{projectName}/jobDefinitions/{jobDefinitionName}/stopJob", ApiVersion = "2025-07-01")] public partial class StopAzStorageMoverJobDefinition_StopViaIdentity : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener { @@ -121,12 +121,12 @@ public partial class StopAzStorageMoverJobDefinition_StopViaIdentity : global::S /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunResourceId + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunResourceId /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -402,12 +402,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunResourceId + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunResourceId /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -419,7 +419,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobRunResourceId + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobRunResourceId WriteObject((await response).JobRunResourceId1); } } diff --git a/generated/StorageMover/StorageMover.Autorest/generated/cmdlets/UpdateAzStorageMoverAgent_Update.cs b/generated/StorageMover/StorageMover.Autorest/generated/cmdlets/UpdateAzStorageMoverAgent_Update.cs index 48b609297c9d..cffd7e5babb1 100644 --- a/generated/StorageMover/StorageMover.Autorest/generated/cmdlets/UpdateAzStorageMoverAgent_Update.cs +++ b/generated/StorageMover/StorageMover.Autorest/generated/cmdlets/UpdateAzStorageMoverAgent_Update.cs @@ -14,11 +14,11 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Cmdlets /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzStorageMoverAgent_Update", SupportsShouldProcess = true)] [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ParameterSetBreakingChange(new string[] {"Update"}, "15.0.0", "2.0.0", "2025/11/03", ChangeDescription="The parameter set Update and UpdateViaIdentity will be removed. Suggest to use UpdateExpanded, UpdateViaIdentityExpanded and UpdateViaJsonString instead.")] - [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.OutputBreakingChange("Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgent", "15.0.0", "2.0.0", "2025/11/03", DeprecatedOutputProperties=new string[] {"UploadLimitScheduleWeeklyRecurrence"}, NewOutputProperties=new string[] {"UploadLimitScheduleWeeklyRecurrence"}, ChangeDescription="The type of the property UploadLimitScheduleWeeklyRecurrence will be changed from fixed array to 'List'.")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgent))] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.OutputBreakingChange("Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgent", "15.0.0", "2.0.0", "2025/11/03", DeprecatedOutputProperties=new string[] {"UploadLimitScheduleWeeklyRecurrence"}, NewOutputProperties=new string[] {"UploadLimitScheduleWeeklyRecurrence"}, ChangeDescription="The type of the property UploadLimitScheduleWeeklyRecurrence will be changed from fixed array to 'List'.")] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgent))] [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Description(@"Creates or updates an Agent resource.")] [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageMover/storageMovers/{storageMoverName}/agents/{agentName}", ApiVersion = "2024-07-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageMover/storageMovers/{storageMoverName}/agents/{agentName}", ApiVersion = "2025-07-01")] public partial class UpdateAzStorageMoverAgent_Update : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener { @@ -37,7 +37,7 @@ public partial class UpdateAzStorageMoverAgent_Update : global::System.Managemen private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentUpdateParameters _agent; + private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentUpdateParameters _agent; /// The Agent resource. [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The Agent resource.", ValueFromPipeline = true)] @@ -46,8 +46,8 @@ public partial class UpdateAzStorageMoverAgent_Update : global::System.Managemen ReadOnly = false, Description = @"The Agent resource.", SerializedName = @"agent", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentUpdateParameters) })] - public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentUpdateParameters Agent { get => this._agent; set => this._agent = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentUpdateParameters) })] + public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentUpdateParameters Agent { get => this._agent; set => this._agent = value; } /// Wait for .NET debugger to attach [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] @@ -189,12 +189,12 @@ public partial class UpdateAzStorageMoverAgent_Update : global::System.Managemen /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgent + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgent /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -442,12 +442,12 @@ public UpdateAzStorageMoverAgent_Update() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgent + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgent /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -459,7 +459,7 @@ public UpdateAzStorageMoverAgent_Update() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgent + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgent WriteObject((await response)); } } diff --git a/generated/StorageMover/StorageMover.Autorest/generated/cmdlets/UpdateAzStorageMoverAgent_UpdateExpanded.cs b/generated/StorageMover/StorageMover.Autorest/generated/cmdlets/UpdateAzStorageMoverAgent_UpdateExpanded.cs index ef4c6f07b2c7..866ee8ed0409 100644 --- a/generated/StorageMover/StorageMover.Autorest/generated/cmdlets/UpdateAzStorageMoverAgent_UpdateExpanded.cs +++ b/generated/StorageMover/StorageMover.Autorest/generated/cmdlets/UpdateAzStorageMoverAgent_UpdateExpanded.cs @@ -13,11 +13,11 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Cmdlets /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageMover/storageMovers/{storageMoverName}/agents/{agentName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzStorageMoverAgent_UpdateExpanded", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.OutputBreakingChange("Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgent", "15.0.0", "2.0.0", "2025/11/03", DeprecatedOutputProperties=new string[] {"UploadLimitScheduleWeeklyRecurrence"}, NewOutputProperties=new string[] {"UploadLimitScheduleWeeklyRecurrence"}, ChangeDescription="The type of the property UploadLimitScheduleWeeklyRecurrence will be changed from fixed array to 'List'.")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgent))] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.OutputBreakingChange("Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgent", "15.0.0", "2.0.0", "2025/11/03", DeprecatedOutputProperties=new string[] {"UploadLimitScheduleWeeklyRecurrence"}, NewOutputProperties=new string[] {"UploadLimitScheduleWeeklyRecurrence"}, ChangeDescription="The type of the property UploadLimitScheduleWeeklyRecurrence will be changed from fixed array to 'List'.")] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgent))] [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Description(@"Creates or updates an Agent resource.")] [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageMover/storageMovers/{storageMoverName}/agents/{agentName}", ApiVersion = "2024-07-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageMover/storageMovers/{storageMoverName}/agents/{agentName}", ApiVersion = "2025-07-01")] public partial class UpdateAzStorageMoverAgent_UpdateExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener { @@ -31,7 +31,7 @@ public partial class UpdateAzStorageMoverAgent_UpdateExpanded : global::System.M private string __processRecordId; /// The Agent resource. - private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentUpdateParameters _agentBody = new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.AgentUpdateParameters(); + private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentUpdateParameters _agentBody = new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.AgentUpdateParameters(); /// /// The for this operation. @@ -181,8 +181,8 @@ public partial class UpdateAzStorageMoverAgent_UpdateExpanded : global::System.M ReadOnly = false, Description = @"The set of weekly repeating recurrences of the WAN-link upload limit schedule.", SerializedName = @"weeklyRecurrences", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IUploadLimitWeeklyRecurrence) })] - public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IUploadLimitWeeklyRecurrence[] UploadLimitScheduleWeeklyRecurrence { get => _agentBody.UploadLimitScheduleWeeklyRecurrence ?? null /* arrayOf */; set => _agentBody.UploadLimitScheduleWeeklyRecurrence = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IUploadLimitWeeklyRecurrence) })] + public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IUploadLimitWeeklyRecurrence[] UploadLimitScheduleWeeklyRecurrence { get => _agentBody.UploadLimitScheduleWeeklyRecurrence ?? null /* arrayOf */; set => _agentBody.UploadLimitScheduleWeeklyRecurrence = value; } /// /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what @@ -201,12 +201,12 @@ public partial class UpdateAzStorageMoverAgent_UpdateExpanded : global::System.M /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgent + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgent /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -454,12 +454,12 @@ public UpdateAzStorageMoverAgent_UpdateExpanded() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgent + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgent /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -471,7 +471,7 @@ public UpdateAzStorageMoverAgent_UpdateExpanded() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgent + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgent WriteObject((await response)); } } diff --git a/generated/StorageMover/StorageMover.Autorest/generated/cmdlets/UpdateAzStorageMoverAgent_UpdateViaIdentity.cs b/generated/StorageMover/StorageMover.Autorest/generated/cmdlets/UpdateAzStorageMoverAgent_UpdateViaIdentity.cs index 14f44586807c..c07c50c0e929 100644 --- a/generated/StorageMover/StorageMover.Autorest/generated/cmdlets/UpdateAzStorageMoverAgent_UpdateViaIdentity.cs +++ b/generated/StorageMover/StorageMover.Autorest/generated/cmdlets/UpdateAzStorageMoverAgent_UpdateViaIdentity.cs @@ -14,11 +14,11 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Cmdlets /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzStorageMoverAgent_UpdateViaIdentity", SupportsShouldProcess = true)] [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ParameterSetBreakingChange(new string[] {"UpdateViaIdentity"}, "15.0.0", "2.0.0", "2025/11/03", ChangeDescription="The parameter set Update and UpdateViaIdentity will be removed. Suggest to use UpdateExpanded, UpdateViaIdentityExpanded and UpdateViaJsonString instead.")] - [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.OutputBreakingChange("Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgent", "15.0.0", "2.0.0", "2025/11/03", DeprecatedOutputProperties=new string[] {"UploadLimitScheduleWeeklyRecurrence"}, NewOutputProperties=new string[] {"UploadLimitScheduleWeeklyRecurrence"}, ChangeDescription="The type of the property UploadLimitScheduleWeeklyRecurrence will be changed from fixed array to 'List'.")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgent))] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.OutputBreakingChange("Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgent", "15.0.0", "2.0.0", "2025/11/03", DeprecatedOutputProperties=new string[] {"UploadLimitScheduleWeeklyRecurrence"}, NewOutputProperties=new string[] {"UploadLimitScheduleWeeklyRecurrence"}, ChangeDescription="The type of the property UploadLimitScheduleWeeklyRecurrence will be changed from fixed array to 'List'.")] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgent))] [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Description(@"Creates or updates an Agent resource.")] [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageMover/storageMovers/{storageMoverName}/agents/{agentName}", ApiVersion = "2024-07-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageMover/storageMovers/{storageMoverName}/agents/{agentName}", ApiVersion = "2025-07-01")] public partial class UpdateAzStorageMoverAgent_UpdateViaIdentity : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener { @@ -37,7 +37,7 @@ public partial class UpdateAzStorageMoverAgent_UpdateViaIdentity : global::Syste private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentUpdateParameters _agent; + private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentUpdateParameters _agent; /// The Agent resource. [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The Agent resource.", ValueFromPipeline = true)] @@ -46,8 +46,8 @@ public partial class UpdateAzStorageMoverAgent_UpdateViaIdentity : global::Syste ReadOnly = false, Description = @"The Agent resource.", SerializedName = @"agent", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentUpdateParameters) })] - public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentUpdateParameters Agent { get => this._agent; set => this._agent = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentUpdateParameters) })] + public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentUpdateParameters Agent { get => this._agent; set => this._agent = value; } /// Wait for .NET debugger to attach [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] @@ -136,12 +136,12 @@ public partial class UpdateAzStorageMoverAgent_UpdateViaIdentity : global::Syste /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgent + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgent /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -413,12 +413,12 @@ public UpdateAzStorageMoverAgent_UpdateViaIdentity() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgent + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgent /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -430,7 +430,7 @@ public UpdateAzStorageMoverAgent_UpdateViaIdentity() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgent + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgent WriteObject((await response)); } } diff --git a/generated/StorageMover/StorageMover.Autorest/generated/cmdlets/UpdateAzStorageMoverAgent_UpdateViaIdentityExpanded.cs b/generated/StorageMover/StorageMover.Autorest/generated/cmdlets/UpdateAzStorageMoverAgent_UpdateViaIdentityExpanded.cs index 5bcb10851e6c..515548c85743 100644 --- a/generated/StorageMover/StorageMover.Autorest/generated/cmdlets/UpdateAzStorageMoverAgent_UpdateViaIdentityExpanded.cs +++ b/generated/StorageMover/StorageMover.Autorest/generated/cmdlets/UpdateAzStorageMoverAgent_UpdateViaIdentityExpanded.cs @@ -13,11 +13,11 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Cmdlets /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageMover/storageMovers/{storageMoverName}/agents/{agentName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzStorageMoverAgent_UpdateViaIdentityExpanded", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.OutputBreakingChange("Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgent", "15.0.0", "2.0.0", "2025/11/03", DeprecatedOutputProperties=new string[] {"UploadLimitScheduleWeeklyRecurrence"}, NewOutputProperties=new string[] {"UploadLimitScheduleWeeklyRecurrence"}, ChangeDescription="The type of the property UploadLimitScheduleWeeklyRecurrence will be changed from fixed array to 'List'.")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgent))] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.OutputBreakingChange("Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgent", "15.0.0", "2.0.0", "2025/11/03", DeprecatedOutputProperties=new string[] {"UploadLimitScheduleWeeklyRecurrence"}, NewOutputProperties=new string[] {"UploadLimitScheduleWeeklyRecurrence"}, ChangeDescription="The type of the property UploadLimitScheduleWeeklyRecurrence will be changed from fixed array to 'List'.")] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgent))] [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Description(@"Creates or updates an Agent resource.")] [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageMover/storageMovers/{storageMoverName}/agents/{agentName}", ApiVersion = "2024-07-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageMover/storageMovers/{storageMoverName}/agents/{agentName}", ApiVersion = "2025-07-01")] public partial class UpdateAzStorageMoverAgent_UpdateViaIdentityExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener { @@ -31,7 +31,7 @@ public partial class UpdateAzStorageMoverAgent_UpdateViaIdentityExpanded : globa private string __processRecordId; /// The Agent resource. - private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgentUpdateParameters _agentBody = new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.AgentUpdateParameters(); + private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgentUpdateParameters _agentBody = new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.AgentUpdateParameters(); /// /// The for this operation. @@ -128,8 +128,8 @@ public partial class UpdateAzStorageMoverAgent_UpdateViaIdentityExpanded : globa ReadOnly = false, Description = @"The set of weekly repeating recurrences of the WAN-link upload limit schedule.", SerializedName = @"weeklyRecurrences", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IUploadLimitWeeklyRecurrence) })] - public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IUploadLimitWeeklyRecurrence[] UploadLimitScheduleWeeklyRecurrence { get => _agentBody.UploadLimitScheduleWeeklyRecurrence ?? null /* arrayOf */; set => _agentBody.UploadLimitScheduleWeeklyRecurrence = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IUploadLimitWeeklyRecurrence) })] + public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IUploadLimitWeeklyRecurrence[] UploadLimitScheduleWeeklyRecurrence { get => _agentBody.UploadLimitScheduleWeeklyRecurrence ?? null /* arrayOf */; set => _agentBody.UploadLimitScheduleWeeklyRecurrence = value; } /// /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what @@ -148,12 +148,12 @@ public partial class UpdateAzStorageMoverAgent_UpdateViaIdentityExpanded : globa /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgent + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgent /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -425,12 +425,12 @@ public UpdateAzStorageMoverAgent_UpdateViaIdentityExpanded() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgent + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgent /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -442,7 +442,7 @@ public UpdateAzStorageMoverAgent_UpdateViaIdentityExpanded() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IAgent + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IAgent WriteObject((await response)); } } diff --git a/generated/StorageMover/StorageMover.Autorest/generated/cmdlets/UpdateAzStorageMoverEndpoint_UpdateExpanded.cs b/generated/StorageMover/StorageMover.Autorest/generated/cmdlets/UpdateAzStorageMoverEndpoint_UpdateExpanded.cs index 4fa65bbbfd30..d3244972f971 100644 --- a/generated/StorageMover/StorageMover.Autorest/generated/cmdlets/UpdateAzStorageMoverEndpoint_UpdateExpanded.cs +++ b/generated/StorageMover/StorageMover.Autorest/generated/cmdlets/UpdateAzStorageMoverEndpoint_UpdateExpanded.cs @@ -16,10 +16,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Cmdlets /// [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzStorageMoverEndpoint_UpdateExpanded", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpoint))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpoint))] [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Description(@"Updates properties for an Endpoint resource. Properties not specified in the request body will be unchanged.")] [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageMover/storageMovers/{storageMoverName}/endpoints/{endpointName}", ApiVersion = "2024-07-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageMover/storageMovers/{storageMoverName}/endpoints/{endpointName}", ApiVersion = "2025-07-01")] public partial class UpdateAzStorageMoverEndpoint_UpdateExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener { @@ -38,7 +38,7 @@ public partial class UpdateAzStorageMoverEndpoint_UpdateExpanded : global::Syste private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); /// The Endpoint resource. - private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpointBaseUpdateParameters _endpointBody = new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.EndpointBaseUpdateParameters(); + private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBaseUpdateParameters _endpointBody = new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.EndpointBaseUpdateParameters(); /// Wait for .NET debugger to attach [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] @@ -70,6 +70,36 @@ public partial class UpdateAzStorageMoverEndpoint_UpdateExpanded : global::Syste [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category(global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.ParameterCategory.Runtime)] public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + /// + /// Type of managed service identity (where both SystemAssigned and UserAssigned types are allowed). + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Type of managed service identity (where both SystemAssigned and UserAssigned types are allowed).")] + [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category(global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Type of managed service identity (where both SystemAssigned and UserAssigned types are allowed).", + SerializedName = @"type", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ManagedServiceIdentityType) })] + [global::System.Management.Automation.ArgumentCompleter(typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ManagedServiceIdentityType))] + public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ManagedServiceIdentityType IdentityType { get => _endpointBody.IdentityType ?? ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ManagedServiceIdentityType)""); set => _endpointBody.IdentityType = value; } + + /// + /// The set of user assigned identities associated with the resource. The userAssignedIdentities dictionary keys will be ARM + /// resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}. + /// The dictionary values can be empty objects ({}) in requests. + /// + [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.ExportAs(typeof(global::System.Collections.Hashtable))] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The set of user assigned identities associated with the resource. The userAssignedIdentities dictionary keys will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}. The dictionary values can be empty objects ({}) in requests.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category(global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The set of user assigned identities associated with the resource. The userAssignedIdentities dictionary keys will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}. The dictionary values can be empty objects ({}) in requests.", + SerializedName = @"userAssignedIdentities", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IUserAssignedIdentities) })] + public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IUserAssignedIdentities IdentityUserAssignedIdentity { get => _endpointBody.IdentityUserAssignedIdentity ?? null /* object */; set => _endpointBody.IdentityUserAssignedIdentity = value; } + /// Accessor for our copy of the InvocationInfo. public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } @@ -111,8 +141,8 @@ public partial class UpdateAzStorageMoverEndpoint_UpdateExpanded : global::Syste ReadOnly = false, Description = @"The Endpoint resource, which contains information about file sources and targets.", SerializedName = @"properties", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpointBaseUpdateProperties) })] - public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpointBaseUpdateProperties Property { get => _endpointBody.Property ?? null /* object */; set => _endpointBody.Property = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBaseUpdateProperties) })] + public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBaseUpdateProperties Property { get => _endpointBody.Property ?? null /* object */; set => _endpointBody.Property = value; } /// The URI for the proxy server to use [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] @@ -193,12 +223,12 @@ public partial class UpdateAzStorageMoverEndpoint_UpdateExpanded : global::Syste /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpoint + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpoint /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -446,12 +476,12 @@ public UpdateAzStorageMoverEndpoint_UpdateExpanded() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpoint + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpoint /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -463,7 +493,7 @@ public UpdateAzStorageMoverEndpoint_UpdateExpanded() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpoint + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpoint WriteObject((await response)); } } diff --git a/generated/StorageMover/StorageMover.Autorest/generated/cmdlets/UpdateAzStorageMoverEndpoint_UpdateViaIdentityExpanded.cs b/generated/StorageMover/StorageMover.Autorest/generated/cmdlets/UpdateAzStorageMoverEndpoint_UpdateViaIdentityExpanded.cs index 7ee5c9e4e3b6..d0f5bd6f4a55 100644 --- a/generated/StorageMover/StorageMover.Autorest/generated/cmdlets/UpdateAzStorageMoverEndpoint_UpdateViaIdentityExpanded.cs +++ b/generated/StorageMover/StorageMover.Autorest/generated/cmdlets/UpdateAzStorageMoverEndpoint_UpdateViaIdentityExpanded.cs @@ -16,10 +16,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Cmdlets /// [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzStorageMoverEndpoint_UpdateViaIdentityExpanded", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpoint))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpoint))] [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Description(@"Updates properties for an Endpoint resource. Properties not specified in the request body will be unchanged.")] [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageMover/storageMovers/{storageMoverName}/endpoints/{endpointName}", ApiVersion = "2024-07-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageMover/storageMovers/{storageMoverName}/endpoints/{endpointName}", ApiVersion = "2025-07-01")] public partial class UpdateAzStorageMoverEndpoint_UpdateViaIdentityExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener { @@ -38,7 +38,7 @@ public partial class UpdateAzStorageMoverEndpoint_UpdateViaIdentityExpanded : gl private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); /// The Endpoint resource. - private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpointBaseUpdateParameters _endpointBody = new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.EndpointBaseUpdateParameters(); + private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBaseUpdateParameters _endpointBody = new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.EndpointBaseUpdateParameters(); /// Wait for .NET debugger to attach [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] @@ -70,6 +70,36 @@ public partial class UpdateAzStorageMoverEndpoint_UpdateViaIdentityExpanded : gl [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category(global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.ParameterCategory.Runtime)] public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + /// + /// Type of managed service identity (where both SystemAssigned and UserAssigned types are allowed). + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Type of managed service identity (where both SystemAssigned and UserAssigned types are allowed).")] + [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category(global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Type of managed service identity (where both SystemAssigned and UserAssigned types are allowed).", + SerializedName = @"type", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ManagedServiceIdentityType) })] + [global::System.Management.Automation.ArgumentCompleter(typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ManagedServiceIdentityType))] + public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ManagedServiceIdentityType IdentityType { get => _endpointBody.IdentityType ?? ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ManagedServiceIdentityType)""); set => _endpointBody.IdentityType = value; } + + /// + /// The set of user assigned identities associated with the resource. The userAssignedIdentities dictionary keys will be ARM + /// resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}. + /// The dictionary values can be empty objects ({}) in requests. + /// + [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.ExportAs(typeof(global::System.Collections.Hashtable))] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The set of user assigned identities associated with the resource. The userAssignedIdentities dictionary keys will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}. The dictionary values can be empty objects ({}) in requests.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category(global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The set of user assigned identities associated with the resource. The userAssignedIdentities dictionary keys will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}. The dictionary values can be empty objects ({}) in requests.", + SerializedName = @"userAssignedIdentities", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IUserAssignedIdentities) })] + public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IUserAssignedIdentities IdentityUserAssignedIdentity { get => _endpointBody.IdentityUserAssignedIdentity ?? null /* object */; set => _endpointBody.IdentityUserAssignedIdentity = value; } + /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.IStorageMoverIdentity _inputObject; @@ -104,8 +134,8 @@ public partial class UpdateAzStorageMoverEndpoint_UpdateViaIdentityExpanded : gl ReadOnly = false, Description = @"The Endpoint resource, which contains information about file sources and targets.", SerializedName = @"properties", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpointBaseUpdateProperties) })] - public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpointBaseUpdateProperties Property { get => _endpointBody.Property ?? null /* object */; set => _endpointBody.Property = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBaseUpdateProperties) })] + public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBaseUpdateProperties Property { get => _endpointBody.Property ?? null /* object */; set => _endpointBody.Property = value; } /// The URI for the proxy server to use [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] @@ -140,12 +170,12 @@ public partial class UpdateAzStorageMoverEndpoint_UpdateViaIdentityExpanded : gl /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpoint + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpoint /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -417,12 +447,12 @@ public UpdateAzStorageMoverEndpoint_UpdateViaIdentityExpanded() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpoint + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpoint /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -434,7 +464,7 @@ public UpdateAzStorageMoverEndpoint_UpdateViaIdentityExpanded() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpoint + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpoint WriteObject((await response)); } } diff --git a/generated/StorageMover/StorageMover.Autorest/generated/cmdlets/UpdateAzStorageMoverJobDefinition_Update.cs b/generated/StorageMover/StorageMover.Autorest/generated/cmdlets/UpdateAzStorageMoverJobDefinition_Update.cs index 4373d06040b0..3ab15bae2842 100644 --- a/generated/StorageMover/StorageMover.Autorest/generated/cmdlets/UpdateAzStorageMoverJobDefinition_Update.cs +++ b/generated/StorageMover/StorageMover.Autorest/generated/cmdlets/UpdateAzStorageMoverJobDefinition_Update.cs @@ -16,10 +16,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Cmdlets /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzStorageMoverJobDefinition_Update", SupportsShouldProcess = true)] [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ParameterSetBreakingChange(new string[] {"Update"}, "15.0.0", "2.0.0", "2025/11/03", ChangeDescription="The parameter set Update and UpdateViaIdentity will be removed. Suggest to use UpdateExpanded, UpdateViaIdentityExpanded and UpdateViaJsonString instead.")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinition))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinition))] [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Description(@"Updates properties for a Job Definition resource. Properties not specified in the request body will be unchanged.")] [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageMover/storageMovers/{storageMoverName}/projects/{projectName}/jobDefinitions/{jobDefinitionName}", ApiVersion = "2024-07-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageMover/storageMovers/{storageMoverName}/projects/{projectName}/jobDefinitions/{jobDefinitionName}", ApiVersion = "2025-07-01")] public partial class UpdateAzStorageMoverJobDefinition_Update : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener { @@ -71,7 +71,7 @@ public partial class UpdateAzStorageMoverJobDefinition_Update : global::System.M public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinitionUpdateParameters _jobDefinition; + private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionUpdateParameters _jobDefinition; /// The Job Definition resource. [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The Job Definition resource.", ValueFromPipeline = true)] @@ -80,8 +80,8 @@ public partial class UpdateAzStorageMoverJobDefinition_Update : global::System.M ReadOnly = false, Description = @"The Job Definition resource.", SerializedName = @"jobDefinition", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinitionUpdateParameters) })] - public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinitionUpdateParameters JobDefinition { get => this._jobDefinition; set => this._jobDefinition = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionUpdateParameters) })] + public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionUpdateParameters JobDefinition { get => this._jobDefinition; set => this._jobDefinition = value; } /// /// cancellation delegate. Stops the cmdlet when called. @@ -204,12 +204,12 @@ public partial class UpdateAzStorageMoverJobDefinition_Update : global::System.M /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinition + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinition /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -457,12 +457,12 @@ public UpdateAzStorageMoverJobDefinition_Update() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinition + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinition /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -474,7 +474,7 @@ public UpdateAzStorageMoverJobDefinition_Update() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinition + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinition WriteObject((await response)); } } diff --git a/generated/StorageMover/StorageMover.Autorest/generated/cmdlets/UpdateAzStorageMoverJobDefinition_UpdateExpanded.cs b/generated/StorageMover/StorageMover.Autorest/generated/cmdlets/UpdateAzStorageMoverJobDefinition_UpdateExpanded.cs index fcb3d4d2c4df..1986001ac618 100644 --- a/generated/StorageMover/StorageMover.Autorest/generated/cmdlets/UpdateAzStorageMoverJobDefinition_UpdateExpanded.cs +++ b/generated/StorageMover/StorageMover.Autorest/generated/cmdlets/UpdateAzStorageMoverJobDefinition_UpdateExpanded.cs @@ -15,10 +15,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Cmdlets /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageMover/storageMovers/{storageMoverName}/projects/{projectName}/jobDefinitions/{jobDefinitionName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzStorageMoverJobDefinition_UpdateExpanded", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinition))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinition))] [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Description(@"Updates properties for a Job Definition resource. Properties not specified in the request body will be unchanged.")] [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageMover/storageMovers/{storageMoverName}/projects/{projectName}/jobDefinitions/{jobDefinitionName}", ApiVersion = "2024-07-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageMover/storageMovers/{storageMoverName}/projects/{projectName}/jobDefinitions/{jobDefinitionName}", ApiVersion = "2025-07-01")] public partial class UpdateAzStorageMoverJobDefinition_UpdateExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener { @@ -37,7 +37,7 @@ public partial class UpdateAzStorageMoverJobDefinition_UpdateExpanded : global:: private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); /// The Job Definition resource. - private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinitionUpdateParameters _jobDefinitionBody = new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.JobDefinitionUpdateParameters(); + private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionUpdateParameters _jobDefinitionBody = new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.JobDefinitionUpdateParameters(); /// Name of the Agent to assign for new Job Runs of this Job Definition. [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Name of the Agent to assign for new Job Runs of this Job Definition.")] @@ -227,12 +227,12 @@ public partial class UpdateAzStorageMoverJobDefinition_UpdateExpanded : global:: /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinition + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinition /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -480,12 +480,12 @@ public UpdateAzStorageMoverJobDefinition_UpdateExpanded() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinition + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinition /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -497,7 +497,7 @@ public UpdateAzStorageMoverJobDefinition_UpdateExpanded() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinition + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinition WriteObject((await response)); } } diff --git a/generated/StorageMover/StorageMover.Autorest/generated/cmdlets/UpdateAzStorageMoverJobDefinition_UpdateViaIdentity.cs b/generated/StorageMover/StorageMover.Autorest/generated/cmdlets/UpdateAzStorageMoverJobDefinition_UpdateViaIdentity.cs index d6742d917868..dc68a138c147 100644 --- a/generated/StorageMover/StorageMover.Autorest/generated/cmdlets/UpdateAzStorageMoverJobDefinition_UpdateViaIdentity.cs +++ b/generated/StorageMover/StorageMover.Autorest/generated/cmdlets/UpdateAzStorageMoverJobDefinition_UpdateViaIdentity.cs @@ -16,10 +16,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Cmdlets /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzStorageMoverJobDefinition_UpdateViaIdentity", SupportsShouldProcess = true)] [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ParameterSetBreakingChange(new string[] {"UpdateViaIdentity"}, "15.0.0", "2.0.0", "2025/11/03", ChangeDescription="The parameter set Update and UpdateViaIdentity will be removed. Suggest to use UpdateExpanded, UpdateViaIdentityExpanded and UpdateViaJsonString instead.")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinition))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinition))] [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Description(@"Updates properties for a Job Definition resource. Properties not specified in the request body will be unchanged.")] [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageMover/storageMovers/{storageMoverName}/projects/{projectName}/jobDefinitions/{jobDefinitionName}", ApiVersion = "2024-07-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageMover/storageMovers/{storageMoverName}/projects/{projectName}/jobDefinitions/{jobDefinitionName}", ApiVersion = "2025-07-01")] public partial class UpdateAzStorageMoverJobDefinition_UpdateViaIdentity : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener { @@ -79,7 +79,7 @@ public partial class UpdateAzStorageMoverJobDefinition_UpdateViaIdentity : globa public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinitionUpdateParameters _jobDefinition; + private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionUpdateParameters _jobDefinition; /// The Job Definition resource. [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The Job Definition resource.", ValueFromPipeline = true)] @@ -88,8 +88,8 @@ public partial class UpdateAzStorageMoverJobDefinition_UpdateViaIdentity : globa ReadOnly = false, Description = @"The Job Definition resource.", SerializedName = @"jobDefinition", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinitionUpdateParameters) })] - public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinitionUpdateParameters JobDefinition { get => this._jobDefinition; set => this._jobDefinition = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionUpdateParameters) })] + public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionUpdateParameters JobDefinition { get => this._jobDefinition; set => this._jobDefinition = value; } /// /// cancellation delegate. Stops the cmdlet when called. @@ -137,12 +137,12 @@ public partial class UpdateAzStorageMoverJobDefinition_UpdateViaIdentity : globa /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinition + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinition /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -418,12 +418,12 @@ public UpdateAzStorageMoverJobDefinition_UpdateViaIdentity() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinition + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinition /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -435,7 +435,7 @@ public UpdateAzStorageMoverJobDefinition_UpdateViaIdentity() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinition + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinition WriteObject((await response)); } } diff --git a/generated/StorageMover/StorageMover.Autorest/generated/cmdlets/UpdateAzStorageMoverJobDefinition_UpdateViaIdentityExpanded.cs b/generated/StorageMover/StorageMover.Autorest/generated/cmdlets/UpdateAzStorageMoverJobDefinition_UpdateViaIdentityExpanded.cs index 9d9b353deaf3..e293385de217 100644 --- a/generated/StorageMover/StorageMover.Autorest/generated/cmdlets/UpdateAzStorageMoverJobDefinition_UpdateViaIdentityExpanded.cs +++ b/generated/StorageMover/StorageMover.Autorest/generated/cmdlets/UpdateAzStorageMoverJobDefinition_UpdateViaIdentityExpanded.cs @@ -15,10 +15,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Cmdlets /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageMover/storageMovers/{storageMoverName}/projects/{projectName}/jobDefinitions/{jobDefinitionName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzStorageMoverJobDefinition_UpdateViaIdentityExpanded", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinition))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinition))] [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Description(@"Updates properties for a Job Definition resource. Properties not specified in the request body will be unchanged.")] [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageMover/storageMovers/{storageMoverName}/projects/{projectName}/jobDefinitions/{jobDefinitionName}", ApiVersion = "2024-07-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageMover/storageMovers/{storageMoverName}/projects/{projectName}/jobDefinitions/{jobDefinitionName}", ApiVersion = "2025-07-01")] public partial class UpdateAzStorageMoverJobDefinition_UpdateViaIdentityExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener { @@ -37,7 +37,7 @@ public partial class UpdateAzStorageMoverJobDefinition_UpdateViaIdentityExpanded private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); /// The Job Definition resource. - private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinitionUpdateParameters _jobDefinitionBody = new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.JobDefinitionUpdateParameters(); + private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinitionUpdateParameters _jobDefinitionBody = new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.JobDefinitionUpdateParameters(); /// Name of the Agent to assign for new Job Runs of this Job Definition. [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Name of the Agent to assign for new Job Runs of this Job Definition.")] @@ -160,12 +160,12 @@ public partial class UpdateAzStorageMoverJobDefinition_UpdateViaIdentityExpanded /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinition + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinition /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -441,12 +441,12 @@ public UpdateAzStorageMoverJobDefinition_UpdateViaIdentityExpanded() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinition + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinition /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -458,7 +458,7 @@ public UpdateAzStorageMoverJobDefinition_UpdateViaIdentityExpanded() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IJobDefinition + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IJobDefinition WriteObject((await response)); } } diff --git a/generated/StorageMover/StorageMover.Autorest/generated/cmdlets/UpdateAzStorageMoverProject_Update.cs b/generated/StorageMover/StorageMover.Autorest/generated/cmdlets/UpdateAzStorageMoverProject_Update.cs index 36a99232d26e..698e08eb9d9e 100644 --- a/generated/StorageMover/StorageMover.Autorest/generated/cmdlets/UpdateAzStorageMoverProject_Update.cs +++ b/generated/StorageMover/StorageMover.Autorest/generated/cmdlets/UpdateAzStorageMoverProject_Update.cs @@ -16,10 +16,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Cmdlets /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzStorageMoverProject_Update", SupportsShouldProcess = true)] [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ParameterSetBreakingChange(new string[] {"Update"}, "15.0.0", "2.0.0", "2025/11/03", ChangeDescription="The parameter set Update and UpdateViaIdentity will be removed. Suggest to use UpdateExpanded, UpdateViaIdentityExpanded and UpdateViaJsonString instead.")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IProject))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IProject))] [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Description(@"Updates properties for a Project resource. Properties not specified in the request body will be unchanged.")] [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageMover/storageMovers/{storageMoverName}/projects/{projectName}", ApiVersion = "2024-07-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageMover/storageMovers/{storageMoverName}/projects/{projectName}", ApiVersion = "2025-07-01")] public partial class UpdateAzStorageMoverProject_Update : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener { @@ -99,7 +99,7 @@ public partial class UpdateAzStorageMoverProject_Update : global::System.Managem private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.HttpPipeline Pipeline { get; set; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IProjectUpdateParameters _project; + private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IProjectUpdateParameters _project; /// The Project resource. [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The Project resource.", ValueFromPipeline = true)] @@ -108,8 +108,8 @@ public partial class UpdateAzStorageMoverProject_Update : global::System.Managem ReadOnly = false, Description = @"The Project resource.", SerializedName = @"project", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IProjectUpdateParameters) })] - public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IProjectUpdateParameters Project { get => this._project; set => this._project = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IProjectUpdateParameters) })] + public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IProjectUpdateParameters Project { get => this._project; set => this._project = value; } /// The URI for the proxy server to use [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] @@ -190,12 +190,12 @@ public partial class UpdateAzStorageMoverProject_Update : global::System.Managem /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IProject + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IProject /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -443,12 +443,12 @@ public UpdateAzStorageMoverProject_Update() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IProject + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IProject /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -460,7 +460,7 @@ public UpdateAzStorageMoverProject_Update() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IProject + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IProject WriteObject((await response)); } } diff --git a/generated/StorageMover/StorageMover.Autorest/generated/cmdlets/UpdateAzStorageMoverProject_UpdateExpanded.cs b/generated/StorageMover/StorageMover.Autorest/generated/cmdlets/UpdateAzStorageMoverProject_UpdateExpanded.cs index 0d0e1ece5676..6308fffe9e07 100644 --- a/generated/StorageMover/StorageMover.Autorest/generated/cmdlets/UpdateAzStorageMoverProject_UpdateExpanded.cs +++ b/generated/StorageMover/StorageMover.Autorest/generated/cmdlets/UpdateAzStorageMoverProject_UpdateExpanded.cs @@ -15,10 +15,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Cmdlets /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageMover/storageMovers/{storageMoverName}/projects/{projectName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzStorageMoverProject_UpdateExpanded", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IProject))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IProject))] [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Description(@"Updates properties for a Project resource. Properties not specified in the request body will be unchanged.")] [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageMover/storageMovers/{storageMoverName}/projects/{projectName}", ApiVersion = "2024-07-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageMover/storageMovers/{storageMoverName}/projects/{projectName}", ApiVersion = "2025-07-01")] public partial class UpdateAzStorageMoverProject_UpdateExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener { @@ -37,7 +37,7 @@ public partial class UpdateAzStorageMoverProject_UpdateExpanded : global::System private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); /// The Project resource. - private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IProjectUpdateParameters _projectBody = new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.ProjectUpdateParameters(); + private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IProjectUpdateParameters _projectBody = new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ProjectUpdateParameters(); /// Wait for .NET debugger to attach [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] @@ -190,12 +190,12 @@ public partial class UpdateAzStorageMoverProject_UpdateExpanded : global::System /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IProject + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IProject /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -443,12 +443,12 @@ public UpdateAzStorageMoverProject_UpdateExpanded() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IProject + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IProject /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -460,7 +460,7 @@ public UpdateAzStorageMoverProject_UpdateExpanded() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IProject + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IProject WriteObject((await response)); } } diff --git a/generated/StorageMover/StorageMover.Autorest/generated/cmdlets/UpdateAzStorageMoverProject_UpdateViaIdentity.cs b/generated/StorageMover/StorageMover.Autorest/generated/cmdlets/UpdateAzStorageMoverProject_UpdateViaIdentity.cs index 3396c77cc2bc..918623473def 100644 --- a/generated/StorageMover/StorageMover.Autorest/generated/cmdlets/UpdateAzStorageMoverProject_UpdateViaIdentity.cs +++ b/generated/StorageMover/StorageMover.Autorest/generated/cmdlets/UpdateAzStorageMoverProject_UpdateViaIdentity.cs @@ -16,10 +16,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Cmdlets /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzStorageMoverProject_UpdateViaIdentity", SupportsShouldProcess = true)] [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ParameterSetBreakingChange(new string[] {"UpdateViaIdentity"}, "15.0.0", "2.0.0", "2025/11/03", ChangeDescription="The parameter set Update and UpdateViaIdentity will be removed. Suggest to use UpdateExpanded, UpdateViaIdentityExpanded and UpdateViaJsonString instead.")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IProject))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IProject))] [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Description(@"Updates properties for a Project resource. Properties not specified in the request body will be unchanged.")] [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageMover/storageMovers/{storageMoverName}/projects/{projectName}", ApiVersion = "2024-07-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageMover/storageMovers/{storageMoverName}/projects/{projectName}", ApiVersion = "2025-07-01")] public partial class UpdateAzStorageMoverProject_UpdateViaIdentity : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener { @@ -92,7 +92,7 @@ public partial class UpdateAzStorageMoverProject_UpdateViaIdentity : global::Sys private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.HttpPipeline Pipeline { get; set; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IProjectUpdateParameters _project; + private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IProjectUpdateParameters _project; /// The Project resource. [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The Project resource.", ValueFromPipeline = true)] @@ -101,8 +101,8 @@ public partial class UpdateAzStorageMoverProject_UpdateViaIdentity : global::Sys ReadOnly = false, Description = @"The Project resource.", SerializedName = @"project", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IProjectUpdateParameters) })] - public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IProjectUpdateParameters Project { get => this._project; set => this._project = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IProjectUpdateParameters) })] + public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IProjectUpdateParameters Project { get => this._project; set => this._project = value; } /// The URI for the proxy server to use [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] @@ -137,12 +137,12 @@ public partial class UpdateAzStorageMoverProject_UpdateViaIdentity : global::Sys /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IProject + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IProject /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -414,12 +414,12 @@ public UpdateAzStorageMoverProject_UpdateViaIdentity() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IProject + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IProject /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -431,7 +431,7 @@ public UpdateAzStorageMoverProject_UpdateViaIdentity() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IProject + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IProject WriteObject((await response)); } } diff --git a/generated/StorageMover/StorageMover.Autorest/generated/cmdlets/UpdateAzStorageMoverProject_UpdateViaIdentityExpanded.cs b/generated/StorageMover/StorageMover.Autorest/generated/cmdlets/UpdateAzStorageMoverProject_UpdateViaIdentityExpanded.cs index db575b2ab3c5..f9797df30426 100644 --- a/generated/StorageMover/StorageMover.Autorest/generated/cmdlets/UpdateAzStorageMoverProject_UpdateViaIdentityExpanded.cs +++ b/generated/StorageMover/StorageMover.Autorest/generated/cmdlets/UpdateAzStorageMoverProject_UpdateViaIdentityExpanded.cs @@ -15,10 +15,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Cmdlets /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageMover/storageMovers/{storageMoverName}/projects/{projectName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzStorageMoverProject_UpdateViaIdentityExpanded", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IProject))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IProject))] [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Description(@"Updates properties for a Project resource. Properties not specified in the request body will be unchanged.")] [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageMover/storageMovers/{storageMoverName}/projects/{projectName}", ApiVersion = "2024-07-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageMover/storageMovers/{storageMoverName}/projects/{projectName}", ApiVersion = "2025-07-01")] public partial class UpdateAzStorageMoverProject_UpdateViaIdentityExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener { @@ -37,7 +37,7 @@ public partial class UpdateAzStorageMoverProject_UpdateViaIdentityExpanded : glo private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); /// The Project resource. - private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IProjectUpdateParameters _projectBody = new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.ProjectUpdateParameters(); + private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IProjectUpdateParameters _projectBody = new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.ProjectUpdateParameters(); /// Wait for .NET debugger to attach [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] @@ -137,12 +137,12 @@ public partial class UpdateAzStorageMoverProject_UpdateViaIdentityExpanded : glo /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IProject + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IProject /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -414,12 +414,12 @@ public UpdateAzStorageMoverProject_UpdateViaIdentityExpanded() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IProject + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IProject /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -431,7 +431,7 @@ public UpdateAzStorageMoverProject_UpdateViaIdentityExpanded() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IProject + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IProject WriteObject((await response)); } } diff --git a/generated/StorageMover/StorageMover.Autorest/generated/cmdlets/UpdateAzStorageMover_Update.cs b/generated/StorageMover/StorageMover.Autorest/generated/cmdlets/UpdateAzStorageMover_Update.cs index fdb9f57753c0..19ea069b4966 100644 --- a/generated/StorageMover/StorageMover.Autorest/generated/cmdlets/UpdateAzStorageMover_Update.cs +++ b/generated/StorageMover/StorageMover.Autorest/generated/cmdlets/UpdateAzStorageMover_Update.cs @@ -16,10 +16,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Cmdlets /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzStorageMover_Update", SupportsShouldProcess = true)] [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ParameterSetBreakingChange(new string[] {"Update"}, "15.0.0", "2.0.0", "2025/11/03", ChangeDescription="The parameter set Update and UpdateViaIdentity will be removed. Suggest to use UpdateExpanded, UpdateViaIdentityExpanded and UpdateViaJsonString instead.")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IStorageMover))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IStorageMover))] [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Description(@"Updates properties for a Storage Mover resource. Properties not specified in the request body will be unchanged.")] [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageMover/storageMovers/{storageMoverName}", ApiVersion = "2024-07-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageMover/storageMovers/{storageMoverName}", ApiVersion = "2025-07-01")] public partial class UpdateAzStorageMover_Update : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener { @@ -129,7 +129,7 @@ public partial class UpdateAzStorageMover_Update : global::System.Management.Aut public string ResourceGroupName { get => this._resourceGroupName; set => this._resourceGroupName = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IStorageMoverUpdateParameters _storageMover; + private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IStorageMoverUpdateParameters _storageMover; /// The Storage Mover resource. [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The Storage Mover resource.", ValueFromPipeline = true)] @@ -138,8 +138,8 @@ public partial class UpdateAzStorageMover_Update : global::System.Management.Aut ReadOnly = false, Description = @"The Storage Mover resource.", SerializedName = @"storageMover", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IStorageMoverUpdateParameters) })] - public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IStorageMoverUpdateParameters StorageMover { get => this._storageMover; set => this._storageMover = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IStorageMoverUpdateParameters) })] + public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IStorageMoverUpdateParameters StorageMover { get => this._storageMover; set => this._storageMover = value; } /// Backing field for property. private string _subscriptionId; @@ -176,12 +176,12 @@ public partial class UpdateAzStorageMover_Update : global::System.Management.Aut /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IStorageMover + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IStorageMover /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -429,12 +429,12 @@ public UpdateAzStorageMover_Update() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IStorageMover + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IStorageMover /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -446,7 +446,7 @@ public UpdateAzStorageMover_Update() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IStorageMover + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IStorageMover WriteObject((await response)); } } diff --git a/generated/StorageMover/StorageMover.Autorest/generated/cmdlets/UpdateAzStorageMover_UpdateExpanded.cs b/generated/StorageMover/StorageMover.Autorest/generated/cmdlets/UpdateAzStorageMover_UpdateExpanded.cs index e2a0881c35cf..03d66d90c3f0 100644 --- a/generated/StorageMover/StorageMover.Autorest/generated/cmdlets/UpdateAzStorageMover_UpdateExpanded.cs +++ b/generated/StorageMover/StorageMover.Autorest/generated/cmdlets/UpdateAzStorageMover_UpdateExpanded.cs @@ -15,10 +15,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Cmdlets /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageMover/storageMovers/{storageMoverName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzStorageMover_UpdateExpanded", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IStorageMover))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IStorageMover))] [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Description(@"Updates properties for a Storage Mover resource. Properties not specified in the request body will be unchanged.")] [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageMover/storageMovers/{storageMoverName}", ApiVersion = "2024-07-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageMover/storageMovers/{storageMoverName}", ApiVersion = "2025-07-01")] public partial class UpdateAzStorageMover_UpdateExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener { @@ -37,7 +37,7 @@ public partial class UpdateAzStorageMover_UpdateExpanded : global::System.Manage private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); /// The Storage Mover resource. - private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IStorageMoverUpdateParameters _storageMoverBody = new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.StorageMoverUpdateParameters(); + private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IStorageMoverUpdateParameters _storageMoverBody = new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.StorageMoverUpdateParameters(); /// Wait for .NET debugger to attach [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] @@ -168,8 +168,8 @@ public partial class UpdateAzStorageMover_UpdateExpanded : global::System.Manage ReadOnly = false, Description = @"Resource tags.", SerializedName = @"tags", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IStorageMoverUpdateParametersTags) })] - public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IStorageMoverUpdateParametersTags Tag { get => _storageMoverBody.Tag ?? null /* object */; set => _storageMoverBody.Tag = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IStorageMoverUpdateParametersTags) })] + public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IStorageMoverUpdateParametersTags Tag { get => _storageMoverBody.Tag ?? null /* object */; set => _storageMoverBody.Tag = value; } /// /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what @@ -188,12 +188,12 @@ public partial class UpdateAzStorageMover_UpdateExpanded : global::System.Manage /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IStorageMover + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IStorageMover /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -441,12 +441,12 @@ public UpdateAzStorageMover_UpdateExpanded() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IStorageMover + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IStorageMover /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -458,7 +458,7 @@ public UpdateAzStorageMover_UpdateExpanded() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IStorageMover + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IStorageMover WriteObject((await response)); } } diff --git a/generated/StorageMover/StorageMover.Autorest/generated/cmdlets/UpdateAzStorageMover_UpdateViaIdentity.cs b/generated/StorageMover/StorageMover.Autorest/generated/cmdlets/UpdateAzStorageMover_UpdateViaIdentity.cs index e9bf93f9ab73..aa32112427ea 100644 --- a/generated/StorageMover/StorageMover.Autorest/generated/cmdlets/UpdateAzStorageMover_UpdateViaIdentity.cs +++ b/generated/StorageMover/StorageMover.Autorest/generated/cmdlets/UpdateAzStorageMover_UpdateViaIdentity.cs @@ -16,10 +16,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Cmdlets /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzStorageMover_UpdateViaIdentity", SupportsShouldProcess = true)] [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ParameterSetBreakingChange(new string[] {"UpdateViaIdentity"}, "15.0.0", "2.0.0", "2025/11/03", ChangeDescription="The parameter set Update and UpdateViaIdentity will be removed. Suggest to use UpdateExpanded, UpdateViaIdentityExpanded and UpdateViaJsonString instead.")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IStorageMover))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IStorageMover))] [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Description(@"Updates properties for a Storage Mover resource. Properties not specified in the request body will be unchanged.")] [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageMover/storageMovers/{storageMoverName}", ApiVersion = "2024-07-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageMover/storageMovers/{storageMoverName}", ApiVersion = "2025-07-01")] public partial class UpdateAzStorageMover_UpdateViaIdentity : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener { @@ -108,7 +108,7 @@ public partial class UpdateAzStorageMover_UpdateViaIdentity : global::System.Man public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IStorageMoverUpdateParameters _storageMover; + private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IStorageMoverUpdateParameters _storageMover; /// The Storage Mover resource. [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The Storage Mover resource.", ValueFromPipeline = true)] @@ -117,8 +117,8 @@ public partial class UpdateAzStorageMover_UpdateViaIdentity : global::System.Man ReadOnly = false, Description = @"The Storage Mover resource.", SerializedName = @"storageMover", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IStorageMoverUpdateParameters) })] - public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IStorageMoverUpdateParameters StorageMover { get => this._storageMover; set => this._storageMover = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IStorageMoverUpdateParameters) })] + public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IStorageMoverUpdateParameters StorageMover { get => this._storageMover; set => this._storageMover = value; } /// /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what @@ -137,12 +137,12 @@ public partial class UpdateAzStorageMover_UpdateViaIdentity : global::System.Man /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IStorageMover + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IStorageMover /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -410,12 +410,12 @@ public UpdateAzStorageMover_UpdateViaIdentity() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IStorageMover + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IStorageMover /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -427,7 +427,7 @@ public UpdateAzStorageMover_UpdateViaIdentity() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IStorageMover + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IStorageMover WriteObject((await response)); } } diff --git a/generated/StorageMover/StorageMover.Autorest/generated/cmdlets/UpdateAzStorageMover_UpdateViaIdentityExpanded.cs b/generated/StorageMover/StorageMover.Autorest/generated/cmdlets/UpdateAzStorageMover_UpdateViaIdentityExpanded.cs index 6f8a6438d6e3..20ea31f1164e 100644 --- a/generated/StorageMover/StorageMover.Autorest/generated/cmdlets/UpdateAzStorageMover_UpdateViaIdentityExpanded.cs +++ b/generated/StorageMover/StorageMover.Autorest/generated/cmdlets/UpdateAzStorageMover_UpdateViaIdentityExpanded.cs @@ -15,10 +15,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Cmdlets /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageMover/storageMovers/{storageMoverName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzStorageMover_UpdateViaIdentityExpanded", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IStorageMover))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IStorageMover))] [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Description(@"Updates properties for a Storage Mover resource. Properties not specified in the request body will be unchanged.")] [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageMover/storageMovers/{storageMoverName}", ApiVersion = "2024-07-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageMover/storageMovers/{storageMoverName}", ApiVersion = "2025-07-01")] public partial class UpdateAzStorageMover_UpdateViaIdentityExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener { @@ -37,7 +37,7 @@ public partial class UpdateAzStorageMover_UpdateViaIdentityExpanded : global::Sy private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); /// The Storage Mover resource. - private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IStorageMoverUpdateParameters _storageMoverBody = new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.StorageMoverUpdateParameters(); + private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IStorageMoverUpdateParameters _storageMoverBody = new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.StorageMoverUpdateParameters(); /// Wait for .NET debugger to attach [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] @@ -129,8 +129,8 @@ public partial class UpdateAzStorageMover_UpdateViaIdentityExpanded : global::Sy ReadOnly = false, Description = @"Resource tags.", SerializedName = @"tags", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IStorageMoverUpdateParametersTags) })] - public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IStorageMoverUpdateParametersTags Tag { get => _storageMoverBody.Tag ?? null /* object */; set => _storageMoverBody.Tag = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IStorageMoverUpdateParametersTags) })] + public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IStorageMoverUpdateParametersTags Tag { get => _storageMoverBody.Tag ?? null /* object */; set => _storageMoverBody.Tag = value; } /// /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what @@ -149,12 +149,12 @@ public partial class UpdateAzStorageMover_UpdateViaIdentityExpanded : global::Sy /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IStorageMover + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IStorageMover /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -422,12 +422,12 @@ public UpdateAzStorageMover_UpdateViaIdentityExpanded() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IStorageMover + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IStorageMover /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -439,7 +439,7 @@ public UpdateAzStorageMover_UpdateViaIdentityExpanded() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IStorageMover + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IStorageMover WriteObject((await response)); } } diff --git a/generated/StorageMover/StorageMover.Autorest/generated/runtime/BuildTime/Cmdlets/ExportPsd1.cs b/generated/StorageMover/StorageMover.Autorest/generated/runtime/BuildTime/Cmdlets/ExportPsd1.cs index 7aa09a007c0a..5cb9d5f7ecfe 100644 --- a/generated/StorageMover/StorageMover.Autorest/generated/runtime/BuildTime/Cmdlets/ExportPsd1.cs +++ b/generated/StorageMover/StorageMover.Autorest/generated/runtime/BuildTime/Cmdlets/ExportPsd1.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() throw new ArgumentException($"Custom folder '{CustomFolder}' does not exist"); } - string version = Convert.ToString(@"1.2.0"); + string version = Convert.ToString(@"1.6.0"); // Validate the module version should be semantic version // Following regex is official from https://semver.org/ Regex rx = new Regex(@"^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$", RegexOptions.Compiled); diff --git a/generated/StorageMover/StorageMover.Autorest/internal/Get-AzStorageMoverOperation.ps1 b/generated/StorageMover/StorageMover.Autorest/internal/Get-AzStorageMoverOperation.ps1 index 023ee37dc200..1475f12c8013 100644 --- a/generated/StorageMover/StorageMover.Autorest/internal/Get-AzStorageMoverOperation.ps1 +++ b/generated/StorageMover/StorageMover.Autorest/internal/Get-AzStorageMoverOperation.ps1 @@ -16,9 +16,9 @@ <# .Synopsis -Lists all the supported operations for the Azure Storage Mover REST API. +List the operations for the provider .Description -Lists all the supported operations for the Azure Storage Mover REST API. +List the operations for the provider .Example {{ Add code here }} .Example diff --git a/generated/StorageMover/StorageMover.Autorest/internal/New-AzStorageMoverEndpoint.ps1 b/generated/StorageMover/StorageMover.Autorest/internal/New-AzStorageMoverEndpoint.ps1 index b7da6734d406..892380e290f2 100644 --- a/generated/StorageMover/StorageMover.Autorest/internal/New-AzStorageMoverEndpoint.ps1 +++ b/generated/StorageMover/StorageMover.Autorest/internal/New-AzStorageMoverEndpoint.ps1 @@ -25,7 +25,7 @@ Creates or updates an Endpoint resource, which represents a data transfer source {{ Add code here }} .Outputs -Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpoint +Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpoint .Notes COMPLEX PARAMETER PROPERTIES @@ -38,7 +38,7 @@ PROPERTY : The resource specific properties for the Sto https://learn.microsoft.com/powershell/module/az.storagemover/new-azstoragemoverendpoint #> function New-AzStorageMoverEndpoint { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpoint])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpoint])] [CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(Mandatory)] @@ -70,11 +70,27 @@ param( [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpointBaseProperties] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBaseProperties] # The resource specific properties for the Storage Mover resource. # To construct, see NOTES section for PROPERTY properties and create a hash table. ${Property}, + [Parameter()] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ManagedServiceIdentityType])] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ManagedServiceIdentityType] + # Type of managed service identity (where both SystemAssigned and UserAssigned types are allowed). + ${IdentityType}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IUserAssignedIdentities]))] + [System.Collections.Hashtable] + # The set of user assigned identities associated with the resource. + # The userAssignedIdentities dictionary keys will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}. + # The dictionary values can be empty objects ({}) in requests. + ${IdentityUserAssignedIdentity}, + [Parameter()] [Alias('AzureRMContext', 'AzureCredential')] [ValidateNotNull()] diff --git a/generated/StorageMover/StorageMover.Autorest/internal/ProxyCmdletDefinitions.ps1 b/generated/StorageMover/StorageMover.Autorest/internal/ProxyCmdletDefinitions.ps1 index a6b259c60323..2c282d8398e2 100644 --- a/generated/StorageMover/StorageMover.Autorest/internal/ProxyCmdletDefinitions.ps1 +++ b/generated/StorageMover/StorageMover.Autorest/internal/ProxyCmdletDefinitions.ps1 @@ -16,9 +16,9 @@ <# .Synopsis -Lists all the supported operations for the Azure Storage Mover REST API. +List the operations for the provider .Description -Lists all the supported operations for the Azure Storage Mover REST API. +List the operations for the provider .Example {{ Add code here }} .Example @@ -135,7 +135,7 @@ Creates or updates an Endpoint resource, which represents a data transfer source {{ Add code here }} .Outputs -Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpoint +Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpoint .Notes COMPLEX PARAMETER PROPERTIES @@ -148,7 +148,7 @@ PROPERTY : The resource specific properties for the Sto https://learn.microsoft.com/powershell/module/az.storagemover/new-azstoragemoverendpoint #> function New-AzStorageMoverEndpoint { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpoint])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpoint])] [CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(Mandatory)] @@ -180,11 +180,27 @@ param( [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpointBaseProperties] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBaseProperties] # The resource specific properties for the Storage Mover resource. # To construct, see NOTES section for PROPERTY properties and create a hash table. ${Property}, + [Parameter()] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ManagedServiceIdentityType])] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ManagedServiceIdentityType] + # Type of managed service identity (where both SystemAssigned and UserAssigned types are allowed). + ${IdentityType}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IUserAssignedIdentities]))] + [System.Collections.Hashtable] + # The set of user assigned identities associated with the resource. + # The userAssignedIdentities dictionary keys will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}. + # The dictionary values can be empty objects ({}) in requests. + ${IdentityUserAssignedIdentity}, + [Parameter()] [Alias('AzureRMContext', 'AzureCredential')] [ValidateNotNull()] @@ -670,7 +686,7 @@ Properties not specified in the request body will be unchanged. .Inputs Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.IStorageMoverIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpoint +Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpoint .Notes COMPLEX PARAMETER PROPERTIES @@ -694,7 +710,7 @@ PROPERTY : The Endpoint resource, which contains https://learn.microsoft.com/powershell/module/az.storagemover/update-azstoragemoverendpoint #> function Update-AzStorageMoverEndpoint { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpoint])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpoint])] [CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] @@ -731,9 +747,25 @@ param( # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, + [Parameter()] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ManagedServiceIdentityType])] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ManagedServiceIdentityType] + # Type of managed service identity (where both SystemAssigned and UserAssigned types are allowed). + ${IdentityType}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IUserAssignedIdentities]))] + [System.Collections.Hashtable] + # The set of user assigned identities associated with the resource. + # The userAssignedIdentities dictionary keys will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}. + # The dictionary values can be empty objects ({}) in requests. + ${IdentityUserAssignedIdentity}, + [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpointBaseUpdateProperties] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBaseUpdateProperties] # The Endpoint resource, which contains information about file sources and targets. # To construct, see NOTES section for PROPERTY properties and create a hash table. ${Property}, diff --git a/generated/StorageMover/StorageMover.Autorest/internal/Update-AzStorageMoverEndpoint.ps1 b/generated/StorageMover/StorageMover.Autorest/internal/Update-AzStorageMoverEndpoint.ps1 index cc22b3c30db5..eb9331cb01b0 100644 --- a/generated/StorageMover/StorageMover.Autorest/internal/Update-AzStorageMoverEndpoint.ps1 +++ b/generated/StorageMover/StorageMover.Autorest/internal/Update-AzStorageMoverEndpoint.ps1 @@ -29,7 +29,7 @@ Properties not specified in the request body will be unchanged. .Inputs Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.IStorageMoverIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpoint +Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpoint .Notes COMPLEX PARAMETER PROPERTIES @@ -53,7 +53,7 @@ PROPERTY : The Endpoint resource, which contains https://learn.microsoft.com/powershell/module/az.storagemover/update-azstoragemoverendpoint #> function Update-AzStorageMoverEndpoint { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpoint])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpoint])] [CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] @@ -91,8 +91,24 @@ param( ${InputObject}, [Parameter()] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ManagedServiceIdentityType])] [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpointBaseUpdateProperties] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ManagedServiceIdentityType] + # Type of managed service identity (where both SystemAssigned and UserAssigned types are allowed). + ${IdentityType}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IUserAssignedIdentities]))] + [System.Collections.Hashtable] + # The set of user assigned identities associated with the resource. + # The userAssignedIdentities dictionary keys will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}. + # The dictionary values can be empty objects ({}) in requests. + ${IdentityUserAssignedIdentity}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBaseUpdateProperties] # The Endpoint resource, which contains information about file sources and targets. # To construct, see NOTES section for PROPERTY properties and create a hash table. ${Property},