Skip to content

Commit c63cf9d

Browse files
wiborisCopilot
andauthored
Improving custom code with explicit naming (Azure#51276)
* explicit naming * Update sdk/batch/Azure.ResourceManager.Batch/src/Custom/ArmBatchModelFactory.cs Co-authored-by: Copilot <[email protected]> --------- Co-authored-by: Copilot <[email protected]>
1 parent 0497c08 commit c63cf9d

File tree

1 file changed

+35
-1
lines changed

1 file changed

+35
-1
lines changed

sdk/batch/Azure.ResourceManager.Batch/src/Custom/ArmBatchModelFactory.cs

Lines changed: 35 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,41 @@ public static partial class ArmBatchModelFactory
5757
public static BatchAccountPoolData BatchAccountPoolData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, ManagedServiceIdentity identity, string displayName, DateTimeOffset? lastModifiedOn, DateTimeOffset? createdOn, BatchAccountPoolProvisioningState? provisioningState, DateTimeOffset? provisioningStateTransitOn, BatchAccountPoolAllocationState? allocationState, DateTimeOffset? allocationStateTransitionOn, string vmSize, BatchDeploymentConfiguration deploymentConfiguration, int? currentDedicatedNodes, int? currentLowPriorityNodes, BatchAccountPoolScaleSettings scaleSettings, BatchAccountPoolAutoScaleRun autoScaleRun, InterNodeCommunicationState? interNodeCommunication, BatchNetworkConfiguration networkConfiguration, int? taskSlotsPerNode, BatchNodeFillType? taskSchedulingNodeFillType, IEnumerable<BatchUserAccount> userAccounts, IEnumerable<BatchAccountPoolMetadataItem> metadata, BatchAccountPoolStartTask startTask, IEnumerable<BatchCertificateReference> certificates, IEnumerable<BatchApplicationPackageReference> applicationPackages, IEnumerable<string> applicationLicenses, BatchResizeOperationStatus resizeOperationStatus, IEnumerable<BatchMountConfiguration> mountConfiguration, NodeCommunicationMode? targetNodeCommunicationMode, NodeCommunicationMode? currentNodeCommunicationMode, ETag? etag)
5858
{
5959
BatchVmConfiguration deploymentVmConfiguration = deploymentConfiguration == null ? null : deploymentConfiguration.VmConfiguration;
60-
return BatchAccountPoolData(id, name, resourceType, systemData, identity, displayName, lastModifiedOn, createdOn, provisioningState, provisioningStateTransitOn, allocationState, allocationStateTransitionOn, vmSize, deploymentVmConfiguration, currentDedicatedNodes, currentLowPriorityNodes, scaleSettings, autoScaleRun, interNodeCommunication, networkConfiguration, taskSlotsPerNode, taskSchedulingNodeFillType, userAccounts, metadata, startTask, certificates, applicationPackages, applicationLicenses, resizeOperationStatus, mountConfiguration, targetNodeCommunicationMode, currentNodeCommunicationMode, null, etag: etag);
60+
return BatchAccountPoolData(
61+
id: id,
62+
name: name,
63+
resourceType: resourceType,
64+
systemData: systemData,
65+
identity: identity,
66+
displayName: displayName,
67+
lastModifiedOn: lastModifiedOn,
68+
createdOn: createdOn,
69+
provisioningState: provisioningState,
70+
provisioningStateTransitOn: provisioningStateTransitOn,
71+
allocationState: allocationState,
72+
allocationStateTransitionOn: allocationStateTransitionOn,
73+
vmSize: vmSize,
74+
deploymentVmConfiguration: deploymentVmConfiguration,
75+
currentDedicatedNodes: currentDedicatedNodes,
76+
currentLowPriorityNodes: currentLowPriorityNodes,
77+
scaleSettings: scaleSettings,
78+
autoScaleRun: autoScaleRun,
79+
interNodeCommunication: interNodeCommunication,
80+
networkConfiguration: networkConfiguration,
81+
taskSlotsPerNode: taskSlotsPerNode,
82+
taskSchedulingNodeFillType: taskSchedulingNodeFillType,
83+
userAccounts: userAccounts,
84+
metadata: metadata,
85+
startTask: startTask,
86+
certificates: certificates,
87+
applicationPackages: applicationPackages,
88+
applicationLicenses: applicationLicenses,
89+
resizeOperationStatus: resizeOperationStatus,
90+
mountConfiguration: mountConfiguration,
91+
targetNodeCommunicationMode: targetNodeCommunicationMode,
92+
currentNodeCommunicationMode: currentNodeCommunicationMode,
93+
etag: etag
94+
);
6195
}
6296
}
6397
}

0 commit comments

Comments
 (0)