From 8ff4a9ffc4f678731d161f09f96de9b3d677200a Mon Sep 17 00:00:00 2001 From: Feng Zhou <55177366+fengzhou-msft@users.noreply.github.com> Date: Fri, 25 Mar 2022 13:32:33 +0800 Subject: [PATCH] [Resources] Address API View comments (#27580) --- ...esourceManager.Resources.netstandard2.0.cs | 837 +++++++++--------- .../Sample1_ManagingApplicationDefinitions.md | 18 +- .../samples/Sample2_ManagingDeployments.md | 34 +- ... ArmDeploymentProperties.Serialization.cs} | 2 +- ...operties.cs => ArmDeploymentProperties.cs} | 8 +- ...oymentPropertiesExtended.Serialization.cs} | 20 +- ....cs => ArmDeploymentPropertiesExtended.cs} | 18 +- ...ploymentWhatIfProperties.Serialization.cs} | 2 +- ...es.cs => ArmDeploymentWhatIfProperties.cs} | 10 +- ...lection.cs => ArmApplicationCollection.cs} | 126 +-- ...plicationData.cs => ArmApplicationData.cs} | 42 +- ... => ArmApplicationDefinitionCollection.cs} | 126 +-- ...ata.cs => ArmApplicationDefinitionData.cs} | 48 +- ...cs => ArmApplicationDefinitionResource.cs} | 114 +-- ...nResource.cs => ArmApplicationResource.cs} | 142 +-- ...llection.cs => ArmDeploymentCollection.cs} | 126 +-- ...DeploymentData.cs => ArmDeploymentData.cs} | 14 +- ...ntResource.cs => ArmDeploymentResource.cs} | 230 ++--- ...on.cs => ArmDeploymentScriptCollection.cs} | 126 +-- ...riptData.cs => ArmDeploymentScriptData.cs} | 14 +- ...urce.cs => ArmDeploymentScriptResource.cs} | 132 +-- .../ManagementGroupResourceExtensionClient.cs | 8 +- .../ResourceGroupResourceExtensionClient.cs | 32 +- .../Extensions/ResourcesExtensions.cs | 192 ++-- .../SubscriptionResourceExtensionClient.cs | 104 +-- .../TenantResourceExtensionClient.cs | 24 +- .../src/Generated/JitRequestData.cs | 8 +- .../ApplicationDefinitionOperationSource.cs | 40 - .../ApplicationOperationSource.cs | 40 - ...ArmApplicationDefinitionOperationSource.cs | 40 + .../ArmApplicationOperationSource.cs | 40 + .../ArmDeploymentOperationSource.cs | 40 + .../ArmDeploymentScriptOperationSource.cs | 40 + ...DeploymentValidateResultOperationSource.cs | 31 + .../DeploymentOperationSource.cs | 40 - .../DeploymentScriptOperationSource.cs | 40 - ...DeploymentValidateResultOperationSource.cs | 31 - .../Models/ApplicationArtifactName.cs | 57 -- .../ApplicationArtifactType.Serialization.cs | 30 - .../ApplicationClientDetails.Serialization.cs | 41 - .../ApplicationDefinitionArtifactName.cs | 57 -- .../ApplicationLockLevel.Serialization.cs | 30 - ...cationManagedIdentityType.Serialization.cs | 32 - .../Models/ApplicationManagementMode.cs | 54 -- .../Models/ApplicationPackageSupportUrls.cs | 32 - ...> ArmApplicationArtifact.Serialization.cs} | 14 +- ...nArtifact.cs => ArmApplicationArtifact.cs} | 14 +- .../Models/ArmApplicationArtifactName.cs | 57 ++ ...rmApplicationArtifactType.Serialization.cs | 30 + ...tType.cs => ArmApplicationArtifactType.cs} | 2 +- ...ApplicationAuthorization.Serialization.cs} | 11 +- ...tion.cs => ArmApplicationAuthorization.cs} | 14 +- ...pplicationBillingDetails.Serialization.cs} | 6 +- ...ion.cs => ArmApplicationBillingDetails.cs} | 10 +- ...cs => ArmApplicationData.Serialization.cs} | 76 +- ...cationDefinitionArtifact.Serialization.cs} | 16 +- ...cs => ArmApplicationDefinitionArtifact.cs} | 14 +- .../ArmApplicationDefinitionArtifactName.cs | 57 ++ ...pplicationDefinitionData.Serialization.cs} | 48 +- ...tionDefinitionListResult.Serialization.cs} | 12 +- ... => ArmApplicationDefinitionListResult.cs} | 14 +- .../Models/ArmApplicationDeploymentMode.cs | 54 ++ ...licationDeploymentPolicy.Serialization.cs} | 10 +- ...y.cs => ArmApplicationDeploymentPolicy.cs} | 8 +- .../ArmApplicationDetails.Serialization.cs | 52 ++ ...entDetails.cs => ArmApplicationDetails.cs} | 16 +- ...ApplicationErrorResponse.Serialization.cs} | 6 +- ...onse.cs => ArmApplicationErrorResponse.cs} | 10 +- ...plicationJitAccessPolicy.Serialization.cs} | 12 +- ...cy.cs => ArmApplicationJitAccessPolicy.cs} | 14 +- ...ArmApplicationListResult.Serialization.cs} | 12 +- ...tResult.cs => ArmApplicationListResult.cs} | 14 +- .../ArmApplicationLockLevel.Serialization.cs | 30 + ...ockLevel.cs => ArmApplicationLockLevel.cs} | 2 +- ...plicationManagedIdentity.Serialization.cs} | 39 +- ...ty.cs => ArmApplicationManagedIdentity.cs} | 25 +- ...cationManagedIdentityType.Serialization.cs | 32 + ...s => ArmApplicationManagedIdentityType.cs} | 2 +- .../Models/ArmApplicationManagementMode.cs | 54 ++ ...licationManagementPolicy.Serialization.cs} | 10 +- ...y.cs => ArmApplicationManagementPolicy.cs} | 12 +- ...tionNotificationEndpoint.Serialization.cs} | 6 +- ... => ArmApplicationNotificationEndpoint.cs} | 6 +- ...cationNotificationPolicy.Serialization.cs} | 12 +- ...cs => ArmApplicationNotificationPolicy.cs} | 12 +- ...pplicationPackageContact.Serialization.cs} | 6 +- ...act.cs => ArmApplicationPackageContact.cs} | 10 +- ...tionPackageLockingPolicy.Serialization.cs} | 6 +- ... => ArmApplicationPackageLockingPolicy.cs} | 10 +- ...cationPackageSupportUrls.Serialization.cs} | 6 +- .../ArmApplicationPackageSupportUrls.cs | 32 + ... => ArmApplicationPolicy.Serialization.cs} | 6 +- ...ationPolicy.cs => ArmApplicationPolicy.cs} | 10 +- ...s => ArmApplicationPropertiesPatchable.cs} | 13 +- ...> ArmApplicationResource.Serialization.cs} | 10 +- ...nResource.cs => ArmApplicationResource.cs} | 12 +- ....cs => ArmApplicationSku.Serialization.cs} | 6 +- ...ApplicationSku.cs => ArmApplicationSku.cs} | 10 +- ...ationUserAssignedIdentity.Serialization.cs | 52 ++ ... => ArmApplicationUserAssignedIdentity.cs} | 16 +- ...tion.cs => ArmDependency.Serialization.cs} | 6 +- .../{Dependency.cs => ArmDependency.cs} | 10 +- ....cs => ArmDeploymentData.Serialization.cs} | 10 +- ...rmDeploymentExportResult.Serialization.cs} | 6 +- ...Result.cs => ArmDeploymentExportResult.cs} | 10 +- ...lter.cs => ArmDeploymentExtendedFilter.cs} | 6 +- ...cs => ArmDeploymentInput.Serialization.cs} | 2 +- ...ploymentInput.cs => ArmDeploymentInput.cs} | 8 +- ... ArmDeploymentListResult.Serialization.cs} | 12 +- ...stResult.cs => ArmDeploymentListResult.cs} | 14 +- .../Models/ArmDeploymentMode.Serialization.cs | 28 + .../src/Generated/Models/ArmDeploymentMode.cs | 18 + ...> ArmDeploymentOperation.Serialization.cs} | 10 +- ...Operation.cs => ArmDeploymentOperation.cs} | 12 +- ...ymentOperationProperties.Serialization.cs} | 6 +- ...cs => ArmDeploymentOperationProperties.cs} | 10 +- ...mentOperationsListResult.Serialization.cs} | 12 +- ...s => ArmDeploymentOperationsListResult.cs} | 14 +- ... ArmDeploymentScriptData.Serialization.cs} | 10 +- ...ploymentScriptListResult.Serialization.cs} | 12 +- ...lt.cs => ArmDeploymentScriptListResult.cs} | 14 +- ...entScriptManagedIdentity.Serialization.cs} | 24 +- ... => ArmDeploymentScriptManagedIdentity.cs} | 19 +- .../ArmDeploymentScriptManagedIdentityType.cs | 48 + ...mentScriptPropertiesBase.Serialization.cs} | 2 +- ...s => ArmDeploymentScriptPropertiesBase.cs} | 6 +- ...rmDeploymentScriptsError.Serialization.cs} | 6 +- ...sError.cs => ArmDeploymentScriptsError.cs} | 10 +- ...DeploymentValidateResult.Serialization.cs} | 10 +- ...sult.cs => ArmDeploymentValidateResult.cs} | 12 +- ...s => ArmDeploymentWhatIf.Serialization.cs} | 2 +- ...oymentWhatIf.cs => ArmDeploymentWhatIf.cs} | 8 +- ...DeploymentWhatIfSettings.Serialization.cs} | 2 +- ...ings.cs => ArmDeploymentWhatIfSettings.cs} | 6 +- .../Models/AzureCliScript.Serialization.cs | 4 +- .../src/Generated/Models/AzureCliScript.cs | 4 +- .../Models/AzureCliScriptProperties.cs | 2 +- .../AzurePowerShellScript.Serialization.cs | 4 +- .../Generated/Models/AzurePowerShellScript.cs | 4 +- .../Models/AzurePowerShellScriptProperties.cs | 2 +- .../src/Generated/Models/DeploymentMode.cs | 54 -- .../DeploymentScriptManagedIdentityType.cs | 48 - ...zation.cs => JitApprover.Serialization.cs} | 6 +- ...itApproverDefinition.cs => JitApprover.cs} | 10 +- .../JitAuthorizationPolicies.Serialization.cs | 5 +- .../Models/JitAuthorizationPolicies.cs | 10 +- .../Models/JitRequestData.Serialization.cs | 12 +- ...chableArmApplicationData.Serialization.cs} | 76 +- ...Data.cs => PatchableArmApplicationData.cs} | 40 +- ...eArmDeploymentScriptData.Serialization.cs} | 6 +- ...cs => PatchableArmDeploymentScriptData.cs} | 10 +- .../src/Generated/Models/ProvisioningState.cs | 81 -- .../Models/ResourcesProvisioningState.cs | 81 ++ .../src/Generated/Models/ScopedDeployment.cs | 4 +- .../Models/ScopedDeploymentWhatIf.cs | 4 +- ...rAssignedResourceIdentity.Serialization.cs | 41 - .../ApplicationDefinitionsRestOperations.cs | 46 +- .../ApplicationsRestOperations.cs | 84 +- .../DeploymentRestOperations.cs | 36 +- .../DeploymentScriptsRestOperations.cs | 84 +- .../DeploymentsRestOperations.cs | 88 +- .../src/Generated/ScriptLogResource.cs | 2 +- .../src/autorest.md | 120 ++- .../tests/ResourcesTestBase.cs | 24 +- .../Sample1_ManagingApplicationDefinitions.cs | 18 +- .../Samples/Sample2_ManagingDeployments.cs | 34 +- .../Scenario/ApplicationCollectionTests.cs | 52 +- .../ApplicationDefinitionCollectionTests.cs | 36 +- .../ApplicationDefinitionOperationsTests.cs | 4 +- .../Scenario/ApplicationOperationsTests.cs | 8 +- .../Scenario/DeploymentCollectionTests.cs | 38 +- .../DeploymentOperationCollectionTests.cs | 12 +- .../Scenario/DeploymentOperationsTests.cs | 10 +- .../DeploymentScriptCollectionTests.cs | 26 +- .../DeploymentScriptOperationsTests.cs | 4 +- 175 files changed, 3056 insertions(+), 2885 deletions(-) rename sdk/resources/Azure.ResourceManager.Resources/src/Customized/{DeploymentProperties.Serialization.cs => ArmDeploymentProperties.Serialization.cs} (97%) rename sdk/resources/Azure.ResourceManager.Resources/src/Customized/{DeploymentProperties.cs => ArmDeploymentProperties.cs} (94%) rename sdk/resources/Azure.ResourceManager.Resources/src/Customized/{DeploymentPropertiesExtended.Serialization.cs => ArmDeploymentPropertiesExtended.Serialization.cs} (87%) rename sdk/resources/Azure.ResourceManager.Resources/src/Customized/{DeploymentPropertiesExtended.cs => ArmDeploymentPropertiesExtended.cs} (82%) rename sdk/resources/Azure.ResourceManager.Resources/src/Customized/{DeploymentWhatIfProperties.Serialization.cs => ArmDeploymentWhatIfProperties.Serialization.cs} (97%) rename sdk/resources/Azure.ResourceManager.Resources/src/Customized/{DeploymentWhatIfProperties.cs => ArmDeploymentWhatIfProperties.cs} (74%) rename sdk/resources/Azure.ResourceManager.Resources/src/Generated/{ApplicationCollection.cs => ArmApplicationCollection.cs} (62%) rename sdk/resources/Azure.ResourceManager.Resources/src/Generated/{ApplicationData.cs => ArmApplicationData.cs} (71%) rename sdk/resources/Azure.ResourceManager.Resources/src/Generated/{ApplicationDefinitionCollection.cs => ArmApplicationDefinitionCollection.cs} (60%) rename sdk/resources/Azure.ResourceManager.Resources/src/Generated/{ApplicationDefinitionData.cs => ArmApplicationDefinitionData.cs} (70%) rename sdk/resources/Azure.ResourceManager.Resources/src/Generated/{ApplicationDefinitionResource.cs => ArmApplicationDefinitionResource.cs} (64%) rename sdk/resources/Azure.ResourceManager.Resources/src/Generated/{ApplicationResource.cs => ArmApplicationResource.cs} (67%) rename sdk/resources/Azure.ResourceManager.Resources/src/Generated/{DeploymentCollection.cs => ArmDeploymentCollection.cs} (63%) rename sdk/resources/Azure.ResourceManager.Resources/src/Generated/{DeploymentData.cs => ArmDeploymentData.cs} (64%) rename sdk/resources/Azure.ResourceManager.Resources/src/Generated/{DeploymentResource.cs => ArmDeploymentResource.cs} (70%) rename sdk/resources/Azure.ResourceManager.Resources/src/Generated/{DeploymentScriptCollection.cs => ArmDeploymentScriptCollection.cs} (60%) rename sdk/resources/Azure.ResourceManager.Resources/src/Generated/{DeploymentScriptData.cs => ArmDeploymentScriptData.cs} (74%) rename sdk/resources/Azure.ResourceManager.Resources/src/Generated/{DeploymentScriptResource.cs => ArmDeploymentScriptResource.cs} (71%) delete mode 100644 sdk/resources/Azure.ResourceManager.Resources/src/Generated/LongRunningOperation/ApplicationDefinitionOperationSource.cs delete mode 100644 sdk/resources/Azure.ResourceManager.Resources/src/Generated/LongRunningOperation/ApplicationOperationSource.cs create mode 100644 sdk/resources/Azure.ResourceManager.Resources/src/Generated/LongRunningOperation/ArmApplicationDefinitionOperationSource.cs create mode 100644 sdk/resources/Azure.ResourceManager.Resources/src/Generated/LongRunningOperation/ArmApplicationOperationSource.cs create mode 100644 sdk/resources/Azure.ResourceManager.Resources/src/Generated/LongRunningOperation/ArmDeploymentOperationSource.cs create mode 100644 sdk/resources/Azure.ResourceManager.Resources/src/Generated/LongRunningOperation/ArmDeploymentScriptOperationSource.cs create mode 100644 sdk/resources/Azure.ResourceManager.Resources/src/Generated/LongRunningOperation/ArmDeploymentValidateResultOperationSource.cs delete mode 100644 sdk/resources/Azure.ResourceManager.Resources/src/Generated/LongRunningOperation/DeploymentOperationSource.cs delete mode 100644 sdk/resources/Azure.ResourceManager.Resources/src/Generated/LongRunningOperation/DeploymentScriptOperationSource.cs delete mode 100644 sdk/resources/Azure.ResourceManager.Resources/src/Generated/LongRunningOperation/DeploymentValidateResultOperationSource.cs delete mode 100644 sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ApplicationArtifactName.cs delete mode 100644 sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ApplicationArtifactType.Serialization.cs delete mode 100644 sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ApplicationClientDetails.Serialization.cs delete mode 100644 sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ApplicationDefinitionArtifactName.cs delete mode 100644 sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ApplicationLockLevel.Serialization.cs delete mode 100644 sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ApplicationManagedIdentityType.Serialization.cs delete mode 100644 sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ApplicationManagementMode.cs delete mode 100644 sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ApplicationPackageSupportUrls.cs rename sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/{ApplicationArtifact.Serialization.cs => ArmApplicationArtifact.Serialization.cs} (61%) rename sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/{ApplicationArtifact.cs => ArmApplicationArtifact.cs} (62%) create mode 100644 sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmApplicationArtifactName.cs create mode 100644 sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmApplicationArtifactType.Serialization.cs rename sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/{ApplicationArtifactType.cs => ArmApplicationArtifactType.cs} (91%) rename sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/{ApplicationAuthorization.Serialization.cs => ArmApplicationAuthorization.Serialization.cs} (73%) rename sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/{ApplicationAuthorization.cs => ArmApplicationAuthorization.cs} (76%) rename sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/{ApplicationBillingDetailsDefinition.Serialization.cs => ArmApplicationBillingDetails.Serialization.cs} (68%) rename sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/{ApplicationBillingDetailsDefinition.cs => ArmApplicationBillingDetails.cs} (59%) rename sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/{ApplicationData.Serialization.cs => ArmApplicationData.Serialization.cs} (76%) rename sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/{ApplicationDefinitionArtifact.Serialization.cs => ArmApplicationDefinitionArtifact.Serialization.cs} (64%) rename sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/{ApplicationDefinitionArtifact.cs => ArmApplicationDefinitionArtifact.cs} (61%) create mode 100644 sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmApplicationDefinitionArtifactName.cs rename sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/{ApplicationDefinitionData.Serialization.cs => ArmApplicationDefinitionData.Serialization.cs} (84%) rename sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/{ApplicationDefinitionListResult.Serialization.cs => ArmApplicationDefinitionListResult.Serialization.cs} (66%) rename sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/{ApplicationDefinitionListResult.cs => ArmApplicationDefinitionListResult.cs} (59%) create mode 100644 sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmApplicationDeploymentMode.cs rename sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/{ApplicationDeploymentPolicy.Serialization.cs => ArmApplicationDeploymentPolicy.Serialization.cs} (63%) rename sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/{ApplicationDeploymentPolicy.cs => ArmApplicationDeploymentPolicy.cs} (61%) create mode 100644 sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmApplicationDetails.Serialization.cs rename sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/{ApplicationClientDetails.cs => ArmApplicationDetails.cs} (65%) rename sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/{ApplicationErrorResponse.Serialization.cs => ArmApplicationErrorResponse.Serialization.cs} (79%) rename sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/{ApplicationErrorResponse.cs => ArmApplicationErrorResponse.cs} (73%) rename sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/{ApplicationJitAccessPolicy.Serialization.cs => ArmApplicationJitAccessPolicy.Serialization.cs} (83%) rename sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/{ApplicationJitAccessPolicy.cs => ArmApplicationJitAccessPolicy.cs} (71%) rename sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/{DeploymentListResult.Serialization.cs => ArmApplicationListResult.Serialization.cs} (69%) rename sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/{ApplicationListResult.cs => ArmApplicationListResult.cs} (62%) create mode 100644 sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmApplicationLockLevel.Serialization.cs rename sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/{ApplicationLockLevel.cs => ArmApplicationLockLevel.cs} (91%) rename sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/{ApplicationManagedIdentity.Serialization.cs => ArmApplicationManagedIdentity.Serialization.cs} (54%) rename sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/{ApplicationManagedIdentity.cs => ArmApplicationManagedIdentity.cs} (60%) create mode 100644 sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmApplicationManagedIdentityType.Serialization.cs rename sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/{ApplicationManagedIdentityType.cs => ArmApplicationManagedIdentityType.cs} (91%) create mode 100644 sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmApplicationManagementMode.cs rename sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/{ApplicationManagementPolicy.Serialization.cs => ArmApplicationManagementPolicy.Serialization.cs} (70%) rename sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/{ApplicationManagementPolicy.cs => ArmApplicationManagementPolicy.cs} (52%) rename sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/{ApplicationNotificationEndpoint.Serialization.cs => ArmApplicationNotificationEndpoint.Serialization.cs} (75%) rename sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/{ApplicationNotificationEndpoint.cs => ArmApplicationNotificationEndpoint.cs} (77%) rename sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/{ApplicationNotificationPolicy.Serialization.cs => ArmApplicationNotificationPolicy.Serialization.cs} (64%) rename sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/{ApplicationNotificationPolicy.cs => ArmApplicationNotificationPolicy.cs} (65%) rename sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/{ApplicationPackageContact.Serialization.cs => ArmApplicationPackageContact.Serialization.cs} (79%) rename sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/{ApplicationPackageContact.cs => ArmApplicationPackageContact.cs} (78%) rename sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/{ApplicationPackageLockingPolicyDefinition.Serialization.cs => ArmApplicationPackageLockingPolicy.Serialization.cs} (82%) rename sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/{ApplicationPackageLockingPolicyDefinition.cs => ArmApplicationPackageLockingPolicy.cs} (61%) rename sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/{ApplicationPackageSupportUrls.Serialization.cs => ArmApplicationPackageSupportUrls.Serialization.cs} (75%) create mode 100644 sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmApplicationPackageSupportUrls.cs rename sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/{ApplicationPolicy.Serialization.cs => ArmApplicationPolicy.Serialization.cs} (86%) rename sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/{ApplicationPolicy.cs => ArmApplicationPolicy.cs} (72%) rename sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/{ApplicationPropertiesPatchable.cs => ArmApplicationPropertiesPatchable.cs} (67%) rename sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/{ApplicationResource.Serialization.cs => ArmApplicationResource.Serialization.cs} (88%) rename sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/{ApplicationResource.cs => ArmApplicationResource.cs} (64%) rename sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/{ApplicationSku.Serialization.cs => ArmApplicationSku.Serialization.cs} (91%) rename sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/{ApplicationSku.cs => ArmApplicationSku.cs} (81%) create mode 100644 sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmApplicationUserAssignedIdentity.Serialization.cs rename sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/{UserAssignedResourceIdentity.cs => ArmApplicationUserAssignedIdentity.cs} (61%) rename sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/{Dependency.Serialization.cs => ArmDependency.Serialization.cs} (88%) rename sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/{Dependency.cs => ArmDependency.cs} (78%) rename sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/{DeploymentData.Serialization.cs => ArmDeploymentData.Serialization.cs} (85%) rename sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/{DeploymentExportResult.Serialization.cs => ArmDeploymentExportResult.Serialization.cs} (78%) rename sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/{DeploymentExportResult.cs => ArmDeploymentExportResult.cs} (60%) rename sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/{DeploymentExtendedFilter.cs => ArmDeploymentExtendedFilter.cs} (66%) rename sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/{DeploymentInput.Serialization.cs => ArmDeploymentInput.Serialization.cs} (94%) rename sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/{DeploymentInput.cs => ArmDeploymentInput.cs} (80%) rename sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/{ApplicationListResult.Serialization.cs => ArmDeploymentListResult.Serialization.cs} (70%) rename sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/{DeploymentListResult.cs => ArmDeploymentListResult.cs} (61%) create mode 100644 sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmDeploymentMode.Serialization.cs create mode 100644 sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmDeploymentMode.cs rename sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/{DeploymentOperation.Serialization.cs => ArmDeploymentOperation.Serialization.cs} (71%) rename sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/{DeploymentOperation.cs => ArmDeploymentOperation.cs} (66%) rename sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/{DeploymentOperationProperties.Serialization.cs => ArmDeploymentOperationProperties.Serialization.cs} (90%) rename sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/{DeploymentOperationProperties.cs => ArmDeploymentOperationProperties.cs} (84%) rename sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/{DeploymentOperationsListResult.Serialization.cs => ArmDeploymentOperationsListResult.Serialization.cs} (66%) rename sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/{DeploymentOperationsListResult.cs => ArmDeploymentOperationsListResult.cs} (58%) rename sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/{DeploymentScriptData.Serialization.cs => ArmDeploymentScriptData.Serialization.cs} (89%) rename sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/{DeploymentScriptListResult.Serialization.cs => ArmDeploymentScriptListResult.Serialization.cs} (67%) rename sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/{DeploymentScriptListResult.cs => ArmDeploymentScriptListResult.cs} (59%) rename sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/{DeploymentScriptManagedIdentity.Serialization.cs => ArmDeploymentScriptManagedIdentity.Serialization.cs} (70%) rename sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/{DeploymentScriptManagedIdentity.cs => ArmDeploymentScriptManagedIdentity.cs} (58%) create mode 100644 sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmDeploymentScriptManagedIdentityType.cs rename sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/{DeploymentScriptPropertiesBase.Serialization.cs => ArmDeploymentScriptPropertiesBase.Serialization.cs} (76%) rename sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/{DeploymentScriptPropertiesBase.cs => ArmDeploymentScriptPropertiesBase.cs} (92%) rename sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/{DeploymentScriptsError.Serialization.cs => ArmDeploymentScriptsError.Serialization.cs} (80%) rename sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/{DeploymentScriptsError.cs => ArmDeploymentScriptsError.cs} (70%) rename sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/{DeploymentValidateResult.Serialization.cs => ArmDeploymentValidateResult.Serialization.cs} (73%) rename sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/{DeploymentValidateResult.cs => ArmDeploymentValidateResult.cs} (62%) rename sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/{DeploymentWhatIf.Serialization.cs => ArmDeploymentWhatIf.Serialization.cs} (90%) rename sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/{DeploymentWhatIf.cs => ArmDeploymentWhatIf.cs} (76%) rename sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/{DeploymentWhatIfSettings.Serialization.cs => ArmDeploymentWhatIfSettings.Serialization.cs} (88%) rename sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/{DeploymentWhatIfSettings.cs => ArmDeploymentWhatIfSettings.cs} (68%) delete mode 100644 sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/DeploymentMode.cs delete mode 100644 sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/DeploymentScriptManagedIdentityType.cs rename sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/{JitApproverDefinition.Serialization.cs => JitApprover.Serialization.cs} (87%) rename sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/{JitApproverDefinition.cs => JitApprover.cs} (77%) rename sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/{PatchableApplicationData.Serialization.cs => PatchableArmApplicationData.Serialization.cs} (75%) rename sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/{PatchableApplicationData.cs => PatchableArmApplicationData.cs} (70%) rename sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/{PatchableDeploymentScriptData.Serialization.cs => PatchableArmDeploymentScriptData.Serialization.cs} (89%) rename sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/{PatchableDeploymentScriptData.cs => PatchableArmDeploymentScriptData.cs} (63%) delete mode 100644 sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ProvisioningState.cs create mode 100644 sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ResourcesProvisioningState.cs delete mode 100644 sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/UserAssignedResourceIdentity.Serialization.cs diff --git a/sdk/resources/Azure.ResourceManager.Resources/api/Azure.ResourceManager.Resources.netstandard2.0.cs b/sdk/resources/Azure.ResourceManager.Resources/api/Azure.ResourceManager.Resources.netstandard2.0.cs index ebb4846858a72..c391437d41a80 100644 --- a/sdk/resources/Azure.ResourceManager.Resources/api/Azure.ResourceManager.Resources.netstandard2.0.cs +++ b/sdk/resources/Azure.ResourceManager.Resources/api/Azure.ResourceManager.Resources.netstandard2.0.cs @@ -1,151 +1,151 @@ namespace Azure.ResourceManager.Resources { - public partial class ApplicationCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable + public partial class ArmApplicationCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable { - protected ApplicationCollection() { } - public virtual Azure.ResourceManager.ArmOperation CreateOrUpdate(Azure.WaitUntil waitUntil, string applicationName, Azure.ResourceManager.Resources.ApplicationData parameters, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string applicationName, Azure.ResourceManager.Resources.ApplicationData parameters, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + protected ArmApplicationCollection() { } + public virtual Azure.ResourceManager.ArmOperation CreateOrUpdate(Azure.WaitUntil waitUntil, string applicationName, Azure.ResourceManager.Resources.ArmApplicationData parameters, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string applicationName, Azure.ResourceManager.Resources.ArmApplicationData parameters, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response Exists(string applicationName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> ExistsAsync(string applicationName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Get(string applicationName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Pageable GetAll(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.AsyncPageable GetAllAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetAsync(string applicationName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response GetIfExists(string applicationName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetIfExistsAsync(string applicationName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - System.Collections.Generic.IAsyncEnumerator System.Collections.Generic.IAsyncEnumerable.GetAsyncEnumerator(System.Threading.CancellationToken cancellationToken) { throw null; } - System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; } + public virtual Azure.Response Get(string applicationName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Pageable GetAll(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.AsyncPageable GetAllAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(string applicationName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response GetIfExists(string applicationName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetIfExistsAsync(string applicationName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + System.Collections.Generic.IAsyncEnumerator System.Collections.Generic.IAsyncEnumerable.GetAsyncEnumerator(System.Threading.CancellationToken cancellationToken) { throw null; } + System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; } System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; } } - public partial class ApplicationData : Azure.ResourceManager.Resources.Models.ApplicationResource + public partial class ArmApplicationData : Azure.ResourceManager.Resources.Models.ArmApplicationResource { - public ApplicationData(Azure.Core.AzureLocation location, string kind) : base (default(Azure.Core.AzureLocation)) { } - public string ApplicationDefinitionId { get { throw null; } set { } } - public System.Collections.Generic.IReadOnlyList Artifacts { get { throw null; } } - public System.Collections.Generic.IReadOnlyList Authorizations { get { throw null; } } + public ArmApplicationData(Azure.Core.AzureLocation location, string kind) : base (default(Azure.Core.AzureLocation)) { } + public Azure.Core.ResourceIdentifier ApplicationDefinitionId { get { throw null; } set { } } + public System.Collections.Generic.IReadOnlyList Artifacts { get { throw null; } } + public System.Collections.Generic.IReadOnlyList Authorizations { get { throw null; } } public string BillingDetailsResourceUsageId { get { throw null; } } - public Azure.ResourceManager.Resources.Models.ApplicationClientDetails CreatedBy { get { throw null; } } - public Azure.ResourceManager.Resources.Models.ApplicationPackageContact CustomerSupport { get { throw null; } } - public Azure.ResourceManager.Resources.Models.ApplicationManagedIdentity Identity { get { throw null; } set { } } - public Azure.ResourceManager.Resources.Models.ApplicationJitAccessPolicy JitAccessPolicy { get { throw null; } set { } } + public Azure.ResourceManager.Resources.Models.ArmApplicationDetails CreatedBy { get { throw null; } } + public Azure.ResourceManager.Resources.Models.ArmApplicationPackageContact CustomerSupport { get { throw null; } } + public Azure.ResourceManager.Resources.Models.ArmApplicationManagedIdentity Identity { get { throw null; } set { } } + public Azure.ResourceManager.Resources.Models.ArmApplicationJitAccessPolicy JitAccessPolicy { get { throw null; } set { } } public string Kind { get { throw null; } set { } } - public string ManagedResourceGroupId { get { throw null; } set { } } - public Azure.ResourceManager.Resources.Models.ApplicationManagementMode? ManagementMode { get { throw null; } } + public Azure.Core.ResourceIdentifier ManagedResourceGroupId { get { throw null; } set { } } + public Azure.ResourceManager.Resources.Models.ArmApplicationManagementMode? ManagementMode { get { throw null; } } public System.BinaryData Outputs { get { throw null; } } public System.BinaryData Parameters { get { throw null; } set { } } public Azure.ResourceManager.Models.ArmPlan Plan { get { throw null; } set { } } - public Azure.ResourceManager.Resources.Models.ProvisioningState? ProvisioningState { get { throw null; } } + public Azure.ResourceManager.Resources.Models.ResourcesProvisioningState? ProvisioningState { get { throw null; } } public string PublisherTenantId { get { throw null; } } - public Azure.ResourceManager.Resources.Models.ApplicationPackageSupportUrls SupportUrls { get { throw null; } } - public Azure.ResourceManager.Resources.Models.ApplicationClientDetails UpdatedBy { get { throw null; } } + public Azure.ResourceManager.Resources.Models.ArmApplicationPackageSupportUrls SupportUrls { get { throw null; } } + public Azure.ResourceManager.Resources.Models.ArmApplicationDetails UpdatedBy { get { throw null; } } } - public partial class ApplicationDefinitionCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable + public partial class ArmApplicationDefinitionCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable { - protected ApplicationDefinitionCollection() { } - public virtual Azure.ResourceManager.ArmOperation CreateOrUpdate(Azure.WaitUntil waitUntil, string applicationDefinitionName, Azure.ResourceManager.Resources.ApplicationDefinitionData parameters, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string applicationDefinitionName, Azure.ResourceManager.Resources.ApplicationDefinitionData parameters, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + protected ArmApplicationDefinitionCollection() { } + public virtual Azure.ResourceManager.ArmOperation CreateOrUpdate(Azure.WaitUntil waitUntil, string applicationDefinitionName, Azure.ResourceManager.Resources.ArmApplicationDefinitionData parameters, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string applicationDefinitionName, Azure.ResourceManager.Resources.ArmApplicationDefinitionData parameters, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response Exists(string applicationDefinitionName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> ExistsAsync(string applicationDefinitionName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Get(string applicationDefinitionName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Pageable GetAll(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.AsyncPageable GetAllAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetAsync(string applicationDefinitionName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response GetIfExists(string applicationDefinitionName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetIfExistsAsync(string applicationDefinitionName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - System.Collections.Generic.IAsyncEnumerator System.Collections.Generic.IAsyncEnumerable.GetAsyncEnumerator(System.Threading.CancellationToken cancellationToken) { throw null; } - System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; } + public virtual Azure.Response Get(string applicationDefinitionName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Pageable GetAll(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.AsyncPageable GetAllAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(string applicationDefinitionName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response GetIfExists(string applicationDefinitionName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetIfExistsAsync(string applicationDefinitionName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + System.Collections.Generic.IAsyncEnumerator System.Collections.Generic.IAsyncEnumerable.GetAsyncEnumerator(System.Threading.CancellationToken cancellationToken) { throw null; } + System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; } System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; } } - public partial class ApplicationDefinitionData : Azure.ResourceManager.Resources.Models.ApplicationResource + public partial class ArmApplicationDefinitionData : Azure.ResourceManager.Resources.Models.ArmApplicationResource { - public ApplicationDefinitionData(Azure.Core.AzureLocation location, Azure.ResourceManager.Resources.Models.ApplicationLockLevel lockLevel) : base (default(Azure.Core.AzureLocation)) { } - public System.Collections.Generic.IList Artifacts { get { throw null; } } - public System.Collections.Generic.IList Authorizations { get { throw null; } } + public ArmApplicationDefinitionData(Azure.Core.AzureLocation location, Azure.ResourceManager.Resources.Models.ArmApplicationLockLevel lockLevel) : base (default(Azure.Core.AzureLocation)) { } + public System.Collections.Generic.IList Artifacts { get { throw null; } } + public System.Collections.Generic.IList Authorizations { get { throw null; } } public System.BinaryData CreateUiDefinition { get { throw null; } set { } } - public Azure.ResourceManager.Resources.Models.DeploymentMode DeploymentMode { get { throw null; } set { } } + public Azure.ResourceManager.Resources.Models.ArmApplicationDeploymentMode DeploymentMode { get { throw null; } set { } } public string Description { get { throw null; } set { } } public string DisplayName { get { throw null; } set { } } public bool? IsEnabled { get { throw null; } set { } } public System.Collections.Generic.IList LockingAllowedActions { get { throw null; } } - public Azure.ResourceManager.Resources.Models.ApplicationLockLevel LockLevel { get { throw null; } set { } } + public Azure.ResourceManager.Resources.Models.ArmApplicationLockLevel LockLevel { get { throw null; } set { } } public System.BinaryData MainTemplate { get { throw null; } set { } } - public Azure.ResourceManager.Resources.Models.ApplicationManagementMode? ManagementMode { get { throw null; } set { } } - public System.Collections.Generic.IList NotificationEndpoints { get { throw null; } set { } } + public Azure.ResourceManager.Resources.Models.ArmApplicationManagementMode? ManagementMode { get { throw null; } set { } } + public System.Collections.Generic.IList NotificationEndpoints { get { throw null; } set { } } public System.Uri PackageFileUri { get { throw null; } set { } } - public System.Collections.Generic.IList Policies { get { throw null; } } + public System.Collections.Generic.IList Policies { get { throw null; } } } - public partial class ApplicationDefinitionResource : Azure.ResourceManager.ArmResource + public partial class ArmApplicationDefinitionResource : Azure.ResourceManager.ArmResource { public static readonly Azure.Core.ResourceType ResourceType; - protected ApplicationDefinitionResource() { } - public virtual Azure.ResourceManager.Resources.ApplicationDefinitionData Data { get { throw null; } } + protected ArmApplicationDefinitionResource() { } + public virtual Azure.ResourceManager.Resources.ArmApplicationDefinitionData Data { get { throw null; } } public virtual bool HasData { get { throw null; } } - public virtual Azure.Response AddTag(string key, string value, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> AddTagAsync(string key, string value, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response AddTag(string key, string value, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> AddTagAsync(string key, string value, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string applicationDefinitionName) { throw null; } public virtual Azure.ResourceManager.ArmOperation Delete(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task DeleteAsync(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response RemoveTag(string key, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> RemoveTagAsync(string key, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response SetTags(System.Collections.Generic.IDictionary tags, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> SetTagsAsync(System.Collections.Generic.IDictionary tags, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response RemoveTag(string key, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> RemoveTagAsync(string key, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response SetTags(System.Collections.Generic.IDictionary tags, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> SetTagsAsync(System.Collections.Generic.IDictionary tags, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } } - public partial class ApplicationResource : Azure.ResourceManager.ArmResource + public partial class ArmApplicationResource : Azure.ResourceManager.ArmResource { public static readonly Azure.Core.ResourceType ResourceType; - protected ApplicationResource() { } - public virtual Azure.ResourceManager.Resources.ApplicationData Data { get { throw null; } } + protected ArmApplicationResource() { } + public virtual Azure.ResourceManager.Resources.ArmApplicationData Data { get { throw null; } } public virtual bool HasData { get { throw null; } } - public virtual Azure.Response AddTag(string key, string value, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> AddTagAsync(string key, string value, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response AddTag(string key, string value, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> AddTagAsync(string key, string value, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string applicationName) { throw null; } public virtual Azure.ResourceManager.ArmOperation Delete(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task DeleteAsync(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.ResourceManager.ArmOperation RefreshPermissions(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task RefreshPermissionsAsync(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response RemoveTag(string key, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> RemoveTagAsync(string key, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response SetTags(System.Collections.Generic.IDictionary tags, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> SetTagsAsync(System.Collections.Generic.IDictionary tags, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Update(Azure.ResourceManager.Resources.Models.PatchableApplicationData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.ResourceManager.Resources.Models.PatchableApplicationData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - } - public partial class DeploymentCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable - { - protected DeploymentCollection() { } - public virtual Azure.ResourceManager.ArmOperation CreateOrUpdate(Azure.WaitUntil waitUntil, string deploymentName, Azure.ResourceManager.Resources.Models.DeploymentInput parameters, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string deploymentName, Azure.ResourceManager.Resources.Models.DeploymentInput parameters, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response RemoveTag(string key, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> RemoveTagAsync(string key, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response SetTags(System.Collections.Generic.IDictionary tags, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> SetTagsAsync(System.Collections.Generic.IDictionary tags, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Update(Azure.ResourceManager.Resources.Models.PatchableArmApplicationData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.ResourceManager.Resources.Models.PatchableArmApplicationData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + } + public partial class ArmDeploymentCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable + { + protected ArmDeploymentCollection() { } + public virtual Azure.ResourceManager.ArmOperation CreateOrUpdate(Azure.WaitUntil waitUntil, string deploymentName, Azure.ResourceManager.Resources.Models.ArmDeploymentInput parameters, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string deploymentName, Azure.ResourceManager.Resources.Models.ArmDeploymentInput parameters, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response Exists(string deploymentName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> ExistsAsync(string deploymentName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Get(string deploymentName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Pageable GetAll(string filter = null, int? top = default(int?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.AsyncPageable GetAllAsync(string filter = null, int? top = default(int?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetAsync(string deploymentName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response GetIfExists(string deploymentName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetIfExistsAsync(string deploymentName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - System.Collections.Generic.IAsyncEnumerator System.Collections.Generic.IAsyncEnumerable.GetAsyncEnumerator(System.Threading.CancellationToken cancellationToken) { throw null; } - System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; } + public virtual Azure.Response Get(string deploymentName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Pageable GetAll(string filter = null, int? top = default(int?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.AsyncPageable GetAllAsync(string filter = null, int? top = default(int?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(string deploymentName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response GetIfExists(string deploymentName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetIfExistsAsync(string deploymentName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + System.Collections.Generic.IAsyncEnumerator System.Collections.Generic.IAsyncEnumerable.GetAsyncEnumerator(System.Threading.CancellationToken cancellationToken) { throw null; } + System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; } System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; } } - public partial class DeploymentData : Azure.ResourceManager.Models.ResourceData + public partial class ArmDeploymentData : Azure.ResourceManager.Models.ResourceData { - internal DeploymentData() { } + internal ArmDeploymentData() { } public string Location { get { throw null; } } - public Azure.ResourceManager.Resources.Models.DeploymentPropertiesExtended Properties { get { throw null; } } + public Azure.ResourceManager.Resources.Models.ArmDeploymentPropertiesExtended Properties { get { throw null; } } public System.Collections.Generic.IReadOnlyDictionary Tags { get { throw null; } } } - public partial class DeploymentResource : Azure.ResourceManager.ArmResource + public partial class ArmDeploymentResource : Azure.ResourceManager.ArmResource { public static readonly Azure.Core.ResourceType ResourceType; - protected DeploymentResource() { } - public virtual Azure.ResourceManager.Resources.DeploymentData Data { get { throw null; } } + protected ArmDeploymentResource() { } + public virtual Azure.ResourceManager.Resources.ArmDeploymentData Data { get { throw null; } } public virtual bool HasData { get { throw null; } } - public virtual Azure.Response AddTag(string key, string value, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> AddTagAsync(string key, string value, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response AddTag(string key, string value, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> AddTagAsync(string key, string value, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response Cancel(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task CancelAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response CheckExistence(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } @@ -153,69 +153,69 @@ protected DeploymentResource() { } public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string scope, string deploymentName) { throw null; } public virtual Azure.ResourceManager.ArmOperation Delete(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task DeleteAsync(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response ExportTemplate(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> ExportTemplateAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response GetDeploymentOperation(string operationId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetDeploymentOperationAsync(string operationId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Pageable GetDeploymentOperations(int? top = default(int?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.AsyncPageable GetDeploymentOperationsAsync(int? top = default(int?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response RemoveTag(string key, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> RemoveTagAsync(string key, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response SetTags(System.Collections.Generic.IDictionary tags, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> SetTagsAsync(System.Collections.Generic.IDictionary tags, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.ResourceManager.ArmOperation Validate(Azure.WaitUntil waitUntil, Azure.ResourceManager.Resources.Models.DeploymentInput parameters, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> ValidateAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.Resources.Models.DeploymentInput parameters, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.ResourceManager.ArmOperation WhatIf(Azure.WaitUntil waitUntil, Azure.ResourceManager.Resources.Models.DeploymentWhatIf parameters, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> WhatIfAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.Resources.Models.DeploymentWhatIf parameters, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - } - public partial class DeploymentScriptCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable - { - protected DeploymentScriptCollection() { } - public virtual Azure.ResourceManager.ArmOperation CreateOrUpdate(Azure.WaitUntil waitUntil, string scriptName, Azure.ResourceManager.Resources.DeploymentScriptData deploymentScript, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string scriptName, Azure.ResourceManager.Resources.DeploymentScriptData deploymentScript, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response ExportTemplate(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> ExportTemplateAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response GetDeploymentOperation(string operationId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetDeploymentOperationAsync(string operationId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Pageable GetDeploymentOperations(int? top = default(int?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.AsyncPageable GetDeploymentOperationsAsync(int? top = default(int?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response RemoveTag(string key, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> RemoveTagAsync(string key, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response SetTags(System.Collections.Generic.IDictionary tags, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> SetTagsAsync(System.Collections.Generic.IDictionary tags, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.ArmOperation Validate(Azure.WaitUntil waitUntil, Azure.ResourceManager.Resources.Models.ArmDeploymentInput parameters, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> ValidateAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.Resources.Models.ArmDeploymentInput parameters, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.ArmOperation WhatIf(Azure.WaitUntil waitUntil, Azure.ResourceManager.Resources.Models.ArmDeploymentWhatIf parameters, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> WhatIfAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.Resources.Models.ArmDeploymentWhatIf parameters, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + } + public partial class ArmDeploymentScriptCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable + { + protected ArmDeploymentScriptCollection() { } + public virtual Azure.ResourceManager.ArmOperation CreateOrUpdate(Azure.WaitUntil waitUntil, string scriptName, Azure.ResourceManager.Resources.ArmDeploymentScriptData deploymentScript, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string scriptName, Azure.ResourceManager.Resources.ArmDeploymentScriptData deploymentScript, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response Exists(string scriptName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> ExistsAsync(string scriptName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Get(string scriptName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Pageable GetAll(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.AsyncPageable GetAllAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetAsync(string scriptName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response GetIfExists(string scriptName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetIfExistsAsync(string scriptName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - System.Collections.Generic.IAsyncEnumerator System.Collections.Generic.IAsyncEnumerable.GetAsyncEnumerator(System.Threading.CancellationToken cancellationToken) { throw null; } - System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; } + public virtual Azure.Response Get(string scriptName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Pageable GetAll(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.AsyncPageable GetAllAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(string scriptName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response GetIfExists(string scriptName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetIfExistsAsync(string scriptName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + System.Collections.Generic.IAsyncEnumerator System.Collections.Generic.IAsyncEnumerable.GetAsyncEnumerator(System.Threading.CancellationToken cancellationToken) { throw null; } + System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; } System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; } } - public partial class DeploymentScriptData : Azure.ResourceManager.Models.ResourceData + public partial class ArmDeploymentScriptData : Azure.ResourceManager.Models.ResourceData { - public DeploymentScriptData(string location) { } - public Azure.ResourceManager.Resources.Models.DeploymentScriptManagedIdentity Identity { get { throw null; } set { } } + public ArmDeploymentScriptData(string location) { } + public Azure.ResourceManager.Resources.Models.ArmDeploymentScriptManagedIdentity Identity { get { throw null; } set { } } public string Location { get { throw null; } set { } } public System.Collections.Generic.IDictionary Tags { get { throw null; } } } - public partial class DeploymentScriptResource : Azure.ResourceManager.ArmResource + public partial class ArmDeploymentScriptResource : Azure.ResourceManager.ArmResource { public static readonly Azure.Core.ResourceType ResourceType; - protected DeploymentScriptResource() { } - public virtual Azure.ResourceManager.Resources.DeploymentScriptData Data { get { throw null; } } + protected ArmDeploymentScriptResource() { } + public virtual Azure.ResourceManager.Resources.ArmDeploymentScriptData Data { get { throw null; } } public virtual bool HasData { get { throw null; } } - public virtual Azure.Response AddTag(string key, string value, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> AddTagAsync(string key, string value, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response AddTag(string key, string value, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> AddTagAsync(string key, string value, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string scriptName) { throw null; } public virtual Azure.ResourceManager.ArmOperation Delete(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task DeleteAsync(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Pageable GetLogs(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.AsyncPageable GetLogsAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.ResourceManager.Resources.ScriptLogResource GetScriptLog() { throw null; } - public virtual Azure.Response RemoveTag(string key, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> RemoveTagAsync(string key, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response SetTags(System.Collections.Generic.IDictionary tags, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> SetTagsAsync(System.Collections.Generic.IDictionary tags, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Update(Azure.ResourceManager.Resources.Models.PatchableDeploymentScriptData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.ResourceManager.Resources.Models.PatchableDeploymentScriptData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response RemoveTag(string key, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> RemoveTagAsync(string key, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response SetTags(System.Collections.Generic.IDictionary tags, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> SetTagsAsync(System.Collections.Generic.IDictionary tags, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Update(Azure.ResourceManager.Resources.Models.PatchableArmDeploymentScriptData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.ResourceManager.Resources.Models.PatchableArmDeploymentScriptData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } } public partial class JitRequestCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable { @@ -238,13 +238,13 @@ public partial class JitRequestData : Azure.ResourceManager.Models.TrackedResour { public JitRequestData(Azure.Core.AzureLocation location) : base (default(Azure.Core.AzureLocation)) { } public string ApplicationResourceId { get { throw null; } set { } } - public Azure.ResourceManager.Resources.Models.ApplicationClientDetails CreatedBy { get { throw null; } } + public Azure.ResourceManager.Resources.Models.ArmApplicationDetails CreatedBy { get { throw null; } } public System.Collections.Generic.IList JitAuthorizationPolicies { get { throw null; } } public Azure.ResourceManager.Resources.Models.JitRequestState? JitRequestState { get { throw null; } } public Azure.ResourceManager.Resources.Models.JitSchedulingPolicy JitSchedulingPolicy { get { throw null; } set { } } - public Azure.ResourceManager.Resources.Models.ProvisioningState? ProvisioningState { get { throw null; } } + public Azure.ResourceManager.Resources.Models.ResourcesProvisioningState? ProvisioningState { get { throw null; } } public string PublisherTenantId { get { throw null; } } - public Azure.ResourceManager.Resources.Models.ApplicationClientDetails UpdatedBy { get { throw null; } } + public Azure.ResourceManager.Resources.Models.ArmApplicationDetails UpdatedBy { get { throw null; } } } public partial class JitRequestResource : Azure.ResourceManager.ArmResource { @@ -268,35 +268,35 @@ public static partial class ResourcesExtensions { public static Azure.Response CalculateDeploymentTemplateHash(this Azure.ResourceManager.Resources.TenantResource tenantResource, System.BinaryData template, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public static System.Threading.Tasks.Task> CalculateDeploymentTemplateHashAsync(this Azure.ResourceManager.Resources.TenantResource tenantResource, System.BinaryData template, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public static Azure.Response GetApplication(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string applicationName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public static System.Threading.Tasks.Task> GetApplicationAsync(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string applicationName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public static Azure.Response GetApplicationDefinition(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string applicationDefinitionName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public static System.Threading.Tasks.Task> GetApplicationDefinitionAsync(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string applicationDefinitionName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public static Azure.ResourceManager.Resources.ApplicationDefinitionResource GetApplicationDefinitionResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } - public static Azure.ResourceManager.Resources.ApplicationDefinitionCollection GetApplicationDefinitions(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource) { throw null; } - public static Azure.ResourceManager.Resources.ApplicationResource GetApplicationResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } - public static Azure.ResourceManager.Resources.ApplicationCollection GetApplications(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource) { throw null; } - public static Azure.Pageable GetApplications(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public static Azure.AsyncPageable GetApplicationsAsync(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public static Azure.Response GetDeployment(this Azure.ResourceManager.Management.ManagementGroupResource managementGroupResource, string deploymentName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public static Azure.Response GetDeployment(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string deploymentName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public static Azure.Response GetDeployment(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, string deploymentName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public static Azure.Response GetDeployment(this Azure.ResourceManager.Resources.TenantResource tenantResource, string deploymentName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public static System.Threading.Tasks.Task> GetDeploymentAsync(this Azure.ResourceManager.Management.ManagementGroupResource managementGroupResource, string deploymentName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public static System.Threading.Tasks.Task> GetDeploymentAsync(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string deploymentName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public static System.Threading.Tasks.Task> GetDeploymentAsync(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, string deploymentName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public static System.Threading.Tasks.Task> GetDeploymentAsync(this Azure.ResourceManager.Resources.TenantResource tenantResource, string deploymentName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public static Azure.ResourceManager.Resources.DeploymentResource GetDeploymentResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } - public static Azure.ResourceManager.Resources.DeploymentCollection GetDeployments(this Azure.ResourceManager.Management.ManagementGroupResource managementGroupResource) { throw null; } - public static Azure.ResourceManager.Resources.DeploymentCollection GetDeployments(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource) { throw null; } - public static Azure.ResourceManager.Resources.DeploymentCollection GetDeployments(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource) { throw null; } - public static Azure.ResourceManager.Resources.DeploymentCollection GetDeployments(this Azure.ResourceManager.Resources.TenantResource tenantResource) { throw null; } - public static Azure.Response GetDeploymentScript(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string scriptName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public static System.Threading.Tasks.Task> GetDeploymentScriptAsync(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string scriptName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public static Azure.ResourceManager.Resources.DeploymentScriptResource GetDeploymentScriptResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } - public static Azure.ResourceManager.Resources.DeploymentScriptCollection GetDeploymentScripts(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource) { throw null; } - public static Azure.Pageable GetDeploymentScripts(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public static Azure.AsyncPageable GetDeploymentScriptsAsync(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public static Azure.Response GetArmApplication(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string applicationName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public static System.Threading.Tasks.Task> GetArmApplicationAsync(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string applicationName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public static Azure.Response GetArmApplicationDefinition(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string applicationDefinitionName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public static System.Threading.Tasks.Task> GetArmApplicationDefinitionAsync(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string applicationDefinitionName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public static Azure.ResourceManager.Resources.ArmApplicationDefinitionResource GetArmApplicationDefinitionResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } + public static Azure.ResourceManager.Resources.ArmApplicationDefinitionCollection GetArmApplicationDefinitions(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource) { throw null; } + public static Azure.ResourceManager.Resources.ArmApplicationResource GetArmApplicationResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } + public static Azure.ResourceManager.Resources.ArmApplicationCollection GetArmApplications(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource) { throw null; } + public static Azure.Pageable GetArmApplications(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public static Azure.AsyncPageable GetArmApplicationsAsync(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public static Azure.Response GetArmDeployment(this Azure.ResourceManager.Management.ManagementGroupResource managementGroupResource, string deploymentName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public static Azure.Response GetArmDeployment(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string deploymentName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public static Azure.Response GetArmDeployment(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, string deploymentName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public static Azure.Response GetArmDeployment(this Azure.ResourceManager.Resources.TenantResource tenantResource, string deploymentName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public static System.Threading.Tasks.Task> GetArmDeploymentAsync(this Azure.ResourceManager.Management.ManagementGroupResource managementGroupResource, string deploymentName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public static System.Threading.Tasks.Task> GetArmDeploymentAsync(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string deploymentName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public static System.Threading.Tasks.Task> GetArmDeploymentAsync(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, string deploymentName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public static System.Threading.Tasks.Task> GetArmDeploymentAsync(this Azure.ResourceManager.Resources.TenantResource tenantResource, string deploymentName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public static Azure.ResourceManager.Resources.ArmDeploymentResource GetArmDeploymentResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } + public static Azure.ResourceManager.Resources.ArmDeploymentCollection GetArmDeployments(this Azure.ResourceManager.Management.ManagementGroupResource managementGroupResource) { throw null; } + public static Azure.ResourceManager.Resources.ArmDeploymentCollection GetArmDeployments(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource) { throw null; } + public static Azure.ResourceManager.Resources.ArmDeploymentCollection GetArmDeployments(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource) { throw null; } + public static Azure.ResourceManager.Resources.ArmDeploymentCollection GetArmDeployments(this Azure.ResourceManager.Resources.TenantResource tenantResource) { throw null; } + public static Azure.Response GetArmDeploymentScript(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string scriptName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public static System.Threading.Tasks.Task> GetArmDeploymentScriptAsync(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string scriptName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public static Azure.ResourceManager.Resources.ArmDeploymentScriptResource GetArmDeploymentScriptResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } + public static Azure.ResourceManager.Resources.ArmDeploymentScriptCollection GetArmDeploymentScripts(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource) { throw null; } + public static Azure.Pageable GetArmDeploymentScripts(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public static Azure.AsyncPageable GetArmDeploymentScriptsAsync(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public static Azure.Response GetJitRequest(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string jitRequestName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public static System.Threading.Tasks.Task> GetJitRequestAsync(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string jitRequestName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public static Azure.Pageable GetJitRequestDefinitions(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } @@ -428,102 +428,121 @@ protected TemplateSpecVersionResource() { } } namespace Azure.ResourceManager.Resources.Models { - public partial class ApplicationArtifact + public partial class ArmApplicationArtifact { - internal ApplicationArtifact() { } - public Azure.ResourceManager.Resources.Models.ApplicationArtifactType ApplicationArtifactType { get { throw null; } } - public Azure.ResourceManager.Resources.Models.ApplicationArtifactName Name { get { throw null; } } + internal ArmApplicationArtifact() { } + public Azure.ResourceManager.Resources.Models.ArmApplicationArtifactType ArmApplicationArtifactType { get { throw null; } } + public Azure.ResourceManager.Resources.Models.ArmApplicationArtifactName Name { get { throw null; } } public System.Uri Uri { get { throw null; } } } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] - public readonly partial struct ApplicationArtifactName : System.IEquatable + public readonly partial struct ArmApplicationArtifactName : System.IEquatable { private readonly object _dummy; private readonly int _dummyPrimitive; - public ApplicationArtifactName(string value) { throw null; } - public static Azure.ResourceManager.Resources.Models.ApplicationArtifactName Authorizations { get { throw null; } } - public static Azure.ResourceManager.Resources.Models.ApplicationArtifactName CustomRoleDefinition { get { throw null; } } - public static Azure.ResourceManager.Resources.Models.ApplicationArtifactName NotSpecified { get { throw null; } } - public static Azure.ResourceManager.Resources.Models.ApplicationArtifactName ViewDefinition { get { throw null; } } - public bool Equals(Azure.ResourceManager.Resources.Models.ApplicationArtifactName other) { throw null; } + public ArmApplicationArtifactName(string value) { throw null; } + public static Azure.ResourceManager.Resources.Models.ArmApplicationArtifactName Authorizations { get { throw null; } } + public static Azure.ResourceManager.Resources.Models.ArmApplicationArtifactName CustomRoleDefinition { get { throw null; } } + public static Azure.ResourceManager.Resources.Models.ArmApplicationArtifactName NotSpecified { get { throw null; } } + public static Azure.ResourceManager.Resources.Models.ArmApplicationArtifactName ViewDefinition { get { throw null; } } + public bool Equals(Azure.ResourceManager.Resources.Models.ArmApplicationArtifactName other) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override bool Equals(object obj) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override int GetHashCode() { throw null; } - public static bool operator ==(Azure.ResourceManager.Resources.Models.ApplicationArtifactName left, Azure.ResourceManager.Resources.Models.ApplicationArtifactName right) { throw null; } - public static implicit operator Azure.ResourceManager.Resources.Models.ApplicationArtifactName (string value) { throw null; } - public static bool operator !=(Azure.ResourceManager.Resources.Models.ApplicationArtifactName left, Azure.ResourceManager.Resources.Models.ApplicationArtifactName right) { throw null; } + public static bool operator ==(Azure.ResourceManager.Resources.Models.ArmApplicationArtifactName left, Azure.ResourceManager.Resources.Models.ArmApplicationArtifactName right) { throw null; } + public static implicit operator Azure.ResourceManager.Resources.Models.ArmApplicationArtifactName (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.Resources.Models.ArmApplicationArtifactName left, Azure.ResourceManager.Resources.Models.ArmApplicationArtifactName right) { throw null; } public override string ToString() { throw null; } } - public enum ApplicationArtifactType + public enum ArmApplicationArtifactType { NotSpecified = 0, Template = 1, Custom = 2, } - public partial class ApplicationAuthorization + public partial class ArmApplicationAuthorization { - public ApplicationAuthorization(string principalId, string roleDefinitionId) { } - public string PrincipalId { get { throw null; } set { } } + public ArmApplicationAuthorization(System.Guid principalId, string roleDefinitionId) { } + public System.Guid PrincipalId { get { throw null; } set { } } public string RoleDefinitionId { get { throw null; } set { } } } - public partial class ApplicationClientDetails + public partial class ArmApplicationDefinitionArtifact { - internal ApplicationClientDetails() { } - public string ApplicationId { get { throw null; } } - public string Oid { get { throw null; } } - public string Puid { get { throw null; } } + public ArmApplicationDefinitionArtifact(Azure.ResourceManager.Resources.Models.ArmApplicationDefinitionArtifactName name, System.Uri uri, Azure.ResourceManager.Resources.Models.ArmApplicationArtifactType armApplicationArtifactType) { } + public Azure.ResourceManager.Resources.Models.ArmApplicationArtifactType ArmApplicationArtifactType { get { throw null; } set { } } + public Azure.ResourceManager.Resources.Models.ArmApplicationDefinitionArtifactName Name { get { throw null; } set { } } + public System.Uri Uri { get { throw null; } set { } } } - public partial class ApplicationDefinitionArtifact + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct ArmApplicationDefinitionArtifactName : System.IEquatable { - public ApplicationDefinitionArtifact(Azure.ResourceManager.Resources.Models.ApplicationDefinitionArtifactName name, System.Uri uri, Azure.ResourceManager.Resources.Models.ApplicationArtifactType applicationArtifactType) { } - public Azure.ResourceManager.Resources.Models.ApplicationArtifactType ApplicationArtifactType { get { throw null; } set { } } - public Azure.ResourceManager.Resources.Models.ApplicationDefinitionArtifactName Name { get { throw null; } set { } } - public System.Uri Uri { get { throw null; } set { } } + private readonly object _dummy; + private readonly int _dummyPrimitive; + public ArmApplicationDefinitionArtifactName(string value) { throw null; } + public static Azure.ResourceManager.Resources.Models.ArmApplicationDefinitionArtifactName ApplicationResourceTemplate { get { throw null; } } + public static Azure.ResourceManager.Resources.Models.ArmApplicationDefinitionArtifactName CreateUiDefinition { get { throw null; } } + public static Azure.ResourceManager.Resources.Models.ArmApplicationDefinitionArtifactName MainTemplateParameters { get { throw null; } } + public static Azure.ResourceManager.Resources.Models.ArmApplicationDefinitionArtifactName NotSpecified { get { throw null; } } + public bool Equals(Azure.ResourceManager.Resources.Models.ArmApplicationDefinitionArtifactName other) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.ResourceManager.Resources.Models.ArmApplicationDefinitionArtifactName left, Azure.ResourceManager.Resources.Models.ArmApplicationDefinitionArtifactName right) { throw null; } + public static implicit operator Azure.ResourceManager.Resources.Models.ArmApplicationDefinitionArtifactName (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.Resources.Models.ArmApplicationDefinitionArtifactName left, Azure.ResourceManager.Resources.Models.ArmApplicationDefinitionArtifactName right) { throw null; } + public override string ToString() { throw null; } } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] - public readonly partial struct ApplicationDefinitionArtifactName : System.IEquatable + public readonly partial struct ArmApplicationDeploymentMode : System.IEquatable { private readonly object _dummy; private readonly int _dummyPrimitive; - public ApplicationDefinitionArtifactName(string value) { throw null; } - public static Azure.ResourceManager.Resources.Models.ApplicationDefinitionArtifactName ApplicationResourceTemplate { get { throw null; } } - public static Azure.ResourceManager.Resources.Models.ApplicationDefinitionArtifactName CreateUiDefinition { get { throw null; } } - public static Azure.ResourceManager.Resources.Models.ApplicationDefinitionArtifactName MainTemplateParameters { get { throw null; } } - public static Azure.ResourceManager.Resources.Models.ApplicationDefinitionArtifactName NotSpecified { get { throw null; } } - public bool Equals(Azure.ResourceManager.Resources.Models.ApplicationDefinitionArtifactName other) { throw null; } + public ArmApplicationDeploymentMode(string value) { throw null; } + public static Azure.ResourceManager.Resources.Models.ArmApplicationDeploymentMode Complete { get { throw null; } } + public static Azure.ResourceManager.Resources.Models.ArmApplicationDeploymentMode Incremental { get { throw null; } } + public static Azure.ResourceManager.Resources.Models.ArmApplicationDeploymentMode NotSpecified { get { throw null; } } + public bool Equals(Azure.ResourceManager.Resources.Models.ArmApplicationDeploymentMode other) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override bool Equals(object obj) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override int GetHashCode() { throw null; } - public static bool operator ==(Azure.ResourceManager.Resources.Models.ApplicationDefinitionArtifactName left, Azure.ResourceManager.Resources.Models.ApplicationDefinitionArtifactName right) { throw null; } - public static implicit operator Azure.ResourceManager.Resources.Models.ApplicationDefinitionArtifactName (string value) { throw null; } - public static bool operator !=(Azure.ResourceManager.Resources.Models.ApplicationDefinitionArtifactName left, Azure.ResourceManager.Resources.Models.ApplicationDefinitionArtifactName right) { throw null; } + public static bool operator ==(Azure.ResourceManager.Resources.Models.ArmApplicationDeploymentMode left, Azure.ResourceManager.Resources.Models.ArmApplicationDeploymentMode right) { throw null; } + public static implicit operator Azure.ResourceManager.Resources.Models.ArmApplicationDeploymentMode (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.Resources.Models.ArmApplicationDeploymentMode left, Azure.ResourceManager.Resources.Models.ArmApplicationDeploymentMode right) { throw null; } public override string ToString() { throw null; } } - public partial class ApplicationJitAccessPolicy + public partial class ArmApplicationDetails { - public ApplicationJitAccessPolicy(bool jitAccessEnabled) { } + internal ArmApplicationDetails() { } + public System.Guid? ApplicationId { get { throw null; } } + public System.Guid? Oid { get { throw null; } } + public string Puid { get { throw null; } } + } + public partial class ArmApplicationJitAccessPolicy + { + public ArmApplicationJitAccessPolicy(bool jitAccessEnabled) { } public bool JitAccessEnabled { get { throw null; } set { } } public Azure.ResourceManager.Resources.Models.JitApprovalMode? JitApprovalMode { get { throw null; } set { } } - public System.Collections.Generic.IList JitApprovers { get { throw null; } } + public System.Collections.Generic.IList JitApprovers { get { throw null; } } public System.TimeSpan? MaximumJitAccessDuration { get { throw null; } set { } } } - public enum ApplicationLockLevel + public enum ArmApplicationLockLevel { None = 0, CanNotDelete = 1, ReadOnly = 2, } - public partial class ApplicationManagedIdentity + public partial class ArmApplicationManagedIdentity { - public ApplicationManagedIdentity() { } - public Azure.ResourceManager.Resources.Models.ApplicationManagedIdentityType? ApplicationManagedIdentityType { get { throw null; } set { } } - public string PrincipalId { get { throw null; } } - public string TenantId { get { throw null; } } - public System.Collections.Generic.IDictionary UserAssignedIdentities { get { throw null; } } + public ArmApplicationManagedIdentity() { } + public Azure.ResourceManager.Resources.Models.ArmApplicationManagedIdentityType? ArmApplicationManagedIdentityType { get { throw null; } set { } } + public System.Guid? PrincipalId { get { throw null; } } + public System.Guid? TenantId { get { throw null; } } + public System.Collections.Generic.IDictionary UserAssignedIdentities { get { throw null; } } } - public enum ApplicationManagedIdentityType + public enum ArmApplicationManagedIdentityType { None = 0, SystemAssigned = 1, @@ -531,58 +550,58 @@ public enum ApplicationManagedIdentityType SystemAssignedUserAssigned = 3, } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] - public readonly partial struct ApplicationManagementMode : System.IEquatable + public readonly partial struct ArmApplicationManagementMode : System.IEquatable { private readonly object _dummy; private readonly int _dummyPrimitive; - public ApplicationManagementMode(string value) { throw null; } - public static Azure.ResourceManager.Resources.Models.ApplicationManagementMode Managed { get { throw null; } } - public static Azure.ResourceManager.Resources.Models.ApplicationManagementMode NotSpecified { get { throw null; } } - public static Azure.ResourceManager.Resources.Models.ApplicationManagementMode Unmanaged { get { throw null; } } - public bool Equals(Azure.ResourceManager.Resources.Models.ApplicationManagementMode other) { throw null; } + public ArmApplicationManagementMode(string value) { throw null; } + public static Azure.ResourceManager.Resources.Models.ArmApplicationManagementMode Managed { get { throw null; } } + public static Azure.ResourceManager.Resources.Models.ArmApplicationManagementMode NotSpecified { get { throw null; } } + public static Azure.ResourceManager.Resources.Models.ArmApplicationManagementMode Unmanaged { get { throw null; } } + public bool Equals(Azure.ResourceManager.Resources.Models.ArmApplicationManagementMode other) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override bool Equals(object obj) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override int GetHashCode() { throw null; } - public static bool operator ==(Azure.ResourceManager.Resources.Models.ApplicationManagementMode left, Azure.ResourceManager.Resources.Models.ApplicationManagementMode right) { throw null; } - public static implicit operator Azure.ResourceManager.Resources.Models.ApplicationManagementMode (string value) { throw null; } - public static bool operator !=(Azure.ResourceManager.Resources.Models.ApplicationManagementMode left, Azure.ResourceManager.Resources.Models.ApplicationManagementMode right) { throw null; } + public static bool operator ==(Azure.ResourceManager.Resources.Models.ArmApplicationManagementMode left, Azure.ResourceManager.Resources.Models.ArmApplicationManagementMode right) { throw null; } + public static implicit operator Azure.ResourceManager.Resources.Models.ArmApplicationManagementMode (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.Resources.Models.ArmApplicationManagementMode left, Azure.ResourceManager.Resources.Models.ArmApplicationManagementMode right) { throw null; } public override string ToString() { throw null; } } - public partial class ApplicationNotificationEndpoint + public partial class ArmApplicationNotificationEndpoint { - public ApplicationNotificationEndpoint(System.Uri uri) { } + public ArmApplicationNotificationEndpoint(System.Uri uri) { } public System.Uri Uri { get { throw null; } set { } } } - public partial class ApplicationPackageContact + public partial class ArmApplicationPackageContact { - internal ApplicationPackageContact() { } + internal ArmApplicationPackageContact() { } public string ContactName { get { throw null; } } public string Email { get { throw null; } } public string Phone { get { throw null; } } } - public partial class ApplicationPackageSupportUrls + public partial class ArmApplicationPackageSupportUrls { - internal ApplicationPackageSupportUrls() { } - public string GovernmentCloud { get { throw null; } } - public string PublicAzure { get { throw null; } } + internal ArmApplicationPackageSupportUrls() { } + public string AzureGovernment { get { throw null; } } + public string AzurePublicCloud { get { throw null; } } } - public partial class ApplicationPolicy + public partial class ArmApplicationPolicy { - public ApplicationPolicy() { } + public ArmApplicationPolicy() { } public string Name { get { throw null; } set { } } public string Parameters { get { throw null; } set { } } public string PolicyDefinitionId { get { throw null; } set { } } } - public partial class ApplicationResource : Azure.ResourceManager.Models.TrackedResourceData + public partial class ArmApplicationResource : Azure.ResourceManager.Models.TrackedResourceData { - public ApplicationResource(Azure.Core.AzureLocation location) : base (default(Azure.Core.AzureLocation)) { } + public ArmApplicationResource(Azure.Core.AzureLocation location) : base (default(Azure.Core.AzureLocation)) { } public string ManagedBy { get { throw null; } set { } } - public Azure.ResourceManager.Resources.Models.ApplicationSku Sku { get { throw null; } set { } } + public Azure.ResourceManager.Resources.Models.ArmApplicationSku Sku { get { throw null; } set { } } } - public partial class ApplicationSku + public partial class ArmApplicationSku { - public ApplicationSku(string name) { } + public ArmApplicationSku(string name) { } public int? Capacity { get { throw null; } set { } } public string Family { get { throw null; } set { } } public string Model { get { throw null; } set { } } @@ -590,129 +609,47 @@ public ApplicationSku(string name) { } public string Size { get { throw null; } set { } } public string Tier { get { throw null; } set { } } } - public partial class AzureCliScript : Azure.ResourceManager.Resources.DeploymentScriptData - { - public AzureCliScript(string location, System.TimeSpan retentionInterval, string azCliVersion) : base (default(string)) { } - public string Arguments { get { throw null; } set { } } - public string AzCliVersion { get { throw null; } set { } } - public Azure.ResourceManager.Resources.Models.CleanupOptions? CleanupPreference { get { throw null; } set { } } - public string ContainerGroupName { get { throw null; } set { } } - public System.Collections.Generic.IList EnvironmentVariables { get { throw null; } } - public string ForceUpdateTag { get { throw null; } set { } } - public System.Collections.Generic.IReadOnlyDictionary Outputs { get { throw null; } } - public System.Uri PrimaryScriptUri { get { throw null; } set { } } - public Azure.ResourceManager.Resources.Models.ScriptProvisioningState? ProvisioningState { get { throw null; } } - public System.TimeSpan RetentionInterval { get { throw null; } set { } } - public string ScriptContent { get { throw null; } set { } } - public Azure.ResourceManager.Resources.Models.ScriptStatus Status { get { throw null; } } - public Azure.ResourceManager.Resources.Models.StorageAccountConfiguration StorageAccountSettings { get { throw null; } set { } } - public System.Collections.Generic.IList SupportingScriptUris { get { throw null; } } - public System.TimeSpan? Timeout { get { throw null; } set { } } - } - public partial class AzurePowerShellScript : Azure.ResourceManager.Resources.DeploymentScriptData + public partial class ArmApplicationUserAssignedIdentity { - public AzurePowerShellScript(string location, System.TimeSpan retentionInterval, string azPowerShellVersion) : base (default(string)) { } - public string Arguments { get { throw null; } set { } } - public string AzPowerShellVersion { get { throw null; } set { } } - public Azure.ResourceManager.Resources.Models.CleanupOptions? CleanupPreference { get { throw null; } set { } } - public string ContainerGroupName { get { throw null; } set { } } - public System.Collections.Generic.IList EnvironmentVariables { get { throw null; } } - public string ForceUpdateTag { get { throw null; } set { } } - public System.Collections.Generic.IReadOnlyDictionary Outputs { get { throw null; } } - public System.Uri PrimaryScriptUri { get { throw null; } set { } } - public Azure.ResourceManager.Resources.Models.ScriptProvisioningState? ProvisioningState { get { throw null; } } - public System.TimeSpan RetentionInterval { get { throw null; } set { } } - public string ScriptContent { get { throw null; } set { } } - public Azure.ResourceManager.Resources.Models.ScriptStatus Status { get { throw null; } } - public Azure.ResourceManager.Resources.Models.StorageAccountConfiguration StorageAccountSettings { get { throw null; } set { } } - public System.Collections.Generic.IList SupportingScriptUris { get { throw null; } } - public System.TimeSpan? Timeout { get { throw null; } set { } } - } - public partial class BasicDependency - { - internal BasicDependency() { } - public string Id { get { throw null; } } - public string ResourceName { get { throw null; } } - public string ResourceType { get { throw null; } } - } - public enum ChangeType - { - Create = 0, - Delete = 1, - Ignore = 2, - Deploy = 3, - NoChange = 4, - Modify = 5, - Unsupported = 6, - } - [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] - public readonly partial struct CleanupOptions : System.IEquatable - { - private readonly object _dummy; - private readonly int _dummyPrimitive; - public CleanupOptions(string value) { throw null; } - public static Azure.ResourceManager.Resources.Models.CleanupOptions Always { get { throw null; } } - public static Azure.ResourceManager.Resources.Models.CleanupOptions OnExpiration { get { throw null; } } - public static Azure.ResourceManager.Resources.Models.CleanupOptions OnSuccess { get { throw null; } } - public bool Equals(Azure.ResourceManager.Resources.Models.CleanupOptions other) { throw null; } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public override bool Equals(object obj) { throw null; } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public override int GetHashCode() { throw null; } - public static bool operator ==(Azure.ResourceManager.Resources.Models.CleanupOptions left, Azure.ResourceManager.Resources.Models.CleanupOptions right) { throw null; } - public static implicit operator Azure.ResourceManager.Resources.Models.CleanupOptions (string value) { throw null; } - public static bool operator !=(Azure.ResourceManager.Resources.Models.CleanupOptions left, Azure.ResourceManager.Resources.Models.CleanupOptions right) { throw null; } - public override string ToString() { throw null; } + public ArmApplicationUserAssignedIdentity() { } + public System.Guid? PrincipalId { get { throw null; } } + public System.Guid? TenantId { get { throw null; } } } - public partial class Dependency + public partial class ArmDependency { - internal Dependency() { } + internal ArmDependency() { } public System.Collections.Generic.IReadOnlyList DependsOn { get { throw null; } } public string Id { get { throw null; } } public string ResourceName { get { throw null; } } public string ResourceType { get { throw null; } } } - public partial class DeploymentExportResult + public partial class ArmDeploymentExportResult { - internal DeploymentExportResult() { } + internal ArmDeploymentExportResult() { } public System.BinaryData Template { get { throw null; } } } - public partial class DeploymentInput + public partial class ArmDeploymentInput { - public DeploymentInput(Azure.ResourceManager.Resources.Models.DeploymentProperties properties) { } + public ArmDeploymentInput(Azure.ResourceManager.Resources.Models.ArmDeploymentProperties properties) { } public string Location { get { throw null; } set { } } - public Azure.ResourceManager.Resources.Models.DeploymentProperties Properties { get { throw null; } } + public Azure.ResourceManager.Resources.Models.ArmDeploymentProperties Properties { get { throw null; } } public System.Collections.Generic.IDictionary Tags { get { throw null; } } } - [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] - public readonly partial struct DeploymentMode : System.IEquatable + public enum ArmDeploymentMode { - private readonly object _dummy; - private readonly int _dummyPrimitive; - public DeploymentMode(string value) { throw null; } - public static Azure.ResourceManager.Resources.Models.DeploymentMode Complete { get { throw null; } } - public static Azure.ResourceManager.Resources.Models.DeploymentMode Incremental { get { throw null; } } - public static Azure.ResourceManager.Resources.Models.DeploymentMode NotSpecified { get { throw null; } } - public bool Equals(Azure.ResourceManager.Resources.Models.DeploymentMode other) { throw null; } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public override bool Equals(object obj) { throw null; } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public override int GetHashCode() { throw null; } - public static bool operator ==(Azure.ResourceManager.Resources.Models.DeploymentMode left, Azure.ResourceManager.Resources.Models.DeploymentMode right) { throw null; } - public static implicit operator Azure.ResourceManager.Resources.Models.DeploymentMode (string value) { throw null; } - public static bool operator !=(Azure.ResourceManager.Resources.Models.DeploymentMode left, Azure.ResourceManager.Resources.Models.DeploymentMode right) { throw null; } - public override string ToString() { throw null; } + Incremental = 0, + Complete = 1, } - public partial class DeploymentOperation + public partial class ArmDeploymentOperation { - internal DeploymentOperation() { } + internal ArmDeploymentOperation() { } public string Id { get { throw null; } } public string OperationId { get { throw null; } } - public Azure.ResourceManager.Resources.Models.DeploymentOperationProperties Properties { get { throw null; } } + public Azure.ResourceManager.Resources.Models.ArmDeploymentOperationProperties Properties { get { throw null; } } } - public partial class DeploymentOperationProperties + public partial class ArmDeploymentOperationProperties { - internal DeploymentOperationProperties() { } + internal ArmDeploymentOperationProperties() { } public System.TimeSpan? Duration { get { throw null; } } public Azure.ResourceManager.Resources.Models.ProvisioningOperation? ProvisioningOperation { get { throw null; } } public string ProvisioningState { get { throw null; } } @@ -724,80 +661,154 @@ internal DeploymentOperationProperties() { } public Azure.ResourceManager.Resources.Models.TargetResource TargetResource { get { throw null; } } public System.DateTimeOffset? Timestamp { get { throw null; } } } - public partial class DeploymentProperties + public partial class ArmDeploymentProperties { - public DeploymentProperties(Azure.ResourceManager.Resources.Models.DeploymentMode mode) { } + public ArmDeploymentProperties(Azure.ResourceManager.Resources.Models.ArmDeploymentMode mode) { } public string DebugDetailLevel { get { throw null; } set { } } public Azure.ResourceManager.Resources.Models.ExpressionEvaluationOptionsScopeType? ExpressionEvaluationScope { get { throw null; } set { } } - public Azure.ResourceManager.Resources.Models.DeploymentMode Mode { get { throw null; } } + public Azure.ResourceManager.Resources.Models.ArmDeploymentMode Mode { get { throw null; } } public Azure.ResourceManager.Resources.Models.OnErrorDeployment OnErrorDeployment { get { throw null; } set { } } public object Parameters { get { throw null; } set { } } public Azure.ResourceManager.Resources.Models.ParametersLink ParametersLink { get { throw null; } set { } } public object Template { get { throw null; } set { } } public Azure.ResourceManager.Resources.Models.TemplateLink TemplateLink { get { throw null; } set { } } } - public partial class DeploymentPropertiesExtended + public partial class ArmDeploymentPropertiesExtended { - internal DeploymentPropertiesExtended() { } + internal ArmDeploymentPropertiesExtended() { } public string CorrelationId { get { throw null; } } public string DebugSettingDetailLevel { get { throw null; } set { } } - public System.Collections.Generic.IReadOnlyList Dependencies { get { throw null; } } + public System.Collections.Generic.IReadOnlyList Dependencies { get { throw null; } } public System.TimeSpan? Duration { get { throw null; } } public Azure.ResourceManager.Models.ErrorDetail Error { get { throw null; } } - public Azure.ResourceManager.Resources.Models.DeploymentMode? Mode { get { throw null; } } + public Azure.ResourceManager.Resources.Models.ArmDeploymentMode? Mode { get { throw null; } } public Azure.ResourceManager.Resources.Models.OnErrorDeploymentExtended OnErrorDeployment { get { throw null; } } public System.Collections.Generic.IReadOnlyList OutputResources { get { throw null; } } public System.BinaryData Outputs { get { throw null; } } public System.BinaryData Parameters { get { throw null; } } public Azure.ResourceManager.Resources.Models.ParametersLink ParametersLink { get { throw null; } } public System.Collections.Generic.IReadOnlyList Providers { get { throw null; } } - public Azure.ResourceManager.Resources.Models.ProvisioningState? ProvisioningState { get { throw null; } } + public Azure.ResourceManager.Resources.Models.ResourcesProvisioningState? ProvisioningState { get { throw null; } } public string TemplateHash { get { throw null; } } public Azure.ResourceManager.Resources.Models.TemplateLink TemplateLink { get { throw null; } } public System.DateTimeOffset? Timestamp { get { throw null; } } public System.Collections.Generic.IReadOnlyList ValidatedResources { get { throw null; } } } - public partial class DeploymentScriptManagedIdentity + public partial class ArmDeploymentScriptManagedIdentity { - public DeploymentScriptManagedIdentity() { } - public Azure.ResourceManager.Resources.Models.DeploymentScriptManagedIdentityType? DeploymentScriptManagedIdentityType { get { throw null; } set { } } - public string TenantId { get { throw null; } } + public ArmDeploymentScriptManagedIdentity() { } + public Azure.ResourceManager.Resources.Models.ArmDeploymentScriptManagedIdentityType? ArmDeploymentScriptManagedIdentityType { get { throw null; } set { } } + public System.Guid? TenantId { get { throw null; } } public System.Collections.Generic.IDictionary UserAssignedIdentities { get { throw null; } } } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] - public readonly partial struct DeploymentScriptManagedIdentityType : System.IEquatable + public readonly partial struct ArmDeploymentScriptManagedIdentityType : System.IEquatable { private readonly object _dummy; private readonly int _dummyPrimitive; - public DeploymentScriptManagedIdentityType(string value) { throw null; } - public static Azure.ResourceManager.Resources.Models.DeploymentScriptManagedIdentityType UserAssigned { get { throw null; } } - public bool Equals(Azure.ResourceManager.Resources.Models.DeploymentScriptManagedIdentityType other) { throw null; } + public ArmDeploymentScriptManagedIdentityType(string value) { throw null; } + public static Azure.ResourceManager.Resources.Models.ArmDeploymentScriptManagedIdentityType UserAssigned { get { throw null; } } + public bool Equals(Azure.ResourceManager.Resources.Models.ArmDeploymentScriptManagedIdentityType other) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override bool Equals(object obj) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override int GetHashCode() { throw null; } - public static bool operator ==(Azure.ResourceManager.Resources.Models.DeploymentScriptManagedIdentityType left, Azure.ResourceManager.Resources.Models.DeploymentScriptManagedIdentityType right) { throw null; } - public static implicit operator Azure.ResourceManager.Resources.Models.DeploymentScriptManagedIdentityType (string value) { throw null; } - public static bool operator !=(Azure.ResourceManager.Resources.Models.DeploymentScriptManagedIdentityType left, Azure.ResourceManager.Resources.Models.DeploymentScriptManagedIdentityType right) { throw null; } + public static bool operator ==(Azure.ResourceManager.Resources.Models.ArmDeploymentScriptManagedIdentityType left, Azure.ResourceManager.Resources.Models.ArmDeploymentScriptManagedIdentityType right) { throw null; } + public static implicit operator Azure.ResourceManager.Resources.Models.ArmDeploymentScriptManagedIdentityType (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.Resources.Models.ArmDeploymentScriptManagedIdentityType left, Azure.ResourceManager.Resources.Models.ArmDeploymentScriptManagedIdentityType right) { throw null; } public override string ToString() { throw null; } } - public partial class DeploymentValidateResult + public partial class ArmDeploymentValidateResult { - internal DeploymentValidateResult() { } + internal ArmDeploymentValidateResult() { } public Azure.ResourceManager.Models.ErrorDetail Error { get { throw null; } } - public Azure.ResourceManager.Resources.Models.DeploymentPropertiesExtended Properties { get { throw null; } } + public Azure.ResourceManager.Resources.Models.ArmDeploymentPropertiesExtended Properties { get { throw null; } } } - public partial class DeploymentWhatIf + public partial class ArmDeploymentWhatIf { - public DeploymentWhatIf(Azure.ResourceManager.Resources.Models.DeploymentWhatIfProperties properties) { } + public ArmDeploymentWhatIf(Azure.ResourceManager.Resources.Models.ArmDeploymentWhatIfProperties properties) { } public string Location { get { throw null; } set { } } - public Azure.ResourceManager.Resources.Models.DeploymentWhatIfProperties Properties { get { throw null; } } + public Azure.ResourceManager.Resources.Models.ArmDeploymentWhatIfProperties Properties { get { throw null; } } } - public partial class DeploymentWhatIfProperties : Azure.ResourceManager.Resources.Models.DeploymentProperties + public partial class ArmDeploymentWhatIfProperties : Azure.ResourceManager.Resources.Models.ArmDeploymentProperties { - public DeploymentWhatIfProperties(Azure.ResourceManager.Resources.Models.DeploymentMode mode) : base (default(Azure.ResourceManager.Resources.Models.DeploymentMode)) { } + public ArmDeploymentWhatIfProperties(Azure.ResourceManager.Resources.Models.ArmDeploymentMode mode) : base (default(Azure.ResourceManager.Resources.Models.ArmDeploymentMode)) { } public Azure.ResourceManager.Resources.Models.WhatIfResultFormat? WhatIfResultFormat { get { throw null; } set { } } } + public partial class AzureCliScript : Azure.ResourceManager.Resources.ArmDeploymentScriptData + { + public AzureCliScript(string location, System.TimeSpan retentionInterval, string azCliVersion) : base (default(string)) { } + public string Arguments { get { throw null; } set { } } + public string AzCliVersion { get { throw null; } set { } } + public Azure.ResourceManager.Resources.Models.CleanupOptions? CleanupPreference { get { throw null; } set { } } + public string ContainerGroupName { get { throw null; } set { } } + public System.Collections.Generic.IList EnvironmentVariables { get { throw null; } } + public string ForceUpdateTag { get { throw null; } set { } } + public System.Collections.Generic.IReadOnlyDictionary Outputs { get { throw null; } } + public System.Uri PrimaryScriptUri { get { throw null; } set { } } + public Azure.ResourceManager.Resources.Models.ScriptProvisioningState? ProvisioningState { get { throw null; } } + public System.TimeSpan RetentionInterval { get { throw null; } set { } } + public string ScriptContent { get { throw null; } set { } } + public Azure.ResourceManager.Resources.Models.ScriptStatus Status { get { throw null; } } + public Azure.ResourceManager.Resources.Models.StorageAccountConfiguration StorageAccountSettings { get { throw null; } set { } } + public System.Collections.Generic.IList SupportingScriptUris { get { throw null; } } + public System.TimeSpan? Timeout { get { throw null; } set { } } + } + public partial class AzurePowerShellScript : Azure.ResourceManager.Resources.ArmDeploymentScriptData + { + public AzurePowerShellScript(string location, System.TimeSpan retentionInterval, string azPowerShellVersion) : base (default(string)) { } + public string Arguments { get { throw null; } set { } } + public string AzPowerShellVersion { get { throw null; } set { } } + public Azure.ResourceManager.Resources.Models.CleanupOptions? CleanupPreference { get { throw null; } set { } } + public string ContainerGroupName { get { throw null; } set { } } + public System.Collections.Generic.IList EnvironmentVariables { get { throw null; } } + public string ForceUpdateTag { get { throw null; } set { } } + public System.Collections.Generic.IReadOnlyDictionary Outputs { get { throw null; } } + public System.Uri PrimaryScriptUri { get { throw null; } set { } } + public Azure.ResourceManager.Resources.Models.ScriptProvisioningState? ProvisioningState { get { throw null; } } + public System.TimeSpan RetentionInterval { get { throw null; } set { } } + public string ScriptContent { get { throw null; } set { } } + public Azure.ResourceManager.Resources.Models.ScriptStatus Status { get { throw null; } } + public Azure.ResourceManager.Resources.Models.StorageAccountConfiguration StorageAccountSettings { get { throw null; } set { } } + public System.Collections.Generic.IList SupportingScriptUris { get { throw null; } } + public System.TimeSpan? Timeout { get { throw null; } set { } } + } + public partial class BasicDependency + { + internal BasicDependency() { } + public string Id { get { throw null; } } + public string ResourceName { get { throw null; } } + public string ResourceType { get { throw null; } } + } + public enum ChangeType + { + Create = 0, + Delete = 1, + Ignore = 2, + Deploy = 3, + NoChange = 4, + Modify = 5, + Unsupported = 6, + } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct CleanupOptions : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public CleanupOptions(string value) { throw null; } + public static Azure.ResourceManager.Resources.Models.CleanupOptions Always { get { throw null; } } + public static Azure.ResourceManager.Resources.Models.CleanupOptions OnExpiration { get { throw null; } } + public static Azure.ResourceManager.Resources.Models.CleanupOptions OnSuccess { get { throw null; } } + public bool Equals(Azure.ResourceManager.Resources.Models.CleanupOptions other) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.ResourceManager.Resources.Models.CleanupOptions left, Azure.ResourceManager.Resources.Models.CleanupOptions right) { throw null; } + public static implicit operator Azure.ResourceManager.Resources.Models.CleanupOptions (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.Resources.Models.CleanupOptions left, Azure.ResourceManager.Resources.Models.CleanupOptions right) { throw null; } + public override string ToString() { throw null; } + } public partial class EnvironmentVariable { public EnvironmentVariable(string name) { } @@ -843,9 +854,9 @@ public EnvironmentVariable(string name) { } public static bool operator !=(Azure.ResourceManager.Resources.Models.JitApprovalMode left, Azure.ResourceManager.Resources.Models.JitApprovalMode right) { throw null; } public override string ToString() { throw null; } } - public partial class JitApproverDefinition + public partial class JitApprover { - public JitApproverDefinition(string id) { } + public JitApprover(string id) { } public string DisplayName { get { throw null; } set { } } public string Id { get { throw null; } set { } } public Azure.ResourceManager.Resources.Models.JitApproverType? JitApproverType { get { throw null; } set { } } @@ -870,8 +881,8 @@ public JitApproverDefinition(string id) { } } public partial class JitAuthorizationPolicies { - public JitAuthorizationPolicies(string principalId, string roleDefinitionId) { } - public string PrincipalId { get { throw null; } set { } } + public JitAuthorizationPolicies(System.Guid principalId, string roleDefinitionId) { } + public System.Guid PrincipalId { get { throw null; } set { } } public string RoleDefinitionId { get { throw null; } set { } } } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] @@ -954,31 +965,31 @@ public ParametersLink(System.Uri uri) { } public string ContentVersion { get { throw null; } set { } } public System.Uri Uri { get { throw null; } set { } } } - public partial class PatchableApplicationData : Azure.ResourceManager.Resources.Models.ApplicationResource + public partial class PatchableArmApplicationData : Azure.ResourceManager.Resources.Models.ArmApplicationResource { - public PatchableApplicationData(Azure.Core.AzureLocation location) : base (default(Azure.Core.AzureLocation)) { } - public string ApplicationDefinitionId { get { throw null; } set { } } - public System.Collections.Generic.IReadOnlyList Artifacts { get { throw null; } } - public System.Collections.Generic.IReadOnlyList Authorizations { get { throw null; } } + public PatchableArmApplicationData(Azure.Core.AzureLocation location) : base (default(Azure.Core.AzureLocation)) { } + public Azure.Core.ResourceIdentifier ApplicationDefinitionId { get { throw null; } set { } } + public System.Collections.Generic.IReadOnlyList Artifacts { get { throw null; } } + public System.Collections.Generic.IReadOnlyList Authorizations { get { throw null; } } public string BillingDetailsResourceUsageId { get { throw null; } } - public Azure.ResourceManager.Resources.Models.ApplicationClientDetails CreatedBy { get { throw null; } } - public Azure.ResourceManager.Resources.Models.ApplicationPackageContact CustomerSupport { get { throw null; } } - public Azure.ResourceManager.Resources.Models.ApplicationManagedIdentity Identity { get { throw null; } set { } } - public Azure.ResourceManager.Resources.Models.ApplicationJitAccessPolicy JitAccessPolicy { get { throw null; } set { } } + public Azure.ResourceManager.Resources.Models.ArmApplicationDetails CreatedBy { get { throw null; } } + public Azure.ResourceManager.Resources.Models.ArmApplicationPackageContact CustomerSupport { get { throw null; } } + public Azure.ResourceManager.Resources.Models.ArmApplicationManagedIdentity Identity { get { throw null; } set { } } + public Azure.ResourceManager.Resources.Models.ArmApplicationJitAccessPolicy JitAccessPolicy { get { throw null; } set { } } public string Kind { get { throw null; } set { } } - public string ManagedResourceGroupId { get { throw null; } set { } } - public Azure.ResourceManager.Resources.Models.ApplicationManagementMode? ManagementMode { get { throw null; } } + public Azure.Core.ResourceIdentifier ManagedResourceGroupId { get { throw null; } set { } } + public Azure.ResourceManager.Resources.Models.ArmApplicationManagementMode? ManagementMode { get { throw null; } } public System.BinaryData Outputs { get { throw null; } } public System.BinaryData Parameters { get { throw null; } set { } } public Azure.ResourceManager.Models.ArmPlan Plan { get { throw null; } set { } } - public Azure.ResourceManager.Resources.Models.ProvisioningState? ProvisioningState { get { throw null; } } + public Azure.ResourceManager.Resources.Models.ResourcesProvisioningState? ProvisioningState { get { throw null; } } public string PublisherTenantId { get { throw null; } } - public Azure.ResourceManager.Resources.Models.ApplicationPackageSupportUrls SupportUrls { get { throw null; } } - public Azure.ResourceManager.Resources.Models.ApplicationClientDetails UpdatedBy { get { throw null; } } + public Azure.ResourceManager.Resources.Models.ArmApplicationPackageSupportUrls SupportUrls { get { throw null; } } + public Azure.ResourceManager.Resources.Models.ArmApplicationDetails UpdatedBy { get { throw null; } } } - public partial class PatchableDeploymentScriptData : Azure.ResourceManager.Models.ResourceData + public partial class PatchableArmDeploymentScriptData : Azure.ResourceManager.Models.ResourceData { - public PatchableDeploymentScriptData() { } + public PatchableArmDeploymentScriptData() { } public System.Collections.Generic.IDictionary Tags { get { throw null; } } } public partial class PatchableTemplateSpecData : Azure.ResourceManager.Models.ResourceData @@ -1013,31 +1024,31 @@ public enum ProvisioningOperation DeploymentCleanup = 9, } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] - public readonly partial struct ProvisioningState : System.IEquatable + public readonly partial struct ResourcesProvisioningState : System.IEquatable { private readonly object _dummy; private readonly int _dummyPrimitive; - public ProvisioningState(string value) { throw null; } - public static Azure.ResourceManager.Resources.Models.ProvisioningState Accepted { get { throw null; } } - public static Azure.ResourceManager.Resources.Models.ProvisioningState Canceled { get { throw null; } } - public static Azure.ResourceManager.Resources.Models.ProvisioningState Created { get { throw null; } } - public static Azure.ResourceManager.Resources.Models.ProvisioningState Creating { get { throw null; } } - public static Azure.ResourceManager.Resources.Models.ProvisioningState Deleted { get { throw null; } } - public static Azure.ResourceManager.Resources.Models.ProvisioningState Deleting { get { throw null; } } - public static Azure.ResourceManager.Resources.Models.ProvisioningState Failed { get { throw null; } } - public static Azure.ResourceManager.Resources.Models.ProvisioningState NotSpecified { get { throw null; } } - public static Azure.ResourceManager.Resources.Models.ProvisioningState Ready { get { throw null; } } - public static Azure.ResourceManager.Resources.Models.ProvisioningState Running { get { throw null; } } - public static Azure.ResourceManager.Resources.Models.ProvisioningState Succeeded { get { throw null; } } - public static Azure.ResourceManager.Resources.Models.ProvisioningState Updating { get { throw null; } } - public bool Equals(Azure.ResourceManager.Resources.Models.ProvisioningState other) { throw null; } + public ResourcesProvisioningState(string value) { throw null; } + public static Azure.ResourceManager.Resources.Models.ResourcesProvisioningState Accepted { get { throw null; } } + public static Azure.ResourceManager.Resources.Models.ResourcesProvisioningState Canceled { get { throw null; } } + public static Azure.ResourceManager.Resources.Models.ResourcesProvisioningState Created { get { throw null; } } + public static Azure.ResourceManager.Resources.Models.ResourcesProvisioningState Creating { get { throw null; } } + public static Azure.ResourceManager.Resources.Models.ResourcesProvisioningState Deleted { get { throw null; } } + public static Azure.ResourceManager.Resources.Models.ResourcesProvisioningState Deleting { get { throw null; } } + public static Azure.ResourceManager.Resources.Models.ResourcesProvisioningState Failed { get { throw null; } } + public static Azure.ResourceManager.Resources.Models.ResourcesProvisioningState NotSpecified { get { throw null; } } + public static Azure.ResourceManager.Resources.Models.ResourcesProvisioningState Ready { get { throw null; } } + public static Azure.ResourceManager.Resources.Models.ResourcesProvisioningState Running { get { throw null; } } + public static Azure.ResourceManager.Resources.Models.ResourcesProvisioningState Succeeded { get { throw null; } } + public static Azure.ResourceManager.Resources.Models.ResourcesProvisioningState Updating { get { throw null; } } + public bool Equals(Azure.ResourceManager.Resources.Models.ResourcesProvisioningState other) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override bool Equals(object obj) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override int GetHashCode() { throw null; } - public static bool operator ==(Azure.ResourceManager.Resources.Models.ProvisioningState left, Azure.ResourceManager.Resources.Models.ProvisioningState right) { throw null; } - public static implicit operator Azure.ResourceManager.Resources.Models.ProvisioningState (string value) { throw null; } - public static bool operator !=(Azure.ResourceManager.Resources.Models.ProvisioningState left, Azure.ResourceManager.Resources.Models.ProvisioningState right) { throw null; } + public static bool operator ==(Azure.ResourceManager.Resources.Models.ResourcesProvisioningState left, Azure.ResourceManager.Resources.Models.ResourcesProvisioningState right) { throw null; } + public static implicit operator Azure.ResourceManager.Resources.Models.ResourcesProvisioningState (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.Resources.Models.ResourcesProvisioningState left, Azure.ResourceManager.Resources.Models.ResourcesProvisioningState right) { throw null; } public override string ToString() { throw null; } } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] @@ -1130,12 +1141,6 @@ internal TemplateSpecVersionInfo() { } public System.DateTimeOffset? TimeCreated { get { throw null; } } public System.DateTimeOffset? TimeModified { get { throw null; } } } - public partial class UserAssignedResourceIdentity - { - public UserAssignedResourceIdentity() { } - public string PrincipalId { get { throw null; } } - public string TenantId { get { throw null; } } - } public partial class WhatIfChange { internal WhatIfChange() { } diff --git a/sdk/resources/Azure.ResourceManager.Resources/samples/Sample1_ManagingApplicationDefinitions.md b/sdk/resources/Azure.ResourceManager.Resources/samples/Sample1_ManagingApplicationDefinitions.md index f07eac07ed231..c0624a06caa6e 100644 --- a/sdk/resources/Azure.ResourceManager.Resources/samples/Sample1_ManagingApplicationDefinitions.md +++ b/sdk/resources/Azure.ResourceManager.Resources/samples/Sample1_ManagingApplicationDefinitions.md @@ -36,27 +36,27 @@ Now that we have the resource group created, we can manage the application defin ```C# Snippet:Managing_ApplicationDefinitions_CreateAnApplicationDefinition // First we need to get the application definition collection from the resource group -ApplicationDefinitionCollection applicationDefinitionCollection = resourceGroup.GetApplicationDefinitions(); +ArmApplicationDefinitionCollection applicationDefinitionCollection = resourceGroup.GetArmApplicationDefinitions(); // Use the same location as the resource group string applicationDefinitionName = "myApplicationDefinition"; -var input = new ApplicationDefinitionData(resourceGroup.Data.Location, ApplicationLockLevel.None) +var input = new ArmApplicationDefinitionData(resourceGroup.Data.Location, ArmApplicationLockLevel.None) { DisplayName = applicationDefinitionName, Description = $"{applicationDefinitionName} description", PackageFileUri = new Uri("https://raw.githubusercontent.com/Azure/azure-managedapp-samples/master/Managed%20Application%20Sample%20Packages/201-managed-storage-account/managedstorage.zip") }; -ArmOperation lro = await applicationDefinitionCollection.CreateOrUpdateAsync(WaitUntil.Completed, applicationDefinitionName, input); -ApplicationDefinitionResource applicationDefinition = lro.Value; +ArmOperation lro = await applicationDefinitionCollection.CreateOrUpdateAsync(WaitUntil.Completed, applicationDefinitionName, input); +ArmApplicationDefinitionResource applicationDefinition = lro.Value; ``` ***List all application definitions*** ```C# Snippet:Managing_ApplicationDefinitions_ListAllApplicationDefinitions // First we need to get the application definition collection from the resource group -ApplicationDefinitionCollection applicationDefinitionCollection = resourceGroup.GetApplicationDefinitions(); +ArmApplicationDefinitionCollection applicationDefinitionCollection = resourceGroup.GetArmApplicationDefinitions(); // With GetAllAsync(), we can get a list of the application definitions in the collection -AsyncPageable response = applicationDefinitionCollection.GetAllAsync(); -await foreach (ApplicationDefinitionResource applicationDefinition in response) +AsyncPageable response = applicationDefinitionCollection.GetAllAsync(); +await foreach (ArmApplicationDefinitionResource applicationDefinition in response) { Console.WriteLine(applicationDefinition.Data.Name); } @@ -66,9 +66,9 @@ await foreach (ApplicationDefinitionResource applicationDefinition in response) ```C# Snippet:Managing_ApplicationDefinitions_DeleteAnApplicationDefinition // First we need to get the application definition collection from the resource group -ApplicationDefinitionCollection applicationDefinitionCollection = resourceGroup.GetApplicationDefinitions(); +ArmApplicationDefinitionCollection applicationDefinitionCollection = resourceGroup.GetArmApplicationDefinitions(); // Now we can get the application definition with GetAsync() -ApplicationDefinitionResource applicationDefinition = await applicationDefinitionCollection.GetAsync("myApplicationDefinition"); +ArmApplicationDefinitionResource applicationDefinition = await applicationDefinitionCollection.GetAsync("myApplicationDefinition"); // With DeleteAsync(), we can delete the application definition await applicationDefinition.DeleteAsync(WaitUntil.Completed); ``` diff --git a/sdk/resources/Azure.ResourceManager.Resources/samples/Sample2_ManagingDeployments.md b/sdk/resources/Azure.ResourceManager.Resources/samples/Sample2_ManagingDeployments.md index 1ce16931977df..3ced80900267a 100644 --- a/sdk/resources/Azure.ResourceManager.Resources/samples/Sample2_ManagingDeployments.md +++ b/sdk/resources/Azure.ResourceManager.Resources/samples/Sample2_ManagingDeployments.md @@ -40,10 +40,10 @@ Now that we have the resource group created, we can manage the deployments insid ```C# Snippet:Managing_Deployments_CreateADeployment // First we need to get the deployment collection from the resource group -DeploymentCollection deploymentCollection = resourceGroup.GetDeployments(); +ArmDeploymentCollection ArmDeploymentCollection = resourceGroup.GetArmDeployments(); // Use the same location as the resource group string deploymentName = "myDeployment"; -var input = new DeploymentInput(new DeploymentProperties(DeploymentMode.Incremental) +var input = new ArmDeploymentInput(new ArmDeploymentProperties(ArmDeploymentMode.Incremental) { TemplateLink = new TemplateLink() { @@ -58,32 +58,32 @@ var input = new DeploymentInput(new DeploymentProperties(DeploymentMode.Incremen } } }); -ArmOperation lro = await deploymentCollection.CreateOrUpdateAsync(WaitUntil.Completed, deploymentName, input); -DeploymentResource deployment = lro.Value; +ArmOperation lro = await ArmDeploymentCollection.CreateOrUpdateAsync(WaitUntil.Completed, deploymentName, input); +ArmDeploymentResource deployment = lro.Value; ``` ***Create a deployment using string*** ```C# Snippet:Managing_Deployments_CreateADeploymentUsingString // First we need to get the deployment collection from the resource group -DeploymentCollection deploymentCollection = resourceGroup.GetDeployments(); +ArmDeploymentCollection ArmDeploymentCollection = resourceGroup.GetArmDeployments(); // Use the same location as the resource group string deploymentName = "myDeployment"; // Passing string to template and parameters -var input = new DeploymentInput(new DeploymentProperties(DeploymentMode.Incremental) +var input = new ArmDeploymentInput(new ArmDeploymentProperties(ArmDeploymentMode.Incremental) { Template = File.ReadAllText("storage-template.json"), Parameters = File.ReadAllText("storage-parameters.json") }); -ArmOperation lro = await deploymentCollection.CreateOrUpdateAsync(WaitUntil.Completed, deploymentName, input); -DeploymentResource deployment = lro.Value; +ArmOperation lro = await ArmDeploymentCollection.CreateOrUpdateAsync(WaitUntil.Completed, deploymentName, input); +ArmDeploymentResource deployment = lro.Value; ``` ***Create a deployment using JsonElement*** ```C# Snippet:Managing_Deployments_CreateADeploymentUsingJsonElement // First we need to get the deployment collection from the resource group -DeploymentCollection deploymentCollection = resourceGroup.GetDeployments(); +ArmDeploymentCollection ArmDeploymentCollection = resourceGroup.GetArmDeployments(); // Use the same location as the resource group string deploymentName = "myDeployment"; // Create a parameter object @@ -91,7 +91,7 @@ var parametersObject = new { storageAccountType = new { value = "Standard_GRS" } //convert this object to JsonElement var parametersString = JsonSerializer.Serialize(parametersObject); var parameters = JsonDocument.Parse(parametersString).RootElement; -var input = new DeploymentInput(new DeploymentProperties(DeploymentMode.Incremental) +var input = new ArmDeploymentInput(new ArmDeploymentProperties(ArmDeploymentMode.Incremental) { TemplateLink = new TemplateLink() { @@ -99,18 +99,18 @@ var input = new DeploymentInput(new DeploymentProperties(DeploymentMode.Incremen }, Parameters = parameters }); -ArmOperation lro = await deploymentCollection.CreateOrUpdateAsync(WaitUntil.Completed, deploymentName, input); -DeploymentResource deployment = lro.Value; +ArmOperation lro = await ArmDeploymentCollection.CreateOrUpdateAsync(WaitUntil.Completed, deploymentName, input); +ArmDeploymentResource deployment = lro.Value; ``` ***List all deployments*** ```C# Snippet:Managing_Deployments_ListAllDeployments // First we need to get the deployment collection from the resource group -DeploymentCollection deploymentCollection = resourceGroup.GetDeployments(); +ArmDeploymentCollection ArmDeploymentCollection = resourceGroup.GetArmDeployments(); // With GetAllAsync(), we can get a list of the deployments in the collection -AsyncPageable response = deploymentCollection.GetAllAsync(); -await foreach (DeploymentResource deployment in response) +AsyncPageable response = ArmDeploymentCollection.GetAllAsync(); +await foreach (ArmDeploymentResource deployment in response) { Console.WriteLine(deployment.Data.Name); } @@ -120,9 +120,9 @@ await foreach (DeploymentResource deployment in response) ```C# Snippet:Managing_Deployments_DeleteADeployment // First we need to get the deployment collection from the resource group -DeploymentCollection deploymentCollection = resourceGroup.GetDeployments(); +ArmDeploymentCollection ArmDeploymentCollection = resourceGroup.GetArmDeployments(); // Now we can get the deployment with GetAsync() -DeploymentResource deployment = await deploymentCollection.GetAsync("myDeployment"); +ArmDeploymentResource deployment = await ArmDeploymentCollection.GetAsync("myDeployment"); // With DeleteAsync(), we can delete the deployment await deployment.DeleteAsync(WaitUntil.Completed); ``` diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Customized/DeploymentProperties.Serialization.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Customized/ArmDeploymentProperties.Serialization.cs similarity index 97% rename from sdk/resources/Azure.ResourceManager.Resources/src/Customized/DeploymentProperties.Serialization.cs rename to sdk/resources/Azure.ResourceManager.Resources/src/Customized/ArmDeploymentProperties.Serialization.cs index 51b39c300f322..951546ebf54bd 100644 --- a/sdk/resources/Azure.ResourceManager.Resources/src/Customized/DeploymentProperties.Serialization.cs +++ b/sdk/resources/Azure.ResourceManager.Resources/src/Customized/ArmDeploymentProperties.Serialization.cs @@ -6,7 +6,7 @@ namespace Azure.ResourceManager.Resources.Models { - public partial class DeploymentProperties : IUtf8JsonSerializable + public partial class ArmDeploymentProperties : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Customized/DeploymentProperties.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Customized/ArmDeploymentProperties.cs similarity index 94% rename from sdk/resources/Azure.ResourceManager.Resources/src/Customized/DeploymentProperties.cs rename to sdk/resources/Azure.ResourceManager.Resources/src/Customized/ArmDeploymentProperties.cs index 408afe6b9bd6d..2723443b660ac 100644 --- a/sdk/resources/Azure.ResourceManager.Resources/src/Customized/DeploymentProperties.cs +++ b/sdk/resources/Azure.ResourceManager.Resources/src/Customized/ArmDeploymentProperties.cs @@ -8,11 +8,11 @@ namespace Azure.ResourceManager.Resources.Models { /// Deployment properties. - public partial class DeploymentProperties + public partial class ArmDeploymentProperties { - /// Initializes a new instance of DeploymentProperties. + /// Initializes a new instance of ArmDeploymentProperties. /// The mode that is used to deploy resources. This value can be either Incremental or Complete. In Incremental mode, resources are deployed without deleting existing resources that are not included in the template. In Complete mode, resources are deployed and existing resources in the resource group that are not included in the template are deleted. Be careful when using Complete mode as you may unintentionally delete resources. - public DeploymentProperties(DeploymentMode mode) + public ArmDeploymentProperties(ArmDeploymentMode mode) { Mode = mode; } @@ -26,7 +26,7 @@ public DeploymentProperties(DeploymentMode mode) /// The URI of parameters file. You use this element to link to an existing parameters file. Use either the parametersLink property or the parameters property, but not both. public ParametersLink ParametersLink { get; set; } /// The mode that is used to deploy resources. This value can be either Incremental or Complete. In Incremental mode, resources are deployed without deleting existing resources that are not included in the template. In Complete mode, resources are deployed and existing resources in the resource group that are not included in the template are deleted. Be careful when using Complete mode as you may unintentionally delete resources. - public DeploymentMode Mode { get; } + public ArmDeploymentMode Mode { get; } /// The debug setting of the deployment. internal DebugSetting DebugSetting { get; set; } /// Specifies the type of information to log for debugging. The permitted values are none, requestContent, responseContent, or both requestContent and responseContent separated by a comma. The default is none. When setting this value, carefully consider the type of information you are passing in during deployment. By logging information about the request or response, you could potentially expose sensitive data that is retrieved through the deployment operations. diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Customized/DeploymentPropertiesExtended.Serialization.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Customized/ArmDeploymentPropertiesExtended.Serialization.cs similarity index 87% rename from sdk/resources/Azure.ResourceManager.Resources/src/Customized/DeploymentPropertiesExtended.Serialization.cs rename to sdk/resources/Azure.ResourceManager.Resources/src/Customized/ArmDeploymentPropertiesExtended.Serialization.cs index 8ef88317040c2..c2721e40bddf0 100644 --- a/sdk/resources/Azure.ResourceManager.Resources/src/Customized/DeploymentPropertiesExtended.Serialization.cs +++ b/sdk/resources/Azure.ResourceManager.Resources/src/Customized/ArmDeploymentPropertiesExtended.Serialization.cs @@ -14,21 +14,21 @@ namespace Azure.ResourceManager.Resources.Models { - public partial class DeploymentPropertiesExtended + public partial class ArmDeploymentPropertiesExtended { - internal static DeploymentPropertiesExtended DeserializeDeploymentPropertiesExtended(JsonElement element) + internal static ArmDeploymentPropertiesExtended DeserializeArmDeploymentPropertiesExtended(JsonElement element) { - Optional provisioningState = default; + Optional provisioningState = default; Optional correlationId = default; Optional timestamp = default; Optional duration = default; Optional outputs = default; Optional> providers = default; - Optional> dependencies = default; + Optional> dependencies = default; Optional templateLink = default; Optional parameters = default; Optional parametersLink = default; - Optional mode = default; + Optional mode = default; Optional debugSetting = default; Optional onErrorDeployment = default; Optional templateHash = default; @@ -44,7 +44,7 @@ internal static DeploymentPropertiesExtended DeserializeDeploymentPropertiesExte property.ThrowNonNullablePropertyIsNull(); continue; } - provisioningState = new ProvisioningState(property.Value.GetString()); + provisioningState = new ResourcesProvisioningState(property.Value.GetString()); continue; } if (property.NameEquals("correlationId")) @@ -104,10 +104,10 @@ internal static DeploymentPropertiesExtended DeserializeDeploymentPropertiesExte property.ThrowNonNullablePropertyIsNull(); continue; } - List array = new List(); + List array = new List(); foreach (var item in property.Value.EnumerateArray()) { - array.Add(Dependency.DeserializeDependency(item)); + array.Add(ArmDependency.DeserializeArmDependency(item)); } dependencies = array; continue; @@ -149,7 +149,7 @@ internal static DeploymentPropertiesExtended DeserializeDeploymentPropertiesExte property.ThrowNonNullablePropertyIsNull(); continue; } - mode = new DeploymentMode(property.Value.GetString()); + mode = property.Value.GetString().ToArmDeploymentMode(); continue; } if (property.NameEquals("debugSetting")) @@ -218,7 +218,7 @@ internal static DeploymentPropertiesExtended DeserializeDeploymentPropertiesExte continue; } } - return new DeploymentPropertiesExtended(Optional.ToNullable(provisioningState), correlationId.Value, Optional.ToNullable(timestamp), Optional.ToNullable(duration), outputs.Value, Optional.ToList(providers), Optional.ToList(dependencies), templateLink.Value, parameters.Value, parametersLink.Value, Optional.ToNullable(mode), debugSetting.Value, onErrorDeployment.Value, templateHash.Value, Optional.ToList(outputResources), Optional.ToList(validatedResources), error); + return new ArmDeploymentPropertiesExtended(Optional.ToNullable(provisioningState), correlationId.Value, Optional.ToNullable(timestamp), Optional.ToNullable(duration), outputs.Value, Optional.ToList(providers), Optional.ToList(dependencies), templateLink.Value, parameters.Value, parametersLink.Value, Optional.ToNullable(mode), debugSetting.Value, onErrorDeployment.Value, templateHash.Value, Optional.ToList(outputResources), Optional.ToList(validatedResources), error); } } } diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Customized/DeploymentPropertiesExtended.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Customized/ArmDeploymentPropertiesExtended.cs similarity index 82% rename from sdk/resources/Azure.ResourceManager.Resources/src/Customized/DeploymentPropertiesExtended.cs rename to sdk/resources/Azure.ResourceManager.Resources/src/Customized/ArmDeploymentPropertiesExtended.cs index f2c38faf56e89..9132bfe874f96 100644 --- a/sdk/resources/Azure.ResourceManager.Resources/src/Customized/DeploymentPropertiesExtended.cs +++ b/sdk/resources/Azure.ResourceManager.Resources/src/Customized/ArmDeploymentPropertiesExtended.cs @@ -14,18 +14,18 @@ namespace Azure.ResourceManager.Resources.Models { /// Deployment properties with additional details. - public partial class DeploymentPropertiesExtended + public partial class ArmDeploymentPropertiesExtended { - /// Initializes a new instance of DeploymentPropertiesExtended. - internal DeploymentPropertiesExtended() + /// Initializes a new instance of ArmDeploymentPropertiesExtended. + internal ArmDeploymentPropertiesExtended() { Providers = new ChangeTrackingList(); - Dependencies = new ChangeTrackingList(); + Dependencies = new ChangeTrackingList(); OutputResources = new ChangeTrackingList(); ValidatedResources = new ChangeTrackingList(); } - /// Initializes a new instance of DeploymentPropertiesExtended. + /// Initializes a new instance of ArmDeploymentPropertiesExtended. /// Denotes the state of provisioning. /// The correlation ID of the deployment. /// The timestamp of the template deployment. @@ -43,7 +43,7 @@ internal DeploymentPropertiesExtended() /// Array of provisioned resources. /// Array of validated resources. /// The deployment error. - internal DeploymentPropertiesExtended(ProvisioningState? provisioningState, string correlationId, DateTimeOffset? timestamp, TimeSpan? duration, BinaryData outputs, IReadOnlyList providers, IReadOnlyList dependencies, TemplateLink templateLink, BinaryData parameters, ParametersLink parametersLink, DeploymentMode? mode, DebugSetting debugSetting, OnErrorDeploymentExtended onErrorDeployment, string templateHash, IReadOnlyList outputResources, IReadOnlyList validatedResources, ErrorDetail error) + internal ArmDeploymentPropertiesExtended(ResourcesProvisioningState? provisioningState, string correlationId, DateTimeOffset? timestamp, TimeSpan? duration, BinaryData outputs, IReadOnlyList providers, IReadOnlyList dependencies, TemplateLink templateLink, BinaryData parameters, ParametersLink parametersLink, ArmDeploymentMode? mode, DebugSetting debugSetting, OnErrorDeploymentExtended onErrorDeployment, string templateHash, IReadOnlyList outputResources, IReadOnlyList validatedResources, ErrorDetail error) { ProvisioningState = provisioningState; CorrelationId = correlationId; @@ -65,7 +65,7 @@ internal DeploymentPropertiesExtended(ProvisioningState? provisioningState, stri } /// Denotes the state of provisioning. - public ProvisioningState? ProvisioningState { get; } + public ResourcesProvisioningState? ProvisioningState { get; } /// The correlation ID of the deployment. public string CorrelationId { get; } /// The timestamp of the template deployment. @@ -77,7 +77,7 @@ internal DeploymentPropertiesExtended(ProvisioningState? provisioningState, stri /// The list of resource providers needed for the deployment. public IReadOnlyList Providers { get; } /// The list of deployment dependencies. - public IReadOnlyList Dependencies { get; } + public IReadOnlyList Dependencies { get; } /// The URI referencing the template. public TemplateLink TemplateLink { get; } /// Deployment parameters. @@ -85,7 +85,7 @@ internal DeploymentPropertiesExtended(ProvisioningState? provisioningState, stri /// The URI referencing the parameters. public ParametersLink ParametersLink { get; } /// The deployment mode. Possible values are Incremental and Complete. - public DeploymentMode? Mode { get; } + public ArmDeploymentMode? Mode { get; } /// The debug setting of the deployment. internal DebugSetting DebugSetting { get; } /// Specifies the type of information to log for debugging. The permitted values are none, requestContent, responseContent, or both requestContent and responseContent separated by a comma. The default is none. When setting this value, carefully consider the type of information you are passing in during deployment. By logging information about the request or response, you could potentially expose sensitive data that is retrieved through the deployment operations. diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Customized/DeploymentWhatIfProperties.Serialization.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Customized/ArmDeploymentWhatIfProperties.Serialization.cs similarity index 97% rename from sdk/resources/Azure.ResourceManager.Resources/src/Customized/DeploymentWhatIfProperties.Serialization.cs rename to sdk/resources/Azure.ResourceManager.Resources/src/Customized/ArmDeploymentWhatIfProperties.Serialization.cs index f40dc2fc2374b..4e3846baef7d5 100644 --- a/sdk/resources/Azure.ResourceManager.Resources/src/Customized/DeploymentWhatIfProperties.Serialization.cs +++ b/sdk/resources/Azure.ResourceManager.Resources/src/Customized/ArmDeploymentWhatIfProperties.Serialization.cs @@ -8,7 +8,7 @@ namespace Azure.ResourceManager.Resources.Models { - public partial class DeploymentWhatIfProperties : IUtf8JsonSerializable + public partial class ArmDeploymentWhatIfProperties : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Customized/DeploymentWhatIfProperties.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Customized/ArmDeploymentWhatIfProperties.cs similarity index 74% rename from sdk/resources/Azure.ResourceManager.Resources/src/Customized/DeploymentWhatIfProperties.cs rename to sdk/resources/Azure.ResourceManager.Resources/src/Customized/ArmDeploymentWhatIfProperties.cs index b86bc3a1a0b4f..a4fcf6f90b522 100644 --- a/sdk/resources/Azure.ResourceManager.Resources/src/Customized/DeploymentWhatIfProperties.cs +++ b/sdk/resources/Azure.ResourceManager.Resources/src/Customized/ArmDeploymentWhatIfProperties.cs @@ -6,16 +6,16 @@ namespace Azure.ResourceManager.Resources.Models { /// Deployment What-if properties. - public partial class DeploymentWhatIfProperties : DeploymentProperties + public partial class ArmDeploymentWhatIfProperties : ArmDeploymentProperties { - /// Initializes a new instance of DeploymentWhatIfProperties. + /// Initializes a new instance of ArmDeploymentWhatIfProperties. /// The mode that is used to deploy resources. This value can be either Incremental or Complete. In Incremental mode, resources are deployed without deleting existing resources that are not included in the template. In Complete mode, resources are deployed and existing resources in the resource group that are not included in the template are deleted. Be careful when using Complete mode as you may unintentionally delete resources. - public DeploymentWhatIfProperties(DeploymentMode mode) : base(mode) + public ArmDeploymentWhatIfProperties(ArmDeploymentMode mode) : base(mode) { } /// Optional What-If operation settings. - internal DeploymentWhatIfSettings WhatIfSettings { get; set; } + internal ArmDeploymentWhatIfSettings WhatIfSettings { get; set; } /// The format of the What-If results. public WhatIfResultFormat? WhatIfResultFormat { @@ -23,7 +23,7 @@ public WhatIfResultFormat? WhatIfResultFormat set { if (WhatIfSettings is null) - WhatIfSettings = new DeploymentWhatIfSettings(); + WhatIfSettings = new ArmDeploymentWhatIfSettings(); WhatIfSettings.ResultFormat = value; } } diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/ApplicationCollection.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/ArmApplicationCollection.cs similarity index 62% rename from sdk/resources/Azure.ResourceManager.Resources/src/Generated/ApplicationCollection.cs rename to sdk/resources/Azure.ResourceManager.Resources/src/Generated/ArmApplicationCollection.cs index 0f8e00fabf575..4596c9e541fa6 100644 --- a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/ApplicationCollection.cs +++ b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/ArmApplicationCollection.cs @@ -20,28 +20,28 @@ namespace Azure.ResourceManager.Resources { /// - /// A class representing a collection of and their operations. - /// Each in the collection will belong to the same instance of . - /// To get an instance call the GetApplications method from an instance of . + /// A class representing a collection of and their operations. + /// Each in the collection will belong to the same instance of . + /// To get an instance call the GetArmApplications method from an instance of . /// - public partial class ApplicationCollection : ArmCollection, IEnumerable, IAsyncEnumerable + public partial class ArmApplicationCollection : ArmCollection, IEnumerable, IAsyncEnumerable { - private readonly ClientDiagnostics _applicationClientDiagnostics; - private readonly ApplicationsRestOperations _applicationRestClient; + private readonly ClientDiagnostics _armApplicationApplicationsClientDiagnostics; + private readonly ApplicationsRestOperations _armApplicationApplicationsRestClient; - /// Initializes a new instance of the class for mocking. - protected ApplicationCollection() + /// Initializes a new instance of the class for mocking. + protected ArmApplicationCollection() { } - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// The client parameters to use in these operations. /// The identifier of the parent resource that is the target of operations. - internal ApplicationCollection(ArmClient client, ResourceIdentifier id) : base(client, id) + internal ArmApplicationCollection(ArmClient client, ResourceIdentifier id) : base(client, id) { - _applicationClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.Resources", ApplicationResource.ResourceType.Namespace, Diagnostics); - TryGetApiVersion(ApplicationResource.ResourceType, out string applicationApiVersion); - _applicationRestClient = new ApplicationsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, applicationApiVersion); + _armApplicationApplicationsClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.Resources", ArmApplicationResource.ResourceType.Namespace, Diagnostics); + TryGetApiVersion(ArmApplicationResource.ResourceType, out string armApplicationApplicationsApiVersion); + _armApplicationApplicationsRestClient = new ApplicationsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, armApplicationApplicationsApiVersion); #if DEBUG ValidateResourceId(Id); #endif @@ -64,17 +64,17 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// or is null. - public virtual async Task> CreateOrUpdateAsync(WaitUntil waitUntil, string applicationName, ApplicationData parameters, CancellationToken cancellationToken = default) + public virtual async Task> CreateOrUpdateAsync(WaitUntil waitUntil, string applicationName, ArmApplicationData parameters, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(applicationName, nameof(applicationName)); Argument.AssertNotNull(parameters, nameof(parameters)); - using var scope = _applicationClientDiagnostics.CreateScope("ApplicationCollection.CreateOrUpdate"); + using var scope = _armApplicationApplicationsClientDiagnostics.CreateScope("ArmApplicationCollection.CreateOrUpdate"); scope.Start(); try { - var response = await _applicationRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, applicationName, parameters, cancellationToken).ConfigureAwait(false); - var operation = new ResourcesArmOperation(new ApplicationOperationSource(Client), _applicationClientDiagnostics, Pipeline, _applicationRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, applicationName, parameters).Request, response, OperationFinalStateVia.Location); + var response = await _armApplicationApplicationsRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, applicationName, parameters, cancellationToken).ConfigureAwait(false); + var operation = new ResourcesArmOperation(new ArmApplicationOperationSource(Client), _armApplicationApplicationsClientDiagnostics, Pipeline, _armApplicationApplicationsRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, applicationName, parameters).Request, response, OperationFinalStateVia.Location); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -97,17 +97,17 @@ public virtual async Task> CreateOrUpdateAsync /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// or is null. - public virtual ArmOperation CreateOrUpdate(WaitUntil waitUntil, string applicationName, ApplicationData parameters, CancellationToken cancellationToken = default) + public virtual ArmOperation CreateOrUpdate(WaitUntil waitUntil, string applicationName, ArmApplicationData parameters, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(applicationName, nameof(applicationName)); Argument.AssertNotNull(parameters, nameof(parameters)); - using var scope = _applicationClientDiagnostics.CreateScope("ApplicationCollection.CreateOrUpdate"); + using var scope = _armApplicationApplicationsClientDiagnostics.CreateScope("ArmApplicationCollection.CreateOrUpdate"); scope.Start(); try { - var response = _applicationRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, applicationName, parameters, cancellationToken); - var operation = new ResourcesArmOperation(new ApplicationOperationSource(Client), _applicationClientDiagnostics, Pipeline, _applicationRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, applicationName, parameters).Request, response, OperationFinalStateVia.Location); + var response = _armApplicationApplicationsRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, applicationName, parameters, cancellationToken); + var operation = new ResourcesArmOperation(new ArmApplicationOperationSource(Client), _armApplicationApplicationsClientDiagnostics, Pipeline, _armApplicationApplicationsRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, applicationName, parameters).Request, response, OperationFinalStateVia.Location); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; @@ -128,18 +128,18 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil waitUn /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. - public virtual async Task> GetAsync(string applicationName, CancellationToken cancellationToken = default) + public virtual async Task> GetAsync(string applicationName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(applicationName, nameof(applicationName)); - using var scope = _applicationClientDiagnostics.CreateScope("ApplicationCollection.Get"); + using var scope = _armApplicationApplicationsClientDiagnostics.CreateScope("ArmApplicationCollection.Get"); scope.Start(); try { - var response = await _applicationRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, applicationName, cancellationToken).ConfigureAwait(false); + var response = await _armApplicationApplicationsRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, applicationName, cancellationToken).ConfigureAwait(false); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new ApplicationResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(new ArmApplicationResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -157,18 +157,18 @@ public virtual async Task> GetAsync(string applica /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. - public virtual Response Get(string applicationName, CancellationToken cancellationToken = default) + public virtual Response Get(string applicationName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(applicationName, nameof(applicationName)); - using var scope = _applicationClientDiagnostics.CreateScope("ApplicationCollection.Get"); + using var scope = _armApplicationApplicationsClientDiagnostics.CreateScope("ArmApplicationCollection.Get"); scope.Start(); try { - var response = _applicationRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, applicationName, cancellationToken); + var response = _armApplicationApplicationsRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, applicationName, cancellationToken); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new ApplicationResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(new ArmApplicationResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -183,17 +183,17 @@ public virtual Response Get(string applicationName, Cancell /// Operation Id: Applications_ListByResourceGroup /// /// The cancellation token to use. - /// An async collection of that may take multiple service requests to iterate over. - public virtual AsyncPageable GetAllAsync(CancellationToken cancellationToken = default) + /// An async collection of that may take multiple service requests to iterate over. + public virtual AsyncPageable GetAllAsync(CancellationToken cancellationToken = default) { - async Task> FirstPageFunc(int? pageSizeHint) + async Task> FirstPageFunc(int? pageSizeHint) { - using var scope = _applicationClientDiagnostics.CreateScope("ApplicationCollection.GetAll"); + using var scope = _armApplicationApplicationsClientDiagnostics.CreateScope("ArmApplicationCollection.GetAll"); scope.Start(); try { - var response = await _applicationRestClient.ListByResourceGroupAsync(Id.SubscriptionId, Id.ResourceGroupName, cancellationToken: cancellationToken).ConfigureAwait(false); - return Page.FromValues(response.Value.Value.Select(value => new ApplicationResource(Client, value)), response.Value.NextLink, response.GetRawResponse()); + var response = await _armApplicationApplicationsRestClient.ListByResourceGroupAsync(Id.SubscriptionId, Id.ResourceGroupName, cancellationToken: cancellationToken).ConfigureAwait(false); + return Page.FromValues(response.Value.Value.Select(value => new ArmApplicationResource(Client, value)), response.Value.NextLink, response.GetRawResponse()); } catch (Exception e) { @@ -201,14 +201,14 @@ async Task> FirstPageFunc(int? pageSizeHint) throw; } } - async Task> NextPageFunc(string nextLink, int? pageSizeHint) + async Task> NextPageFunc(string nextLink, int? pageSizeHint) { - using var scope = _applicationClientDiagnostics.CreateScope("ApplicationCollection.GetAll"); + using var scope = _armApplicationApplicationsClientDiagnostics.CreateScope("ArmApplicationCollection.GetAll"); scope.Start(); try { - var response = await _applicationRestClient.ListByResourceGroupNextPageAsync(nextLink, Id.SubscriptionId, Id.ResourceGroupName, cancellationToken: cancellationToken).ConfigureAwait(false); - return Page.FromValues(response.Value.Value.Select(value => new ApplicationResource(Client, value)), response.Value.NextLink, response.GetRawResponse()); + var response = await _armApplicationApplicationsRestClient.ListByResourceGroupNextPageAsync(nextLink, Id.SubscriptionId, Id.ResourceGroupName, cancellationToken: cancellationToken).ConfigureAwait(false); + return Page.FromValues(response.Value.Value.Select(value => new ArmApplicationResource(Client, value)), response.Value.NextLink, response.GetRawResponse()); } catch (Exception e) { @@ -225,17 +225,17 @@ async Task> NextPageFunc(string nextLink, int? pageSiz /// Operation Id: Applications_ListByResourceGroup /// /// The cancellation token to use. - /// A collection of that may take multiple service requests to iterate over. - public virtual Pageable GetAll(CancellationToken cancellationToken = default) + /// A collection of that may take multiple service requests to iterate over. + public virtual Pageable GetAll(CancellationToken cancellationToken = default) { - Page FirstPageFunc(int? pageSizeHint) + Page FirstPageFunc(int? pageSizeHint) { - using var scope = _applicationClientDiagnostics.CreateScope("ApplicationCollection.GetAll"); + using var scope = _armApplicationApplicationsClientDiagnostics.CreateScope("ArmApplicationCollection.GetAll"); scope.Start(); try { - var response = _applicationRestClient.ListByResourceGroup(Id.SubscriptionId, Id.ResourceGroupName, cancellationToken: cancellationToken); - return Page.FromValues(response.Value.Value.Select(value => new ApplicationResource(Client, value)), response.Value.NextLink, response.GetRawResponse()); + var response = _armApplicationApplicationsRestClient.ListByResourceGroup(Id.SubscriptionId, Id.ResourceGroupName, cancellationToken: cancellationToken); + return Page.FromValues(response.Value.Value.Select(value => new ArmApplicationResource(Client, value)), response.Value.NextLink, response.GetRawResponse()); } catch (Exception e) { @@ -243,14 +243,14 @@ Page FirstPageFunc(int? pageSizeHint) throw; } } - Page NextPageFunc(string nextLink, int? pageSizeHint) + Page NextPageFunc(string nextLink, int? pageSizeHint) { - using var scope = _applicationClientDiagnostics.CreateScope("ApplicationCollection.GetAll"); + using var scope = _armApplicationApplicationsClientDiagnostics.CreateScope("ArmApplicationCollection.GetAll"); scope.Start(); try { - var response = _applicationRestClient.ListByResourceGroupNextPage(nextLink, Id.SubscriptionId, Id.ResourceGroupName, cancellationToken: cancellationToken); - return Page.FromValues(response.Value.Value.Select(value => new ApplicationResource(Client, value)), response.Value.NextLink, response.GetRawResponse()); + var response = _armApplicationApplicationsRestClient.ListByResourceGroupNextPage(nextLink, Id.SubscriptionId, Id.ResourceGroupName, cancellationToken: cancellationToken); + return Page.FromValues(response.Value.Value.Select(value => new ArmApplicationResource(Client, value)), response.Value.NextLink, response.GetRawResponse()); } catch (Exception e) { @@ -274,7 +274,7 @@ public virtual async Task> ExistsAsync(string applicationName, Ca { Argument.AssertNotNullOrEmpty(applicationName, nameof(applicationName)); - using var scope = _applicationClientDiagnostics.CreateScope("ApplicationCollection.Exists"); + using var scope = _armApplicationApplicationsClientDiagnostics.CreateScope("ArmApplicationCollection.Exists"); scope.Start(); try { @@ -301,7 +301,7 @@ public virtual Response Exists(string applicationName, CancellationToken c { Argument.AssertNotNullOrEmpty(applicationName, nameof(applicationName)); - using var scope = _applicationClientDiagnostics.CreateScope("ApplicationCollection.Exists"); + using var scope = _armApplicationApplicationsClientDiagnostics.CreateScope("ArmApplicationCollection.Exists"); scope.Start(); try { @@ -324,18 +324,18 @@ public virtual Response Exists(string applicationName, CancellationToken c /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. - public virtual async Task> GetIfExistsAsync(string applicationName, CancellationToken cancellationToken = default) + public virtual async Task> GetIfExistsAsync(string applicationName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(applicationName, nameof(applicationName)); - using var scope = _applicationClientDiagnostics.CreateScope("ApplicationCollection.GetIfExists"); + using var scope = _armApplicationApplicationsClientDiagnostics.CreateScope("ArmApplicationCollection.GetIfExists"); scope.Start(); try { - var response = await _applicationRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, applicationName, cancellationToken: cancellationToken).ConfigureAwait(false); + var response = await _armApplicationApplicationsRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, applicationName, cancellationToken: cancellationToken).ConfigureAwait(false); if (response.Value == null) - return Response.FromValue(null, response.GetRawResponse()); - return Response.FromValue(new ApplicationResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(null, response.GetRawResponse()); + return Response.FromValue(new ArmApplicationResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -353,18 +353,18 @@ public virtual async Task> GetIfExistsAsync(string /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. - public virtual Response GetIfExists(string applicationName, CancellationToken cancellationToken = default) + public virtual Response GetIfExists(string applicationName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(applicationName, nameof(applicationName)); - using var scope = _applicationClientDiagnostics.CreateScope("ApplicationCollection.GetIfExists"); + using var scope = _armApplicationApplicationsClientDiagnostics.CreateScope("ArmApplicationCollection.GetIfExists"); scope.Start(); try { - var response = _applicationRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, applicationName, cancellationToken: cancellationToken); + var response = _armApplicationApplicationsRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, applicationName, cancellationToken: cancellationToken); if (response.Value == null) - return Response.FromValue(null, response.GetRawResponse()); - return Response.FromValue(new ApplicationResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(null, response.GetRawResponse()); + return Response.FromValue(new ArmApplicationResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -373,7 +373,7 @@ public virtual Response GetIfExists(string applicationName, } } - IEnumerator IEnumerable.GetEnumerator() + IEnumerator IEnumerable.GetEnumerator() { return GetAll().GetEnumerator(); } @@ -383,7 +383,7 @@ IEnumerator IEnumerable.GetEnumerator() return GetAll().GetEnumerator(); } - IAsyncEnumerator IAsyncEnumerable.GetAsyncEnumerator(CancellationToken cancellationToken) + IAsyncEnumerator IAsyncEnumerable.GetAsyncEnumerator(CancellationToken cancellationToken) { return GetAllAsync(cancellationToken: cancellationToken).GetAsyncEnumerator(cancellationToken); } diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/ApplicationData.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/ArmApplicationData.cs similarity index 71% rename from sdk/resources/Azure.ResourceManager.Resources/src/Generated/ApplicationData.cs rename to sdk/resources/Azure.ResourceManager.Resources/src/Generated/ArmApplicationData.cs index 4f39ae5fb3f50..8b6b80d335497 100644 --- a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/ApplicationData.cs +++ b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/ArmApplicationData.cs @@ -13,14 +13,14 @@ namespace Azure.ResourceManager.Resources { - /// A class representing the Application data model. - public partial class ApplicationData : Models.ApplicationResource + /// A class representing the ArmApplication data model. + public partial class ArmApplicationData : Models.ArmApplicationResource { - /// Initializes a new instance of ApplicationData. + /// Initializes a new instance of ArmApplicationData. /// The location. /// The kind of the managed application. Allowed values are MarketPlace and ServiceCatalog. /// is null. - public ApplicationData(AzureLocation location, string kind) : base(location) + public ArmApplicationData(AzureLocation location, string kind) : base(location) { if (kind == null) { @@ -28,11 +28,11 @@ public ApplicationData(AzureLocation location, string kind) : base(location) } Kind = kind; - Authorizations = new ChangeTrackingList(); - Artifacts = new ChangeTrackingList(); + Authorizations = new ChangeTrackingList(); + Artifacts = new ChangeTrackingList(); } - /// Initializes a new instance of ApplicationData. + /// Initializes a new instance of ArmApplicationData. /// The id. /// The name. /// The resourceType. @@ -59,7 +59,7 @@ public ApplicationData(AzureLocation location, string kind) : base(location) /// The collection of managed application artifacts. /// The client entity that created the JIT request. /// The client entity that last updated the JIT request. - internal ApplicationData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, string managedBy, ApplicationSku sku, ArmPlan plan, string kind, ApplicationManagedIdentity identity, string managedResourceGroupId, string applicationDefinitionId, BinaryData parameters, BinaryData outputs, ProvisioningState? provisioningState, ApplicationBillingDetailsDefinition billingDetails, ApplicationJitAccessPolicy jitAccessPolicy, string publisherTenantId, IReadOnlyList authorizations, ApplicationManagementMode? managementMode, ApplicationPackageContact customerSupport, ApplicationPackageSupportUrls supportUrls, IReadOnlyList artifacts, ApplicationClientDetails createdBy, ApplicationClientDetails updatedBy) : base(id, name, resourceType, systemData, tags, location, managedBy, sku) + internal ArmApplicationData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, string managedBy, ArmApplicationSku sku, ArmPlan plan, string kind, ArmApplicationManagedIdentity identity, ResourceIdentifier managedResourceGroupId, ResourceIdentifier applicationDefinitionId, BinaryData parameters, BinaryData outputs, ResourcesProvisioningState? provisioningState, ArmApplicationBillingDetails billingDetails, ArmApplicationJitAccessPolicy jitAccessPolicy, string publisherTenantId, IReadOnlyList authorizations, ArmApplicationManagementMode? managementMode, ArmApplicationPackageContact customerSupport, ArmApplicationPackageSupportUrls supportUrls, IReadOnlyList artifacts, ArmApplicationDetails createdBy, ArmApplicationDetails updatedBy) : base(id, name, resourceType, systemData, tags, location, managedBy, sku) { Plan = plan; Kind = kind; @@ -86,19 +86,19 @@ internal ApplicationData(ResourceIdentifier id, string name, ResourceType resour /// The kind of the managed application. Allowed values are MarketPlace and ServiceCatalog. public string Kind { get; set; } /// The identity of the resource. - public ApplicationManagedIdentity Identity { get; set; } + public ArmApplicationManagedIdentity Identity { get; set; } /// The managed resource group Id. - public string ManagedResourceGroupId { get; set; } + public ResourceIdentifier ManagedResourceGroupId { get; set; } /// The fully qualified path of managed application definition Id. - public string ApplicationDefinitionId { get; set; } + public ResourceIdentifier ApplicationDefinitionId { get; set; } /// Name and value pairs that define the managed application parameters. It can be a JObject or a well formed JSON string. public BinaryData Parameters { get; set; } /// Name and value pairs that define the managed application outputs. public BinaryData Outputs { get; } /// The managed application provisioning state. - public ProvisioningState? ProvisioningState { get; } + public ResourcesProvisioningState? ProvisioningState { get; } /// The managed application billing details. - internal ApplicationBillingDetailsDefinition BillingDetails { get; } + internal ArmApplicationBillingDetails BillingDetails { get; } /// The managed application resource usage Id. public string BillingDetailsResourceUsageId { @@ -106,22 +106,22 @@ public string BillingDetailsResourceUsageId } /// The managed application Jit access policy. - public ApplicationJitAccessPolicy JitAccessPolicy { get; set; } + public ArmApplicationJitAccessPolicy JitAccessPolicy { get; set; } /// The publisher tenant Id. public string PublisherTenantId { get; } /// The read-only authorizations property that is retrieved from the application package. - public IReadOnlyList Authorizations { get; } + public IReadOnlyList Authorizations { get; } /// The managed application management mode. - public ApplicationManagementMode? ManagementMode { get; } + public ArmApplicationManagementMode? ManagementMode { get; } /// The read-only customer support property that is retrieved from the application package. - public ApplicationPackageContact CustomerSupport { get; } + public ArmApplicationPackageContact CustomerSupport { get; } /// The read-only support URLs property that is retrieved from the application package. - public ApplicationPackageSupportUrls SupportUrls { get; } + public ArmApplicationPackageSupportUrls SupportUrls { get; } /// The collection of managed application artifacts. - public IReadOnlyList Artifacts { get; } + public IReadOnlyList Artifacts { get; } /// The client entity that created the JIT request. - public ApplicationClientDetails CreatedBy { get; } + public ArmApplicationDetails CreatedBy { get; } /// The client entity that last updated the JIT request. - public ApplicationClientDetails UpdatedBy { get; } + public ArmApplicationDetails UpdatedBy { get; } } } diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/ApplicationDefinitionCollection.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/ArmApplicationDefinitionCollection.cs similarity index 60% rename from sdk/resources/Azure.ResourceManager.Resources/src/Generated/ApplicationDefinitionCollection.cs rename to sdk/resources/Azure.ResourceManager.Resources/src/Generated/ArmApplicationDefinitionCollection.cs index df693f7e694f1..68da7451d3b40 100644 --- a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/ApplicationDefinitionCollection.cs +++ b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/ArmApplicationDefinitionCollection.cs @@ -20,28 +20,28 @@ namespace Azure.ResourceManager.Resources { /// - /// A class representing a collection of and their operations. - /// Each in the collection will belong to the same instance of . - /// To get an instance call the GetApplicationDefinitions method from an instance of . + /// A class representing a collection of and their operations. + /// Each in the collection will belong to the same instance of . + /// To get an instance call the GetArmApplicationDefinitions method from an instance of . /// - public partial class ApplicationDefinitionCollection : ArmCollection, IEnumerable, IAsyncEnumerable + public partial class ArmApplicationDefinitionCollection : ArmCollection, IEnumerable, IAsyncEnumerable { - private readonly ClientDiagnostics _applicationDefinitionClientDiagnostics; - private readonly ApplicationDefinitionsRestOperations _applicationDefinitionRestClient; + private readonly ClientDiagnostics _armApplicationDefinitionApplicationDefinitionsClientDiagnostics; + private readonly ApplicationDefinitionsRestOperations _armApplicationDefinitionApplicationDefinitionsRestClient; - /// Initializes a new instance of the class for mocking. - protected ApplicationDefinitionCollection() + /// Initializes a new instance of the class for mocking. + protected ArmApplicationDefinitionCollection() { } - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// The client parameters to use in these operations. /// The identifier of the parent resource that is the target of operations. - internal ApplicationDefinitionCollection(ArmClient client, ResourceIdentifier id) : base(client, id) + internal ArmApplicationDefinitionCollection(ArmClient client, ResourceIdentifier id) : base(client, id) { - _applicationDefinitionClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.Resources", ApplicationDefinitionResource.ResourceType.Namespace, Diagnostics); - TryGetApiVersion(ApplicationDefinitionResource.ResourceType, out string applicationDefinitionApiVersion); - _applicationDefinitionRestClient = new ApplicationDefinitionsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, applicationDefinitionApiVersion); + _armApplicationDefinitionApplicationDefinitionsClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.Resources", ArmApplicationDefinitionResource.ResourceType.Namespace, Diagnostics); + TryGetApiVersion(ArmApplicationDefinitionResource.ResourceType, out string armApplicationDefinitionApplicationDefinitionsApiVersion); + _armApplicationDefinitionApplicationDefinitionsRestClient = new ApplicationDefinitionsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, armApplicationDefinitionApplicationDefinitionsApiVersion); #if DEBUG ValidateResourceId(Id); #endif @@ -64,17 +64,17 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// or is null. - public virtual async Task> CreateOrUpdateAsync(WaitUntil waitUntil, string applicationDefinitionName, ApplicationDefinitionData parameters, CancellationToken cancellationToken = default) + public virtual async Task> CreateOrUpdateAsync(WaitUntil waitUntil, string applicationDefinitionName, ArmApplicationDefinitionData parameters, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(applicationDefinitionName, nameof(applicationDefinitionName)); Argument.AssertNotNull(parameters, nameof(parameters)); - using var scope = _applicationDefinitionClientDiagnostics.CreateScope("ApplicationDefinitionCollection.CreateOrUpdate"); + using var scope = _armApplicationDefinitionApplicationDefinitionsClientDiagnostics.CreateScope("ArmApplicationDefinitionCollection.CreateOrUpdate"); scope.Start(); try { - var response = await _applicationDefinitionRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, applicationDefinitionName, parameters, cancellationToken).ConfigureAwait(false); - var operation = new ResourcesArmOperation(new ApplicationDefinitionOperationSource(Client), _applicationDefinitionClientDiagnostics, Pipeline, _applicationDefinitionRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, applicationDefinitionName, parameters).Request, response, OperationFinalStateVia.Location); + var response = await _armApplicationDefinitionApplicationDefinitionsRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, applicationDefinitionName, parameters, cancellationToken).ConfigureAwait(false); + var operation = new ResourcesArmOperation(new ArmApplicationDefinitionOperationSource(Client), _armApplicationDefinitionApplicationDefinitionsClientDiagnostics, Pipeline, _armApplicationDefinitionApplicationDefinitionsRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, applicationDefinitionName, parameters).Request, response, OperationFinalStateVia.Location); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -97,17 +97,17 @@ public virtual async Task> CreateOrU /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// or is null. - public virtual ArmOperation CreateOrUpdate(WaitUntil waitUntil, string applicationDefinitionName, ApplicationDefinitionData parameters, CancellationToken cancellationToken = default) + public virtual ArmOperation CreateOrUpdate(WaitUntil waitUntil, string applicationDefinitionName, ArmApplicationDefinitionData parameters, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(applicationDefinitionName, nameof(applicationDefinitionName)); Argument.AssertNotNull(parameters, nameof(parameters)); - using var scope = _applicationDefinitionClientDiagnostics.CreateScope("ApplicationDefinitionCollection.CreateOrUpdate"); + using var scope = _armApplicationDefinitionApplicationDefinitionsClientDiagnostics.CreateScope("ArmApplicationDefinitionCollection.CreateOrUpdate"); scope.Start(); try { - var response = _applicationDefinitionRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, applicationDefinitionName, parameters, cancellationToken); - var operation = new ResourcesArmOperation(new ApplicationDefinitionOperationSource(Client), _applicationDefinitionClientDiagnostics, Pipeline, _applicationDefinitionRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, applicationDefinitionName, parameters).Request, response, OperationFinalStateVia.Location); + var response = _armApplicationDefinitionApplicationDefinitionsRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, applicationDefinitionName, parameters, cancellationToken); + var operation = new ResourcesArmOperation(new ArmApplicationDefinitionOperationSource(Client), _armApplicationDefinitionApplicationDefinitionsClientDiagnostics, Pipeline, _armApplicationDefinitionApplicationDefinitionsRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, applicationDefinitionName, parameters).Request, response, OperationFinalStateVia.Location); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; @@ -128,18 +128,18 @@ public virtual ArmOperation CreateOrUpdate(WaitUn /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. - public virtual async Task> GetAsync(string applicationDefinitionName, CancellationToken cancellationToken = default) + public virtual async Task> GetAsync(string applicationDefinitionName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(applicationDefinitionName, nameof(applicationDefinitionName)); - using var scope = _applicationDefinitionClientDiagnostics.CreateScope("ApplicationDefinitionCollection.Get"); + using var scope = _armApplicationDefinitionApplicationDefinitionsClientDiagnostics.CreateScope("ArmApplicationDefinitionCollection.Get"); scope.Start(); try { - var response = await _applicationDefinitionRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, applicationDefinitionName, cancellationToken).ConfigureAwait(false); + var response = await _armApplicationDefinitionApplicationDefinitionsRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, applicationDefinitionName, cancellationToken).ConfigureAwait(false); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new ApplicationDefinitionResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(new ArmApplicationDefinitionResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -157,18 +157,18 @@ public virtual async Task> GetAsync(stri /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. - public virtual Response Get(string applicationDefinitionName, CancellationToken cancellationToken = default) + public virtual Response Get(string applicationDefinitionName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(applicationDefinitionName, nameof(applicationDefinitionName)); - using var scope = _applicationDefinitionClientDiagnostics.CreateScope("ApplicationDefinitionCollection.Get"); + using var scope = _armApplicationDefinitionApplicationDefinitionsClientDiagnostics.CreateScope("ArmApplicationDefinitionCollection.Get"); scope.Start(); try { - var response = _applicationDefinitionRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, applicationDefinitionName, cancellationToken); + var response = _armApplicationDefinitionApplicationDefinitionsRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, applicationDefinitionName, cancellationToken); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new ApplicationDefinitionResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(new ArmApplicationDefinitionResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -183,17 +183,17 @@ public virtual Response Get(string applicationDef /// Operation Id: ApplicationDefinitions_ListByResourceGroup /// /// The cancellation token to use. - /// An async collection of that may take multiple service requests to iterate over. - public virtual AsyncPageable GetAllAsync(CancellationToken cancellationToken = default) + /// An async collection of that may take multiple service requests to iterate over. + public virtual AsyncPageable GetAllAsync(CancellationToken cancellationToken = default) { - async Task> FirstPageFunc(int? pageSizeHint) + async Task> FirstPageFunc(int? pageSizeHint) { - using var scope = _applicationDefinitionClientDiagnostics.CreateScope("ApplicationDefinitionCollection.GetAll"); + using var scope = _armApplicationDefinitionApplicationDefinitionsClientDiagnostics.CreateScope("ArmApplicationDefinitionCollection.GetAll"); scope.Start(); try { - var response = await _applicationDefinitionRestClient.ListByResourceGroupAsync(Id.SubscriptionId, Id.ResourceGroupName, cancellationToken: cancellationToken).ConfigureAwait(false); - return Page.FromValues(response.Value.Value.Select(value => new ApplicationDefinitionResource(Client, value)), response.Value.NextLink, response.GetRawResponse()); + var response = await _armApplicationDefinitionApplicationDefinitionsRestClient.ListByResourceGroupAsync(Id.SubscriptionId, Id.ResourceGroupName, cancellationToken: cancellationToken).ConfigureAwait(false); + return Page.FromValues(response.Value.Value.Select(value => new ArmApplicationDefinitionResource(Client, value)), response.Value.NextLink, response.GetRawResponse()); } catch (Exception e) { @@ -201,14 +201,14 @@ async Task> FirstPageFunc(int? pageSizeHint) throw; } } - async Task> NextPageFunc(string nextLink, int? pageSizeHint) + async Task> NextPageFunc(string nextLink, int? pageSizeHint) { - using var scope = _applicationDefinitionClientDiagnostics.CreateScope("ApplicationDefinitionCollection.GetAll"); + using var scope = _armApplicationDefinitionApplicationDefinitionsClientDiagnostics.CreateScope("ArmApplicationDefinitionCollection.GetAll"); scope.Start(); try { - var response = await _applicationDefinitionRestClient.ListByResourceGroupNextPageAsync(nextLink, Id.SubscriptionId, Id.ResourceGroupName, cancellationToken: cancellationToken).ConfigureAwait(false); - return Page.FromValues(response.Value.Value.Select(value => new ApplicationDefinitionResource(Client, value)), response.Value.NextLink, response.GetRawResponse()); + var response = await _armApplicationDefinitionApplicationDefinitionsRestClient.ListByResourceGroupNextPageAsync(nextLink, Id.SubscriptionId, Id.ResourceGroupName, cancellationToken: cancellationToken).ConfigureAwait(false); + return Page.FromValues(response.Value.Value.Select(value => new ArmApplicationDefinitionResource(Client, value)), response.Value.NextLink, response.GetRawResponse()); } catch (Exception e) { @@ -225,17 +225,17 @@ async Task> NextPageFunc(string nextLink, in /// Operation Id: ApplicationDefinitions_ListByResourceGroup /// /// The cancellation token to use. - /// A collection of that may take multiple service requests to iterate over. - public virtual Pageable GetAll(CancellationToken cancellationToken = default) + /// A collection of that may take multiple service requests to iterate over. + public virtual Pageable GetAll(CancellationToken cancellationToken = default) { - Page FirstPageFunc(int? pageSizeHint) + Page FirstPageFunc(int? pageSizeHint) { - using var scope = _applicationDefinitionClientDiagnostics.CreateScope("ApplicationDefinitionCollection.GetAll"); + using var scope = _armApplicationDefinitionApplicationDefinitionsClientDiagnostics.CreateScope("ArmApplicationDefinitionCollection.GetAll"); scope.Start(); try { - var response = _applicationDefinitionRestClient.ListByResourceGroup(Id.SubscriptionId, Id.ResourceGroupName, cancellationToken: cancellationToken); - return Page.FromValues(response.Value.Value.Select(value => new ApplicationDefinitionResource(Client, value)), response.Value.NextLink, response.GetRawResponse()); + var response = _armApplicationDefinitionApplicationDefinitionsRestClient.ListByResourceGroup(Id.SubscriptionId, Id.ResourceGroupName, cancellationToken: cancellationToken); + return Page.FromValues(response.Value.Value.Select(value => new ArmApplicationDefinitionResource(Client, value)), response.Value.NextLink, response.GetRawResponse()); } catch (Exception e) { @@ -243,14 +243,14 @@ Page FirstPageFunc(int? pageSizeHint) throw; } } - Page NextPageFunc(string nextLink, int? pageSizeHint) + Page NextPageFunc(string nextLink, int? pageSizeHint) { - using var scope = _applicationDefinitionClientDiagnostics.CreateScope("ApplicationDefinitionCollection.GetAll"); + using var scope = _armApplicationDefinitionApplicationDefinitionsClientDiagnostics.CreateScope("ArmApplicationDefinitionCollection.GetAll"); scope.Start(); try { - var response = _applicationDefinitionRestClient.ListByResourceGroupNextPage(nextLink, Id.SubscriptionId, Id.ResourceGroupName, cancellationToken: cancellationToken); - return Page.FromValues(response.Value.Value.Select(value => new ApplicationDefinitionResource(Client, value)), response.Value.NextLink, response.GetRawResponse()); + var response = _armApplicationDefinitionApplicationDefinitionsRestClient.ListByResourceGroupNextPage(nextLink, Id.SubscriptionId, Id.ResourceGroupName, cancellationToken: cancellationToken); + return Page.FromValues(response.Value.Value.Select(value => new ArmApplicationDefinitionResource(Client, value)), response.Value.NextLink, response.GetRawResponse()); } catch (Exception e) { @@ -274,7 +274,7 @@ public virtual async Task> ExistsAsync(string applicationDefiniti { Argument.AssertNotNullOrEmpty(applicationDefinitionName, nameof(applicationDefinitionName)); - using var scope = _applicationDefinitionClientDiagnostics.CreateScope("ApplicationDefinitionCollection.Exists"); + using var scope = _armApplicationDefinitionApplicationDefinitionsClientDiagnostics.CreateScope("ArmApplicationDefinitionCollection.Exists"); scope.Start(); try { @@ -301,7 +301,7 @@ public virtual Response Exists(string applicationDefinitionName, Cancellat { Argument.AssertNotNullOrEmpty(applicationDefinitionName, nameof(applicationDefinitionName)); - using var scope = _applicationDefinitionClientDiagnostics.CreateScope("ApplicationDefinitionCollection.Exists"); + using var scope = _armApplicationDefinitionApplicationDefinitionsClientDiagnostics.CreateScope("ArmApplicationDefinitionCollection.Exists"); scope.Start(); try { @@ -324,18 +324,18 @@ public virtual Response Exists(string applicationDefinitionName, Cancellat /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. - public virtual async Task> GetIfExistsAsync(string applicationDefinitionName, CancellationToken cancellationToken = default) + public virtual async Task> GetIfExistsAsync(string applicationDefinitionName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(applicationDefinitionName, nameof(applicationDefinitionName)); - using var scope = _applicationDefinitionClientDiagnostics.CreateScope("ApplicationDefinitionCollection.GetIfExists"); + using var scope = _armApplicationDefinitionApplicationDefinitionsClientDiagnostics.CreateScope("ArmApplicationDefinitionCollection.GetIfExists"); scope.Start(); try { - var response = await _applicationDefinitionRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, applicationDefinitionName, cancellationToken: cancellationToken).ConfigureAwait(false); + var response = await _armApplicationDefinitionApplicationDefinitionsRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, applicationDefinitionName, cancellationToken: cancellationToken).ConfigureAwait(false); if (response.Value == null) - return Response.FromValue(null, response.GetRawResponse()); - return Response.FromValue(new ApplicationDefinitionResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(null, response.GetRawResponse()); + return Response.FromValue(new ArmApplicationDefinitionResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -353,18 +353,18 @@ public virtual async Task> GetIfExistsAs /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. - public virtual Response GetIfExists(string applicationDefinitionName, CancellationToken cancellationToken = default) + public virtual Response GetIfExists(string applicationDefinitionName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(applicationDefinitionName, nameof(applicationDefinitionName)); - using var scope = _applicationDefinitionClientDiagnostics.CreateScope("ApplicationDefinitionCollection.GetIfExists"); + using var scope = _armApplicationDefinitionApplicationDefinitionsClientDiagnostics.CreateScope("ArmApplicationDefinitionCollection.GetIfExists"); scope.Start(); try { - var response = _applicationDefinitionRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, applicationDefinitionName, cancellationToken: cancellationToken); + var response = _armApplicationDefinitionApplicationDefinitionsRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, applicationDefinitionName, cancellationToken: cancellationToken); if (response.Value == null) - return Response.FromValue(null, response.GetRawResponse()); - return Response.FromValue(new ApplicationDefinitionResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(null, response.GetRawResponse()); + return Response.FromValue(new ArmApplicationDefinitionResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -373,7 +373,7 @@ public virtual Response GetIfExists(string applic } } - IEnumerator IEnumerable.GetEnumerator() + IEnumerator IEnumerable.GetEnumerator() { return GetAll().GetEnumerator(); } @@ -383,7 +383,7 @@ IEnumerator IEnumerable.GetEnumerator() return GetAll().GetEnumerator(); } - IAsyncEnumerator IAsyncEnumerable.GetAsyncEnumerator(CancellationToken cancellationToken) + IAsyncEnumerator IAsyncEnumerable.GetAsyncEnumerator(CancellationToken cancellationToken) { return GetAllAsync(cancellationToken: cancellationToken).GetAsyncEnumerator(cancellationToken); } diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/ApplicationDefinitionData.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/ArmApplicationDefinitionData.cs similarity index 70% rename from sdk/resources/Azure.ResourceManager.Resources/src/Generated/ApplicationDefinitionData.cs rename to sdk/resources/Azure.ResourceManager.Resources/src/Generated/ArmApplicationDefinitionData.cs index bc6487a1267cd..0383957723b36 100644 --- a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/ApplicationDefinitionData.cs +++ b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/ArmApplicationDefinitionData.cs @@ -13,21 +13,21 @@ namespace Azure.ResourceManager.Resources { - /// A class representing the ApplicationDefinition data model. - public partial class ApplicationDefinitionData : Models.ApplicationResource + /// A class representing the ArmApplicationDefinition data model. + public partial class ArmApplicationDefinitionData : Models.ArmApplicationResource { - /// Initializes a new instance of ApplicationDefinitionData. + /// Initializes a new instance of ArmApplicationDefinitionData. /// The location. /// The managed application lock level. - public ApplicationDefinitionData(AzureLocation location, ApplicationLockLevel lockLevel) : base(location) + public ArmApplicationDefinitionData(AzureLocation location, ArmApplicationLockLevel lockLevel) : base(location) { LockLevel = lockLevel; - Authorizations = new ChangeTrackingList(); - Artifacts = new ChangeTrackingList(); - Policies = new ChangeTrackingList(); + Authorizations = new ChangeTrackingList(); + Artifacts = new ChangeTrackingList(); + Policies = new ChangeTrackingList(); } - /// Initializes a new instance of ApplicationDefinitionData. + /// Initializes a new instance of ArmApplicationDefinitionData. /// The id. /// The name. /// The resourceType. @@ -50,7 +50,7 @@ public ApplicationDefinitionData(AzureLocation location, ApplicationLockLevel lo /// The managed application deployment policy. /// The managed application management policy that determines publisher's access to the managed resource group. /// The managed application provider policies. - internal ApplicationDefinitionData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, string managedBy, ApplicationSku sku, ApplicationLockLevel lockLevel, string displayName, bool? isEnabled, IList authorizations, IList artifacts, string description, Uri packageFileUri, BinaryData mainTemplate, BinaryData createUiDefinition, ApplicationNotificationPolicy notificationPolicy, ApplicationPackageLockingPolicyDefinition lockingPolicy, ApplicationDeploymentPolicy deploymentPolicy, ApplicationManagementPolicy managementPolicy, IList policies) : base(id, name, resourceType, systemData, tags, location, managedBy, sku) + internal ArmApplicationDefinitionData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, string managedBy, ArmApplicationSku sku, ArmApplicationLockLevel lockLevel, string displayName, bool? isEnabled, IList authorizations, IList artifacts, string description, Uri packageFileUri, BinaryData mainTemplate, BinaryData createUiDefinition, ArmApplicationNotificationPolicy notificationPolicy, ArmApplicationPackageLockingPolicy lockingPolicy, ArmApplicationDeploymentPolicy deploymentPolicy, ArmApplicationManagementPolicy managementPolicy, IList policies) : base(id, name, resourceType, systemData, tags, location, managedBy, sku) { LockLevel = lockLevel; DisplayName = displayName; @@ -69,15 +69,15 @@ internal ApplicationDefinitionData(ResourceIdentifier id, string name, ResourceT } /// The managed application lock level. - public ApplicationLockLevel LockLevel { get; set; } + public ArmApplicationLockLevel LockLevel { get; set; } /// The managed application definition display name. public string DisplayName { get; set; } /// A value indicating whether the package is enabled or not. public bool? IsEnabled { get; set; } /// The managed application provider authorizations. - public IList Authorizations { get; } + public IList Authorizations { get; } /// The collection of managed application artifacts. The portal will use the files specified as artifacts to construct the user experience of creating a managed application from a managed application definition. - public IList Artifacts { get; } + public IList Artifacts { get; } /// The managed application definition description. public string Description { get; set; } /// The managed application definition package file Uri. Use this element. @@ -87,51 +87,51 @@ internal ApplicationDefinitionData(ResourceIdentifier id, string name, ResourceT /// The createUiDefinition json for the backing template with Microsoft.Solutions/applications resource. It can be a JObject or well-formed JSON string. public BinaryData CreateUiDefinition { get; set; } /// The managed application notification policy. - internal ApplicationNotificationPolicy NotificationPolicy { get; set; } + internal ArmApplicationNotificationPolicy NotificationPolicy { get; set; } /// The managed application notification endpoint. - public IList NotificationEndpoints + public IList NotificationEndpoints { get => NotificationPolicy is null ? default : NotificationPolicy.NotificationEndpoints; - set => NotificationPolicy = new ApplicationNotificationPolicy(value); + set => NotificationPolicy = new ArmApplicationNotificationPolicy(value); } /// The managed application locking policy. - internal ApplicationPackageLockingPolicyDefinition LockingPolicy { get; set; } + internal ArmApplicationPackageLockingPolicy LockingPolicy { get; set; } /// The deny assignment excluded actions. public IList LockingAllowedActions { get { if (LockingPolicy is null) - LockingPolicy = new ApplicationPackageLockingPolicyDefinition(); + LockingPolicy = new ArmApplicationPackageLockingPolicy(); return LockingPolicy.AllowedActions; } } /// The managed application deployment policy. - internal ApplicationDeploymentPolicy DeploymentPolicy { get; set; } + internal ArmApplicationDeploymentPolicy DeploymentPolicy { get; set; } /// The managed application deployment mode. - public DeploymentMode DeploymentMode + public ArmApplicationDeploymentMode DeploymentMode { get => DeploymentPolicy is null ? default : DeploymentPolicy.DeploymentMode; - set => DeploymentPolicy = new ApplicationDeploymentPolicy(value); + set => DeploymentPolicy = new ArmApplicationDeploymentPolicy(value); } /// The managed application management policy that determines publisher's access to the managed resource group. - internal ApplicationManagementPolicy ManagementPolicy { get; set; } + internal ArmApplicationManagementPolicy ManagementPolicy { get; set; } /// The managed application management mode. - public ApplicationManagementMode? ManagementMode + public ArmApplicationManagementMode? ManagementMode { get => ManagementPolicy is null ? default : ManagementPolicy.Mode; set { if (ManagementPolicy is null) - ManagementPolicy = new ApplicationManagementPolicy(); + ManagementPolicy = new ArmApplicationManagementPolicy(); ManagementPolicy.Mode = value; } } /// The managed application provider policies. - public IList Policies { get; } + public IList Policies { get; } } } diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/ApplicationDefinitionResource.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/ArmApplicationDefinitionResource.cs similarity index 64% rename from sdk/resources/Azure.ResourceManager.Resources/src/Generated/ApplicationDefinitionResource.cs rename to sdk/resources/Azure.ResourceManager.Resources/src/Generated/ArmApplicationDefinitionResource.cs index b0f9d63a3baf3..4c1f43fa7e604 100644 --- a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/ApplicationDefinitionResource.cs +++ b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/ArmApplicationDefinitionResource.cs @@ -18,46 +18,46 @@ namespace Azure.ResourceManager.Resources { /// - /// A Class representing an ApplicationDefinition along with the instance operations that can be performed on it. - /// If you have a you can construct an - /// from an instance of using the GetApplicationDefinitionResource method. - /// Otherwise you can get one from its parent resource using the GetApplicationDefinition method. + /// A Class representing an ArmApplicationDefinition along with the instance operations that can be performed on it. + /// If you have a you can construct an + /// from an instance of using the GetArmApplicationDefinitionResource method. + /// Otherwise you can get one from its parent resource using the GetArmApplicationDefinition method. /// - public partial class ApplicationDefinitionResource : ArmResource + public partial class ArmApplicationDefinitionResource : ArmResource { - /// Generate the resource identifier of a instance. + /// Generate the resource identifier of a instance. public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string applicationDefinitionName) { var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/applicationDefinitions/{applicationDefinitionName}"; return new ResourceIdentifier(resourceId); } - private readonly ClientDiagnostics _applicationDefinitionClientDiagnostics; - private readonly ApplicationDefinitionsRestOperations _applicationDefinitionRestClient; - private readonly ApplicationDefinitionData _data; + private readonly ClientDiagnostics _armApplicationDefinitionApplicationDefinitionsClientDiagnostics; + private readonly ApplicationDefinitionsRestOperations _armApplicationDefinitionApplicationDefinitionsRestClient; + private readonly ArmApplicationDefinitionData _data; - /// Initializes a new instance of the class for mocking. - protected ApplicationDefinitionResource() + /// Initializes a new instance of the class for mocking. + protected ArmApplicationDefinitionResource() { } - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// The client parameters to use in these operations. /// The resource that is the target of operations. - internal ApplicationDefinitionResource(ArmClient client, ApplicationDefinitionData data) : this(client, data.Id) + internal ArmApplicationDefinitionResource(ArmClient client, ArmApplicationDefinitionData data) : this(client, data.Id) { HasData = true; _data = data; } - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// The client parameters to use in these operations. /// The identifier of the resource that is the target of operations. - internal ApplicationDefinitionResource(ArmClient client, ResourceIdentifier id) : base(client, id) + internal ArmApplicationDefinitionResource(ArmClient client, ResourceIdentifier id) : base(client, id) { - _applicationDefinitionClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.Resources", ResourceType.Namespace, Diagnostics); - TryGetApiVersion(ResourceType, out string applicationDefinitionApiVersion); - _applicationDefinitionRestClient = new ApplicationDefinitionsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, applicationDefinitionApiVersion); + _armApplicationDefinitionApplicationDefinitionsClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.Resources", ResourceType.Namespace, Diagnostics); + TryGetApiVersion(ResourceType, out string armApplicationDefinitionApplicationDefinitionsApiVersion); + _armApplicationDefinitionApplicationDefinitionsRestClient = new ApplicationDefinitionsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, armApplicationDefinitionApplicationDefinitionsApiVersion); #if DEBUG ValidateResourceId(Id); #endif @@ -71,7 +71,7 @@ internal ApplicationDefinitionResource(ArmClient client, ResourceIdentifier id) /// Gets the data representing this Feature. /// Throws if there is no data loaded in the current instance. - public virtual ApplicationDefinitionData Data + public virtual ArmApplicationDefinitionData Data { get { @@ -93,16 +93,16 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// Operation Id: ApplicationDefinitions_Get /// /// The cancellation token to use. - public virtual async Task> GetAsync(CancellationToken cancellationToken = default) + public virtual async Task> GetAsync(CancellationToken cancellationToken = default) { - using var scope = _applicationDefinitionClientDiagnostics.CreateScope("ApplicationDefinitionResource.Get"); + using var scope = _armApplicationDefinitionApplicationDefinitionsClientDiagnostics.CreateScope("ArmApplicationDefinitionResource.Get"); scope.Start(); try { - var response = await _applicationDefinitionRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken).ConfigureAwait(false); + var response = await _armApplicationDefinitionApplicationDefinitionsRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken).ConfigureAwait(false); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new ApplicationDefinitionResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(new ArmApplicationDefinitionResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -117,16 +117,16 @@ public virtual async Task> GetAsync(Canc /// Operation Id: ApplicationDefinitions_Get /// /// The cancellation token to use. - public virtual Response Get(CancellationToken cancellationToken = default) + public virtual Response Get(CancellationToken cancellationToken = default) { - using var scope = _applicationDefinitionClientDiagnostics.CreateScope("ApplicationDefinitionResource.Get"); + using var scope = _armApplicationDefinitionApplicationDefinitionsClientDiagnostics.CreateScope("ArmApplicationDefinitionResource.Get"); scope.Start(); try { - var response = _applicationDefinitionRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken); + var response = _armApplicationDefinitionApplicationDefinitionsRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new ApplicationDefinitionResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(new ArmApplicationDefinitionResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -144,12 +144,12 @@ public virtual Response Get(CancellationToken can /// The cancellation token to use. public virtual async Task DeleteAsync(WaitUntil waitUntil, CancellationToken cancellationToken = default) { - using var scope = _applicationDefinitionClientDiagnostics.CreateScope("ApplicationDefinitionResource.Delete"); + using var scope = _armApplicationDefinitionApplicationDefinitionsClientDiagnostics.CreateScope("ArmApplicationDefinitionResource.Delete"); scope.Start(); try { - var response = await _applicationDefinitionRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new ResourcesArmOperation(_applicationDefinitionClientDiagnostics, Pipeline, _applicationDefinitionRestClient.CreateDeleteRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name).Request, response, OperationFinalStateVia.Location); + var response = await _armApplicationDefinitionApplicationDefinitionsRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken).ConfigureAwait(false); + var operation = new ResourcesArmOperation(_armApplicationDefinitionApplicationDefinitionsClientDiagnostics, Pipeline, _armApplicationDefinitionApplicationDefinitionsRestClient.CreateDeleteRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name).Request, response, OperationFinalStateVia.Location); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -170,12 +170,12 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// The cancellation token to use. public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancellationToken = default) { - using var scope = _applicationDefinitionClientDiagnostics.CreateScope("ApplicationDefinitionResource.Delete"); + using var scope = _armApplicationDefinitionApplicationDefinitionsClientDiagnostics.CreateScope("ArmApplicationDefinitionResource.Delete"); scope.Start(); try { - var response = _applicationDefinitionRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken); - var operation = new ResourcesArmOperation(_applicationDefinitionClientDiagnostics, Pipeline, _applicationDefinitionRestClient.CreateDeleteRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name).Request, response, OperationFinalStateVia.Location); + var response = _armApplicationDefinitionApplicationDefinitionsRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken); + var operation = new ResourcesArmOperation(_armApplicationDefinitionApplicationDefinitionsClientDiagnostics, Pipeline, _armApplicationDefinitionApplicationDefinitionsRestClient.CreateDeleteRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name).Request, response, OperationFinalStateVia.Location); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; @@ -196,20 +196,20 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// The value for the tag. /// The cancellation token to use. /// or is null. - public virtual async Task> AddTagAsync(string key, string value, CancellationToken cancellationToken = default) + public virtual async Task> AddTagAsync(string key, string value, CancellationToken cancellationToken = default) { Argument.AssertNotNull(key, nameof(key)); Argument.AssertNotNull(value, nameof(value)); - using var scope = _applicationDefinitionClientDiagnostics.CreateScope("ApplicationDefinitionResource.AddTag"); + using var scope = _armApplicationDefinitionApplicationDefinitionsClientDiagnostics.CreateScope("ArmApplicationDefinitionResource.AddTag"); scope.Start(); try { var originalTags = await GetTagResource().GetAsync(cancellationToken).ConfigureAwait(false); originalTags.Value.Data.TagValues[key] = value; await GetTagResource().CreateOrUpdateAsync(WaitUntil.Completed, originalTags.Value.Data, cancellationToken: cancellationToken).ConfigureAwait(false); - var originalResponse = await _applicationDefinitionRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken).ConfigureAwait(false); - return Response.FromValue(new ApplicationDefinitionResource(Client, originalResponse.Value), originalResponse.GetRawResponse()); + var originalResponse = await _armApplicationDefinitionApplicationDefinitionsRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken).ConfigureAwait(false); + return Response.FromValue(new ArmApplicationDefinitionResource(Client, originalResponse.Value), originalResponse.GetRawResponse()); } catch (Exception e) { @@ -227,20 +227,20 @@ public virtual async Task> AddTagAsync(s /// The value for the tag. /// The cancellation token to use. /// or is null. - public virtual Response AddTag(string key, string value, CancellationToken cancellationToken = default) + public virtual Response AddTag(string key, string value, CancellationToken cancellationToken = default) { Argument.AssertNotNull(key, nameof(key)); Argument.AssertNotNull(value, nameof(value)); - using var scope = _applicationDefinitionClientDiagnostics.CreateScope("ApplicationDefinitionResource.AddTag"); + using var scope = _armApplicationDefinitionApplicationDefinitionsClientDiagnostics.CreateScope("ArmApplicationDefinitionResource.AddTag"); scope.Start(); try { var originalTags = GetTagResource().Get(cancellationToken); originalTags.Value.Data.TagValues[key] = value; GetTagResource().CreateOrUpdate(WaitUntil.Completed, originalTags.Value.Data, cancellationToken: cancellationToken); - var originalResponse = _applicationDefinitionRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken); - return Response.FromValue(new ApplicationDefinitionResource(Client, originalResponse.Value), originalResponse.GetRawResponse()); + var originalResponse = _armApplicationDefinitionApplicationDefinitionsRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken); + return Response.FromValue(new ArmApplicationDefinitionResource(Client, originalResponse.Value), originalResponse.GetRawResponse()); } catch (Exception e) { @@ -257,11 +257,11 @@ public virtual Response AddTag(string key, string /// The set of tags to use as replacement. /// The cancellation token to use. /// is null. - public virtual async Task> SetTagsAsync(IDictionary tags, CancellationToken cancellationToken = default) + public virtual async Task> SetTagsAsync(IDictionary tags, CancellationToken cancellationToken = default) { Argument.AssertNotNull(tags, nameof(tags)); - using var scope = _applicationDefinitionClientDiagnostics.CreateScope("ApplicationDefinitionResource.SetTags"); + using var scope = _armApplicationDefinitionApplicationDefinitionsClientDiagnostics.CreateScope("ArmApplicationDefinitionResource.SetTags"); scope.Start(); try { @@ -269,8 +269,8 @@ public virtual async Task> SetTagsAsync( var originalTags = await GetTagResource().GetAsync(cancellationToken).ConfigureAwait(false); originalTags.Value.Data.TagValues.ReplaceWith(tags); await GetTagResource().CreateOrUpdateAsync(WaitUntil.Completed, originalTags.Value.Data, cancellationToken: cancellationToken).ConfigureAwait(false); - var originalResponse = await _applicationDefinitionRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken).ConfigureAwait(false); - return Response.FromValue(new ApplicationDefinitionResource(Client, originalResponse.Value), originalResponse.GetRawResponse()); + var originalResponse = await _armApplicationDefinitionApplicationDefinitionsRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken).ConfigureAwait(false); + return Response.FromValue(new ArmApplicationDefinitionResource(Client, originalResponse.Value), originalResponse.GetRawResponse()); } catch (Exception e) { @@ -287,11 +287,11 @@ public virtual async Task> SetTagsAsync( /// The set of tags to use as replacement. /// The cancellation token to use. /// is null. - public virtual Response SetTags(IDictionary tags, CancellationToken cancellationToken = default) + public virtual Response SetTags(IDictionary tags, CancellationToken cancellationToken = default) { Argument.AssertNotNull(tags, nameof(tags)); - using var scope = _applicationDefinitionClientDiagnostics.CreateScope("ApplicationDefinitionResource.SetTags"); + using var scope = _armApplicationDefinitionApplicationDefinitionsClientDiagnostics.CreateScope("ArmApplicationDefinitionResource.SetTags"); scope.Start(); try { @@ -299,8 +299,8 @@ public virtual Response SetTags(IDictionary SetTags(IDictionary The key for the tag. /// The cancellation token to use. /// is null. - public virtual async Task> RemoveTagAsync(string key, CancellationToken cancellationToken = default) + public virtual async Task> RemoveTagAsync(string key, CancellationToken cancellationToken = default) { Argument.AssertNotNull(key, nameof(key)); - using var scope = _applicationDefinitionClientDiagnostics.CreateScope("ApplicationDefinitionResource.RemoveTag"); + using var scope = _armApplicationDefinitionApplicationDefinitionsClientDiagnostics.CreateScope("ArmApplicationDefinitionResource.RemoveTag"); scope.Start(); try { var originalTags = await GetTagResource().GetAsync(cancellationToken).ConfigureAwait(false); originalTags.Value.Data.TagValues.Remove(key); await GetTagResource().CreateOrUpdateAsync(WaitUntil.Completed, originalTags.Value.Data, cancellationToken: cancellationToken).ConfigureAwait(false); - var originalResponse = await _applicationDefinitionRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken).ConfigureAwait(false); - return Response.FromValue(new ApplicationDefinitionResource(Client, originalResponse.Value), originalResponse.GetRawResponse()); + var originalResponse = await _armApplicationDefinitionApplicationDefinitionsRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken).ConfigureAwait(false); + return Response.FromValue(new ArmApplicationDefinitionResource(Client, originalResponse.Value), originalResponse.GetRawResponse()); } catch (Exception e) { @@ -346,19 +346,19 @@ public virtual async Task> RemoveTagAsyn /// The key for the tag. /// The cancellation token to use. /// is null. - public virtual Response RemoveTag(string key, CancellationToken cancellationToken = default) + public virtual Response RemoveTag(string key, CancellationToken cancellationToken = default) { Argument.AssertNotNull(key, nameof(key)); - using var scope = _applicationDefinitionClientDiagnostics.CreateScope("ApplicationDefinitionResource.RemoveTag"); + using var scope = _armApplicationDefinitionApplicationDefinitionsClientDiagnostics.CreateScope("ArmApplicationDefinitionResource.RemoveTag"); scope.Start(); try { var originalTags = GetTagResource().Get(cancellationToken); originalTags.Value.Data.TagValues.Remove(key); GetTagResource().CreateOrUpdate(WaitUntil.Completed, originalTags.Value.Data, cancellationToken: cancellationToken); - var originalResponse = _applicationDefinitionRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken); - return Response.FromValue(new ApplicationDefinitionResource(Client, originalResponse.Value), originalResponse.GetRawResponse()); + var originalResponse = _armApplicationDefinitionApplicationDefinitionsRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken); + return Response.FromValue(new ArmApplicationDefinitionResource(Client, originalResponse.Value), originalResponse.GetRawResponse()); } catch (Exception e) { diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/ApplicationResource.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/ArmApplicationResource.cs similarity index 67% rename from sdk/resources/Azure.ResourceManager.Resources/src/Generated/ApplicationResource.cs rename to sdk/resources/Azure.ResourceManager.Resources/src/Generated/ArmApplicationResource.cs index 88b1063177baf..53ed08a77c655 100644 --- a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/ApplicationResource.cs +++ b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/ArmApplicationResource.cs @@ -19,46 +19,46 @@ namespace Azure.ResourceManager.Resources { /// - /// A Class representing an Application along with the instance operations that can be performed on it. - /// If you have a you can construct an - /// from an instance of using the GetApplicationResource method. - /// Otherwise you can get one from its parent resource using the GetApplication method. + /// A Class representing an ArmApplication along with the instance operations that can be performed on it. + /// If you have a you can construct an + /// from an instance of using the GetArmApplicationResource method. + /// Otherwise you can get one from its parent resource using the GetArmApplication method. /// - public partial class ApplicationResource : ArmResource + public partial class ArmApplicationResource : ArmResource { - /// Generate the resource identifier of a instance. + /// Generate the resource identifier of a instance. public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string applicationName) { var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/applications/{applicationName}"; return new ResourceIdentifier(resourceId); } - private readonly ClientDiagnostics _applicationClientDiagnostics; - private readonly ApplicationsRestOperations _applicationRestClient; - private readonly ApplicationData _data; + private readonly ClientDiagnostics _armApplicationApplicationsClientDiagnostics; + private readonly ApplicationsRestOperations _armApplicationApplicationsRestClient; + private readonly ArmApplicationData _data; - /// Initializes a new instance of the class for mocking. - protected ApplicationResource() + /// Initializes a new instance of the class for mocking. + protected ArmApplicationResource() { } - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// The client parameters to use in these operations. /// The resource that is the target of operations. - internal ApplicationResource(ArmClient client, ApplicationData data) : this(client, data.Id) + internal ArmApplicationResource(ArmClient client, ArmApplicationData data) : this(client, data.Id) { HasData = true; _data = data; } - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// The client parameters to use in these operations. /// The identifier of the resource that is the target of operations. - internal ApplicationResource(ArmClient client, ResourceIdentifier id) : base(client, id) + internal ArmApplicationResource(ArmClient client, ResourceIdentifier id) : base(client, id) { - _applicationClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.Resources", ResourceType.Namespace, Diagnostics); - TryGetApiVersion(ResourceType, out string applicationApiVersion); - _applicationRestClient = new ApplicationsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, applicationApiVersion); + _armApplicationApplicationsClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.Resources", ResourceType.Namespace, Diagnostics); + TryGetApiVersion(ResourceType, out string armApplicationApplicationsApiVersion); + _armApplicationApplicationsRestClient = new ApplicationsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, armApplicationApplicationsApiVersion); #if DEBUG ValidateResourceId(Id); #endif @@ -72,7 +72,7 @@ internal ApplicationResource(ArmClient client, ResourceIdentifier id) : base(cli /// Gets the data representing this Feature. /// Throws if there is no data loaded in the current instance. - public virtual ApplicationData Data + public virtual ArmApplicationData Data { get { @@ -94,16 +94,16 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// Operation Id: Applications_Get /// /// The cancellation token to use. - public virtual async Task> GetAsync(CancellationToken cancellationToken = default) + public virtual async Task> GetAsync(CancellationToken cancellationToken = default) { - using var scope = _applicationClientDiagnostics.CreateScope("ApplicationResource.Get"); + using var scope = _armApplicationApplicationsClientDiagnostics.CreateScope("ArmApplicationResource.Get"); scope.Start(); try { - var response = await _applicationRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken).ConfigureAwait(false); + var response = await _armApplicationApplicationsRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken).ConfigureAwait(false); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new ApplicationResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(new ArmApplicationResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -118,16 +118,16 @@ public virtual async Task> GetAsync(CancellationTo /// Operation Id: Applications_Get /// /// The cancellation token to use. - public virtual Response Get(CancellationToken cancellationToken = default) + public virtual Response Get(CancellationToken cancellationToken = default) { - using var scope = _applicationClientDiagnostics.CreateScope("ApplicationResource.Get"); + using var scope = _armApplicationApplicationsClientDiagnostics.CreateScope("ArmApplicationResource.Get"); scope.Start(); try { - var response = _applicationRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken); + var response = _armApplicationApplicationsRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new ApplicationResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(new ArmApplicationResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -145,12 +145,12 @@ public virtual Response Get(CancellationToken cancellationT /// The cancellation token to use. public virtual async Task DeleteAsync(WaitUntil waitUntil, CancellationToken cancellationToken = default) { - using var scope = _applicationClientDiagnostics.CreateScope("ApplicationResource.Delete"); + using var scope = _armApplicationApplicationsClientDiagnostics.CreateScope("ArmApplicationResource.Delete"); scope.Start(); try { - var response = await _applicationRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new ResourcesArmOperation(_applicationClientDiagnostics, Pipeline, _applicationRestClient.CreateDeleteRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name).Request, response, OperationFinalStateVia.Location); + var response = await _armApplicationApplicationsRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken).ConfigureAwait(false); + var operation = new ResourcesArmOperation(_armApplicationApplicationsClientDiagnostics, Pipeline, _armApplicationApplicationsRestClient.CreateDeleteRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name).Request, response, OperationFinalStateVia.Location); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -171,12 +171,12 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// The cancellation token to use. public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancellationToken = default) { - using var scope = _applicationClientDiagnostics.CreateScope("ApplicationResource.Delete"); + using var scope = _armApplicationApplicationsClientDiagnostics.CreateScope("ArmApplicationResource.Delete"); scope.Start(); try { - var response = _applicationRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken); - var operation = new ResourcesArmOperation(_applicationClientDiagnostics, Pipeline, _applicationRestClient.CreateDeleteRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name).Request, response, OperationFinalStateVia.Location); + var response = _armApplicationApplicationsRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken); + var operation = new ResourcesArmOperation(_armApplicationApplicationsClientDiagnostics, Pipeline, _armApplicationApplicationsRestClient.CreateDeleteRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name).Request, response, OperationFinalStateVia.Location); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; @@ -196,16 +196,16 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// Parameters supplied to update an existing managed application. /// The cancellation token to use. /// is null. - public virtual async Task> UpdateAsync(PatchableApplicationData data, CancellationToken cancellationToken = default) + public virtual async Task> UpdateAsync(PatchableArmApplicationData data, CancellationToken cancellationToken = default) { Argument.AssertNotNull(data, nameof(data)); - using var scope = _applicationClientDiagnostics.CreateScope("ApplicationResource.Update"); + using var scope = _armApplicationApplicationsClientDiagnostics.CreateScope("ArmApplicationResource.Update"); scope.Start(); try { - var response = await _applicationRestClient.UpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, data, cancellationToken).ConfigureAwait(false); - return Response.FromValue(new ApplicationResource(Client, response.Value), response.GetRawResponse()); + var response = await _armApplicationApplicationsRestClient.UpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, data, cancellationToken).ConfigureAwait(false); + return Response.FromValue(new ArmApplicationResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -222,16 +222,16 @@ public virtual async Task> UpdateAsync(PatchableAp /// Parameters supplied to update an existing managed application. /// The cancellation token to use. /// is null. - public virtual Response Update(PatchableApplicationData data, CancellationToken cancellationToken = default) + public virtual Response Update(PatchableArmApplicationData data, CancellationToken cancellationToken = default) { Argument.AssertNotNull(data, nameof(data)); - using var scope = _applicationClientDiagnostics.CreateScope("ApplicationResource.Update"); + using var scope = _armApplicationApplicationsClientDiagnostics.CreateScope("ArmApplicationResource.Update"); scope.Start(); try { - var response = _applicationRestClient.Update(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, data, cancellationToken); - return Response.FromValue(new ApplicationResource(Client, response.Value), response.GetRawResponse()); + var response = _armApplicationApplicationsRestClient.Update(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, data, cancellationToken); + return Response.FromValue(new ArmApplicationResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -249,12 +249,12 @@ public virtual Response Update(PatchableApplicationData dat /// The cancellation token to use. public virtual async Task RefreshPermissionsAsync(WaitUntil waitUntil, CancellationToken cancellationToken = default) { - using var scope = _applicationClientDiagnostics.CreateScope("ApplicationResource.RefreshPermissions"); + using var scope = _armApplicationApplicationsClientDiagnostics.CreateScope("ArmApplicationResource.RefreshPermissions"); scope.Start(); try { - var response = await _applicationRestClient.RefreshPermissionsAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new ResourcesArmOperation(_applicationClientDiagnostics, Pipeline, _applicationRestClient.CreateRefreshPermissionsRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name).Request, response, OperationFinalStateVia.Location); + var response = await _armApplicationApplicationsRestClient.RefreshPermissionsAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken).ConfigureAwait(false); + var operation = new ResourcesArmOperation(_armApplicationApplicationsClientDiagnostics, Pipeline, _armApplicationApplicationsRestClient.CreateRefreshPermissionsRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name).Request, response, OperationFinalStateVia.Location); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -275,12 +275,12 @@ public virtual async Task RefreshPermissionsAsync(WaitUntil waitUn /// The cancellation token to use. public virtual ArmOperation RefreshPermissions(WaitUntil waitUntil, CancellationToken cancellationToken = default) { - using var scope = _applicationClientDiagnostics.CreateScope("ApplicationResource.RefreshPermissions"); + using var scope = _armApplicationApplicationsClientDiagnostics.CreateScope("ArmApplicationResource.RefreshPermissions"); scope.Start(); try { - var response = _applicationRestClient.RefreshPermissions(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken); - var operation = new ResourcesArmOperation(_applicationClientDiagnostics, Pipeline, _applicationRestClient.CreateRefreshPermissionsRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name).Request, response, OperationFinalStateVia.Location); + var response = _armApplicationApplicationsRestClient.RefreshPermissions(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken); + var operation = new ResourcesArmOperation(_armApplicationApplicationsClientDiagnostics, Pipeline, _armApplicationApplicationsRestClient.CreateRefreshPermissionsRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name).Request, response, OperationFinalStateVia.Location); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; @@ -301,20 +301,20 @@ public virtual ArmOperation RefreshPermissions(WaitUntil waitUntil, Cancellation /// The value for the tag. /// The cancellation token to use. /// or is null. - public virtual async Task> AddTagAsync(string key, string value, CancellationToken cancellationToken = default) + public virtual async Task> AddTagAsync(string key, string value, CancellationToken cancellationToken = default) { Argument.AssertNotNull(key, nameof(key)); Argument.AssertNotNull(value, nameof(value)); - using var scope = _applicationClientDiagnostics.CreateScope("ApplicationResource.AddTag"); + using var scope = _armApplicationApplicationsClientDiagnostics.CreateScope("ArmApplicationResource.AddTag"); scope.Start(); try { var originalTags = await GetTagResource().GetAsync(cancellationToken).ConfigureAwait(false); originalTags.Value.Data.TagValues[key] = value; await GetTagResource().CreateOrUpdateAsync(WaitUntil.Completed, originalTags.Value.Data, cancellationToken: cancellationToken).ConfigureAwait(false); - var originalResponse = await _applicationRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken).ConfigureAwait(false); - return Response.FromValue(new ApplicationResource(Client, originalResponse.Value), originalResponse.GetRawResponse()); + var originalResponse = await _armApplicationApplicationsRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken).ConfigureAwait(false); + return Response.FromValue(new ArmApplicationResource(Client, originalResponse.Value), originalResponse.GetRawResponse()); } catch (Exception e) { @@ -332,20 +332,20 @@ public virtual async Task> AddTagAsync(string key, /// The value for the tag. /// The cancellation token to use. /// or is null. - public virtual Response AddTag(string key, string value, CancellationToken cancellationToken = default) + public virtual Response AddTag(string key, string value, CancellationToken cancellationToken = default) { Argument.AssertNotNull(key, nameof(key)); Argument.AssertNotNull(value, nameof(value)); - using var scope = _applicationClientDiagnostics.CreateScope("ApplicationResource.AddTag"); + using var scope = _armApplicationApplicationsClientDiagnostics.CreateScope("ArmApplicationResource.AddTag"); scope.Start(); try { var originalTags = GetTagResource().Get(cancellationToken); originalTags.Value.Data.TagValues[key] = value; GetTagResource().CreateOrUpdate(WaitUntil.Completed, originalTags.Value.Data, cancellationToken: cancellationToken); - var originalResponse = _applicationRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken); - return Response.FromValue(new ApplicationResource(Client, originalResponse.Value), originalResponse.GetRawResponse()); + var originalResponse = _armApplicationApplicationsRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken); + return Response.FromValue(new ArmApplicationResource(Client, originalResponse.Value), originalResponse.GetRawResponse()); } catch (Exception e) { @@ -362,11 +362,11 @@ public virtual Response AddTag(string key, string value, Ca /// The set of tags to use as replacement. /// The cancellation token to use. /// is null. - public virtual async Task> SetTagsAsync(IDictionary tags, CancellationToken cancellationToken = default) + public virtual async Task> SetTagsAsync(IDictionary tags, CancellationToken cancellationToken = default) { Argument.AssertNotNull(tags, nameof(tags)); - using var scope = _applicationClientDiagnostics.CreateScope("ApplicationResource.SetTags"); + using var scope = _armApplicationApplicationsClientDiagnostics.CreateScope("ArmApplicationResource.SetTags"); scope.Start(); try { @@ -374,8 +374,8 @@ public virtual async Task> SetTagsAsync(IDictionar var originalTags = await GetTagResource().GetAsync(cancellationToken).ConfigureAwait(false); originalTags.Value.Data.TagValues.ReplaceWith(tags); await GetTagResource().CreateOrUpdateAsync(WaitUntil.Completed, originalTags.Value.Data, cancellationToken: cancellationToken).ConfigureAwait(false); - var originalResponse = await _applicationRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken).ConfigureAwait(false); - return Response.FromValue(new ApplicationResource(Client, originalResponse.Value), originalResponse.GetRawResponse()); + var originalResponse = await _armApplicationApplicationsRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken).ConfigureAwait(false); + return Response.FromValue(new ArmApplicationResource(Client, originalResponse.Value), originalResponse.GetRawResponse()); } catch (Exception e) { @@ -392,11 +392,11 @@ public virtual async Task> SetTagsAsync(IDictionar /// The set of tags to use as replacement. /// The cancellation token to use. /// is null. - public virtual Response SetTags(IDictionary tags, CancellationToken cancellationToken = default) + public virtual Response SetTags(IDictionary tags, CancellationToken cancellationToken = default) { Argument.AssertNotNull(tags, nameof(tags)); - using var scope = _applicationClientDiagnostics.CreateScope("ApplicationResource.SetTags"); + using var scope = _armApplicationApplicationsClientDiagnostics.CreateScope("ArmApplicationResource.SetTags"); scope.Start(); try { @@ -404,8 +404,8 @@ public virtual Response SetTags(IDictionary var originalTags = GetTagResource().Get(cancellationToken); originalTags.Value.Data.TagValues.ReplaceWith(tags); GetTagResource().CreateOrUpdate(WaitUntil.Completed, originalTags.Value.Data, cancellationToken: cancellationToken); - var originalResponse = _applicationRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken); - return Response.FromValue(new ApplicationResource(Client, originalResponse.Value), originalResponse.GetRawResponse()); + var originalResponse = _armApplicationApplicationsRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken); + return Response.FromValue(new ArmApplicationResource(Client, originalResponse.Value), originalResponse.GetRawResponse()); } catch (Exception e) { @@ -422,19 +422,19 @@ public virtual Response SetTags(IDictionary /// The key for the tag. /// The cancellation token to use. /// is null. - public virtual async Task> RemoveTagAsync(string key, CancellationToken cancellationToken = default) + public virtual async Task> RemoveTagAsync(string key, CancellationToken cancellationToken = default) { Argument.AssertNotNull(key, nameof(key)); - using var scope = _applicationClientDiagnostics.CreateScope("ApplicationResource.RemoveTag"); + using var scope = _armApplicationApplicationsClientDiagnostics.CreateScope("ArmApplicationResource.RemoveTag"); scope.Start(); try { var originalTags = await GetTagResource().GetAsync(cancellationToken).ConfigureAwait(false); originalTags.Value.Data.TagValues.Remove(key); await GetTagResource().CreateOrUpdateAsync(WaitUntil.Completed, originalTags.Value.Data, cancellationToken: cancellationToken).ConfigureAwait(false); - var originalResponse = await _applicationRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken).ConfigureAwait(false); - return Response.FromValue(new ApplicationResource(Client, originalResponse.Value), originalResponse.GetRawResponse()); + var originalResponse = await _armApplicationApplicationsRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken).ConfigureAwait(false); + return Response.FromValue(new ArmApplicationResource(Client, originalResponse.Value), originalResponse.GetRawResponse()); } catch (Exception e) { @@ -451,19 +451,19 @@ public virtual async Task> RemoveTagAsync(string k /// The key for the tag. /// The cancellation token to use. /// is null. - public virtual Response RemoveTag(string key, CancellationToken cancellationToken = default) + public virtual Response RemoveTag(string key, CancellationToken cancellationToken = default) { Argument.AssertNotNull(key, nameof(key)); - using var scope = _applicationClientDiagnostics.CreateScope("ApplicationResource.RemoveTag"); + using var scope = _armApplicationApplicationsClientDiagnostics.CreateScope("ArmApplicationResource.RemoveTag"); scope.Start(); try { var originalTags = GetTagResource().Get(cancellationToken); originalTags.Value.Data.TagValues.Remove(key); GetTagResource().CreateOrUpdate(WaitUntil.Completed, originalTags.Value.Data, cancellationToken: cancellationToken); - var originalResponse = _applicationRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken); - return Response.FromValue(new ApplicationResource(Client, originalResponse.Value), originalResponse.GetRawResponse()); + var originalResponse = _armApplicationApplicationsRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken); + return Response.FromValue(new ArmApplicationResource(Client, originalResponse.Value), originalResponse.GetRawResponse()); } catch (Exception e) { diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/DeploymentCollection.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/ArmDeploymentCollection.cs similarity index 63% rename from sdk/resources/Azure.ResourceManager.Resources/src/Generated/DeploymentCollection.cs rename to sdk/resources/Azure.ResourceManager.Resources/src/Generated/ArmDeploymentCollection.cs index 7f342ec8acf1e..dd7f21552b8e8 100644 --- a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/DeploymentCollection.cs +++ b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/ArmDeploymentCollection.cs @@ -21,28 +21,28 @@ namespace Azure.ResourceManager.Resources { /// - /// A class representing a collection of and their operations. - /// Each in the collection will belong to the same instance of . - /// To get a instance call the GetDeployments method from an instance of . + /// A class representing a collection of and their operations. + /// Each in the collection will belong to the same instance of . + /// To get an instance call the GetArmDeployments method from an instance of . /// - public partial class DeploymentCollection : ArmCollection, IEnumerable, IAsyncEnumerable + public partial class ArmDeploymentCollection : ArmCollection, IEnumerable, IAsyncEnumerable { - private readonly ClientDiagnostics _deploymentClientDiagnostics; - private readonly DeploymentsRestOperations _deploymentRestClient; + private readonly ClientDiagnostics _armDeploymentDeploymentsClientDiagnostics; + private readonly DeploymentsRestOperations _armDeploymentDeploymentsRestClient; - /// Initializes a new instance of the class for mocking. - protected DeploymentCollection() + /// Initializes a new instance of the class for mocking. + protected ArmDeploymentCollection() { } - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// The client parameters to use in these operations. /// The identifier of the parent resource that is the target of operations. - internal DeploymentCollection(ArmClient client, ResourceIdentifier id) : base(client, id) + internal ArmDeploymentCollection(ArmClient client, ResourceIdentifier id) : base(client, id) { - _deploymentClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.Resources", DeploymentResource.ResourceType.Namespace, Diagnostics); - TryGetApiVersion(DeploymentResource.ResourceType, out string deploymentApiVersion); - _deploymentRestClient = new DeploymentsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, deploymentApiVersion); + _armDeploymentDeploymentsClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.Resources", ArmDeploymentResource.ResourceType.Namespace, Diagnostics); + TryGetApiVersion(ArmDeploymentResource.ResourceType, out string armDeploymentDeploymentsApiVersion); + _armDeploymentDeploymentsRestClient = new DeploymentsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, armDeploymentDeploymentsApiVersion); } /// @@ -56,17 +56,17 @@ internal DeploymentCollection(ArmClient client, ResourceIdentifier id) : base(cl /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// or is null. - public virtual async Task> CreateOrUpdateAsync(WaitUntil waitUntil, string deploymentName, DeploymentInput parameters, CancellationToken cancellationToken = default) + public virtual async Task> CreateOrUpdateAsync(WaitUntil waitUntil, string deploymentName, ArmDeploymentInput parameters, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(deploymentName, nameof(deploymentName)); Argument.AssertNotNull(parameters, nameof(parameters)); - using var scope = _deploymentClientDiagnostics.CreateScope("DeploymentCollection.CreateOrUpdate"); + using var scope = _armDeploymentDeploymentsClientDiagnostics.CreateScope("ArmDeploymentCollection.CreateOrUpdate"); scope.Start(); try { - var response = await _deploymentRestClient.CreateOrUpdateAtScopeAsync(Id, deploymentName, parameters, cancellationToken).ConfigureAwait(false); - var operation = new ResourcesArmOperation(new DeploymentOperationSource(Client), _deploymentClientDiagnostics, Pipeline, _deploymentRestClient.CreateCreateOrUpdateAtScopeRequest(Id, deploymentName, parameters).Request, response, OperationFinalStateVia.Location); + var response = await _armDeploymentDeploymentsRestClient.CreateOrUpdateAtScopeAsync(Id, deploymentName, parameters, cancellationToken).ConfigureAwait(false); + var operation = new ResourcesArmOperation(new ArmDeploymentOperationSource(Client), _armDeploymentDeploymentsClientDiagnostics, Pipeline, _armDeploymentDeploymentsRestClient.CreateCreateOrUpdateAtScopeRequest(Id, deploymentName, parameters).Request, response, OperationFinalStateVia.Location); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -89,17 +89,17 @@ public virtual async Task> CreateOrUpdateAsync( /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// or is null. - public virtual ArmOperation CreateOrUpdate(WaitUntil waitUntil, string deploymentName, DeploymentInput parameters, CancellationToken cancellationToken = default) + public virtual ArmOperation CreateOrUpdate(WaitUntil waitUntil, string deploymentName, ArmDeploymentInput parameters, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(deploymentName, nameof(deploymentName)); Argument.AssertNotNull(parameters, nameof(parameters)); - using var scope = _deploymentClientDiagnostics.CreateScope("DeploymentCollection.CreateOrUpdate"); + using var scope = _armDeploymentDeploymentsClientDiagnostics.CreateScope("ArmDeploymentCollection.CreateOrUpdate"); scope.Start(); try { - var response = _deploymentRestClient.CreateOrUpdateAtScope(Id, deploymentName, parameters, cancellationToken); - var operation = new ResourcesArmOperation(new DeploymentOperationSource(Client), _deploymentClientDiagnostics, Pipeline, _deploymentRestClient.CreateCreateOrUpdateAtScopeRequest(Id, deploymentName, parameters).Request, response, OperationFinalStateVia.Location); + var response = _armDeploymentDeploymentsRestClient.CreateOrUpdateAtScope(Id, deploymentName, parameters, cancellationToken); + var operation = new ResourcesArmOperation(new ArmDeploymentOperationSource(Client), _armDeploymentDeploymentsClientDiagnostics, Pipeline, _armDeploymentDeploymentsRestClient.CreateCreateOrUpdateAtScopeRequest(Id, deploymentName, parameters).Request, response, OperationFinalStateVia.Location); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; @@ -120,18 +120,18 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil waitUnt /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. - public virtual async Task> GetAsync(string deploymentName, CancellationToken cancellationToken = default) + public virtual async Task> GetAsync(string deploymentName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(deploymentName, nameof(deploymentName)); - using var scope = _deploymentClientDiagnostics.CreateScope("DeploymentCollection.Get"); + using var scope = _armDeploymentDeploymentsClientDiagnostics.CreateScope("ArmDeploymentCollection.Get"); scope.Start(); try { - var response = await _deploymentRestClient.GetAtScopeAsync(Id, deploymentName, cancellationToken).ConfigureAwait(false); + var response = await _armDeploymentDeploymentsRestClient.GetAtScopeAsync(Id, deploymentName, cancellationToken).ConfigureAwait(false); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new DeploymentResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(new ArmDeploymentResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -149,18 +149,18 @@ public virtual async Task> GetAsync(string deployme /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. - public virtual Response Get(string deploymentName, CancellationToken cancellationToken = default) + public virtual Response Get(string deploymentName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(deploymentName, nameof(deploymentName)); - using var scope = _deploymentClientDiagnostics.CreateScope("DeploymentCollection.Get"); + using var scope = _armDeploymentDeploymentsClientDiagnostics.CreateScope("ArmDeploymentCollection.Get"); scope.Start(); try { - var response = _deploymentRestClient.GetAtScope(Id, deploymentName, cancellationToken); + var response = _armDeploymentDeploymentsRestClient.GetAtScope(Id, deploymentName, cancellationToken); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new DeploymentResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(new ArmDeploymentResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -177,17 +177,17 @@ public virtual Response Get(string deploymentName, Cancellat /// The filter to apply on the operation. For example, you can use $filter=provisioningState eq '{state}'. /// The number of results to get. If null is passed, returns all deployments. /// The cancellation token to use. - /// An async collection of that may take multiple service requests to iterate over. - public virtual AsyncPageable GetAllAsync(string filter = null, int? top = null, CancellationToken cancellationToken = default) + /// An async collection of that may take multiple service requests to iterate over. + public virtual AsyncPageable GetAllAsync(string filter = null, int? top = null, CancellationToken cancellationToken = default) { - async Task> FirstPageFunc(int? pageSizeHint) + async Task> FirstPageFunc(int? pageSizeHint) { - using var scope = _deploymentClientDiagnostics.CreateScope("DeploymentCollection.GetAll"); + using var scope = _armDeploymentDeploymentsClientDiagnostics.CreateScope("ArmDeploymentCollection.GetAll"); scope.Start(); try { - var response = await _deploymentRestClient.ListAtScopeAsync(Id, filter, top, cancellationToken: cancellationToken).ConfigureAwait(false); - return Page.FromValues(response.Value.Value.Select(value => new DeploymentResource(Client, value)), response.Value.NextLink, response.GetRawResponse()); + var response = await _armDeploymentDeploymentsRestClient.ListAtScopeAsync(Id, filter, top, cancellationToken: cancellationToken).ConfigureAwait(false); + return Page.FromValues(response.Value.Value.Select(value => new ArmDeploymentResource(Client, value)), response.Value.NextLink, response.GetRawResponse()); } catch (Exception e) { @@ -195,14 +195,14 @@ async Task> FirstPageFunc(int? pageSizeHint) throw; } } - async Task> NextPageFunc(string nextLink, int? pageSizeHint) + async Task> NextPageFunc(string nextLink, int? pageSizeHint) { - using var scope = _deploymentClientDiagnostics.CreateScope("DeploymentCollection.GetAll"); + using var scope = _armDeploymentDeploymentsClientDiagnostics.CreateScope("ArmDeploymentCollection.GetAll"); scope.Start(); try { - var response = await _deploymentRestClient.ListAtScopeNextPageAsync(nextLink, Id, filter, top, cancellationToken: cancellationToken).ConfigureAwait(false); - return Page.FromValues(response.Value.Value.Select(value => new DeploymentResource(Client, value)), response.Value.NextLink, response.GetRawResponse()); + var response = await _armDeploymentDeploymentsRestClient.ListAtScopeNextPageAsync(nextLink, Id, filter, top, cancellationToken: cancellationToken).ConfigureAwait(false); + return Page.FromValues(response.Value.Value.Select(value => new ArmDeploymentResource(Client, value)), response.Value.NextLink, response.GetRawResponse()); } catch (Exception e) { @@ -221,17 +221,17 @@ async Task> NextPageFunc(string nextLink, int? pageSize /// The filter to apply on the operation. For example, you can use $filter=provisioningState eq '{state}'. /// The number of results to get. If null is passed, returns all deployments. /// The cancellation token to use. - /// A collection of that may take multiple service requests to iterate over. - public virtual Pageable GetAll(string filter = null, int? top = null, CancellationToken cancellationToken = default) + /// A collection of that may take multiple service requests to iterate over. + public virtual Pageable GetAll(string filter = null, int? top = null, CancellationToken cancellationToken = default) { - Page FirstPageFunc(int? pageSizeHint) + Page FirstPageFunc(int? pageSizeHint) { - using var scope = _deploymentClientDiagnostics.CreateScope("DeploymentCollection.GetAll"); + using var scope = _armDeploymentDeploymentsClientDiagnostics.CreateScope("ArmDeploymentCollection.GetAll"); scope.Start(); try { - var response = _deploymentRestClient.ListAtScope(Id, filter, top, cancellationToken: cancellationToken); - return Page.FromValues(response.Value.Value.Select(value => new DeploymentResource(Client, value)), response.Value.NextLink, response.GetRawResponse()); + var response = _armDeploymentDeploymentsRestClient.ListAtScope(Id, filter, top, cancellationToken: cancellationToken); + return Page.FromValues(response.Value.Value.Select(value => new ArmDeploymentResource(Client, value)), response.Value.NextLink, response.GetRawResponse()); } catch (Exception e) { @@ -239,14 +239,14 @@ Page FirstPageFunc(int? pageSizeHint) throw; } } - Page NextPageFunc(string nextLink, int? pageSizeHint) + Page NextPageFunc(string nextLink, int? pageSizeHint) { - using var scope = _deploymentClientDiagnostics.CreateScope("DeploymentCollection.GetAll"); + using var scope = _armDeploymentDeploymentsClientDiagnostics.CreateScope("ArmDeploymentCollection.GetAll"); scope.Start(); try { - var response = _deploymentRestClient.ListAtScopeNextPage(nextLink, Id, filter, top, cancellationToken: cancellationToken); - return Page.FromValues(response.Value.Value.Select(value => new DeploymentResource(Client, value)), response.Value.NextLink, response.GetRawResponse()); + var response = _armDeploymentDeploymentsRestClient.ListAtScopeNextPage(nextLink, Id, filter, top, cancellationToken: cancellationToken); + return Page.FromValues(response.Value.Value.Select(value => new ArmDeploymentResource(Client, value)), response.Value.NextLink, response.GetRawResponse()); } catch (Exception e) { @@ -270,7 +270,7 @@ public virtual async Task> ExistsAsync(string deploymentName, Can { Argument.AssertNotNullOrEmpty(deploymentName, nameof(deploymentName)); - using var scope = _deploymentClientDiagnostics.CreateScope("DeploymentCollection.Exists"); + using var scope = _armDeploymentDeploymentsClientDiagnostics.CreateScope("ArmDeploymentCollection.Exists"); scope.Start(); try { @@ -297,7 +297,7 @@ public virtual Response Exists(string deploymentName, CancellationToken ca { Argument.AssertNotNullOrEmpty(deploymentName, nameof(deploymentName)); - using var scope = _deploymentClientDiagnostics.CreateScope("DeploymentCollection.Exists"); + using var scope = _armDeploymentDeploymentsClientDiagnostics.CreateScope("ArmDeploymentCollection.Exists"); scope.Start(); try { @@ -320,18 +320,18 @@ public virtual Response Exists(string deploymentName, CancellationToken ca /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. - public virtual async Task> GetIfExistsAsync(string deploymentName, CancellationToken cancellationToken = default) + public virtual async Task> GetIfExistsAsync(string deploymentName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(deploymentName, nameof(deploymentName)); - using var scope = _deploymentClientDiagnostics.CreateScope("DeploymentCollection.GetIfExists"); + using var scope = _armDeploymentDeploymentsClientDiagnostics.CreateScope("ArmDeploymentCollection.GetIfExists"); scope.Start(); try { - var response = await _deploymentRestClient.GetAtScopeAsync(Id, deploymentName, cancellationToken: cancellationToken).ConfigureAwait(false); + var response = await _armDeploymentDeploymentsRestClient.GetAtScopeAsync(Id, deploymentName, cancellationToken: cancellationToken).ConfigureAwait(false); if (response.Value == null) - return Response.FromValue(null, response.GetRawResponse()); - return Response.FromValue(new DeploymentResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(null, response.GetRawResponse()); + return Response.FromValue(new ArmDeploymentResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -349,18 +349,18 @@ public virtual async Task> GetIfExistsAsync(string /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. - public virtual Response GetIfExists(string deploymentName, CancellationToken cancellationToken = default) + public virtual Response GetIfExists(string deploymentName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(deploymentName, nameof(deploymentName)); - using var scope = _deploymentClientDiagnostics.CreateScope("DeploymentCollection.GetIfExists"); + using var scope = _armDeploymentDeploymentsClientDiagnostics.CreateScope("ArmDeploymentCollection.GetIfExists"); scope.Start(); try { - var response = _deploymentRestClient.GetAtScope(Id, deploymentName, cancellationToken: cancellationToken); + var response = _armDeploymentDeploymentsRestClient.GetAtScope(Id, deploymentName, cancellationToken: cancellationToken); if (response.Value == null) - return Response.FromValue(null, response.GetRawResponse()); - return Response.FromValue(new DeploymentResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(null, response.GetRawResponse()); + return Response.FromValue(new ArmDeploymentResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -369,7 +369,7 @@ public virtual Response GetIfExists(string deploymentName, C } } - IEnumerator IEnumerable.GetEnumerator() + IEnumerator IEnumerable.GetEnumerator() { return GetAll().GetEnumerator(); } @@ -379,7 +379,7 @@ IEnumerator IEnumerable.GetEnumerator() return GetAll().GetEnumerator(); } - IAsyncEnumerator IAsyncEnumerable.GetAsyncEnumerator(CancellationToken cancellationToken) + IAsyncEnumerator IAsyncEnumerable.GetAsyncEnumerator(CancellationToken cancellationToken) { return GetAllAsync(cancellationToken: cancellationToken).GetAsyncEnumerator(cancellationToken); } diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/DeploymentData.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/ArmDeploymentData.cs similarity index 64% rename from sdk/resources/Azure.ResourceManager.Resources/src/Generated/DeploymentData.cs rename to sdk/resources/Azure.ResourceManager.Resources/src/Generated/ArmDeploymentData.cs index 92029b766f792..1593d666af56f 100644 --- a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/DeploymentData.cs +++ b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/ArmDeploymentData.cs @@ -12,16 +12,16 @@ namespace Azure.ResourceManager.Resources { - /// A class representing the Deployment data model. - public partial class DeploymentData : ResourceData + /// A class representing the ArmDeployment data model. + public partial class ArmDeploymentData : ResourceData { - /// Initializes a new instance of DeploymentData. - internal DeploymentData() + /// Initializes a new instance of ArmDeploymentData. + internal ArmDeploymentData() { Tags = new ChangeTrackingDictionary(); } - /// Initializes a new instance of DeploymentData. + /// Initializes a new instance of ArmDeploymentData. /// The id. /// The name. /// The resourceType. @@ -29,7 +29,7 @@ internal DeploymentData() /// the location of the deployment. /// Deployment properties. /// Deployment tags. - internal DeploymentData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, string location, DeploymentPropertiesExtended properties, IReadOnlyDictionary tags) : base(id, name, resourceType, systemData) + internal ArmDeploymentData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, string location, ArmDeploymentPropertiesExtended properties, IReadOnlyDictionary tags) : base(id, name, resourceType, systemData) { Location = location; Properties = properties; @@ -39,7 +39,7 @@ internal DeploymentData(ResourceIdentifier id, string name, ResourceType resourc /// the location of the deployment. public string Location { get; } /// Deployment properties. - public DeploymentPropertiesExtended Properties { get; } + public ArmDeploymentPropertiesExtended Properties { get; } /// Deployment tags. public IReadOnlyDictionary Tags { get; } } diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/DeploymentResource.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/ArmDeploymentResource.cs similarity index 70% rename from sdk/resources/Azure.ResourceManager.Resources/src/Generated/DeploymentResource.cs rename to sdk/resources/Azure.ResourceManager.Resources/src/Generated/ArmDeploymentResource.cs index 16be6ce5ab412..fa3e11858d487 100644 --- a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/DeploymentResource.cs +++ b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/ArmDeploymentResource.cs @@ -20,48 +20,48 @@ namespace Azure.ResourceManager.Resources { /// - /// A Class representing a Deployment along with the instance operations that can be performed on it. - /// If you have a you can construct a - /// from an instance of using the GetDeploymentResource method. - /// Otherwise you can get one from its parent resource using the GetDeployment method. + /// A Class representing an ArmDeployment along with the instance operations that can be performed on it. + /// If you have a you can construct an + /// from an instance of using the GetArmDeploymentResource method. + /// Otherwise you can get one from its parent resource using the GetArmDeployment method. /// - public partial class DeploymentResource : ArmResource + public partial class ArmDeploymentResource : ArmResource { - /// Generate the resource identifier of a instance. + /// Generate the resource identifier of a instance. public static ResourceIdentifier CreateResourceIdentifier(string scope, string deploymentName) { var resourceId = $"{scope}/providers/Microsoft.Resources/deployments/{deploymentName}"; return new ResourceIdentifier(resourceId); } - private readonly ClientDiagnostics _deploymentClientDiagnostics; - private readonly DeploymentsRestOperations _deploymentRestClient; + private readonly ClientDiagnostics _armDeploymentDeploymentsClientDiagnostics; + private readonly DeploymentsRestOperations _armDeploymentDeploymentsRestClient; private readonly ClientDiagnostics _deploymentOperationsClientDiagnostics; private readonly DeploymentRestOperations _deploymentOperationsRestClient; - private readonly DeploymentData _data; + private readonly ArmDeploymentData _data; - /// Initializes a new instance of the class for mocking. - protected DeploymentResource() + /// Initializes a new instance of the class for mocking. + protected ArmDeploymentResource() { } - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// The client parameters to use in these operations. /// The resource that is the target of operations. - internal DeploymentResource(ArmClient client, DeploymentData data) : this(client, data.Id) + internal ArmDeploymentResource(ArmClient client, ArmDeploymentData data) : this(client, data.Id) { HasData = true; _data = data; } - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// The client parameters to use in these operations. /// The identifier of the resource that is the target of operations. - internal DeploymentResource(ArmClient client, ResourceIdentifier id) : base(client, id) + internal ArmDeploymentResource(ArmClient client, ResourceIdentifier id) : base(client, id) { - _deploymentClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.Resources", ResourceType.Namespace, Diagnostics); - TryGetApiVersion(ResourceType, out string deploymentApiVersion); - _deploymentRestClient = new DeploymentsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, deploymentApiVersion); + _armDeploymentDeploymentsClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.Resources", ResourceType.Namespace, Diagnostics); + TryGetApiVersion(ResourceType, out string armDeploymentDeploymentsApiVersion); + _armDeploymentDeploymentsRestClient = new DeploymentsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, armDeploymentDeploymentsApiVersion); _deploymentOperationsClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.Resources", ProviderConstants.DefaultProviderNamespace, Diagnostics); _deploymentOperationsRestClient = new DeploymentRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint); #if DEBUG @@ -77,7 +77,7 @@ internal DeploymentResource(ArmClient client, ResourceIdentifier id) : base(clie /// Gets the data representing this Feature. /// Throws if there is no data loaded in the current instance. - public virtual DeploymentData Data + public virtual ArmDeploymentData Data { get { @@ -99,16 +99,16 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// Operation Id: Deployments_GetAtScope /// /// The cancellation token to use. - public virtual async Task> GetAsync(CancellationToken cancellationToken = default) + public virtual async Task> GetAsync(CancellationToken cancellationToken = default) { - using var scope = _deploymentClientDiagnostics.CreateScope("DeploymentResource.Get"); + using var scope = _armDeploymentDeploymentsClientDiagnostics.CreateScope("ArmDeploymentResource.Get"); scope.Start(); try { - var response = await _deploymentRestClient.GetAtScopeAsync(Id.Parent, Id.Name, cancellationToken).ConfigureAwait(false); + var response = await _armDeploymentDeploymentsRestClient.GetAtScopeAsync(Id.Parent, Id.Name, cancellationToken).ConfigureAwait(false); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new DeploymentResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(new ArmDeploymentResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -123,16 +123,16 @@ public virtual async Task> GetAsync(CancellationTok /// Operation Id: Deployments_GetAtScope /// /// The cancellation token to use. - public virtual Response Get(CancellationToken cancellationToken = default) + public virtual Response Get(CancellationToken cancellationToken = default) { - using var scope = _deploymentClientDiagnostics.CreateScope("DeploymentResource.Get"); + using var scope = _armDeploymentDeploymentsClientDiagnostics.CreateScope("ArmDeploymentResource.Get"); scope.Start(); try { - var response = _deploymentRestClient.GetAtScope(Id.Parent, Id.Name, cancellationToken); + var response = _armDeploymentDeploymentsRestClient.GetAtScope(Id.Parent, Id.Name, cancellationToken); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new DeploymentResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(new ArmDeploymentResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -150,12 +150,12 @@ public virtual Response Get(CancellationToken cancellationTo /// The cancellation token to use. public virtual async Task DeleteAsync(WaitUntil waitUntil, CancellationToken cancellationToken = default) { - using var scope = _deploymentClientDiagnostics.CreateScope("DeploymentResource.Delete"); + using var scope = _armDeploymentDeploymentsClientDiagnostics.CreateScope("ArmDeploymentResource.Delete"); scope.Start(); try { - var response = await _deploymentRestClient.DeleteAtScopeAsync(Id.Parent, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new ResourcesArmOperation(_deploymentClientDiagnostics, Pipeline, _deploymentRestClient.CreateDeleteAtScopeRequest(Id.Parent, Id.Name).Request, response, OperationFinalStateVia.Location); + var response = await _armDeploymentDeploymentsRestClient.DeleteAtScopeAsync(Id.Parent, Id.Name, cancellationToken).ConfigureAwait(false); + var operation = new ResourcesArmOperation(_armDeploymentDeploymentsClientDiagnostics, Pipeline, _armDeploymentDeploymentsRestClient.CreateDeleteAtScopeRequest(Id.Parent, Id.Name).Request, response, OperationFinalStateVia.Location); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -176,12 +176,12 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// The cancellation token to use. public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancellationToken = default) { - using var scope = _deploymentClientDiagnostics.CreateScope("DeploymentResource.Delete"); + using var scope = _armDeploymentDeploymentsClientDiagnostics.CreateScope("ArmDeploymentResource.Delete"); scope.Start(); try { - var response = _deploymentRestClient.DeleteAtScope(Id.Parent, Id.Name, cancellationToken); - var operation = new ResourcesArmOperation(_deploymentClientDiagnostics, Pipeline, _deploymentRestClient.CreateDeleteAtScopeRequest(Id.Parent, Id.Name).Request, response, OperationFinalStateVia.Location); + var response = _armDeploymentDeploymentsRestClient.DeleteAtScope(Id.Parent, Id.Name, cancellationToken); + var operation = new ResourcesArmOperation(_armDeploymentDeploymentsClientDiagnostics, Pipeline, _armDeploymentDeploymentsRestClient.CreateDeleteAtScopeRequest(Id.Parent, Id.Name).Request, response, OperationFinalStateVia.Location); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; @@ -201,11 +201,11 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// The cancellation token to use. public virtual async Task CancelAsync(CancellationToken cancellationToken = default) { - using var scope = _deploymentClientDiagnostics.CreateScope("DeploymentResource.Cancel"); + using var scope = _armDeploymentDeploymentsClientDiagnostics.CreateScope("ArmDeploymentResource.Cancel"); scope.Start(); try { - var response = await _deploymentRestClient.CancelAtScopeAsync(Id.Parent, Id.Name, cancellationToken).ConfigureAwait(false); + var response = await _armDeploymentDeploymentsRestClient.CancelAtScopeAsync(Id.Parent, Id.Name, cancellationToken).ConfigureAwait(false); return response; } catch (Exception e) @@ -223,11 +223,11 @@ public virtual async Task CancelAsync(CancellationToken cancellationTo /// The cancellation token to use. public virtual Response Cancel(CancellationToken cancellationToken = default) { - using var scope = _deploymentClientDiagnostics.CreateScope("DeploymentResource.Cancel"); + using var scope = _armDeploymentDeploymentsClientDiagnostics.CreateScope("ArmDeploymentResource.Cancel"); scope.Start(); try { - var response = _deploymentRestClient.CancelAtScope(Id.Parent, Id.Name, cancellationToken); + var response = _armDeploymentDeploymentsRestClient.CancelAtScope(Id.Parent, Id.Name, cancellationToken); return response; } catch (Exception e) @@ -246,16 +246,16 @@ public virtual Response Cancel(CancellationToken cancellationToken = default) /// Parameters to validate. /// The cancellation token to use. /// is null. - public virtual async Task> ValidateAsync(WaitUntil waitUntil, DeploymentInput parameters, CancellationToken cancellationToken = default) + public virtual async Task> ValidateAsync(WaitUntil waitUntil, ArmDeploymentInput parameters, CancellationToken cancellationToken = default) { Argument.AssertNotNull(parameters, nameof(parameters)); - using var scope = _deploymentClientDiagnostics.CreateScope("DeploymentResource.Validate"); + using var scope = _armDeploymentDeploymentsClientDiagnostics.CreateScope("ArmDeploymentResource.Validate"); scope.Start(); try { - var response = await _deploymentRestClient.ValidateAtScopeAsync(Id.Parent, Id.Name, parameters, cancellationToken).ConfigureAwait(false); - var operation = new ResourcesArmOperation(new DeploymentValidateResultOperationSource(), _deploymentClientDiagnostics, Pipeline, _deploymentRestClient.CreateValidateAtScopeRequest(Id.Parent, Id.Name, parameters).Request, response, OperationFinalStateVia.Location); + var response = await _armDeploymentDeploymentsRestClient.ValidateAtScopeAsync(Id.Parent, Id.Name, parameters, cancellationToken).ConfigureAwait(false); + var operation = new ResourcesArmOperation(new ArmDeploymentValidateResultOperationSource(), _armDeploymentDeploymentsClientDiagnostics, Pipeline, _armDeploymentDeploymentsRestClient.CreateValidateAtScopeRequest(Id.Parent, Id.Name, parameters).Request, response, OperationFinalStateVia.Location); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -276,16 +276,16 @@ public virtual async Task> ValidateAsync( /// Parameters to validate. /// The cancellation token to use. /// is null. - public virtual ArmOperation Validate(WaitUntil waitUntil, DeploymentInput parameters, CancellationToken cancellationToken = default) + public virtual ArmOperation Validate(WaitUntil waitUntil, ArmDeploymentInput parameters, CancellationToken cancellationToken = default) { Argument.AssertNotNull(parameters, nameof(parameters)); - using var scope = _deploymentClientDiagnostics.CreateScope("DeploymentResource.Validate"); + using var scope = _armDeploymentDeploymentsClientDiagnostics.CreateScope("ArmDeploymentResource.Validate"); scope.Start(); try { - var response = _deploymentRestClient.ValidateAtScope(Id.Parent, Id.Name, parameters, cancellationToken); - var operation = new ResourcesArmOperation(new DeploymentValidateResultOperationSource(), _deploymentClientDiagnostics, Pipeline, _deploymentRestClient.CreateValidateAtScopeRequest(Id.Parent, Id.Name, parameters).Request, response, OperationFinalStateVia.Location); + var response = _armDeploymentDeploymentsRestClient.ValidateAtScope(Id.Parent, Id.Name, parameters, cancellationToken); + var operation = new ResourcesArmOperation(new ArmDeploymentValidateResultOperationSource(), _armDeploymentDeploymentsClientDiagnostics, Pipeline, _armDeploymentDeploymentsRestClient.CreateValidateAtScopeRequest(Id.Parent, Id.Name, parameters).Request, response, OperationFinalStateVia.Location); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; @@ -303,13 +303,13 @@ public virtual ArmOperation Validate(WaitUntil waitUnt /// Operation Id: Deployments_ExportTemplateAtScope /// /// The cancellation token to use. - public virtual async Task> ExportTemplateAsync(CancellationToken cancellationToken = default) + public virtual async Task> ExportTemplateAsync(CancellationToken cancellationToken = default) { - using var scope = _deploymentClientDiagnostics.CreateScope("DeploymentResource.ExportTemplate"); + using var scope = _armDeploymentDeploymentsClientDiagnostics.CreateScope("ArmDeploymentResource.ExportTemplate"); scope.Start(); try { - var response = await _deploymentRestClient.ExportTemplateAtScopeAsync(Id.Parent, Id.Name, cancellationToken).ConfigureAwait(false); + var response = await _armDeploymentDeploymentsRestClient.ExportTemplateAtScopeAsync(Id.Parent, Id.Name, cancellationToken).ConfigureAwait(false); return response; } catch (Exception e) @@ -325,13 +325,13 @@ public virtual async Task> ExportTemplateAsync( /// Operation Id: Deployments_ExportTemplateAtScope /// /// The cancellation token to use. - public virtual Response ExportTemplate(CancellationToken cancellationToken = default) + public virtual Response ExportTemplate(CancellationToken cancellationToken = default) { - using var scope = _deploymentClientDiagnostics.CreateScope("DeploymentResource.ExportTemplate"); + using var scope = _armDeploymentDeploymentsClientDiagnostics.CreateScope("ArmDeploymentResource.ExportTemplate"); scope.Start(); try { - var response = _deploymentRestClient.ExportTemplateAtScope(Id.Parent, Id.Name, cancellationToken); + var response = _armDeploymentDeploymentsRestClient.ExportTemplateAtScope(Id.Parent, Id.Name, cancellationToken); return response; } catch (Exception e) @@ -356,42 +356,42 @@ public virtual Response ExportTemplate(CancellationToken /// Parameters to validate. /// The cancellation token to use. /// is null. - public virtual async Task> WhatIfAsync(WaitUntil waitUntil, DeploymentWhatIf parameters, CancellationToken cancellationToken = default) + public virtual async Task> WhatIfAsync(WaitUntil waitUntil, ArmDeploymentWhatIf parameters, CancellationToken cancellationToken = default) { Argument.AssertNotNull(parameters, nameof(parameters)); - using var scope = _deploymentClientDiagnostics.CreateScope("DeploymentResource.WhatIf"); + using var scope = _armDeploymentDeploymentsClientDiagnostics.CreateScope("ArmDeploymentResource.WhatIf"); scope.Start(); try { if (Id.Parent.ResourceType == TenantResource.ResourceType) { - var response = await _deploymentRestClient.WhatIfAtTenantScopeAsync(Id.Name, parameters, cancellationToken).ConfigureAwait(false); - var operation = new ResourcesArmOperation(new WhatIfOperationResultOperationSource(), _deploymentClientDiagnostics, Pipeline, _deploymentRestClient.CreateWhatIfAtTenantScopeRequest(Id.Name, parameters).Request, response, OperationFinalStateVia.Location); + var response = await _armDeploymentDeploymentsRestClient.WhatIfAtTenantScopeAsync(Id.Name, parameters, cancellationToken).ConfigureAwait(false); + var operation = new ResourcesArmOperation(new WhatIfOperationResultOperationSource(), _armDeploymentDeploymentsClientDiagnostics, Pipeline, _armDeploymentDeploymentsRestClient.CreateWhatIfAtTenantScopeRequest(Id.Name, parameters).Request, response, OperationFinalStateVia.Location); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; } else if (Id.Parent.ResourceType == ManagementGroupResource.ResourceType) { - var response = await _deploymentRestClient.WhatIfAtManagementGroupScopeAsync(Id.Parent.Name, Id.Name, parameters, cancellationToken).ConfigureAwait(false); - var operation = new ResourcesArmOperation(new WhatIfOperationResultOperationSource(), _deploymentClientDiagnostics, Pipeline, _deploymentRestClient.CreateWhatIfAtManagementGroupScopeRequest(Id.Parent.Name, Id.Name, parameters).Request, response, OperationFinalStateVia.Location); + var response = await _armDeploymentDeploymentsRestClient.WhatIfAtManagementGroupScopeAsync(Id.Parent.Name, Id.Name, parameters, cancellationToken).ConfigureAwait(false); + var operation = new ResourcesArmOperation(new WhatIfOperationResultOperationSource(), _armDeploymentDeploymentsClientDiagnostics, Pipeline, _armDeploymentDeploymentsRestClient.CreateWhatIfAtManagementGroupScopeRequest(Id.Parent.Name, Id.Name, parameters).Request, response, OperationFinalStateVia.Location); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; } else if (Id.Parent.ResourceType == SubscriptionResource.ResourceType) { - var response = await _deploymentRestClient.WhatIfAtSubscriptionScopeAsync(Id.SubscriptionId, Id.Name, parameters, cancellationToken).ConfigureAwait(false); - var operation = new ResourcesArmOperation(new WhatIfOperationResultOperationSource(), _deploymentClientDiagnostics, Pipeline, _deploymentRestClient.CreateWhatIfAtSubscriptionScopeRequest(Id.SubscriptionId, Id.Name, parameters).Request, response, OperationFinalStateVia.Location); + var response = await _armDeploymentDeploymentsRestClient.WhatIfAtSubscriptionScopeAsync(Id.SubscriptionId, Id.Name, parameters, cancellationToken).ConfigureAwait(false); + var operation = new ResourcesArmOperation(new WhatIfOperationResultOperationSource(), _armDeploymentDeploymentsClientDiagnostics, Pipeline, _armDeploymentDeploymentsRestClient.CreateWhatIfAtSubscriptionScopeRequest(Id.SubscriptionId, Id.Name, parameters).Request, response, OperationFinalStateVia.Location); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; } else if (Id.Parent.ResourceType == ResourceGroupResource.ResourceType) { - var response = await _deploymentRestClient.WhatIfAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, parameters, cancellationToken).ConfigureAwait(false); - var operation = new ResourcesArmOperation(new WhatIfOperationResultOperationSource(), _deploymentClientDiagnostics, Pipeline, _deploymentRestClient.CreateWhatIfRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, parameters).Request, response, OperationFinalStateVia.Location); + var response = await _armDeploymentDeploymentsRestClient.WhatIfAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, parameters, cancellationToken).ConfigureAwait(false); + var operation = new ResourcesArmOperation(new WhatIfOperationResultOperationSource(), _armDeploymentDeploymentsClientDiagnostics, Pipeline, _armDeploymentDeploymentsRestClient.CreateWhatIfRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, parameters).Request, response, OperationFinalStateVia.Location); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -423,42 +423,42 @@ public virtual async Task> WhatIfAsync(WaitU /// Parameters to validate. /// The cancellation token to use. /// is null. - public virtual ArmOperation WhatIf(WaitUntil waitUntil, DeploymentWhatIf parameters, CancellationToken cancellationToken = default) + public virtual ArmOperation WhatIf(WaitUntil waitUntil, ArmDeploymentWhatIf parameters, CancellationToken cancellationToken = default) { Argument.AssertNotNull(parameters, nameof(parameters)); - using var scope = _deploymentClientDiagnostics.CreateScope("DeploymentResource.WhatIf"); + using var scope = _armDeploymentDeploymentsClientDiagnostics.CreateScope("ArmDeploymentResource.WhatIf"); scope.Start(); try { if (Id.Parent.ResourceType == TenantResource.ResourceType) { - var response = _deploymentRestClient.WhatIfAtTenantScope(Id.Name, parameters, cancellationToken); - var operation = new ResourcesArmOperation(new WhatIfOperationResultOperationSource(), _deploymentClientDiagnostics, Pipeline, _deploymentRestClient.CreateWhatIfAtTenantScopeRequest(Id.Name, parameters).Request, response, OperationFinalStateVia.Location); + var response = _armDeploymentDeploymentsRestClient.WhatIfAtTenantScope(Id.Name, parameters, cancellationToken); + var operation = new ResourcesArmOperation(new WhatIfOperationResultOperationSource(), _armDeploymentDeploymentsClientDiagnostics, Pipeline, _armDeploymentDeploymentsRestClient.CreateWhatIfAtTenantScopeRequest(Id.Name, parameters).Request, response, OperationFinalStateVia.Location); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; } else if (Id.Parent.ResourceType == ManagementGroupResource.ResourceType) { - var response = _deploymentRestClient.WhatIfAtManagementGroupScope(Id.Parent.Name, Id.Name, parameters, cancellationToken); - var operation = new ResourcesArmOperation(new WhatIfOperationResultOperationSource(), _deploymentClientDiagnostics, Pipeline, _deploymentRestClient.CreateWhatIfAtManagementGroupScopeRequest(Id.Parent.Name, Id.Name, parameters).Request, response, OperationFinalStateVia.Location); + var response = _armDeploymentDeploymentsRestClient.WhatIfAtManagementGroupScope(Id.Parent.Name, Id.Name, parameters, cancellationToken); + var operation = new ResourcesArmOperation(new WhatIfOperationResultOperationSource(), _armDeploymentDeploymentsClientDiagnostics, Pipeline, _armDeploymentDeploymentsRestClient.CreateWhatIfAtManagementGroupScopeRequest(Id.Parent.Name, Id.Name, parameters).Request, response, OperationFinalStateVia.Location); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; } else if (Id.Parent.ResourceType == SubscriptionResource.ResourceType) { - var response = _deploymentRestClient.WhatIfAtSubscriptionScope(Id.SubscriptionId, Id.Name, parameters, cancellationToken); - var operation = new ResourcesArmOperation(new WhatIfOperationResultOperationSource(), _deploymentClientDiagnostics, Pipeline, _deploymentRestClient.CreateWhatIfAtSubscriptionScopeRequest(Id.SubscriptionId, Id.Name, parameters).Request, response, OperationFinalStateVia.Location); + var response = _armDeploymentDeploymentsRestClient.WhatIfAtSubscriptionScope(Id.SubscriptionId, Id.Name, parameters, cancellationToken); + var operation = new ResourcesArmOperation(new WhatIfOperationResultOperationSource(), _armDeploymentDeploymentsClientDiagnostics, Pipeline, _armDeploymentDeploymentsRestClient.CreateWhatIfAtSubscriptionScopeRequest(Id.SubscriptionId, Id.Name, parameters).Request, response, OperationFinalStateVia.Location); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; } else if (Id.Parent.ResourceType == ResourceGroupResource.ResourceType) { - var response = _deploymentRestClient.WhatIf(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, parameters, cancellationToken); - var operation = new ResourcesArmOperation(new WhatIfOperationResultOperationSource(), _deploymentClientDiagnostics, Pipeline, _deploymentRestClient.CreateWhatIfRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, parameters).Request, response, OperationFinalStateVia.Location); + var response = _armDeploymentDeploymentsRestClient.WhatIf(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, parameters, cancellationToken); + var operation = new ResourcesArmOperation(new WhatIfOperationResultOperationSource(), _armDeploymentDeploymentsClientDiagnostics, Pipeline, _armDeploymentDeploymentsRestClient.CreateWhatIfRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, parameters).Request, response, OperationFinalStateVia.Location); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; @@ -484,11 +484,11 @@ public virtual ArmOperation WhatIf(WaitUntil waitUntil, D /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. - public virtual async Task> GetDeploymentOperationAsync(string operationId, CancellationToken cancellationToken = default) + public virtual async Task> GetDeploymentOperationAsync(string operationId, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(operationId, nameof(operationId)); - using var scope = _deploymentOperationsClientDiagnostics.CreateScope("DeploymentResource.GetDeploymentOperation"); + using var scope = _deploymentOperationsClientDiagnostics.CreateScope("ArmDeploymentResource.GetDeploymentOperation"); scope.Start(); try { @@ -511,11 +511,11 @@ public virtual async Task> GetDeploymentOperationA /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. - public virtual Response GetDeploymentOperation(string operationId, CancellationToken cancellationToken = default) + public virtual Response GetDeploymentOperation(string operationId, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(operationId, nameof(operationId)); - using var scope = _deploymentOperationsClientDiagnostics.CreateScope("DeploymentResource.GetDeploymentOperation"); + using var scope = _deploymentOperationsClientDiagnostics.CreateScope("ArmDeploymentResource.GetDeploymentOperation"); scope.Start(); try { @@ -536,12 +536,12 @@ public virtual Response GetDeploymentOperation(string opera /// /// The number of results to return. /// The cancellation token to use. - /// An async collection of that may take multiple service requests to iterate over. - public virtual AsyncPageable GetDeploymentOperationsAsync(int? top = null, CancellationToken cancellationToken = default) + /// An async collection of that may take multiple service requests to iterate over. + public virtual AsyncPageable GetDeploymentOperationsAsync(int? top = null, CancellationToken cancellationToken = default) { - async Task> FirstPageFunc(int? pageSizeHint) + async Task> FirstPageFunc(int? pageSizeHint) { - using var scope = _deploymentOperationsClientDiagnostics.CreateScope("DeploymentResource.GetDeploymentOperations"); + using var scope = _deploymentOperationsClientDiagnostics.CreateScope("ArmDeploymentResource.GetDeploymentOperations"); scope.Start(); try { @@ -554,9 +554,9 @@ async Task> FirstPageFunc(int? pageSizeHint) throw; } } - async Task> NextPageFunc(string nextLink, int? pageSizeHint) + async Task> NextPageFunc(string nextLink, int? pageSizeHint) { - using var scope = _deploymentOperationsClientDiagnostics.CreateScope("DeploymentResource.GetDeploymentOperations"); + using var scope = _deploymentOperationsClientDiagnostics.CreateScope("ArmDeploymentResource.GetDeploymentOperations"); scope.Start(); try { @@ -579,12 +579,12 @@ async Task> NextPageFunc(string nextLink, int? pageSiz /// /// The number of results to return. /// The cancellation token to use. - /// A collection of that may take multiple service requests to iterate over. - public virtual Pageable GetDeploymentOperations(int? top = null, CancellationToken cancellationToken = default) + /// A collection of that may take multiple service requests to iterate over. + public virtual Pageable GetDeploymentOperations(int? top = null, CancellationToken cancellationToken = default) { - Page FirstPageFunc(int? pageSizeHint) + Page FirstPageFunc(int? pageSizeHint) { - using var scope = _deploymentOperationsClientDiagnostics.CreateScope("DeploymentResource.GetDeploymentOperations"); + using var scope = _deploymentOperationsClientDiagnostics.CreateScope("ArmDeploymentResource.GetDeploymentOperations"); scope.Start(); try { @@ -597,9 +597,9 @@ Page FirstPageFunc(int? pageSizeHint) throw; } } - Page NextPageFunc(string nextLink, int? pageSizeHint) + Page NextPageFunc(string nextLink, int? pageSizeHint) { - using var scope = _deploymentOperationsClientDiagnostics.CreateScope("DeploymentResource.GetDeploymentOperations"); + using var scope = _deploymentOperationsClientDiagnostics.CreateScope("ArmDeploymentResource.GetDeploymentOperations"); scope.Start(); try { @@ -623,11 +623,11 @@ Page NextPageFunc(string nextLink, int? pageSizeHint) /// The cancellation token to use. public virtual async Task CheckExistenceAsync(CancellationToken cancellationToken = default) { - using var scope = _deploymentClientDiagnostics.CreateScope("DeploymentResource.CheckExistence"); + using var scope = _armDeploymentDeploymentsClientDiagnostics.CreateScope("ArmDeploymentResource.CheckExistence"); scope.Start(); try { - var response = await _deploymentRestClient.CheckExistenceAtScopeAsync(Id.Parent, Id.Name, cancellationToken).ConfigureAwait(false); + var response = await _armDeploymentDeploymentsRestClient.CheckExistenceAtScopeAsync(Id.Parent, Id.Name, cancellationToken).ConfigureAwait(false); return response; } catch (Exception e) @@ -645,11 +645,11 @@ public virtual async Task CheckExistenceAsync(CancellationToken cancel /// The cancellation token to use. public virtual Response CheckExistence(CancellationToken cancellationToken = default) { - using var scope = _deploymentClientDiagnostics.CreateScope("DeploymentResource.CheckExistence"); + using var scope = _armDeploymentDeploymentsClientDiagnostics.CreateScope("ArmDeploymentResource.CheckExistence"); scope.Start(); try { - var response = _deploymentRestClient.CheckExistenceAtScope(Id.Parent, Id.Name, cancellationToken); + var response = _armDeploymentDeploymentsRestClient.CheckExistenceAtScope(Id.Parent, Id.Name, cancellationToken); return response; } catch (Exception e) @@ -668,20 +668,20 @@ public virtual Response CheckExistence(CancellationToken cancellationToken = def /// The value for the tag. /// The cancellation token to use. /// or is null. - public virtual async Task> AddTagAsync(string key, string value, CancellationToken cancellationToken = default) + public virtual async Task> AddTagAsync(string key, string value, CancellationToken cancellationToken = default) { Argument.AssertNotNull(key, nameof(key)); Argument.AssertNotNull(value, nameof(value)); - using var scope = _deploymentClientDiagnostics.CreateScope("DeploymentResource.AddTag"); + using var scope = _armDeploymentDeploymentsClientDiagnostics.CreateScope("ArmDeploymentResource.AddTag"); scope.Start(); try { var originalTags = await GetTagResource().GetAsync(cancellationToken).ConfigureAwait(false); originalTags.Value.Data.TagValues[key] = value; await GetTagResource().CreateOrUpdateAsync(WaitUntil.Completed, originalTags.Value.Data, cancellationToken: cancellationToken).ConfigureAwait(false); - var originalResponse = await _deploymentRestClient.GetAtScopeAsync(Id.Parent, Id.Name, cancellationToken).ConfigureAwait(false); - return Response.FromValue(new DeploymentResource(Client, originalResponse.Value), originalResponse.GetRawResponse()); + var originalResponse = await _armDeploymentDeploymentsRestClient.GetAtScopeAsync(Id.Parent, Id.Name, cancellationToken).ConfigureAwait(false); + return Response.FromValue(new ArmDeploymentResource(Client, originalResponse.Value), originalResponse.GetRawResponse()); } catch (Exception e) { @@ -699,20 +699,20 @@ public virtual async Task> AddTagAsync(string key, /// The value for the tag. /// The cancellation token to use. /// or is null. - public virtual Response AddTag(string key, string value, CancellationToken cancellationToken = default) + public virtual Response AddTag(string key, string value, CancellationToken cancellationToken = default) { Argument.AssertNotNull(key, nameof(key)); Argument.AssertNotNull(value, nameof(value)); - using var scope = _deploymentClientDiagnostics.CreateScope("DeploymentResource.AddTag"); + using var scope = _armDeploymentDeploymentsClientDiagnostics.CreateScope("ArmDeploymentResource.AddTag"); scope.Start(); try { var originalTags = GetTagResource().Get(cancellationToken); originalTags.Value.Data.TagValues[key] = value; GetTagResource().CreateOrUpdate(WaitUntil.Completed, originalTags.Value.Data, cancellationToken: cancellationToken); - var originalResponse = _deploymentRestClient.GetAtScope(Id.Parent, Id.Name, cancellationToken); - return Response.FromValue(new DeploymentResource(Client, originalResponse.Value), originalResponse.GetRawResponse()); + var originalResponse = _armDeploymentDeploymentsRestClient.GetAtScope(Id.Parent, Id.Name, cancellationToken); + return Response.FromValue(new ArmDeploymentResource(Client, originalResponse.Value), originalResponse.GetRawResponse()); } catch (Exception e) { @@ -729,11 +729,11 @@ public virtual Response AddTag(string key, string value, Can /// The set of tags to use as replacement. /// The cancellation token to use. /// is null. - public virtual async Task> SetTagsAsync(IDictionary tags, CancellationToken cancellationToken = default) + public virtual async Task> SetTagsAsync(IDictionary tags, CancellationToken cancellationToken = default) { Argument.AssertNotNull(tags, nameof(tags)); - using var scope = _deploymentClientDiagnostics.CreateScope("DeploymentResource.SetTags"); + using var scope = _armDeploymentDeploymentsClientDiagnostics.CreateScope("ArmDeploymentResource.SetTags"); scope.Start(); try { @@ -741,8 +741,8 @@ public virtual async Task> SetTagsAsync(IDictionary var originalTags = await GetTagResource().GetAsync(cancellationToken).ConfigureAwait(false); originalTags.Value.Data.TagValues.ReplaceWith(tags); await GetTagResource().CreateOrUpdateAsync(WaitUntil.Completed, originalTags.Value.Data, cancellationToken: cancellationToken).ConfigureAwait(false); - var originalResponse = await _deploymentRestClient.GetAtScopeAsync(Id.Parent, Id.Name, cancellationToken).ConfigureAwait(false); - return Response.FromValue(new DeploymentResource(Client, originalResponse.Value), originalResponse.GetRawResponse()); + var originalResponse = await _armDeploymentDeploymentsRestClient.GetAtScopeAsync(Id.Parent, Id.Name, cancellationToken).ConfigureAwait(false); + return Response.FromValue(new ArmDeploymentResource(Client, originalResponse.Value), originalResponse.GetRawResponse()); } catch (Exception e) { @@ -759,11 +759,11 @@ public virtual async Task> SetTagsAsync(IDictionary /// The set of tags to use as replacement. /// The cancellation token to use. /// is null. - public virtual Response SetTags(IDictionary tags, CancellationToken cancellationToken = default) + public virtual Response SetTags(IDictionary tags, CancellationToken cancellationToken = default) { Argument.AssertNotNull(tags, nameof(tags)); - using var scope = _deploymentClientDiagnostics.CreateScope("DeploymentResource.SetTags"); + using var scope = _armDeploymentDeploymentsClientDiagnostics.CreateScope("ArmDeploymentResource.SetTags"); scope.Start(); try { @@ -771,8 +771,8 @@ public virtual Response SetTags(IDictionary var originalTags = GetTagResource().Get(cancellationToken); originalTags.Value.Data.TagValues.ReplaceWith(tags); GetTagResource().CreateOrUpdate(WaitUntil.Completed, originalTags.Value.Data, cancellationToken: cancellationToken); - var originalResponse = _deploymentRestClient.GetAtScope(Id.Parent, Id.Name, cancellationToken); - return Response.FromValue(new DeploymentResource(Client, originalResponse.Value), originalResponse.GetRawResponse()); + var originalResponse = _armDeploymentDeploymentsRestClient.GetAtScope(Id.Parent, Id.Name, cancellationToken); + return Response.FromValue(new ArmDeploymentResource(Client, originalResponse.Value), originalResponse.GetRawResponse()); } catch (Exception e) { @@ -789,19 +789,19 @@ public virtual Response SetTags(IDictionary /// The key for the tag. /// The cancellation token to use. /// is null. - public virtual async Task> RemoveTagAsync(string key, CancellationToken cancellationToken = default) + public virtual async Task> RemoveTagAsync(string key, CancellationToken cancellationToken = default) { Argument.AssertNotNull(key, nameof(key)); - using var scope = _deploymentClientDiagnostics.CreateScope("DeploymentResource.RemoveTag"); + using var scope = _armDeploymentDeploymentsClientDiagnostics.CreateScope("ArmDeploymentResource.RemoveTag"); scope.Start(); try { var originalTags = await GetTagResource().GetAsync(cancellationToken).ConfigureAwait(false); originalTags.Value.Data.TagValues.Remove(key); await GetTagResource().CreateOrUpdateAsync(WaitUntil.Completed, originalTags.Value.Data, cancellationToken: cancellationToken).ConfigureAwait(false); - var originalResponse = await _deploymentRestClient.GetAtScopeAsync(Id.Parent, Id.Name, cancellationToken).ConfigureAwait(false); - return Response.FromValue(new DeploymentResource(Client, originalResponse.Value), originalResponse.GetRawResponse()); + var originalResponse = await _armDeploymentDeploymentsRestClient.GetAtScopeAsync(Id.Parent, Id.Name, cancellationToken).ConfigureAwait(false); + return Response.FromValue(new ArmDeploymentResource(Client, originalResponse.Value), originalResponse.GetRawResponse()); } catch (Exception e) { @@ -818,19 +818,19 @@ public virtual async Task> RemoveTagAsync(string ke /// The key for the tag. /// The cancellation token to use. /// is null. - public virtual Response RemoveTag(string key, CancellationToken cancellationToken = default) + public virtual Response RemoveTag(string key, CancellationToken cancellationToken = default) { Argument.AssertNotNull(key, nameof(key)); - using var scope = _deploymentClientDiagnostics.CreateScope("DeploymentResource.RemoveTag"); + using var scope = _armDeploymentDeploymentsClientDiagnostics.CreateScope("ArmDeploymentResource.RemoveTag"); scope.Start(); try { var originalTags = GetTagResource().Get(cancellationToken); originalTags.Value.Data.TagValues.Remove(key); GetTagResource().CreateOrUpdate(WaitUntil.Completed, originalTags.Value.Data, cancellationToken: cancellationToken); - var originalResponse = _deploymentRestClient.GetAtScope(Id.Parent, Id.Name, cancellationToken); - return Response.FromValue(new DeploymentResource(Client, originalResponse.Value), originalResponse.GetRawResponse()); + var originalResponse = _armDeploymentDeploymentsRestClient.GetAtScope(Id.Parent, Id.Name, cancellationToken); + return Response.FromValue(new ArmDeploymentResource(Client, originalResponse.Value), originalResponse.GetRawResponse()); } catch (Exception e) { diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/DeploymentScriptCollection.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/ArmDeploymentScriptCollection.cs similarity index 60% rename from sdk/resources/Azure.ResourceManager.Resources/src/Generated/DeploymentScriptCollection.cs rename to sdk/resources/Azure.ResourceManager.Resources/src/Generated/ArmDeploymentScriptCollection.cs index cdee9f9e53df0..3d89dc8c62351 100644 --- a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/DeploymentScriptCollection.cs +++ b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/ArmDeploymentScriptCollection.cs @@ -20,28 +20,28 @@ namespace Azure.ResourceManager.Resources { /// - /// A class representing a collection of and their operations. - /// Each in the collection will belong to the same instance of . - /// To get a instance call the GetDeploymentScripts method from an instance of . + /// A class representing a collection of and their operations. + /// Each in the collection will belong to the same instance of . + /// To get an instance call the GetArmDeploymentScripts method from an instance of . /// - public partial class DeploymentScriptCollection : ArmCollection, IEnumerable, IAsyncEnumerable + public partial class ArmDeploymentScriptCollection : ArmCollection, IEnumerable, IAsyncEnumerable { - private readonly ClientDiagnostics _deploymentScriptClientDiagnostics; - private readonly DeploymentScriptsRestOperations _deploymentScriptRestClient; + private readonly ClientDiagnostics _armDeploymentScriptDeploymentScriptsClientDiagnostics; + private readonly DeploymentScriptsRestOperations _armDeploymentScriptDeploymentScriptsRestClient; - /// Initializes a new instance of the class for mocking. - protected DeploymentScriptCollection() + /// Initializes a new instance of the class for mocking. + protected ArmDeploymentScriptCollection() { } - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// The client parameters to use in these operations. /// The identifier of the parent resource that is the target of operations. - internal DeploymentScriptCollection(ArmClient client, ResourceIdentifier id) : base(client, id) + internal ArmDeploymentScriptCollection(ArmClient client, ResourceIdentifier id) : base(client, id) { - _deploymentScriptClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.Resources", DeploymentScriptResource.ResourceType.Namespace, Diagnostics); - TryGetApiVersion(DeploymentScriptResource.ResourceType, out string deploymentScriptApiVersion); - _deploymentScriptRestClient = new DeploymentScriptsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, deploymentScriptApiVersion); + _armDeploymentScriptDeploymentScriptsClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.Resources", ArmDeploymentScriptResource.ResourceType.Namespace, Diagnostics); + TryGetApiVersion(ArmDeploymentScriptResource.ResourceType, out string armDeploymentScriptDeploymentScriptsApiVersion); + _armDeploymentScriptDeploymentScriptsRestClient = new DeploymentScriptsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, armDeploymentScriptDeploymentScriptsApiVersion); #if DEBUG ValidateResourceId(Id); #endif @@ -64,17 +64,17 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// or is null. - public virtual async Task> CreateOrUpdateAsync(WaitUntil waitUntil, string scriptName, DeploymentScriptData deploymentScript, CancellationToken cancellationToken = default) + public virtual async Task> CreateOrUpdateAsync(WaitUntil waitUntil, string scriptName, ArmDeploymentScriptData deploymentScript, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(scriptName, nameof(scriptName)); Argument.AssertNotNull(deploymentScript, nameof(deploymentScript)); - using var scope = _deploymentScriptClientDiagnostics.CreateScope("DeploymentScriptCollection.CreateOrUpdate"); + using var scope = _armDeploymentScriptDeploymentScriptsClientDiagnostics.CreateScope("ArmDeploymentScriptCollection.CreateOrUpdate"); scope.Start(); try { - var response = await _deploymentScriptRestClient.CreateAsync(Id.SubscriptionId, Id.ResourceGroupName, scriptName, deploymentScript, cancellationToken).ConfigureAwait(false); - var operation = new ResourcesArmOperation(new DeploymentScriptOperationSource(Client), _deploymentScriptClientDiagnostics, Pipeline, _deploymentScriptRestClient.CreateCreateRequest(Id.SubscriptionId, Id.ResourceGroupName, scriptName, deploymentScript).Request, response, OperationFinalStateVia.Location); + var response = await _armDeploymentScriptDeploymentScriptsRestClient.CreateAsync(Id.SubscriptionId, Id.ResourceGroupName, scriptName, deploymentScript, cancellationToken).ConfigureAwait(false); + var operation = new ResourcesArmOperation(new ArmDeploymentScriptOperationSource(Client), _armDeploymentScriptDeploymentScriptsClientDiagnostics, Pipeline, _armDeploymentScriptDeploymentScriptsRestClient.CreateCreateRequest(Id.SubscriptionId, Id.ResourceGroupName, scriptName, deploymentScript).Request, response, OperationFinalStateVia.Location); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -97,17 +97,17 @@ public virtual async Task> CreateOrUpdate /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// or is null. - public virtual ArmOperation CreateOrUpdate(WaitUntil waitUntil, string scriptName, DeploymentScriptData deploymentScript, CancellationToken cancellationToken = default) + public virtual ArmOperation CreateOrUpdate(WaitUntil waitUntil, string scriptName, ArmDeploymentScriptData deploymentScript, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(scriptName, nameof(scriptName)); Argument.AssertNotNull(deploymentScript, nameof(deploymentScript)); - using var scope = _deploymentScriptClientDiagnostics.CreateScope("DeploymentScriptCollection.CreateOrUpdate"); + using var scope = _armDeploymentScriptDeploymentScriptsClientDiagnostics.CreateScope("ArmDeploymentScriptCollection.CreateOrUpdate"); scope.Start(); try { - var response = _deploymentScriptRestClient.Create(Id.SubscriptionId, Id.ResourceGroupName, scriptName, deploymentScript, cancellationToken); - var operation = new ResourcesArmOperation(new DeploymentScriptOperationSource(Client), _deploymentScriptClientDiagnostics, Pipeline, _deploymentScriptRestClient.CreateCreateRequest(Id.SubscriptionId, Id.ResourceGroupName, scriptName, deploymentScript).Request, response, OperationFinalStateVia.Location); + var response = _armDeploymentScriptDeploymentScriptsRestClient.Create(Id.SubscriptionId, Id.ResourceGroupName, scriptName, deploymentScript, cancellationToken); + var operation = new ResourcesArmOperation(new ArmDeploymentScriptOperationSource(Client), _armDeploymentScriptDeploymentScriptsClientDiagnostics, Pipeline, _armDeploymentScriptDeploymentScriptsRestClient.CreateCreateRequest(Id.SubscriptionId, Id.ResourceGroupName, scriptName, deploymentScript).Request, response, OperationFinalStateVia.Location); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; @@ -128,18 +128,18 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil w /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. - public virtual async Task> GetAsync(string scriptName, CancellationToken cancellationToken = default) + public virtual async Task> GetAsync(string scriptName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(scriptName, nameof(scriptName)); - using var scope = _deploymentScriptClientDiagnostics.CreateScope("DeploymentScriptCollection.Get"); + using var scope = _armDeploymentScriptDeploymentScriptsClientDiagnostics.CreateScope("ArmDeploymentScriptCollection.Get"); scope.Start(); try { - var response = await _deploymentScriptRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, scriptName, cancellationToken).ConfigureAwait(false); + var response = await _armDeploymentScriptDeploymentScriptsRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, scriptName, cancellationToken).ConfigureAwait(false); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new DeploymentScriptResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(new ArmDeploymentScriptResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -157,18 +157,18 @@ public virtual async Task> GetAsync(string sc /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. - public virtual Response Get(string scriptName, CancellationToken cancellationToken = default) + public virtual Response Get(string scriptName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(scriptName, nameof(scriptName)); - using var scope = _deploymentScriptClientDiagnostics.CreateScope("DeploymentScriptCollection.Get"); + using var scope = _armDeploymentScriptDeploymentScriptsClientDiagnostics.CreateScope("ArmDeploymentScriptCollection.Get"); scope.Start(); try { - var response = _deploymentScriptRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, scriptName, cancellationToken); + var response = _armDeploymentScriptDeploymentScriptsRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, scriptName, cancellationToken); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new DeploymentScriptResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(new ArmDeploymentScriptResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -183,17 +183,17 @@ public virtual Response Get(string scriptName, Cancell /// Operation Id: DeploymentScripts_ListByResourceGroup /// /// The cancellation token to use. - /// An async collection of that may take multiple service requests to iterate over. - public virtual AsyncPageable GetAllAsync(CancellationToken cancellationToken = default) + /// An async collection of that may take multiple service requests to iterate over. + public virtual AsyncPageable GetAllAsync(CancellationToken cancellationToken = default) { - async Task> FirstPageFunc(int? pageSizeHint) + async Task> FirstPageFunc(int? pageSizeHint) { - using var scope = _deploymentScriptClientDiagnostics.CreateScope("DeploymentScriptCollection.GetAll"); + using var scope = _armDeploymentScriptDeploymentScriptsClientDiagnostics.CreateScope("ArmDeploymentScriptCollection.GetAll"); scope.Start(); try { - var response = await _deploymentScriptRestClient.ListByResourceGroupAsync(Id.SubscriptionId, Id.ResourceGroupName, cancellationToken: cancellationToken).ConfigureAwait(false); - return Page.FromValues(response.Value.Value.Select(value => new DeploymentScriptResource(Client, value)), response.Value.NextLink, response.GetRawResponse()); + var response = await _armDeploymentScriptDeploymentScriptsRestClient.ListByResourceGroupAsync(Id.SubscriptionId, Id.ResourceGroupName, cancellationToken: cancellationToken).ConfigureAwait(false); + return Page.FromValues(response.Value.Value.Select(value => new ArmDeploymentScriptResource(Client, value)), response.Value.NextLink, response.GetRawResponse()); } catch (Exception e) { @@ -201,14 +201,14 @@ async Task> FirstPageFunc(int? pageSizeHint) throw; } } - async Task> NextPageFunc(string nextLink, int? pageSizeHint) + async Task> NextPageFunc(string nextLink, int? pageSizeHint) { - using var scope = _deploymentScriptClientDiagnostics.CreateScope("DeploymentScriptCollection.GetAll"); + using var scope = _armDeploymentScriptDeploymentScriptsClientDiagnostics.CreateScope("ArmDeploymentScriptCollection.GetAll"); scope.Start(); try { - var response = await _deploymentScriptRestClient.ListByResourceGroupNextPageAsync(nextLink, Id.SubscriptionId, Id.ResourceGroupName, cancellationToken: cancellationToken).ConfigureAwait(false); - return Page.FromValues(response.Value.Value.Select(value => new DeploymentScriptResource(Client, value)), response.Value.NextLink, response.GetRawResponse()); + var response = await _armDeploymentScriptDeploymentScriptsRestClient.ListByResourceGroupNextPageAsync(nextLink, Id.SubscriptionId, Id.ResourceGroupName, cancellationToken: cancellationToken).ConfigureAwait(false); + return Page.FromValues(response.Value.Value.Select(value => new ArmDeploymentScriptResource(Client, value)), response.Value.NextLink, response.GetRawResponse()); } catch (Exception e) { @@ -225,17 +225,17 @@ async Task> NextPageFunc(string nextLink, int? pa /// Operation Id: DeploymentScripts_ListByResourceGroup /// /// The cancellation token to use. - /// A collection of that may take multiple service requests to iterate over. - public virtual Pageable GetAll(CancellationToken cancellationToken = default) + /// A collection of that may take multiple service requests to iterate over. + public virtual Pageable GetAll(CancellationToken cancellationToken = default) { - Page FirstPageFunc(int? pageSizeHint) + Page FirstPageFunc(int? pageSizeHint) { - using var scope = _deploymentScriptClientDiagnostics.CreateScope("DeploymentScriptCollection.GetAll"); + using var scope = _armDeploymentScriptDeploymentScriptsClientDiagnostics.CreateScope("ArmDeploymentScriptCollection.GetAll"); scope.Start(); try { - var response = _deploymentScriptRestClient.ListByResourceGroup(Id.SubscriptionId, Id.ResourceGroupName, cancellationToken: cancellationToken); - return Page.FromValues(response.Value.Value.Select(value => new DeploymentScriptResource(Client, value)), response.Value.NextLink, response.GetRawResponse()); + var response = _armDeploymentScriptDeploymentScriptsRestClient.ListByResourceGroup(Id.SubscriptionId, Id.ResourceGroupName, cancellationToken: cancellationToken); + return Page.FromValues(response.Value.Value.Select(value => new ArmDeploymentScriptResource(Client, value)), response.Value.NextLink, response.GetRawResponse()); } catch (Exception e) { @@ -243,14 +243,14 @@ Page FirstPageFunc(int? pageSizeHint) throw; } } - Page NextPageFunc(string nextLink, int? pageSizeHint) + Page NextPageFunc(string nextLink, int? pageSizeHint) { - using var scope = _deploymentScriptClientDiagnostics.CreateScope("DeploymentScriptCollection.GetAll"); + using var scope = _armDeploymentScriptDeploymentScriptsClientDiagnostics.CreateScope("ArmDeploymentScriptCollection.GetAll"); scope.Start(); try { - var response = _deploymentScriptRestClient.ListByResourceGroupNextPage(nextLink, Id.SubscriptionId, Id.ResourceGroupName, cancellationToken: cancellationToken); - return Page.FromValues(response.Value.Value.Select(value => new DeploymentScriptResource(Client, value)), response.Value.NextLink, response.GetRawResponse()); + var response = _armDeploymentScriptDeploymentScriptsRestClient.ListByResourceGroupNextPage(nextLink, Id.SubscriptionId, Id.ResourceGroupName, cancellationToken: cancellationToken); + return Page.FromValues(response.Value.Value.Select(value => new ArmDeploymentScriptResource(Client, value)), response.Value.NextLink, response.GetRawResponse()); } catch (Exception e) { @@ -274,7 +274,7 @@ public virtual async Task> ExistsAsync(string scriptName, Cancell { Argument.AssertNotNullOrEmpty(scriptName, nameof(scriptName)); - using var scope = _deploymentScriptClientDiagnostics.CreateScope("DeploymentScriptCollection.Exists"); + using var scope = _armDeploymentScriptDeploymentScriptsClientDiagnostics.CreateScope("ArmDeploymentScriptCollection.Exists"); scope.Start(); try { @@ -301,7 +301,7 @@ public virtual Response Exists(string scriptName, CancellationToken cancel { Argument.AssertNotNullOrEmpty(scriptName, nameof(scriptName)); - using var scope = _deploymentScriptClientDiagnostics.CreateScope("DeploymentScriptCollection.Exists"); + using var scope = _armDeploymentScriptDeploymentScriptsClientDiagnostics.CreateScope("ArmDeploymentScriptCollection.Exists"); scope.Start(); try { @@ -324,18 +324,18 @@ public virtual Response Exists(string scriptName, CancellationToken cancel /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. - public virtual async Task> GetIfExistsAsync(string scriptName, CancellationToken cancellationToken = default) + public virtual async Task> GetIfExistsAsync(string scriptName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(scriptName, nameof(scriptName)); - using var scope = _deploymentScriptClientDiagnostics.CreateScope("DeploymentScriptCollection.GetIfExists"); + using var scope = _armDeploymentScriptDeploymentScriptsClientDiagnostics.CreateScope("ArmDeploymentScriptCollection.GetIfExists"); scope.Start(); try { - var response = await _deploymentScriptRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, scriptName, cancellationToken: cancellationToken).ConfigureAwait(false); + var response = await _armDeploymentScriptDeploymentScriptsRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, scriptName, cancellationToken: cancellationToken).ConfigureAwait(false); if (response.Value == null) - return Response.FromValue(null, response.GetRawResponse()); - return Response.FromValue(new DeploymentScriptResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(null, response.GetRawResponse()); + return Response.FromValue(new ArmDeploymentScriptResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -353,18 +353,18 @@ public virtual async Task> GetIfExistsAsync(s /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. - public virtual Response GetIfExists(string scriptName, CancellationToken cancellationToken = default) + public virtual Response GetIfExists(string scriptName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(scriptName, nameof(scriptName)); - using var scope = _deploymentScriptClientDiagnostics.CreateScope("DeploymentScriptCollection.GetIfExists"); + using var scope = _armDeploymentScriptDeploymentScriptsClientDiagnostics.CreateScope("ArmDeploymentScriptCollection.GetIfExists"); scope.Start(); try { - var response = _deploymentScriptRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, scriptName, cancellationToken: cancellationToken); + var response = _armDeploymentScriptDeploymentScriptsRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, scriptName, cancellationToken: cancellationToken); if (response.Value == null) - return Response.FromValue(null, response.GetRawResponse()); - return Response.FromValue(new DeploymentScriptResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(null, response.GetRawResponse()); + return Response.FromValue(new ArmDeploymentScriptResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -373,7 +373,7 @@ public virtual Response GetIfExists(string scriptName, } } - IEnumerator IEnumerable.GetEnumerator() + IEnumerator IEnumerable.GetEnumerator() { return GetAll().GetEnumerator(); } @@ -383,7 +383,7 @@ IEnumerator IEnumerable.GetEnumerator() return GetAll().GetEnumerator(); } - IAsyncEnumerator IAsyncEnumerable.GetAsyncEnumerator(CancellationToken cancellationToken) + IAsyncEnumerator IAsyncEnumerable.GetAsyncEnumerator(CancellationToken cancellationToken) { return GetAllAsync(cancellationToken: cancellationToken).GetAsyncEnumerator(cancellationToken); } diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/DeploymentScriptData.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/ArmDeploymentScriptData.cs similarity index 74% rename from sdk/resources/Azure.ResourceManager.Resources/src/Generated/DeploymentScriptData.cs rename to sdk/resources/Azure.ResourceManager.Resources/src/Generated/ArmDeploymentScriptData.cs index cedeff9ef6068..b0f262ff6131f 100644 --- a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/DeploymentScriptData.cs +++ b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/ArmDeploymentScriptData.cs @@ -13,13 +13,13 @@ namespace Azure.ResourceManager.Resources { - /// A class representing the DeploymentScript data model. - public partial class DeploymentScriptData : ResourceData + /// A class representing the ArmDeploymentScript data model. + public partial class ArmDeploymentScriptData : ResourceData { - /// Initializes a new instance of DeploymentScriptData. + /// Initializes a new instance of ArmDeploymentScriptData. /// The location of the ACI and the storage account for the deployment script. /// is null. - public DeploymentScriptData(string location) + public ArmDeploymentScriptData(string location) { if (location == null) { @@ -30,7 +30,7 @@ public DeploymentScriptData(string location) Tags = new ChangeTrackingDictionary(); } - /// Initializes a new instance of DeploymentScriptData. + /// Initializes a new instance of ArmDeploymentScriptData. /// The id. /// The name. /// The resourceType. @@ -39,7 +39,7 @@ public DeploymentScriptData(string location) /// The location of the ACI and the storage account for the deployment script. /// Resource tags. /// Type of the script. - internal DeploymentScriptData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, DeploymentScriptManagedIdentity identity, string location, IDictionary tags, ScriptType kind) : base(id, name, resourceType, systemData) + internal ArmDeploymentScriptData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, ArmDeploymentScriptManagedIdentity identity, string location, IDictionary tags, ScriptType kind) : base(id, name, resourceType, systemData) { Identity = identity; Location = location; @@ -48,7 +48,7 @@ internal DeploymentScriptData(ResourceIdentifier id, string name, ResourceType r } /// Optional property. Managed identity to be used for this deployment script. Currently, only user-assigned MSI is supported. - public DeploymentScriptManagedIdentity Identity { get; set; } + public ArmDeploymentScriptManagedIdentity Identity { get; set; } /// The location of the ACI and the storage account for the deployment script. public string Location { get; set; } /// Resource tags. diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/DeploymentScriptResource.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/ArmDeploymentScriptResource.cs similarity index 71% rename from sdk/resources/Azure.ResourceManager.Resources/src/Generated/DeploymentScriptResource.cs rename to sdk/resources/Azure.ResourceManager.Resources/src/Generated/ArmDeploymentScriptResource.cs index 9d2e9c4b9d73c..1b4063e48e7b4 100644 --- a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/DeploymentScriptResource.cs +++ b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/ArmDeploymentScriptResource.cs @@ -20,48 +20,48 @@ namespace Azure.ResourceManager.Resources { /// - /// A Class representing a DeploymentScript along with the instance operations that can be performed on it. - /// If you have a you can construct a - /// from an instance of using the GetDeploymentScriptResource method. - /// Otherwise you can get one from its parent resource using the GetDeploymentScript method. + /// A Class representing an ArmDeploymentScript along with the instance operations that can be performed on it. + /// If you have a you can construct an + /// from an instance of using the GetArmDeploymentScriptResource method. + /// Otherwise you can get one from its parent resource using the GetArmDeploymentScript method. /// - public partial class DeploymentScriptResource : ArmResource + public partial class ArmDeploymentScriptResource : ArmResource { - /// Generate the resource identifier of a instance. + /// Generate the resource identifier of a instance. public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string scriptName) { var resourceId = $"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Resources/deploymentScripts/{scriptName}"; return new ResourceIdentifier(resourceId); } - private readonly ClientDiagnostics _deploymentScriptClientDiagnostics; - private readonly DeploymentScriptsRestOperations _deploymentScriptRestClient; + private readonly ClientDiagnostics _armDeploymentScriptDeploymentScriptsClientDiagnostics; + private readonly DeploymentScriptsRestOperations _armDeploymentScriptDeploymentScriptsRestClient; private readonly ClientDiagnostics _scriptLogDeploymentScriptsClientDiagnostics; private readonly DeploymentScriptsRestOperations _scriptLogDeploymentScriptsRestClient; - private readonly DeploymentScriptData _data; + private readonly ArmDeploymentScriptData _data; - /// Initializes a new instance of the class for mocking. - protected DeploymentScriptResource() + /// Initializes a new instance of the class for mocking. + protected ArmDeploymentScriptResource() { } - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// The client parameters to use in these operations. /// The resource that is the target of operations. - internal DeploymentScriptResource(ArmClient client, DeploymentScriptData data) : this(client, data.Id) + internal ArmDeploymentScriptResource(ArmClient client, ArmDeploymentScriptData data) : this(client, data.Id) { HasData = true; _data = data; } - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// The client parameters to use in these operations. /// The identifier of the resource that is the target of operations. - internal DeploymentScriptResource(ArmClient client, ResourceIdentifier id) : base(client, id) + internal ArmDeploymentScriptResource(ArmClient client, ResourceIdentifier id) : base(client, id) { - _deploymentScriptClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.Resources", ResourceType.Namespace, Diagnostics); - TryGetApiVersion(ResourceType, out string deploymentScriptApiVersion); - _deploymentScriptRestClient = new DeploymentScriptsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, deploymentScriptApiVersion); + _armDeploymentScriptDeploymentScriptsClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.Resources", ResourceType.Namespace, Diagnostics); + TryGetApiVersion(ResourceType, out string armDeploymentScriptDeploymentScriptsApiVersion); + _armDeploymentScriptDeploymentScriptsRestClient = new DeploymentScriptsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, armDeploymentScriptDeploymentScriptsApiVersion); _scriptLogDeploymentScriptsClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.Resources", ScriptLogResource.ResourceType.Namespace, Diagnostics); TryGetApiVersion(ScriptLogResource.ResourceType, out string scriptLogDeploymentScriptsApiVersion); _scriptLogDeploymentScriptsRestClient = new DeploymentScriptsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, scriptLogDeploymentScriptsApiVersion); @@ -78,7 +78,7 @@ internal DeploymentScriptResource(ArmClient client, ResourceIdentifier id) : bas /// Gets the data representing this Feature. /// Throws if there is no data loaded in the current instance. - public virtual DeploymentScriptData Data + public virtual ArmDeploymentScriptData Data { get { @@ -94,7 +94,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, ResourceType), nameof(id)); } - /// Gets an object representing a ScriptLogResource along with the instance operations that can be performed on it in the DeploymentScript. + /// Gets an object representing a ScriptLogResource along with the instance operations that can be performed on it in the ArmDeploymentScript. /// Returns a object. public virtual ScriptLogResource GetScriptLog() { @@ -107,16 +107,16 @@ public virtual ScriptLogResource GetScriptLog() /// Operation Id: DeploymentScripts_Get /// /// The cancellation token to use. - public virtual async Task> GetAsync(CancellationToken cancellationToken = default) + public virtual async Task> GetAsync(CancellationToken cancellationToken = default) { - using var scope = _deploymentScriptClientDiagnostics.CreateScope("DeploymentScriptResource.Get"); + using var scope = _armDeploymentScriptDeploymentScriptsClientDiagnostics.CreateScope("ArmDeploymentScriptResource.Get"); scope.Start(); try { - var response = await _deploymentScriptRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken).ConfigureAwait(false); + var response = await _armDeploymentScriptDeploymentScriptsRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken).ConfigureAwait(false); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new DeploymentScriptResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(new ArmDeploymentScriptResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -131,16 +131,16 @@ public virtual async Task> GetAsync(Cancellat /// Operation Id: DeploymentScripts_Get /// /// The cancellation token to use. - public virtual Response Get(CancellationToken cancellationToken = default) + public virtual Response Get(CancellationToken cancellationToken = default) { - using var scope = _deploymentScriptClientDiagnostics.CreateScope("DeploymentScriptResource.Get"); + using var scope = _armDeploymentScriptDeploymentScriptsClientDiagnostics.CreateScope("ArmDeploymentScriptResource.Get"); scope.Start(); try { - var response = _deploymentScriptRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken); + var response = _armDeploymentScriptDeploymentScriptsRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new DeploymentScriptResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(new ArmDeploymentScriptResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -158,11 +158,11 @@ public virtual Response Get(CancellationToken cancella /// The cancellation token to use. public virtual async Task DeleteAsync(WaitUntil waitUntil, CancellationToken cancellationToken = default) { - using var scope = _deploymentScriptClientDiagnostics.CreateScope("DeploymentScriptResource.Delete"); + using var scope = _armDeploymentScriptDeploymentScriptsClientDiagnostics.CreateScope("ArmDeploymentScriptResource.Delete"); scope.Start(); try { - var response = await _deploymentScriptRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken).ConfigureAwait(false); + var response = await _armDeploymentScriptDeploymentScriptsRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken).ConfigureAwait(false); var operation = new ResourcesArmOperation(response); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); @@ -184,11 +184,11 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// The cancellation token to use. public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancellationToken = default) { - using var scope = _deploymentScriptClientDiagnostics.CreateScope("DeploymentScriptResource.Delete"); + using var scope = _armDeploymentScriptDeploymentScriptsClientDiagnostics.CreateScope("ArmDeploymentScriptResource.Delete"); scope.Start(); try { - var response = _deploymentScriptRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken); + var response = _armDeploymentScriptDeploymentScriptsRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken); var operation = new ResourcesArmOperation(response); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); @@ -209,16 +209,16 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// Deployment script resource with the tags to be updated. /// The cancellation token to use. /// is null. - public virtual async Task> UpdateAsync(PatchableDeploymentScriptData data, CancellationToken cancellationToken = default) + public virtual async Task> UpdateAsync(PatchableArmDeploymentScriptData data, CancellationToken cancellationToken = default) { Argument.AssertNotNull(data, nameof(data)); - using var scope = _deploymentScriptClientDiagnostics.CreateScope("DeploymentScriptResource.Update"); + using var scope = _armDeploymentScriptDeploymentScriptsClientDiagnostics.CreateScope("ArmDeploymentScriptResource.Update"); scope.Start(); try { - var response = await _deploymentScriptRestClient.UpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, data, cancellationToken).ConfigureAwait(false); - return Response.FromValue(new DeploymentScriptResource(Client, response.Value), response.GetRawResponse()); + var response = await _armDeploymentScriptDeploymentScriptsRestClient.UpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, data, cancellationToken).ConfigureAwait(false); + return Response.FromValue(new ArmDeploymentScriptResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -235,16 +235,16 @@ public virtual async Task> UpdateAsync(Patcha /// Deployment script resource with the tags to be updated. /// The cancellation token to use. /// is null. - public virtual Response Update(PatchableDeploymentScriptData data, CancellationToken cancellationToken = default) + public virtual Response Update(PatchableArmDeploymentScriptData data, CancellationToken cancellationToken = default) { Argument.AssertNotNull(data, nameof(data)); - using var scope = _deploymentScriptClientDiagnostics.CreateScope("DeploymentScriptResource.Update"); + using var scope = _armDeploymentScriptDeploymentScriptsClientDiagnostics.CreateScope("ArmDeploymentScriptResource.Update"); scope.Start(); try { - var response = _deploymentScriptRestClient.Update(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, data, cancellationToken); - return Response.FromValue(new DeploymentScriptResource(Client, response.Value), response.GetRawResponse()); + var response = _armDeploymentScriptDeploymentScriptsRestClient.Update(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, data, cancellationToken); + return Response.FromValue(new ArmDeploymentScriptResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -264,7 +264,7 @@ public virtual AsyncPageable GetLogsAsync(CancellationToken c { async Task> FirstPageFunc(int? pageSizeHint) { - using var scope = _scriptLogDeploymentScriptsClientDiagnostics.CreateScope("DeploymentScriptResource.GetLogs"); + using var scope = _scriptLogDeploymentScriptsClientDiagnostics.CreateScope("ArmDeploymentScriptResource.GetLogs"); scope.Start(); try { @@ -291,7 +291,7 @@ public virtual Pageable GetLogs(CancellationToken cancellatio { Page FirstPageFunc(int? pageSizeHint) { - using var scope = _scriptLogDeploymentScriptsClientDiagnostics.CreateScope("DeploymentScriptResource.GetLogs"); + using var scope = _scriptLogDeploymentScriptsClientDiagnostics.CreateScope("ArmDeploymentScriptResource.GetLogs"); scope.Start(); try { @@ -316,20 +316,20 @@ Page FirstPageFunc(int? pageSizeHint) /// The value for the tag. /// The cancellation token to use. /// or is null. - public virtual async Task> AddTagAsync(string key, string value, CancellationToken cancellationToken = default) + public virtual async Task> AddTagAsync(string key, string value, CancellationToken cancellationToken = default) { Argument.AssertNotNull(key, nameof(key)); Argument.AssertNotNull(value, nameof(value)); - using var scope = _deploymentScriptClientDiagnostics.CreateScope("DeploymentScriptResource.AddTag"); + using var scope = _armDeploymentScriptDeploymentScriptsClientDiagnostics.CreateScope("ArmDeploymentScriptResource.AddTag"); scope.Start(); try { var originalTags = await GetTagResource().GetAsync(cancellationToken).ConfigureAwait(false); originalTags.Value.Data.TagValues[key] = value; await GetTagResource().CreateOrUpdateAsync(WaitUntil.Completed, originalTags.Value.Data, cancellationToken: cancellationToken).ConfigureAwait(false); - var originalResponse = await _deploymentScriptRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken).ConfigureAwait(false); - return Response.FromValue(new DeploymentScriptResource(Client, originalResponse.Value), originalResponse.GetRawResponse()); + var originalResponse = await _armDeploymentScriptDeploymentScriptsRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken).ConfigureAwait(false); + return Response.FromValue(new ArmDeploymentScriptResource(Client, originalResponse.Value), originalResponse.GetRawResponse()); } catch (Exception e) { @@ -347,20 +347,20 @@ public virtual async Task> AddTagAsync(string /// The value for the tag. /// The cancellation token to use. /// or is null. - public virtual Response AddTag(string key, string value, CancellationToken cancellationToken = default) + public virtual Response AddTag(string key, string value, CancellationToken cancellationToken = default) { Argument.AssertNotNull(key, nameof(key)); Argument.AssertNotNull(value, nameof(value)); - using var scope = _deploymentScriptClientDiagnostics.CreateScope("DeploymentScriptResource.AddTag"); + using var scope = _armDeploymentScriptDeploymentScriptsClientDiagnostics.CreateScope("ArmDeploymentScriptResource.AddTag"); scope.Start(); try { var originalTags = GetTagResource().Get(cancellationToken); originalTags.Value.Data.TagValues[key] = value; GetTagResource().CreateOrUpdate(WaitUntil.Completed, originalTags.Value.Data, cancellationToken: cancellationToken); - var originalResponse = _deploymentScriptRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken); - return Response.FromValue(new DeploymentScriptResource(Client, originalResponse.Value), originalResponse.GetRawResponse()); + var originalResponse = _armDeploymentScriptDeploymentScriptsRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken); + return Response.FromValue(new ArmDeploymentScriptResource(Client, originalResponse.Value), originalResponse.GetRawResponse()); } catch (Exception e) { @@ -377,11 +377,11 @@ public virtual Response AddTag(string key, string valu /// The set of tags to use as replacement. /// The cancellation token to use. /// is null. - public virtual async Task> SetTagsAsync(IDictionary tags, CancellationToken cancellationToken = default) + public virtual async Task> SetTagsAsync(IDictionary tags, CancellationToken cancellationToken = default) { Argument.AssertNotNull(tags, nameof(tags)); - using var scope = _deploymentScriptClientDiagnostics.CreateScope("DeploymentScriptResource.SetTags"); + using var scope = _armDeploymentScriptDeploymentScriptsClientDiagnostics.CreateScope("ArmDeploymentScriptResource.SetTags"); scope.Start(); try { @@ -389,8 +389,8 @@ public virtual async Task> SetTagsAsync(IDict var originalTags = await GetTagResource().GetAsync(cancellationToken).ConfigureAwait(false); originalTags.Value.Data.TagValues.ReplaceWith(tags); await GetTagResource().CreateOrUpdateAsync(WaitUntil.Completed, originalTags.Value.Data, cancellationToken: cancellationToken).ConfigureAwait(false); - var originalResponse = await _deploymentScriptRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken).ConfigureAwait(false); - return Response.FromValue(new DeploymentScriptResource(Client, originalResponse.Value), originalResponse.GetRawResponse()); + var originalResponse = await _armDeploymentScriptDeploymentScriptsRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken).ConfigureAwait(false); + return Response.FromValue(new ArmDeploymentScriptResource(Client, originalResponse.Value), originalResponse.GetRawResponse()); } catch (Exception e) { @@ -407,11 +407,11 @@ public virtual async Task> SetTagsAsync(IDict /// The set of tags to use as replacement. /// The cancellation token to use. /// is null. - public virtual Response SetTags(IDictionary tags, CancellationToken cancellationToken = default) + public virtual Response SetTags(IDictionary tags, CancellationToken cancellationToken = default) { Argument.AssertNotNull(tags, nameof(tags)); - using var scope = _deploymentScriptClientDiagnostics.CreateScope("DeploymentScriptResource.SetTags"); + using var scope = _armDeploymentScriptDeploymentScriptsClientDiagnostics.CreateScope("ArmDeploymentScriptResource.SetTags"); scope.Start(); try { @@ -419,8 +419,8 @@ public virtual Response SetTags(IDictionary SetTags(IDictionary The key for the tag. /// The cancellation token to use. /// is null. - public virtual async Task> RemoveTagAsync(string key, CancellationToken cancellationToken = default) + public virtual async Task> RemoveTagAsync(string key, CancellationToken cancellationToken = default) { Argument.AssertNotNull(key, nameof(key)); - using var scope = _deploymentScriptClientDiagnostics.CreateScope("DeploymentScriptResource.RemoveTag"); + using var scope = _armDeploymentScriptDeploymentScriptsClientDiagnostics.CreateScope("ArmDeploymentScriptResource.RemoveTag"); scope.Start(); try { var originalTags = await GetTagResource().GetAsync(cancellationToken).ConfigureAwait(false); originalTags.Value.Data.TagValues.Remove(key); await GetTagResource().CreateOrUpdateAsync(WaitUntil.Completed, originalTags.Value.Data, cancellationToken: cancellationToken).ConfigureAwait(false); - var originalResponse = await _deploymentScriptRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken).ConfigureAwait(false); - return Response.FromValue(new DeploymentScriptResource(Client, originalResponse.Value), originalResponse.GetRawResponse()); + var originalResponse = await _armDeploymentScriptDeploymentScriptsRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken).ConfigureAwait(false); + return Response.FromValue(new ArmDeploymentScriptResource(Client, originalResponse.Value), originalResponse.GetRawResponse()); } catch (Exception e) { @@ -466,19 +466,19 @@ public virtual async Task> RemoveTagAsync(str /// The key for the tag. /// The cancellation token to use. /// is null. - public virtual Response RemoveTag(string key, CancellationToken cancellationToken = default) + public virtual Response RemoveTag(string key, CancellationToken cancellationToken = default) { Argument.AssertNotNull(key, nameof(key)); - using var scope = _deploymentScriptClientDiagnostics.CreateScope("DeploymentScriptResource.RemoveTag"); + using var scope = _armDeploymentScriptDeploymentScriptsClientDiagnostics.CreateScope("ArmDeploymentScriptResource.RemoveTag"); scope.Start(); try { var originalTags = GetTagResource().Get(cancellationToken); originalTags.Value.Data.TagValues.Remove(key); GetTagResource().CreateOrUpdate(WaitUntil.Completed, originalTags.Value.Data, cancellationToken: cancellationToken); - var originalResponse = _deploymentScriptRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken); - return Response.FromValue(new DeploymentScriptResource(Client, originalResponse.Value), originalResponse.GetRawResponse()); + var originalResponse = _armDeploymentScriptDeploymentScriptsRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken); + return Response.FromValue(new ArmDeploymentScriptResource(Client, originalResponse.Value), originalResponse.GetRawResponse()); } catch (Exception e) { diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Extensions/ManagementGroupResourceExtensionClient.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Extensions/ManagementGroupResourceExtensionClient.cs index 0a92b77dfca71..cd14dcc67e1f1 100644 --- a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Extensions/ManagementGroupResourceExtensionClient.cs +++ b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Extensions/ManagementGroupResourceExtensionClient.cs @@ -31,11 +31,11 @@ private string GetApiVersionOrNull(ResourceType resourceType) return apiVersion; } - /// Gets a collection of DeploymentResources in the ManagementGroupResource. - /// An object representing collection of DeploymentResources and their operations over a DeploymentResource. - public virtual DeploymentCollection GetDeployments() + /// Gets a collection of ArmDeploymentResources in the ManagementGroupResource. + /// An object representing collection of ArmDeploymentResources and their operations over a ArmDeploymentResource. + public virtual ArmDeploymentCollection GetArmDeployments() { - return GetCachedClient(Client => new DeploymentCollection(Client, Id)); + return GetCachedClient(Client => new ArmDeploymentCollection(Client, Id)); } } } diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Extensions/ResourceGroupResourceExtensionClient.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Extensions/ResourceGroupResourceExtensionClient.cs index c0bd9e01691bd..f4e37c1641960 100644 --- a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Extensions/ResourceGroupResourceExtensionClient.cs +++ b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Extensions/ResourceGroupResourceExtensionClient.cs @@ -31,25 +31,25 @@ private string GetApiVersionOrNull(ResourceType resourceType) return apiVersion; } - /// Gets a collection of DeploymentResources in the ResourceGroupResource. - /// An object representing collection of DeploymentResources and their operations over a DeploymentResource. - public virtual DeploymentCollection GetDeployments() + /// Gets a collection of ArmDeploymentResources in the ResourceGroupResource. + /// An object representing collection of ArmDeploymentResources and their operations over a ArmDeploymentResource. + public virtual ArmDeploymentCollection GetArmDeployments() { - return GetCachedClient(Client => new DeploymentCollection(Client, Id)); + return GetCachedClient(Client => new ArmDeploymentCollection(Client, Id)); } - /// Gets a collection of ApplicationResources in the ResourceGroupResource. - /// An object representing collection of ApplicationResources and their operations over a ApplicationResource. - public virtual ApplicationCollection GetApplications() + /// Gets a collection of ArmApplicationResources in the ResourceGroupResource. + /// An object representing collection of ArmApplicationResources and their operations over a ArmApplicationResource. + public virtual ArmApplicationCollection GetArmApplications() { - return GetCachedClient(Client => new ApplicationCollection(Client, Id)); + return GetCachedClient(Client => new ArmApplicationCollection(Client, Id)); } - /// Gets a collection of ApplicationDefinitionResources in the ResourceGroupResource. - /// An object representing collection of ApplicationDefinitionResources and their operations over a ApplicationDefinitionResource. - public virtual ApplicationDefinitionCollection GetApplicationDefinitions() + /// Gets a collection of ArmApplicationDefinitionResources in the ResourceGroupResource. + /// An object representing collection of ArmApplicationDefinitionResources and their operations over a ArmApplicationDefinitionResource. + public virtual ArmApplicationDefinitionCollection GetArmApplicationDefinitions() { - return GetCachedClient(Client => new ApplicationDefinitionCollection(Client, Id)); + return GetCachedClient(Client => new ArmApplicationDefinitionCollection(Client, Id)); } /// Gets a collection of JitRequestResources in the ResourceGroupResource. @@ -59,11 +59,11 @@ public virtual JitRequestCollection GetJitRequests() return GetCachedClient(Client => new JitRequestCollection(Client, Id)); } - /// Gets a collection of DeploymentScriptResources in the ResourceGroupResource. - /// An object representing collection of DeploymentScriptResources and their operations over a DeploymentScriptResource. - public virtual DeploymentScriptCollection GetDeploymentScripts() + /// Gets a collection of ArmDeploymentScriptResources in the ResourceGroupResource. + /// An object representing collection of ArmDeploymentScriptResources and their operations over a ArmDeploymentScriptResource. + public virtual ArmDeploymentScriptCollection GetArmDeploymentScripts() { - return GetCachedClient(Client => new DeploymentScriptCollection(Client, Id)); + return GetCachedClient(Client => new ArmDeploymentScriptCollection(Client, Id)); } /// Gets a collection of TemplateSpecResources in the ResourceGroupResource. diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Extensions/ResourcesExtensions.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Extensions/ResourcesExtensions.cs index bb7fc93581325..2eed81bc7cc24 100644 --- a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Extensions/ResourcesExtensions.cs +++ b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Extensions/ResourcesExtensions.cs @@ -28,12 +28,12 @@ private static TenantResourceExtensionClient GetExtensionClient(TenantResource t ); } - /// Gets a collection of DeploymentResources in the TenantResource. + /// Gets a collection of ArmDeploymentResources in the TenantResource. /// The instance the method will execute against. - /// An object representing collection of DeploymentResources and their operations over a DeploymentResource. - public static DeploymentCollection GetDeployments(this TenantResource tenantResource) + /// An object representing collection of ArmDeploymentResources and their operations over a ArmDeploymentResource. + public static ArmDeploymentCollection GetArmDeployments(this TenantResource tenantResource) { - return GetExtensionClient(tenantResource).GetDeployments(); + return GetExtensionClient(tenantResource).GetArmDeployments(); } /// @@ -46,9 +46,9 @@ public static DeploymentCollection GetDeployments(this TenantResource tenantReso /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. - public static async Task> GetDeploymentAsync(this TenantResource tenantResource, string deploymentName, CancellationToken cancellationToken = default) + public static async Task> GetArmDeploymentAsync(this TenantResource tenantResource, string deploymentName, CancellationToken cancellationToken = default) { - return await tenantResource.GetDeployments().GetAsync(deploymentName, cancellationToken).ConfigureAwait(false); + return await tenantResource.GetArmDeployments().GetAsync(deploymentName, cancellationToken).ConfigureAwait(false); } /// @@ -61,9 +61,9 @@ public static async Task> GetDeploymentAsync(this T /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. - public static Response GetDeployment(this TenantResource tenantResource, string deploymentName, CancellationToken cancellationToken = default) + public static Response GetArmDeployment(this TenantResource tenantResource, string deploymentName, CancellationToken cancellationToken = default) { - return tenantResource.GetDeployments().Get(deploymentName, cancellationToken); + return tenantResource.GetArmDeployments().Get(deploymentName, cancellationToken); } /// @@ -107,12 +107,12 @@ private static SubscriptionResourceExtensionClient GetExtensionClient(Subscripti ); } - /// Gets a collection of DeploymentResources in the SubscriptionResource. + /// Gets a collection of ArmDeploymentResources in the SubscriptionResource. /// The instance the method will execute against. - /// An object representing collection of DeploymentResources and their operations over a DeploymentResource. - public static DeploymentCollection GetDeployments(this SubscriptionResource subscriptionResource) + /// An object representing collection of ArmDeploymentResources and their operations over a ArmDeploymentResource. + public static ArmDeploymentCollection GetArmDeployments(this SubscriptionResource subscriptionResource) { - return GetExtensionClient(subscriptionResource).GetDeployments(); + return GetExtensionClient(subscriptionResource).GetArmDeployments(); } /// @@ -125,9 +125,9 @@ public static DeploymentCollection GetDeployments(this SubscriptionResource subs /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. - public static async Task> GetDeploymentAsync(this SubscriptionResource subscriptionResource, string deploymentName, CancellationToken cancellationToken = default) + public static async Task> GetArmDeploymentAsync(this SubscriptionResource subscriptionResource, string deploymentName, CancellationToken cancellationToken = default) { - return await subscriptionResource.GetDeployments().GetAsync(deploymentName, cancellationToken).ConfigureAwait(false); + return await subscriptionResource.GetArmDeployments().GetAsync(deploymentName, cancellationToken).ConfigureAwait(false); } /// @@ -140,9 +140,9 @@ public static async Task> GetDeploymentAsync(this S /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. - public static Response GetDeployment(this SubscriptionResource subscriptionResource, string deploymentName, CancellationToken cancellationToken = default) + public static Response GetArmDeployment(this SubscriptionResource subscriptionResource, string deploymentName, CancellationToken cancellationToken = default) { - return subscriptionResource.GetDeployments().Get(deploymentName, cancellationToken); + return subscriptionResource.GetArmDeployments().Get(deploymentName, cancellationToken); } /// @@ -152,10 +152,10 @@ public static Response GetDeployment(this SubscriptionResour /// /// The instance the method will execute against. /// The cancellation token to use. - /// An async collection of that may take multiple service requests to iterate over. - public static AsyncPageable GetApplicationsAsync(this SubscriptionResource subscriptionResource, CancellationToken cancellationToken = default) + /// An async collection of that may take multiple service requests to iterate over. + public static AsyncPageable GetArmApplicationsAsync(this SubscriptionResource subscriptionResource, CancellationToken cancellationToken = default) { - return GetExtensionClient(subscriptionResource).GetApplicationsAsync(cancellationToken); + return GetExtensionClient(subscriptionResource).GetArmApplicationsAsync(cancellationToken); } /// @@ -165,10 +165,10 @@ public static AsyncPageable GetApplicationsAsync(this Subsc /// /// The instance the method will execute against. /// The cancellation token to use. - /// A collection of that may take multiple service requests to iterate over. - public static Pageable GetApplications(this SubscriptionResource subscriptionResource, CancellationToken cancellationToken = default) + /// A collection of that may take multiple service requests to iterate over. + public static Pageable GetArmApplications(this SubscriptionResource subscriptionResource, CancellationToken cancellationToken = default) { - return GetExtensionClient(subscriptionResource).GetApplications(cancellationToken); + return GetExtensionClient(subscriptionResource).GetArmApplications(cancellationToken); } /// @@ -204,10 +204,10 @@ public static Pageable GetJitRequestDefinitions(this Subscri /// /// The instance the method will execute against. /// The cancellation token to use. - /// An async collection of that may take multiple service requests to iterate over. - public static AsyncPageable GetDeploymentScriptsAsync(this SubscriptionResource subscriptionResource, CancellationToken cancellationToken = default) + /// An async collection of that may take multiple service requests to iterate over. + public static AsyncPageable GetArmDeploymentScriptsAsync(this SubscriptionResource subscriptionResource, CancellationToken cancellationToken = default) { - return GetExtensionClient(subscriptionResource).GetDeploymentScriptsAsync(cancellationToken); + return GetExtensionClient(subscriptionResource).GetArmDeploymentScriptsAsync(cancellationToken); } /// @@ -217,10 +217,10 @@ public static AsyncPageable GetDeploymentScriptsAsync( /// /// The instance the method will execute against. /// The cancellation token to use. - /// A collection of that may take multiple service requests to iterate over. - public static Pageable GetDeploymentScripts(this SubscriptionResource subscriptionResource, CancellationToken cancellationToken = default) + /// A collection of that may take multiple service requests to iterate over. + public static Pageable GetArmDeploymentScripts(this SubscriptionResource subscriptionResource, CancellationToken cancellationToken = default) { - return GetExtensionClient(subscriptionResource).GetDeploymentScripts(cancellationToken); + return GetExtensionClient(subscriptionResource).GetArmDeploymentScripts(cancellationToken); } /// @@ -260,12 +260,12 @@ private static ResourceGroupResourceExtensionClient GetExtensionClient(ResourceG ); } - /// Gets a collection of DeploymentResources in the ResourceGroupResource. + /// Gets a collection of ArmDeploymentResources in the ResourceGroupResource. /// The instance the method will execute against. - /// An object representing collection of DeploymentResources and their operations over a DeploymentResource. - public static DeploymentCollection GetDeployments(this ResourceGroupResource resourceGroupResource) + /// An object representing collection of ArmDeploymentResources and their operations over a ArmDeploymentResource. + public static ArmDeploymentCollection GetArmDeployments(this ResourceGroupResource resourceGroupResource) { - return GetExtensionClient(resourceGroupResource).GetDeployments(); + return GetExtensionClient(resourceGroupResource).GetArmDeployments(); } /// @@ -278,9 +278,9 @@ public static DeploymentCollection GetDeployments(this ResourceGroupResource res /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. - public static async Task> GetDeploymentAsync(this ResourceGroupResource resourceGroupResource, string deploymentName, CancellationToken cancellationToken = default) + public static async Task> GetArmDeploymentAsync(this ResourceGroupResource resourceGroupResource, string deploymentName, CancellationToken cancellationToken = default) { - return await resourceGroupResource.GetDeployments().GetAsync(deploymentName, cancellationToken).ConfigureAwait(false); + return await resourceGroupResource.GetArmDeployments().GetAsync(deploymentName, cancellationToken).ConfigureAwait(false); } /// @@ -293,17 +293,17 @@ public static async Task> GetDeploymentAsync(this R /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. - public static Response GetDeployment(this ResourceGroupResource resourceGroupResource, string deploymentName, CancellationToken cancellationToken = default) + public static Response GetArmDeployment(this ResourceGroupResource resourceGroupResource, string deploymentName, CancellationToken cancellationToken = default) { - return resourceGroupResource.GetDeployments().Get(deploymentName, cancellationToken); + return resourceGroupResource.GetArmDeployments().Get(deploymentName, cancellationToken); } - /// Gets a collection of ApplicationResources in the ResourceGroupResource. + /// Gets a collection of ArmApplicationResources in the ResourceGroupResource. /// The instance the method will execute against. - /// An object representing collection of ApplicationResources and their operations over a ApplicationResource. - public static ApplicationCollection GetApplications(this ResourceGroupResource resourceGroupResource) + /// An object representing collection of ArmApplicationResources and their operations over a ArmApplicationResource. + public static ArmApplicationCollection GetArmApplications(this ResourceGroupResource resourceGroupResource) { - return GetExtensionClient(resourceGroupResource).GetApplications(); + return GetExtensionClient(resourceGroupResource).GetArmApplications(); } /// @@ -316,9 +316,9 @@ public static ApplicationCollection GetApplications(this ResourceGroupResource r /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. - public static async Task> GetApplicationAsync(this ResourceGroupResource resourceGroupResource, string applicationName, CancellationToken cancellationToken = default) + public static async Task> GetArmApplicationAsync(this ResourceGroupResource resourceGroupResource, string applicationName, CancellationToken cancellationToken = default) { - return await resourceGroupResource.GetApplications().GetAsync(applicationName, cancellationToken).ConfigureAwait(false); + return await resourceGroupResource.GetArmApplications().GetAsync(applicationName, cancellationToken).ConfigureAwait(false); } /// @@ -331,17 +331,17 @@ public static async Task> GetApplicationAsync(this /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. - public static Response GetApplication(this ResourceGroupResource resourceGroupResource, string applicationName, CancellationToken cancellationToken = default) + public static Response GetArmApplication(this ResourceGroupResource resourceGroupResource, string applicationName, CancellationToken cancellationToken = default) { - return resourceGroupResource.GetApplications().Get(applicationName, cancellationToken); + return resourceGroupResource.GetArmApplications().Get(applicationName, cancellationToken); } - /// Gets a collection of ApplicationDefinitionResources in the ResourceGroupResource. + /// Gets a collection of ArmApplicationDefinitionResources in the ResourceGroupResource. /// The instance the method will execute against. - /// An object representing collection of ApplicationDefinitionResources and their operations over a ApplicationDefinitionResource. - public static ApplicationDefinitionCollection GetApplicationDefinitions(this ResourceGroupResource resourceGroupResource) + /// An object representing collection of ArmApplicationDefinitionResources and their operations over a ArmApplicationDefinitionResource. + public static ArmApplicationDefinitionCollection GetArmApplicationDefinitions(this ResourceGroupResource resourceGroupResource) { - return GetExtensionClient(resourceGroupResource).GetApplicationDefinitions(); + return GetExtensionClient(resourceGroupResource).GetArmApplicationDefinitions(); } /// @@ -354,9 +354,9 @@ public static ApplicationDefinitionCollection GetApplicationDefinitions(this Res /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. - public static async Task> GetApplicationDefinitionAsync(this ResourceGroupResource resourceGroupResource, string applicationDefinitionName, CancellationToken cancellationToken = default) + public static async Task> GetArmApplicationDefinitionAsync(this ResourceGroupResource resourceGroupResource, string applicationDefinitionName, CancellationToken cancellationToken = default) { - return await resourceGroupResource.GetApplicationDefinitions().GetAsync(applicationDefinitionName, cancellationToken).ConfigureAwait(false); + return await resourceGroupResource.GetArmApplicationDefinitions().GetAsync(applicationDefinitionName, cancellationToken).ConfigureAwait(false); } /// @@ -369,9 +369,9 @@ public static async Task> GetApplication /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. - public static Response GetApplicationDefinition(this ResourceGroupResource resourceGroupResource, string applicationDefinitionName, CancellationToken cancellationToken = default) + public static Response GetArmApplicationDefinition(this ResourceGroupResource resourceGroupResource, string applicationDefinitionName, CancellationToken cancellationToken = default) { - return resourceGroupResource.GetApplicationDefinitions().Get(applicationDefinitionName, cancellationToken); + return resourceGroupResource.GetArmApplicationDefinitions().Get(applicationDefinitionName, cancellationToken); } /// Gets a collection of JitRequestResources in the ResourceGroupResource. @@ -412,12 +412,12 @@ public static Response GetJitRequest(this ResourceGroupResou return resourceGroupResource.GetJitRequests().Get(jitRequestName, cancellationToken); } - /// Gets a collection of DeploymentScriptResources in the ResourceGroupResource. + /// Gets a collection of ArmDeploymentScriptResources in the ResourceGroupResource. /// The instance the method will execute against. - /// An object representing collection of DeploymentScriptResources and their operations over a DeploymentScriptResource. - public static DeploymentScriptCollection GetDeploymentScripts(this ResourceGroupResource resourceGroupResource) + /// An object representing collection of ArmDeploymentScriptResources and their operations over a ArmDeploymentScriptResource. + public static ArmDeploymentScriptCollection GetArmDeploymentScripts(this ResourceGroupResource resourceGroupResource) { - return GetExtensionClient(resourceGroupResource).GetDeploymentScripts(); + return GetExtensionClient(resourceGroupResource).GetArmDeploymentScripts(); } /// @@ -430,9 +430,9 @@ public static DeploymentScriptCollection GetDeploymentScripts(this ResourceGroup /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. - public static async Task> GetDeploymentScriptAsync(this ResourceGroupResource resourceGroupResource, string scriptName, CancellationToken cancellationToken = default) + public static async Task> GetArmDeploymentScriptAsync(this ResourceGroupResource resourceGroupResource, string scriptName, CancellationToken cancellationToken = default) { - return await resourceGroupResource.GetDeploymentScripts().GetAsync(scriptName, cancellationToken).ConfigureAwait(false); + return await resourceGroupResource.GetArmDeploymentScripts().GetAsync(scriptName, cancellationToken).ConfigureAwait(false); } /// @@ -445,9 +445,9 @@ public static async Task> GetDeploymentScript /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. - public static Response GetDeploymentScript(this ResourceGroupResource resourceGroupResource, string scriptName, CancellationToken cancellationToken = default) + public static Response GetArmDeploymentScript(this ResourceGroupResource resourceGroupResource, string scriptName, CancellationToken cancellationToken = default) { - return resourceGroupResource.GetDeploymentScripts().Get(scriptName, cancellationToken); + return resourceGroupResource.GetArmDeploymentScripts().Get(scriptName, cancellationToken); } /// Gets a collection of TemplateSpecResources in the ResourceGroupResource. @@ -499,12 +499,12 @@ private static ManagementGroupResourceExtensionClient GetExtensionClient(Managem ); } - /// Gets a collection of DeploymentResources in the ManagementGroupResource. + /// Gets a collection of ArmDeploymentResources in the ManagementGroupResource. /// The instance the method will execute against. - /// An object representing collection of DeploymentResources and their operations over a DeploymentResource. - public static DeploymentCollection GetDeployments(this ManagementGroupResource managementGroupResource) + /// An object representing collection of ArmDeploymentResources and their operations over a ArmDeploymentResource. + public static ArmDeploymentCollection GetArmDeployments(this ManagementGroupResource managementGroupResource) { - return GetExtensionClient(managementGroupResource).GetDeployments(); + return GetExtensionClient(managementGroupResource).GetArmDeployments(); } /// @@ -517,9 +517,9 @@ public static DeploymentCollection GetDeployments(this ManagementGroupResource m /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. - public static async Task> GetDeploymentAsync(this ManagementGroupResource managementGroupResource, string deploymentName, CancellationToken cancellationToken = default) + public static async Task> GetArmDeploymentAsync(this ManagementGroupResource managementGroupResource, string deploymentName, CancellationToken cancellationToken = default) { - return await managementGroupResource.GetDeployments().GetAsync(deploymentName, cancellationToken).ConfigureAwait(false); + return await managementGroupResource.GetArmDeployments().GetAsync(deploymentName, cancellationToken).ConfigureAwait(false); } /// @@ -532,63 +532,63 @@ public static async Task> GetDeploymentAsync(this M /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. - public static Response GetDeployment(this ManagementGroupResource managementGroupResource, string deploymentName, CancellationToken cancellationToken = default) + public static Response GetArmDeployment(this ManagementGroupResource managementGroupResource, string deploymentName, CancellationToken cancellationToken = default) { - return managementGroupResource.GetDeployments().Get(deploymentName, cancellationToken); + return managementGroupResource.GetArmDeployments().Get(deploymentName, cancellationToken); } - #region DeploymentResource + #region ArmDeploymentResource /// - /// Gets an object representing a along with the instance operations that can be performed on it but with no data. - /// You can use to create a from its components. + /// Gets an object representing an along with the instance operations that can be performed on it but with no data. + /// You can use to create an from its components. /// /// The instance the method will execute against. /// The resource ID of the resource to get. - /// Returns a object. - public static DeploymentResource GetDeploymentResource(this ArmClient client, ResourceIdentifier id) + /// Returns a object. + public static ArmDeploymentResource GetArmDeploymentResource(this ArmClient client, ResourceIdentifier id) { return client.GetResourceClient(() => { - DeploymentResource.ValidateResourceId(id); - return new DeploymentResource(client, id); + ArmDeploymentResource.ValidateResourceId(id); + return new ArmDeploymentResource(client, id); } ); } #endregion - #region ApplicationResource + #region ArmApplicationResource /// - /// Gets an object representing an along with the instance operations that can be performed on it but with no data. - /// You can use to create an from its components. + /// Gets an object representing an along with the instance operations that can be performed on it but with no data. + /// You can use to create an from its components. /// /// The instance the method will execute against. /// The resource ID of the resource to get. - /// Returns a object. - public static ApplicationResource GetApplicationResource(this ArmClient client, ResourceIdentifier id) + /// Returns a object. + public static ArmApplicationResource GetArmApplicationResource(this ArmClient client, ResourceIdentifier id) { return client.GetResourceClient(() => { - ApplicationResource.ValidateResourceId(id); - return new ApplicationResource(client, id); + ArmApplicationResource.ValidateResourceId(id); + return new ArmApplicationResource(client, id); } ); } #endregion - #region ApplicationDefinitionResource + #region ArmApplicationDefinitionResource /// - /// Gets an object representing an along with the instance operations that can be performed on it but with no data. - /// You can use to create an from its components. + /// Gets an object representing an along with the instance operations that can be performed on it but with no data. + /// You can use to create an from its components. /// /// The instance the method will execute against. /// The resource ID of the resource to get. - /// Returns a object. - public static ApplicationDefinitionResource GetApplicationDefinitionResource(this ArmClient client, ResourceIdentifier id) + /// Returns a object. + public static ArmApplicationDefinitionResource GetArmApplicationDefinitionResource(this ArmClient client, ResourceIdentifier id) { return client.GetResourceClient(() => { - ApplicationDefinitionResource.ValidateResourceId(id); - return new ApplicationDefinitionResource(client, id); + ArmApplicationDefinitionResource.ValidateResourceId(id); + return new ArmApplicationDefinitionResource(client, id); } ); } @@ -613,20 +613,20 @@ public static JitRequestResource GetJitRequestResource(this ArmClient client, Re } #endregion - #region DeploymentScriptResource + #region ArmDeploymentScriptResource /// - /// Gets an object representing a along with the instance operations that can be performed on it but with no data. - /// You can use to create a from its components. + /// Gets an object representing an along with the instance operations that can be performed on it but with no data. + /// You can use to create an from its components. /// /// The instance the method will execute against. /// The resource ID of the resource to get. - /// Returns a object. - public static DeploymentScriptResource GetDeploymentScriptResource(this ArmClient client, ResourceIdentifier id) + /// Returns a object. + public static ArmDeploymentScriptResource GetArmDeploymentScriptResource(this ArmClient client, ResourceIdentifier id) { return client.GetResourceClient(() => { - DeploymentScriptResource.ValidateResourceId(id); - return new DeploymentScriptResource(client, id); + ArmDeploymentScriptResource.ValidateResourceId(id); + return new ArmDeploymentScriptResource(client, id); } ); } diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Extensions/SubscriptionResourceExtensionClient.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Extensions/SubscriptionResourceExtensionClient.cs index ed0bf278cefb8..8755efceecdc2 100644 --- a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Extensions/SubscriptionResourceExtensionClient.cs +++ b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Extensions/SubscriptionResourceExtensionClient.cs @@ -20,12 +20,12 @@ namespace Azure.ResourceManager.Resources /// A class to add extension methods to SubscriptionResource. internal partial class SubscriptionResourceExtensionClient : ArmResource { - private ClientDiagnostics _applicationClientDiagnostics; - private ApplicationsRestOperations _applicationRestClient; + private ClientDiagnostics _armApplicationApplicationsClientDiagnostics; + private ApplicationsRestOperations _armApplicationApplicationsRestClient; private ClientDiagnostics _jitRequestClientDiagnostics; private JitRequestsRestOperations _jitRequestRestClient; - private ClientDiagnostics _deploymentScriptClientDiagnostics; - private DeploymentScriptsRestOperations _deploymentScriptRestClient; + private ClientDiagnostics _armDeploymentScriptDeploymentScriptsClientDiagnostics; + private DeploymentScriptsRestOperations _armDeploymentScriptDeploymentScriptsRestClient; private ClientDiagnostics _templateSpecClientDiagnostics; private TemplateSpecsRestOperations _templateSpecRestClient; @@ -41,12 +41,12 @@ internal SubscriptionResourceExtensionClient(ArmClient client, ResourceIdentifie { } - private ClientDiagnostics ApplicationClientDiagnostics => _applicationClientDiagnostics ??= new ClientDiagnostics("Azure.ResourceManager.Resources", ApplicationResource.ResourceType.Namespace, Diagnostics); - private ApplicationsRestOperations ApplicationRestClient => _applicationRestClient ??= new ApplicationsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, GetApiVersionOrNull(ApplicationResource.ResourceType)); + private ClientDiagnostics ArmApplicationApplicationsClientDiagnostics => _armApplicationApplicationsClientDiagnostics ??= new ClientDiagnostics("Azure.ResourceManager.Resources", ArmApplicationResource.ResourceType.Namespace, Diagnostics); + private ApplicationsRestOperations ArmApplicationApplicationsRestClient => _armApplicationApplicationsRestClient ??= new ApplicationsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, GetApiVersionOrNull(ArmApplicationResource.ResourceType)); private ClientDiagnostics JitRequestClientDiagnostics => _jitRequestClientDiagnostics ??= new ClientDiagnostics("Azure.ResourceManager.Resources", JitRequestResource.ResourceType.Namespace, Diagnostics); private JitRequestsRestOperations JitRequestRestClient => _jitRequestRestClient ??= new JitRequestsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, GetApiVersionOrNull(JitRequestResource.ResourceType)); - private ClientDiagnostics DeploymentScriptClientDiagnostics => _deploymentScriptClientDiagnostics ??= new ClientDiagnostics("Azure.ResourceManager.Resources", DeploymentScriptResource.ResourceType.Namespace, Diagnostics); - private DeploymentScriptsRestOperations DeploymentScriptRestClient => _deploymentScriptRestClient ??= new DeploymentScriptsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, GetApiVersionOrNull(DeploymentScriptResource.ResourceType)); + private ClientDiagnostics ArmDeploymentScriptDeploymentScriptsClientDiagnostics => _armDeploymentScriptDeploymentScriptsClientDiagnostics ??= new ClientDiagnostics("Azure.ResourceManager.Resources", ArmDeploymentScriptResource.ResourceType.Namespace, Diagnostics); + private DeploymentScriptsRestOperations ArmDeploymentScriptDeploymentScriptsRestClient => _armDeploymentScriptDeploymentScriptsRestClient ??= new DeploymentScriptsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, GetApiVersionOrNull(ArmDeploymentScriptResource.ResourceType)); private ClientDiagnostics TemplateSpecClientDiagnostics => _templateSpecClientDiagnostics ??= new ClientDiagnostics("Azure.ResourceManager.Resources", TemplateSpecResource.ResourceType.Namespace, Diagnostics); private TemplateSpecsRestOperations TemplateSpecRestClient => _templateSpecRestClient ??= new TemplateSpecsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, GetApiVersionOrNull(TemplateSpecResource.ResourceType)); @@ -56,11 +56,11 @@ private string GetApiVersionOrNull(ResourceType resourceType) return apiVersion; } - /// Gets a collection of DeploymentResources in the SubscriptionResource. - /// An object representing collection of DeploymentResources and their operations over a DeploymentResource. - public virtual DeploymentCollection GetDeployments() + /// Gets a collection of ArmDeploymentResources in the SubscriptionResource. + /// An object representing collection of ArmDeploymentResources and their operations over a ArmDeploymentResource. + public virtual ArmDeploymentCollection GetArmDeployments() { - return GetCachedClient(Client => new DeploymentCollection(Client, Id)); + return GetCachedClient(Client => new ArmDeploymentCollection(Client, Id)); } /// @@ -69,17 +69,17 @@ public virtual DeploymentCollection GetDeployments() /// Operation Id: Applications_ListBySubscription /// /// The cancellation token to use. - /// An async collection of that may take multiple service requests to iterate over. - public virtual AsyncPageable GetApplicationsAsync(CancellationToken cancellationToken = default) + /// An async collection of that may take multiple service requests to iterate over. + public virtual AsyncPageable GetArmApplicationsAsync(CancellationToken cancellationToken = default) { - async Task> FirstPageFunc(int? pageSizeHint) + async Task> FirstPageFunc(int? pageSizeHint) { - using var scope = ApplicationClientDiagnostics.CreateScope("SubscriptionResourceExtensionClient.GetApplications"); + using var scope = ArmApplicationApplicationsClientDiagnostics.CreateScope("SubscriptionResourceExtensionClient.GetArmApplications"); scope.Start(); try { - var response = await ApplicationRestClient.ListBySubscriptionAsync(Id.SubscriptionId, cancellationToken: cancellationToken).ConfigureAwait(false); - return Page.FromValues(response.Value.Value.Select(value => new ApplicationResource(Client, value)), response.Value.NextLink, response.GetRawResponse()); + var response = await ArmApplicationApplicationsRestClient.ListBySubscriptionAsync(Id.SubscriptionId, cancellationToken: cancellationToken).ConfigureAwait(false); + return Page.FromValues(response.Value.Value.Select(value => new ArmApplicationResource(Client, value)), response.Value.NextLink, response.GetRawResponse()); } catch (Exception e) { @@ -87,14 +87,14 @@ async Task> FirstPageFunc(int? pageSizeHint) throw; } } - async Task> NextPageFunc(string nextLink, int? pageSizeHint) + async Task> NextPageFunc(string nextLink, int? pageSizeHint) { - using var scope = ApplicationClientDiagnostics.CreateScope("SubscriptionResourceExtensionClient.GetApplications"); + using var scope = ArmApplicationApplicationsClientDiagnostics.CreateScope("SubscriptionResourceExtensionClient.GetArmApplications"); scope.Start(); try { - var response = await ApplicationRestClient.ListBySubscriptionNextPageAsync(nextLink, Id.SubscriptionId, cancellationToken: cancellationToken).ConfigureAwait(false); - return Page.FromValues(response.Value.Value.Select(value => new ApplicationResource(Client, value)), response.Value.NextLink, response.GetRawResponse()); + var response = await ArmApplicationApplicationsRestClient.ListBySubscriptionNextPageAsync(nextLink, Id.SubscriptionId, cancellationToken: cancellationToken).ConfigureAwait(false); + return Page.FromValues(response.Value.Value.Select(value => new ArmApplicationResource(Client, value)), response.Value.NextLink, response.GetRawResponse()); } catch (Exception e) { @@ -111,17 +111,17 @@ async Task> NextPageFunc(string nextLink, int? pageSiz /// Operation Id: Applications_ListBySubscription /// /// The cancellation token to use. - /// A collection of that may take multiple service requests to iterate over. - public virtual Pageable GetApplications(CancellationToken cancellationToken = default) + /// A collection of that may take multiple service requests to iterate over. + public virtual Pageable GetArmApplications(CancellationToken cancellationToken = default) { - Page FirstPageFunc(int? pageSizeHint) + Page FirstPageFunc(int? pageSizeHint) { - using var scope = ApplicationClientDiagnostics.CreateScope("SubscriptionResourceExtensionClient.GetApplications"); + using var scope = ArmApplicationApplicationsClientDiagnostics.CreateScope("SubscriptionResourceExtensionClient.GetArmApplications"); scope.Start(); try { - var response = ApplicationRestClient.ListBySubscription(Id.SubscriptionId, cancellationToken: cancellationToken); - return Page.FromValues(response.Value.Value.Select(value => new ApplicationResource(Client, value)), response.Value.NextLink, response.GetRawResponse()); + var response = ArmApplicationApplicationsRestClient.ListBySubscription(Id.SubscriptionId, cancellationToken: cancellationToken); + return Page.FromValues(response.Value.Value.Select(value => new ArmApplicationResource(Client, value)), response.Value.NextLink, response.GetRawResponse()); } catch (Exception e) { @@ -129,14 +129,14 @@ Page FirstPageFunc(int? pageSizeHint) throw; } } - Page NextPageFunc(string nextLink, int? pageSizeHint) + Page NextPageFunc(string nextLink, int? pageSizeHint) { - using var scope = ApplicationClientDiagnostics.CreateScope("SubscriptionResourceExtensionClient.GetApplications"); + using var scope = ArmApplicationApplicationsClientDiagnostics.CreateScope("SubscriptionResourceExtensionClient.GetArmApplications"); scope.Start(); try { - var response = ApplicationRestClient.ListBySubscriptionNextPage(nextLink, Id.SubscriptionId, cancellationToken: cancellationToken); - return Page.FromValues(response.Value.Value.Select(value => new ApplicationResource(Client, value)), response.Value.NextLink, response.GetRawResponse()); + var response = ArmApplicationApplicationsRestClient.ListBySubscriptionNextPage(nextLink, Id.SubscriptionId, cancellationToken: cancellationToken); + return Page.FromValues(response.Value.Value.Select(value => new ArmApplicationResource(Client, value)), response.Value.NextLink, response.GetRawResponse()); } catch (Exception e) { @@ -207,17 +207,17 @@ Page FirstPageFunc(int? pageSizeHint) /// Operation Id: DeploymentScripts_ListBySubscription /// /// The cancellation token to use. - /// An async collection of that may take multiple service requests to iterate over. - public virtual AsyncPageable GetDeploymentScriptsAsync(CancellationToken cancellationToken = default) + /// An async collection of that may take multiple service requests to iterate over. + public virtual AsyncPageable GetArmDeploymentScriptsAsync(CancellationToken cancellationToken = default) { - async Task> FirstPageFunc(int? pageSizeHint) + async Task> FirstPageFunc(int? pageSizeHint) { - using var scope = DeploymentScriptClientDiagnostics.CreateScope("SubscriptionResourceExtensionClient.GetDeploymentScripts"); + using var scope = ArmDeploymentScriptDeploymentScriptsClientDiagnostics.CreateScope("SubscriptionResourceExtensionClient.GetArmDeploymentScripts"); scope.Start(); try { - var response = await DeploymentScriptRestClient.ListBySubscriptionAsync(Id.SubscriptionId, cancellationToken: cancellationToken).ConfigureAwait(false); - return Page.FromValues(response.Value.Value.Select(value => new DeploymentScriptResource(Client, value)), response.Value.NextLink, response.GetRawResponse()); + var response = await ArmDeploymentScriptDeploymentScriptsRestClient.ListBySubscriptionAsync(Id.SubscriptionId, cancellationToken: cancellationToken).ConfigureAwait(false); + return Page.FromValues(response.Value.Value.Select(value => new ArmDeploymentScriptResource(Client, value)), response.Value.NextLink, response.GetRawResponse()); } catch (Exception e) { @@ -225,14 +225,14 @@ async Task> FirstPageFunc(int? pageSizeHint) throw; } } - async Task> NextPageFunc(string nextLink, int? pageSizeHint) + async Task> NextPageFunc(string nextLink, int? pageSizeHint) { - using var scope = DeploymentScriptClientDiagnostics.CreateScope("SubscriptionResourceExtensionClient.GetDeploymentScripts"); + using var scope = ArmDeploymentScriptDeploymentScriptsClientDiagnostics.CreateScope("SubscriptionResourceExtensionClient.GetArmDeploymentScripts"); scope.Start(); try { - var response = await DeploymentScriptRestClient.ListBySubscriptionNextPageAsync(nextLink, Id.SubscriptionId, cancellationToken: cancellationToken).ConfigureAwait(false); - return Page.FromValues(response.Value.Value.Select(value => new DeploymentScriptResource(Client, value)), response.Value.NextLink, response.GetRawResponse()); + var response = await ArmDeploymentScriptDeploymentScriptsRestClient.ListBySubscriptionNextPageAsync(nextLink, Id.SubscriptionId, cancellationToken: cancellationToken).ConfigureAwait(false); + return Page.FromValues(response.Value.Value.Select(value => new ArmDeploymentScriptResource(Client, value)), response.Value.NextLink, response.GetRawResponse()); } catch (Exception e) { @@ -249,17 +249,17 @@ async Task> NextPageFunc(string nextLink, int? pa /// Operation Id: DeploymentScripts_ListBySubscription /// /// The cancellation token to use. - /// A collection of that may take multiple service requests to iterate over. - public virtual Pageable GetDeploymentScripts(CancellationToken cancellationToken = default) + /// A collection of that may take multiple service requests to iterate over. + public virtual Pageable GetArmDeploymentScripts(CancellationToken cancellationToken = default) { - Page FirstPageFunc(int? pageSizeHint) + Page FirstPageFunc(int? pageSizeHint) { - using var scope = DeploymentScriptClientDiagnostics.CreateScope("SubscriptionResourceExtensionClient.GetDeploymentScripts"); + using var scope = ArmDeploymentScriptDeploymentScriptsClientDiagnostics.CreateScope("SubscriptionResourceExtensionClient.GetArmDeploymentScripts"); scope.Start(); try { - var response = DeploymentScriptRestClient.ListBySubscription(Id.SubscriptionId, cancellationToken: cancellationToken); - return Page.FromValues(response.Value.Value.Select(value => new DeploymentScriptResource(Client, value)), response.Value.NextLink, response.GetRawResponse()); + var response = ArmDeploymentScriptDeploymentScriptsRestClient.ListBySubscription(Id.SubscriptionId, cancellationToken: cancellationToken); + return Page.FromValues(response.Value.Value.Select(value => new ArmDeploymentScriptResource(Client, value)), response.Value.NextLink, response.GetRawResponse()); } catch (Exception e) { @@ -267,14 +267,14 @@ Page FirstPageFunc(int? pageSizeHint) throw; } } - Page NextPageFunc(string nextLink, int? pageSizeHint) + Page NextPageFunc(string nextLink, int? pageSizeHint) { - using var scope = DeploymentScriptClientDiagnostics.CreateScope("SubscriptionResourceExtensionClient.GetDeploymentScripts"); + using var scope = ArmDeploymentScriptDeploymentScriptsClientDiagnostics.CreateScope("SubscriptionResourceExtensionClient.GetArmDeploymentScripts"); scope.Start(); try { - var response = DeploymentScriptRestClient.ListBySubscriptionNextPage(nextLink, Id.SubscriptionId, cancellationToken: cancellationToken); - return Page.FromValues(response.Value.Value.Select(value => new DeploymentScriptResource(Client, value)), response.Value.NextLink, response.GetRawResponse()); + var response = ArmDeploymentScriptDeploymentScriptsRestClient.ListBySubscriptionNextPage(nextLink, Id.SubscriptionId, cancellationToken: cancellationToken); + return Page.FromValues(response.Value.Value.Select(value => new ArmDeploymentScriptResource(Client, value)), response.Value.NextLink, response.GetRawResponse()); } catch (Exception e) { diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Extensions/TenantResourceExtensionClient.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Extensions/TenantResourceExtensionClient.cs index 051a272a7bb15..748084cc6dc8f 100644 --- a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Extensions/TenantResourceExtensionClient.cs +++ b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Extensions/TenantResourceExtensionClient.cs @@ -19,8 +19,8 @@ namespace Azure.ResourceManager.Resources /// A class to add extension methods to TenantResource. internal partial class TenantResourceExtensionClient : ArmResource { - private ClientDiagnostics _deploymentClientDiagnostics; - private DeploymentsRestOperations _deploymentRestClient; + private ClientDiagnostics _armDeploymentDeploymentsClientDiagnostics; + private DeploymentsRestOperations _armDeploymentDeploymentsRestClient; /// Initializes a new instance of the class for mocking. protected TenantResourceExtensionClient() @@ -34,8 +34,8 @@ internal TenantResourceExtensionClient(ArmClient client, ResourceIdentifier id) { } - private ClientDiagnostics DeploymentClientDiagnostics => _deploymentClientDiagnostics ??= new ClientDiagnostics("Azure.ResourceManager.Resources", DeploymentResource.ResourceType.Namespace, Diagnostics); - private DeploymentsRestOperations DeploymentRestClient => _deploymentRestClient ??= new DeploymentsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, GetApiVersionOrNull(DeploymentResource.ResourceType)); + private ClientDiagnostics ArmDeploymentDeploymentsClientDiagnostics => _armDeploymentDeploymentsClientDiagnostics ??= new ClientDiagnostics("Azure.ResourceManager.Resources", ArmDeploymentResource.ResourceType.Namespace, Diagnostics); + private DeploymentsRestOperations ArmDeploymentDeploymentsRestClient => _armDeploymentDeploymentsRestClient ??= new DeploymentsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, GetApiVersionOrNull(ArmDeploymentResource.ResourceType)); private string GetApiVersionOrNull(ResourceType resourceType) { @@ -43,11 +43,11 @@ private string GetApiVersionOrNull(ResourceType resourceType) return apiVersion; } - /// Gets a collection of DeploymentResources in the TenantResource. - /// An object representing collection of DeploymentResources and their operations over a DeploymentResource. - public virtual DeploymentCollection GetDeployments() + /// Gets a collection of ArmDeploymentResources in the TenantResource. + /// An object representing collection of ArmDeploymentResources and their operations over a ArmDeploymentResource. + public virtual ArmDeploymentCollection GetArmDeployments() { - return GetCachedClient(Client => new DeploymentCollection(Client, Id)); + return GetCachedClient(Client => new ArmDeploymentCollection(Client, Id)); } /// @@ -59,11 +59,11 @@ public virtual DeploymentCollection GetDeployments() /// The cancellation token to use. public virtual async Task> CalculateDeploymentTemplateHashAsync(BinaryData template, CancellationToken cancellationToken = default) { - using var scope = DeploymentClientDiagnostics.CreateScope("TenantResourceExtensionClient.CalculateDeploymentTemplateHash"); + using var scope = ArmDeploymentDeploymentsClientDiagnostics.CreateScope("TenantResourceExtensionClient.CalculateDeploymentTemplateHash"); scope.Start(); try { - var response = await DeploymentRestClient.CalculateTemplateHashAsync(template, cancellationToken).ConfigureAwait(false); + var response = await ArmDeploymentDeploymentsRestClient.CalculateTemplateHashAsync(template, cancellationToken).ConfigureAwait(false); return response; } catch (Exception e) @@ -82,11 +82,11 @@ public virtual async Task> CalculateDeploymentTempl /// The cancellation token to use. public virtual Response CalculateDeploymentTemplateHash(BinaryData template, CancellationToken cancellationToken = default) { - using var scope = DeploymentClientDiagnostics.CreateScope("TenantResourceExtensionClient.CalculateDeploymentTemplateHash"); + using var scope = ArmDeploymentDeploymentsClientDiagnostics.CreateScope("TenantResourceExtensionClient.CalculateDeploymentTemplateHash"); scope.Start(); try { - var response = DeploymentRestClient.CalculateTemplateHash(template, cancellationToken); + var response = ArmDeploymentDeploymentsRestClient.CalculateTemplateHash(template, cancellationToken); return response; } catch (Exception e) diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/JitRequestData.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/JitRequestData.cs index 3b1ae480a5e43..d601d0b09682f 100644 --- a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/JitRequestData.cs +++ b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/JitRequestData.cs @@ -37,7 +37,7 @@ public JitRequestData(AzureLocation location) : base(location) /// The JIT request state. /// The client entity that created the JIT request. /// The client entity that last updated the JIT request. - internal JitRequestData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, string applicationResourceId, string publisherTenantId, IList jitAuthorizationPolicies, JitSchedulingPolicy jitSchedulingPolicy, ProvisioningState? provisioningState, JitRequestState? jitRequestState, ApplicationClientDetails createdBy, ApplicationClientDetails updatedBy) : base(id, name, resourceType, systemData, tags, location) + internal JitRequestData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, string applicationResourceId, string publisherTenantId, IList jitAuthorizationPolicies, JitSchedulingPolicy jitSchedulingPolicy, ResourcesProvisioningState? provisioningState, JitRequestState? jitRequestState, ArmApplicationDetails createdBy, ArmApplicationDetails updatedBy) : base(id, name, resourceType, systemData, tags, location) { ApplicationResourceId = applicationResourceId; PublisherTenantId = publisherTenantId; @@ -58,12 +58,12 @@ internal JitRequestData(ResourceIdentifier id, string name, ResourceType resourc /// The JIT request properties. public JitSchedulingPolicy JitSchedulingPolicy { get; set; } /// The JIT request provisioning state. - public ProvisioningState? ProvisioningState { get; } + public ResourcesProvisioningState? ProvisioningState { get; } /// The JIT request state. public JitRequestState? JitRequestState { get; } /// The client entity that created the JIT request. - public ApplicationClientDetails CreatedBy { get; } + public ArmApplicationDetails CreatedBy { get; } /// The client entity that last updated the JIT request. - public ApplicationClientDetails UpdatedBy { get; } + public ArmApplicationDetails UpdatedBy { get; } } } diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/LongRunningOperation/ApplicationDefinitionOperationSource.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/LongRunningOperation/ApplicationDefinitionOperationSource.cs deleted file mode 100644 index 1d5d3d59ec5f9..0000000000000 --- a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/LongRunningOperation/ApplicationDefinitionOperationSource.cs +++ /dev/null @@ -1,40 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System.Text.Json; -using System.Threading; -using System.Threading.Tasks; -using Azure; -using Azure.Core; -using Azure.ResourceManager; - -namespace Azure.ResourceManager.Resources -{ - internal class ApplicationDefinitionOperationSource : IOperationSource - { - private readonly ArmClient _client; - - internal ApplicationDefinitionOperationSource(ArmClient client) - { - _client = client; - } - - ApplicationDefinitionResource IOperationSource.CreateResult(Response response, CancellationToken cancellationToken) - { - using var document = JsonDocument.Parse(response.ContentStream); - var data = ApplicationDefinitionData.DeserializeApplicationDefinitionData(document.RootElement); - return new ApplicationDefinitionResource(_client, data); - } - - async ValueTask IOperationSource.CreateResultAsync(Response response, CancellationToken cancellationToken) - { - using var document = await JsonDocument.ParseAsync(response.ContentStream, default, cancellationToken).ConfigureAwait(false); - var data = ApplicationDefinitionData.DeserializeApplicationDefinitionData(document.RootElement); - return new ApplicationDefinitionResource(_client, data); - } - } -} diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/LongRunningOperation/ApplicationOperationSource.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/LongRunningOperation/ApplicationOperationSource.cs deleted file mode 100644 index 13cb7d3e0b3fb..0000000000000 --- a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/LongRunningOperation/ApplicationOperationSource.cs +++ /dev/null @@ -1,40 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System.Text.Json; -using System.Threading; -using System.Threading.Tasks; -using Azure; -using Azure.Core; -using Azure.ResourceManager; - -namespace Azure.ResourceManager.Resources -{ - internal class ApplicationOperationSource : IOperationSource - { - private readonly ArmClient _client; - - internal ApplicationOperationSource(ArmClient client) - { - _client = client; - } - - ApplicationResource IOperationSource.CreateResult(Response response, CancellationToken cancellationToken) - { - using var document = JsonDocument.Parse(response.ContentStream); - var data = ApplicationData.DeserializeApplicationData(document.RootElement); - return new ApplicationResource(_client, data); - } - - async ValueTask IOperationSource.CreateResultAsync(Response response, CancellationToken cancellationToken) - { - using var document = await JsonDocument.ParseAsync(response.ContentStream, default, cancellationToken).ConfigureAwait(false); - var data = ApplicationData.DeserializeApplicationData(document.RootElement); - return new ApplicationResource(_client, data); - } - } -} diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/LongRunningOperation/ArmApplicationDefinitionOperationSource.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/LongRunningOperation/ArmApplicationDefinitionOperationSource.cs new file mode 100644 index 0000000000000..df4699bee5508 --- /dev/null +++ b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/LongRunningOperation/ArmApplicationDefinitionOperationSource.cs @@ -0,0 +1,40 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using System.Threading; +using System.Threading.Tasks; +using Azure; +using Azure.Core; +using Azure.ResourceManager; + +namespace Azure.ResourceManager.Resources +{ + internal class ArmApplicationDefinitionOperationSource : IOperationSource + { + private readonly ArmClient _client; + + internal ArmApplicationDefinitionOperationSource(ArmClient client) + { + _client = client; + } + + ArmApplicationDefinitionResource IOperationSource.CreateResult(Response response, CancellationToken cancellationToken) + { + using var document = JsonDocument.Parse(response.ContentStream); + var data = ArmApplicationDefinitionData.DeserializeArmApplicationDefinitionData(document.RootElement); + return new ArmApplicationDefinitionResource(_client, data); + } + + async ValueTask IOperationSource.CreateResultAsync(Response response, CancellationToken cancellationToken) + { + using var document = await JsonDocument.ParseAsync(response.ContentStream, default, cancellationToken).ConfigureAwait(false); + var data = ArmApplicationDefinitionData.DeserializeArmApplicationDefinitionData(document.RootElement); + return new ArmApplicationDefinitionResource(_client, data); + } + } +} diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/LongRunningOperation/ArmApplicationOperationSource.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/LongRunningOperation/ArmApplicationOperationSource.cs new file mode 100644 index 0000000000000..7fb28dc43f032 --- /dev/null +++ b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/LongRunningOperation/ArmApplicationOperationSource.cs @@ -0,0 +1,40 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using System.Threading; +using System.Threading.Tasks; +using Azure; +using Azure.Core; +using Azure.ResourceManager; + +namespace Azure.ResourceManager.Resources +{ + internal class ArmApplicationOperationSource : IOperationSource + { + private readonly ArmClient _client; + + internal ArmApplicationOperationSource(ArmClient client) + { + _client = client; + } + + ArmApplicationResource IOperationSource.CreateResult(Response response, CancellationToken cancellationToken) + { + using var document = JsonDocument.Parse(response.ContentStream); + var data = ArmApplicationData.DeserializeArmApplicationData(document.RootElement); + return new ArmApplicationResource(_client, data); + } + + async ValueTask IOperationSource.CreateResultAsync(Response response, CancellationToken cancellationToken) + { + using var document = await JsonDocument.ParseAsync(response.ContentStream, default, cancellationToken).ConfigureAwait(false); + var data = ArmApplicationData.DeserializeArmApplicationData(document.RootElement); + return new ArmApplicationResource(_client, data); + } + } +} diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/LongRunningOperation/ArmDeploymentOperationSource.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/LongRunningOperation/ArmDeploymentOperationSource.cs new file mode 100644 index 0000000000000..efb3e9b8d878b --- /dev/null +++ b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/LongRunningOperation/ArmDeploymentOperationSource.cs @@ -0,0 +1,40 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using System.Threading; +using System.Threading.Tasks; +using Azure; +using Azure.Core; +using Azure.ResourceManager; + +namespace Azure.ResourceManager.Resources +{ + internal class ArmDeploymentOperationSource : IOperationSource + { + private readonly ArmClient _client; + + internal ArmDeploymentOperationSource(ArmClient client) + { + _client = client; + } + + ArmDeploymentResource IOperationSource.CreateResult(Response response, CancellationToken cancellationToken) + { + using var document = JsonDocument.Parse(response.ContentStream); + var data = ArmDeploymentData.DeserializeArmDeploymentData(document.RootElement); + return new ArmDeploymentResource(_client, data); + } + + async ValueTask IOperationSource.CreateResultAsync(Response response, CancellationToken cancellationToken) + { + using var document = await JsonDocument.ParseAsync(response.ContentStream, default, cancellationToken).ConfigureAwait(false); + var data = ArmDeploymentData.DeserializeArmDeploymentData(document.RootElement); + return new ArmDeploymentResource(_client, data); + } + } +} diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/LongRunningOperation/ArmDeploymentScriptOperationSource.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/LongRunningOperation/ArmDeploymentScriptOperationSource.cs new file mode 100644 index 0000000000000..e41e592b3d089 --- /dev/null +++ b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/LongRunningOperation/ArmDeploymentScriptOperationSource.cs @@ -0,0 +1,40 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using System.Threading; +using System.Threading.Tasks; +using Azure; +using Azure.Core; +using Azure.ResourceManager; + +namespace Azure.ResourceManager.Resources +{ + internal class ArmDeploymentScriptOperationSource : IOperationSource + { + private readonly ArmClient _client; + + internal ArmDeploymentScriptOperationSource(ArmClient client) + { + _client = client; + } + + ArmDeploymentScriptResource IOperationSource.CreateResult(Response response, CancellationToken cancellationToken) + { + using var document = JsonDocument.Parse(response.ContentStream); + var data = ArmDeploymentScriptData.DeserializeArmDeploymentScriptData(document.RootElement); + return new ArmDeploymentScriptResource(_client, data); + } + + async ValueTask IOperationSource.CreateResultAsync(Response response, CancellationToken cancellationToken) + { + using var document = await JsonDocument.ParseAsync(response.ContentStream, default, cancellationToken).ConfigureAwait(false); + var data = ArmDeploymentScriptData.DeserializeArmDeploymentScriptData(document.RootElement); + return new ArmDeploymentScriptResource(_client, data); + } + } +} diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/LongRunningOperation/ArmDeploymentValidateResultOperationSource.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/LongRunningOperation/ArmDeploymentValidateResultOperationSource.cs new file mode 100644 index 0000000000000..562ad1bb316c3 --- /dev/null +++ b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/LongRunningOperation/ArmDeploymentValidateResultOperationSource.cs @@ -0,0 +1,31 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using System.Threading; +using System.Threading.Tasks; +using Azure; +using Azure.Core; +using Azure.ResourceManager.Resources.Models; + +namespace Azure.ResourceManager.Resources +{ + internal class ArmDeploymentValidateResultOperationSource : IOperationSource + { + ArmDeploymentValidateResult IOperationSource.CreateResult(Response response, CancellationToken cancellationToken) + { + using var document = JsonDocument.Parse(response.ContentStream); + return ArmDeploymentValidateResult.DeserializeArmDeploymentValidateResult(document.RootElement); + } + + async ValueTask IOperationSource.CreateResultAsync(Response response, CancellationToken cancellationToken) + { + using var document = await JsonDocument.ParseAsync(response.ContentStream, default, cancellationToken).ConfigureAwait(false); + return ArmDeploymentValidateResult.DeserializeArmDeploymentValidateResult(document.RootElement); + } + } +} diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/LongRunningOperation/DeploymentOperationSource.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/LongRunningOperation/DeploymentOperationSource.cs deleted file mode 100644 index c8bbf80a3d0f2..0000000000000 --- a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/LongRunningOperation/DeploymentOperationSource.cs +++ /dev/null @@ -1,40 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System.Text.Json; -using System.Threading; -using System.Threading.Tasks; -using Azure; -using Azure.Core; -using Azure.ResourceManager; - -namespace Azure.ResourceManager.Resources -{ - internal class DeploymentOperationSource : IOperationSource - { - private readonly ArmClient _client; - - internal DeploymentOperationSource(ArmClient client) - { - _client = client; - } - - DeploymentResource IOperationSource.CreateResult(Response response, CancellationToken cancellationToken) - { - using var document = JsonDocument.Parse(response.ContentStream); - var data = DeploymentData.DeserializeDeploymentData(document.RootElement); - return new DeploymentResource(_client, data); - } - - async ValueTask IOperationSource.CreateResultAsync(Response response, CancellationToken cancellationToken) - { - using var document = await JsonDocument.ParseAsync(response.ContentStream, default, cancellationToken).ConfigureAwait(false); - var data = DeploymentData.DeserializeDeploymentData(document.RootElement); - return new DeploymentResource(_client, data); - } - } -} diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/LongRunningOperation/DeploymentScriptOperationSource.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/LongRunningOperation/DeploymentScriptOperationSource.cs deleted file mode 100644 index 24dc2ff84bf57..0000000000000 --- a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/LongRunningOperation/DeploymentScriptOperationSource.cs +++ /dev/null @@ -1,40 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System.Text.Json; -using System.Threading; -using System.Threading.Tasks; -using Azure; -using Azure.Core; -using Azure.ResourceManager; - -namespace Azure.ResourceManager.Resources -{ - internal class DeploymentScriptOperationSource : IOperationSource - { - private readonly ArmClient _client; - - internal DeploymentScriptOperationSource(ArmClient client) - { - _client = client; - } - - DeploymentScriptResource IOperationSource.CreateResult(Response response, CancellationToken cancellationToken) - { - using var document = JsonDocument.Parse(response.ContentStream); - var data = DeploymentScriptData.DeserializeDeploymentScriptData(document.RootElement); - return new DeploymentScriptResource(_client, data); - } - - async ValueTask IOperationSource.CreateResultAsync(Response response, CancellationToken cancellationToken) - { - using var document = await JsonDocument.ParseAsync(response.ContentStream, default, cancellationToken).ConfigureAwait(false); - var data = DeploymentScriptData.DeserializeDeploymentScriptData(document.RootElement); - return new DeploymentScriptResource(_client, data); - } - } -} diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/LongRunningOperation/DeploymentValidateResultOperationSource.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/LongRunningOperation/DeploymentValidateResultOperationSource.cs deleted file mode 100644 index d63f745694b16..0000000000000 --- a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/LongRunningOperation/DeploymentValidateResultOperationSource.cs +++ /dev/null @@ -1,31 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System.Text.Json; -using System.Threading; -using System.Threading.Tasks; -using Azure; -using Azure.Core; -using Azure.ResourceManager.Resources.Models; - -namespace Azure.ResourceManager.Resources -{ - internal class DeploymentValidateResultOperationSource : IOperationSource - { - DeploymentValidateResult IOperationSource.CreateResult(Response response, CancellationToken cancellationToken) - { - using var document = JsonDocument.Parse(response.ContentStream); - return DeploymentValidateResult.DeserializeDeploymentValidateResult(document.RootElement); - } - - async ValueTask IOperationSource.CreateResultAsync(Response response, CancellationToken cancellationToken) - { - using var document = await JsonDocument.ParseAsync(response.ContentStream, default, cancellationToken).ConfigureAwait(false); - return DeploymentValidateResult.DeserializeDeploymentValidateResult(document.RootElement); - } - } -} diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ApplicationArtifactName.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ApplicationArtifactName.cs deleted file mode 100644 index 940c499109a75..0000000000000 --- a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ApplicationArtifactName.cs +++ /dev/null @@ -1,57 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.ComponentModel; - -namespace Azure.ResourceManager.Resources.Models -{ - /// The managed application artifact name. - public readonly partial struct ApplicationArtifactName : IEquatable - { - private readonly string _value; - - /// Initializes a new instance of . - /// is null. - public ApplicationArtifactName(string value) - { - _value = value ?? throw new ArgumentNullException(nameof(value)); - } - - private const string NotSpecifiedValue = "NotSpecified"; - private const string ViewDefinitionValue = "ViewDefinition"; - private const string AuthorizationsValue = "Authorizations"; - private const string CustomRoleDefinitionValue = "CustomRoleDefinition"; - - /// NotSpecified. - public static ApplicationArtifactName NotSpecified { get; } = new ApplicationArtifactName(NotSpecifiedValue); - /// ViewDefinition. - public static ApplicationArtifactName ViewDefinition { get; } = new ApplicationArtifactName(ViewDefinitionValue); - /// Authorizations. - public static ApplicationArtifactName Authorizations { get; } = new ApplicationArtifactName(AuthorizationsValue); - /// CustomRoleDefinition. - public static ApplicationArtifactName CustomRoleDefinition { get; } = new ApplicationArtifactName(CustomRoleDefinitionValue); - /// Determines if two values are the same. - public static bool operator ==(ApplicationArtifactName left, ApplicationArtifactName right) => left.Equals(right); - /// Determines if two values are not the same. - public static bool operator !=(ApplicationArtifactName left, ApplicationArtifactName right) => !left.Equals(right); - /// Converts a string to a . - public static implicit operator ApplicationArtifactName(string value) => new ApplicationArtifactName(value); - - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public override bool Equals(object obj) => obj is ApplicationArtifactName other && Equals(other); - /// - public bool Equals(ApplicationArtifactName other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); - - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public override int GetHashCode() => _value?.GetHashCode() ?? 0; - /// - public override string ToString() => _value; - } -} diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ApplicationArtifactType.Serialization.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ApplicationArtifactType.Serialization.cs deleted file mode 100644 index 5347e32e028e7..0000000000000 --- a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ApplicationArtifactType.Serialization.cs +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; - -namespace Azure.ResourceManager.Resources.Models -{ - internal static partial class ApplicationArtifactTypeExtensions - { - public static string ToSerialString(this ApplicationArtifactType value) => value switch - { - ApplicationArtifactType.NotSpecified => "NotSpecified", - ApplicationArtifactType.Template => "Template", - ApplicationArtifactType.Custom => "Custom", - _ => throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown ApplicationArtifactType value.") - }; - - public static ApplicationArtifactType ToApplicationArtifactType(this string value) - { - if (string.Equals(value, "NotSpecified", StringComparison.InvariantCultureIgnoreCase)) return ApplicationArtifactType.NotSpecified; - if (string.Equals(value, "Template", StringComparison.InvariantCultureIgnoreCase)) return ApplicationArtifactType.Template; - if (string.Equals(value, "Custom", StringComparison.InvariantCultureIgnoreCase)) return ApplicationArtifactType.Custom; - throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown ApplicationArtifactType value."); - } - } -} diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ApplicationClientDetails.Serialization.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ApplicationClientDetails.Serialization.cs deleted file mode 100644 index 850d52438a84d..0000000000000 --- a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ApplicationClientDetails.Serialization.cs +++ /dev/null @@ -1,41 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System.Text.Json; -using Azure.Core; - -namespace Azure.ResourceManager.Resources.Models -{ - public partial class ApplicationClientDetails - { - internal static ApplicationClientDetails DeserializeApplicationClientDetails(JsonElement element) - { - Optional oid = default; - Optional puid = default; - Optional applicationId = default; - foreach (var property in element.EnumerateObject()) - { - if (property.NameEquals("oid")) - { - oid = property.Value.GetString(); - continue; - } - if (property.NameEquals("puid")) - { - puid = property.Value.GetString(); - continue; - } - if (property.NameEquals("applicationId")) - { - applicationId = property.Value.GetString(); - continue; - } - } - return new ApplicationClientDetails(oid.Value, puid.Value, applicationId.Value); - } - } -} diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ApplicationDefinitionArtifactName.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ApplicationDefinitionArtifactName.cs deleted file mode 100644 index c26817838af24..0000000000000 --- a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ApplicationDefinitionArtifactName.cs +++ /dev/null @@ -1,57 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.ComponentModel; - -namespace Azure.ResourceManager.Resources.Models -{ - /// The managed application artifact name. - public readonly partial struct ApplicationDefinitionArtifactName : IEquatable - { - private readonly string _value; - - /// Initializes a new instance of . - /// is null. - public ApplicationDefinitionArtifactName(string value) - { - _value = value ?? throw new ArgumentNullException(nameof(value)); - } - - private const string NotSpecifiedValue = "NotSpecified"; - private const string ApplicationResourceTemplateValue = "ApplicationResourceTemplate"; - private const string CreateUiDefinitionValue = "CreateUiDefinition"; - private const string MainTemplateParametersValue = "MainTemplateParameters"; - - /// NotSpecified. - public static ApplicationDefinitionArtifactName NotSpecified { get; } = new ApplicationDefinitionArtifactName(NotSpecifiedValue); - /// ApplicationResourceTemplate. - public static ApplicationDefinitionArtifactName ApplicationResourceTemplate { get; } = new ApplicationDefinitionArtifactName(ApplicationResourceTemplateValue); - /// CreateUiDefinition. - public static ApplicationDefinitionArtifactName CreateUiDefinition { get; } = new ApplicationDefinitionArtifactName(CreateUiDefinitionValue); - /// MainTemplateParameters. - public static ApplicationDefinitionArtifactName MainTemplateParameters { get; } = new ApplicationDefinitionArtifactName(MainTemplateParametersValue); - /// Determines if two values are the same. - public static bool operator ==(ApplicationDefinitionArtifactName left, ApplicationDefinitionArtifactName right) => left.Equals(right); - /// Determines if two values are not the same. - public static bool operator !=(ApplicationDefinitionArtifactName left, ApplicationDefinitionArtifactName right) => !left.Equals(right); - /// Converts a string to a . - public static implicit operator ApplicationDefinitionArtifactName(string value) => new ApplicationDefinitionArtifactName(value); - - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public override bool Equals(object obj) => obj is ApplicationDefinitionArtifactName other && Equals(other); - /// - public bool Equals(ApplicationDefinitionArtifactName other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); - - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public override int GetHashCode() => _value?.GetHashCode() ?? 0; - /// - public override string ToString() => _value; - } -} diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ApplicationLockLevel.Serialization.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ApplicationLockLevel.Serialization.cs deleted file mode 100644 index ef90782e47236..0000000000000 --- a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ApplicationLockLevel.Serialization.cs +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; - -namespace Azure.ResourceManager.Resources.Models -{ - internal static partial class ApplicationLockLevelExtensions - { - public static string ToSerialString(this ApplicationLockLevel value) => value switch - { - ApplicationLockLevel.None => "None", - ApplicationLockLevel.CanNotDelete => "CanNotDelete", - ApplicationLockLevel.ReadOnly => "ReadOnly", - _ => throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown ApplicationLockLevel value.") - }; - - public static ApplicationLockLevel ToApplicationLockLevel(this string value) - { - if (string.Equals(value, "None", StringComparison.InvariantCultureIgnoreCase)) return ApplicationLockLevel.None; - if (string.Equals(value, "CanNotDelete", StringComparison.InvariantCultureIgnoreCase)) return ApplicationLockLevel.CanNotDelete; - if (string.Equals(value, "ReadOnly", StringComparison.InvariantCultureIgnoreCase)) return ApplicationLockLevel.ReadOnly; - throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown ApplicationLockLevel value."); - } - } -} diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ApplicationManagedIdentityType.Serialization.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ApplicationManagedIdentityType.Serialization.cs deleted file mode 100644 index 7b2dd18839c8f..0000000000000 --- a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ApplicationManagedIdentityType.Serialization.cs +++ /dev/null @@ -1,32 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; - -namespace Azure.ResourceManager.Resources.Models -{ - internal static partial class ApplicationManagedIdentityTypeExtensions - { - public static string ToSerialString(this ApplicationManagedIdentityType value) => value switch - { - ApplicationManagedIdentityType.None => "None", - ApplicationManagedIdentityType.SystemAssigned => "SystemAssigned", - ApplicationManagedIdentityType.UserAssigned => "UserAssigned", - ApplicationManagedIdentityType.SystemAssignedUserAssigned => "SystemAssigned, UserAssigned", - _ => throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown ApplicationManagedIdentityType value.") - }; - - public static ApplicationManagedIdentityType ToApplicationManagedIdentityType(this string value) - { - if (string.Equals(value, "None", StringComparison.InvariantCultureIgnoreCase)) return ApplicationManagedIdentityType.None; - if (string.Equals(value, "SystemAssigned", StringComparison.InvariantCultureIgnoreCase)) return ApplicationManagedIdentityType.SystemAssigned; - if (string.Equals(value, "UserAssigned", StringComparison.InvariantCultureIgnoreCase)) return ApplicationManagedIdentityType.UserAssigned; - if (string.Equals(value, "SystemAssigned, UserAssigned", StringComparison.InvariantCultureIgnoreCase)) return ApplicationManagedIdentityType.SystemAssignedUserAssigned; - throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown ApplicationManagedIdentityType value."); - } - } -} diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ApplicationManagementMode.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ApplicationManagementMode.cs deleted file mode 100644 index 94896fe112f0f..0000000000000 --- a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ApplicationManagementMode.cs +++ /dev/null @@ -1,54 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.ComponentModel; - -namespace Azure.ResourceManager.Resources.Models -{ - /// The management mode. - public readonly partial struct ApplicationManagementMode : IEquatable - { - private readonly string _value; - - /// Initializes a new instance of . - /// is null. - public ApplicationManagementMode(string value) - { - _value = value ?? throw new ArgumentNullException(nameof(value)); - } - - private const string NotSpecifiedValue = "NotSpecified"; - private const string UnmanagedValue = "Unmanaged"; - private const string ManagedValue = "Managed"; - - /// NotSpecified. - public static ApplicationManagementMode NotSpecified { get; } = new ApplicationManagementMode(NotSpecifiedValue); - /// Unmanaged. - public static ApplicationManagementMode Unmanaged { get; } = new ApplicationManagementMode(UnmanagedValue); - /// Managed. - public static ApplicationManagementMode Managed { get; } = new ApplicationManagementMode(ManagedValue); - /// Determines if two values are the same. - public static bool operator ==(ApplicationManagementMode left, ApplicationManagementMode right) => left.Equals(right); - /// Determines if two values are not the same. - public static bool operator !=(ApplicationManagementMode left, ApplicationManagementMode right) => !left.Equals(right); - /// Converts a string to a . - public static implicit operator ApplicationManagementMode(string value) => new ApplicationManagementMode(value); - - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public override bool Equals(object obj) => obj is ApplicationManagementMode other && Equals(other); - /// - public bool Equals(ApplicationManagementMode other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); - - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public override int GetHashCode() => _value?.GetHashCode() ?? 0; - /// - public override string ToString() => _value; - } -} diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ApplicationPackageSupportUrls.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ApplicationPackageSupportUrls.cs deleted file mode 100644 index 6036f20d4b383..0000000000000 --- a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ApplicationPackageSupportUrls.cs +++ /dev/null @@ -1,32 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -namespace Azure.ResourceManager.Resources.Models -{ - /// The appliance package support URLs. - public partial class ApplicationPackageSupportUrls - { - /// Initializes a new instance of ApplicationPackageSupportUrls. - internal ApplicationPackageSupportUrls() - { - } - - /// Initializes a new instance of ApplicationPackageSupportUrls. - /// The public azure support URL. - /// The government cloud support URL. - internal ApplicationPackageSupportUrls(string publicAzure, string governmentCloud) - { - PublicAzure = publicAzure; - GovernmentCloud = governmentCloud; - } - - /// The public azure support URL. - public string PublicAzure { get; } - /// The government cloud support URL. - public string GovernmentCloud { get; } - } -} diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ApplicationArtifact.Serialization.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmApplicationArtifact.Serialization.cs similarity index 61% rename from sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ApplicationArtifact.Serialization.cs rename to sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmApplicationArtifact.Serialization.cs index de0bafa6ee85f..90afcd2b34d8d 100644 --- a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ApplicationArtifact.Serialization.cs +++ b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmApplicationArtifact.Serialization.cs @@ -11,18 +11,18 @@ namespace Azure.ResourceManager.Resources.Models { - public partial class ApplicationArtifact + public partial class ArmApplicationArtifact { - internal static ApplicationArtifact DeserializeApplicationArtifact(JsonElement element) + internal static ArmApplicationArtifact DeserializeArmApplicationArtifact(JsonElement element) { - ApplicationArtifactName name = default; + ArmApplicationArtifactName name = default; Uri uri = default; - ApplicationArtifactType type = default; + ArmApplicationArtifactType type = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("name")) { - name = new ApplicationArtifactName(property.Value.GetString()); + name = new ArmApplicationArtifactName(property.Value.GetString()); continue; } if (property.NameEquals("uri")) @@ -32,11 +32,11 @@ internal static ApplicationArtifact DeserializeApplicationArtifact(JsonElement e } if (property.NameEquals("type")) { - type = property.Value.GetString().ToApplicationArtifactType(); + type = property.Value.GetString().ToArmApplicationArtifactType(); continue; } } - return new ApplicationArtifact(name, uri, type); + return new ArmApplicationArtifact(name, uri, type); } } } diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ApplicationArtifact.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmApplicationArtifact.cs similarity index 62% rename from sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ApplicationArtifact.cs rename to sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmApplicationArtifact.cs index dfe5fb286fc90..25a5e6092b761 100644 --- a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ApplicationArtifact.cs +++ b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmApplicationArtifact.cs @@ -10,14 +10,14 @@ namespace Azure.ResourceManager.Resources.Models { /// Managed application artifact. - public partial class ApplicationArtifact + public partial class ArmApplicationArtifact { - /// Initializes a new instance of ApplicationArtifact. + /// Initializes a new instance of ArmApplicationArtifact. /// The managed application artifact name. /// The managed application artifact blob uri. - /// The managed application artifact type. + /// The managed application artifact type. /// is null. - internal ApplicationArtifact(ApplicationArtifactName name, Uri uri, ApplicationArtifactType applicationArtifactType) + internal ArmApplicationArtifact(ArmApplicationArtifactName name, Uri uri, ArmApplicationArtifactType armApplicationArtifactType) { if (uri == null) { @@ -26,14 +26,14 @@ internal ApplicationArtifact(ApplicationArtifactName name, Uri uri, ApplicationA Name = name; Uri = uri; - ApplicationArtifactType = applicationArtifactType; + ArmApplicationArtifactType = armApplicationArtifactType; } /// The managed application artifact name. - public ApplicationArtifactName Name { get; } + public ArmApplicationArtifactName Name { get; } /// The managed application artifact blob uri. public Uri Uri { get; } /// The managed application artifact type. - public ApplicationArtifactType ApplicationArtifactType { get; } + public ArmApplicationArtifactType ArmApplicationArtifactType { get; } } } diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmApplicationArtifactName.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmApplicationArtifactName.cs new file mode 100644 index 0000000000000..ffa7851ae56ae --- /dev/null +++ b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmApplicationArtifactName.cs @@ -0,0 +1,57 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.ResourceManager.Resources.Models +{ + /// The managed application artifact name. + public readonly partial struct ArmApplicationArtifactName : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public ArmApplicationArtifactName(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string NotSpecifiedValue = "NotSpecified"; + private const string ViewDefinitionValue = "ViewDefinition"; + private const string AuthorizationsValue = "Authorizations"; + private const string CustomRoleDefinitionValue = "CustomRoleDefinition"; + + /// NotSpecified. + public static ArmApplicationArtifactName NotSpecified { get; } = new ArmApplicationArtifactName(NotSpecifiedValue); + /// ViewDefinition. + public static ArmApplicationArtifactName ViewDefinition { get; } = new ArmApplicationArtifactName(ViewDefinitionValue); + /// Authorizations. + public static ArmApplicationArtifactName Authorizations { get; } = new ArmApplicationArtifactName(AuthorizationsValue); + /// CustomRoleDefinition. + public static ArmApplicationArtifactName CustomRoleDefinition { get; } = new ArmApplicationArtifactName(CustomRoleDefinitionValue); + /// Determines if two values are the same. + public static bool operator ==(ArmApplicationArtifactName left, ArmApplicationArtifactName right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(ArmApplicationArtifactName left, ArmApplicationArtifactName right) => !left.Equals(right); + /// Converts a string to a . + public static implicit operator ArmApplicationArtifactName(string value) => new ArmApplicationArtifactName(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is ArmApplicationArtifactName other && Equals(other); + /// + public bool Equals(ArmApplicationArtifactName other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value?.GetHashCode() ?? 0; + /// + public override string ToString() => _value; + } +} diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmApplicationArtifactType.Serialization.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmApplicationArtifactType.Serialization.cs new file mode 100644 index 0000000000000..23bdb0eb42835 --- /dev/null +++ b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmApplicationArtifactType.Serialization.cs @@ -0,0 +1,30 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; + +namespace Azure.ResourceManager.Resources.Models +{ + internal static partial class ArmApplicationArtifactTypeExtensions + { + public static string ToSerialString(this ArmApplicationArtifactType value) => value switch + { + ArmApplicationArtifactType.NotSpecified => "NotSpecified", + ArmApplicationArtifactType.Template => "Template", + ArmApplicationArtifactType.Custom => "Custom", + _ => throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown ArmApplicationArtifactType value.") + }; + + public static ArmApplicationArtifactType ToArmApplicationArtifactType(this string value) + { + if (string.Equals(value, "NotSpecified", StringComparison.InvariantCultureIgnoreCase)) return ArmApplicationArtifactType.NotSpecified; + if (string.Equals(value, "Template", StringComparison.InvariantCultureIgnoreCase)) return ArmApplicationArtifactType.Template; + if (string.Equals(value, "Custom", StringComparison.InvariantCultureIgnoreCase)) return ArmApplicationArtifactType.Custom; + throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown ArmApplicationArtifactType value."); + } + } +} diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ApplicationArtifactType.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmApplicationArtifactType.cs similarity index 91% rename from sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ApplicationArtifactType.cs rename to sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmApplicationArtifactType.cs index de152c5a3ee37..a4b659d423db2 100644 --- a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ApplicationArtifactType.cs +++ b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmApplicationArtifactType.cs @@ -8,7 +8,7 @@ namespace Azure.ResourceManager.Resources.Models { /// The managed application artifact type. - public enum ApplicationArtifactType + public enum ArmApplicationArtifactType { /// NotSpecified. NotSpecified, diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ApplicationAuthorization.Serialization.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmApplicationAuthorization.Serialization.cs similarity index 73% rename from sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ApplicationAuthorization.Serialization.cs rename to sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmApplicationAuthorization.Serialization.cs index bb36e911c5790..70f6e6d22be44 100644 --- a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ApplicationAuthorization.Serialization.cs +++ b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmApplicationAuthorization.Serialization.cs @@ -5,12 +5,13 @@ #nullable disable +using System; using System.Text.Json; using Azure.Core; namespace Azure.ResourceManager.Resources.Models { - public partial class ApplicationAuthorization : IUtf8JsonSerializable + public partial class ArmApplicationAuthorization : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -22,15 +23,15 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndObject(); } - internal static ApplicationAuthorization DeserializeApplicationAuthorization(JsonElement element) + internal static ArmApplicationAuthorization DeserializeArmApplicationAuthorization(JsonElement element) { - string principalId = default; + Guid principalId = default; string roleDefinitionId = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("principalId")) { - principalId = property.Value.GetString(); + principalId = property.Value.GetGuid(); continue; } if (property.NameEquals("roleDefinitionId")) @@ -39,7 +40,7 @@ internal static ApplicationAuthorization DeserializeApplicationAuthorization(Jso continue; } } - return new ApplicationAuthorization(principalId, roleDefinitionId); + return new ArmApplicationAuthorization(principalId, roleDefinitionId); } } } diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ApplicationAuthorization.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmApplicationAuthorization.cs similarity index 76% rename from sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ApplicationAuthorization.cs rename to sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmApplicationAuthorization.cs index 83d2d84d3143e..2651963ce6f7c 100644 --- a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ApplicationAuthorization.cs +++ b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmApplicationAuthorization.cs @@ -10,18 +10,14 @@ namespace Azure.ResourceManager.Resources.Models { /// The managed application provider authorization. - public partial class ApplicationAuthorization + public partial class ArmApplicationAuthorization { - /// Initializes a new instance of ApplicationAuthorization. + /// Initializes a new instance of ArmApplicationAuthorization. /// The provider's principal identifier. This is the identity that the provider will use to call ARM to manage the managed application resources. /// The provider's role definition identifier. This role will define all the permissions that the provider must have on the managed application's container resource group. This role definition cannot have permission to delete the resource group. - /// or is null. - public ApplicationAuthorization(string principalId, string roleDefinitionId) + /// is null. + public ArmApplicationAuthorization(Guid principalId, string roleDefinitionId) { - if (principalId == null) - { - throw new ArgumentNullException(nameof(principalId)); - } if (roleDefinitionId == null) { throw new ArgumentNullException(nameof(roleDefinitionId)); @@ -32,7 +28,7 @@ public ApplicationAuthorization(string principalId, string roleDefinitionId) } /// The provider's principal identifier. This is the identity that the provider will use to call ARM to manage the managed application resources. - public string PrincipalId { get; set; } + public Guid PrincipalId { get; set; } /// The provider's role definition identifier. This role will define all the permissions that the provider must have on the managed application's container resource group. This role definition cannot have permission to delete the resource group. public string RoleDefinitionId { get; set; } } diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ApplicationBillingDetailsDefinition.Serialization.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmApplicationBillingDetails.Serialization.cs similarity index 68% rename from sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ApplicationBillingDetailsDefinition.Serialization.cs rename to sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmApplicationBillingDetails.Serialization.cs index dd5cd2224afdc..e7b1df9aa63b5 100644 --- a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ApplicationBillingDetailsDefinition.Serialization.cs +++ b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmApplicationBillingDetails.Serialization.cs @@ -10,9 +10,9 @@ namespace Azure.ResourceManager.Resources.Models { - internal partial class ApplicationBillingDetailsDefinition + internal partial class ArmApplicationBillingDetails { - internal static ApplicationBillingDetailsDefinition DeserializeApplicationBillingDetailsDefinition(JsonElement element) + internal static ArmApplicationBillingDetails DeserializeArmApplicationBillingDetails(JsonElement element) { Optional resourceUsageId = default; foreach (var property in element.EnumerateObject()) @@ -23,7 +23,7 @@ internal static ApplicationBillingDetailsDefinition DeserializeApplicationBillin continue; } } - return new ApplicationBillingDetailsDefinition(resourceUsageId.Value); + return new ArmApplicationBillingDetails(resourceUsageId.Value); } } } diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ApplicationBillingDetailsDefinition.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmApplicationBillingDetails.cs similarity index 59% rename from sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ApplicationBillingDetailsDefinition.cs rename to sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmApplicationBillingDetails.cs index cf39f633053a4..f2407abb15262 100644 --- a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ApplicationBillingDetailsDefinition.cs +++ b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmApplicationBillingDetails.cs @@ -8,16 +8,16 @@ namespace Azure.ResourceManager.Resources.Models { /// Managed application billing details definition. - internal partial class ApplicationBillingDetailsDefinition + internal partial class ArmApplicationBillingDetails { - /// Initializes a new instance of ApplicationBillingDetailsDefinition. - internal ApplicationBillingDetailsDefinition() + /// Initializes a new instance of ArmApplicationBillingDetails. + internal ArmApplicationBillingDetails() { } - /// Initializes a new instance of ApplicationBillingDetailsDefinition. + /// Initializes a new instance of ArmApplicationBillingDetails. /// The managed application resource usage Id. - internal ApplicationBillingDetailsDefinition(string resourceUsageId) + internal ArmApplicationBillingDetails(string resourceUsageId) { ResourceUsageId = resourceUsageId; } diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ApplicationData.Serialization.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmApplicationData.Serialization.cs similarity index 76% rename from sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ApplicationData.Serialization.cs rename to sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmApplicationData.Serialization.cs index 957411ab1b259..765aaa9739ef6 100644 --- a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ApplicationData.Serialization.cs +++ b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmApplicationData.Serialization.cs @@ -14,7 +14,7 @@ namespace Azure.ResourceManager.Resources { - public partial class ApplicationData : IUtf8JsonSerializable + public partial class ArmApplicationData : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -81,34 +81,34 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndObject(); } - internal static ApplicationData DeserializeApplicationData(JsonElement element) + internal static ArmApplicationData DeserializeArmApplicationData(JsonElement element) { Optional plan = default; string kind = default; - Optional identity = default; + Optional identity = default; Optional managedBy = default; - Optional sku = default; + Optional sku = default; IDictionary tags = default; AzureLocation location = default; ResourceIdentifier id = default; string name = default; ResourceType type = default; SystemData systemData = default; - Optional managedResourceGroupId = default; - Optional applicationDefinitionId = default; + Optional managedResourceGroupId = default; + Optional applicationDefinitionId = default; Optional parameters = default; Optional outputs = default; - Optional provisioningState = default; - Optional billingDetails = default; - Optional jitAccessPolicy = default; + Optional provisioningState = default; + Optional billingDetails = default; + Optional jitAccessPolicy = default; Optional publisherTenantId = default; - Optional> authorizations = default; - Optional managementMode = default; - Optional customerSupport = default; - Optional supportUrls = default; - Optional> artifacts = default; - Optional createdBy = default; - Optional updatedBy = default; + Optional> authorizations = default; + Optional managementMode = default; + Optional customerSupport = default; + Optional supportUrls = default; + Optional> artifacts = default; + Optional createdBy = default; + Optional updatedBy = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("plan")) @@ -133,7 +133,7 @@ internal static ApplicationData DeserializeApplicationData(JsonElement element) property.ThrowNonNullablePropertyIsNull(); continue; } - identity = ApplicationManagedIdentity.DeserializeApplicationManagedIdentity(property.Value); + identity = ArmApplicationManagedIdentity.DeserializeArmApplicationManagedIdentity(property.Value); continue; } if (property.NameEquals("managedBy")) @@ -148,7 +148,7 @@ internal static ApplicationData DeserializeApplicationData(JsonElement element) property.ThrowNonNullablePropertyIsNull(); continue; } - sku = ApplicationSku.DeserializeApplicationSku(property.Value); + sku = ArmApplicationSku.DeserializeArmApplicationSku(property.Value); continue; } if (property.NameEquals("tags")) @@ -197,12 +197,22 @@ internal static ApplicationData DeserializeApplicationData(JsonElement element) { if (property0.NameEquals("managedResourceGroupId")) { - managedResourceGroupId = property0.Value.GetString(); + if (property0.Value.ValueKind == JsonValueKind.Null) + { + property0.ThrowNonNullablePropertyIsNull(); + continue; + } + managedResourceGroupId = new ResourceIdentifier(property0.Value.GetString()); continue; } if (property0.NameEquals("applicationDefinitionId")) { - applicationDefinitionId = property0.Value.GetString(); + if (property0.Value.ValueKind == JsonValueKind.Null) + { + property0.ThrowNonNullablePropertyIsNull(); + continue; + } + applicationDefinitionId = new ResourceIdentifier(property0.Value.GetString()); continue; } if (property0.NameEquals("parameters")) @@ -232,7 +242,7 @@ internal static ApplicationData DeserializeApplicationData(JsonElement element) property0.ThrowNonNullablePropertyIsNull(); continue; } - provisioningState = new ProvisioningState(property0.Value.GetString()); + provisioningState = new ResourcesProvisioningState(property0.Value.GetString()); continue; } if (property0.NameEquals("billingDetails")) @@ -242,7 +252,7 @@ internal static ApplicationData DeserializeApplicationData(JsonElement element) property0.ThrowNonNullablePropertyIsNull(); continue; } - billingDetails = ApplicationBillingDetailsDefinition.DeserializeApplicationBillingDetailsDefinition(property0.Value); + billingDetails = ArmApplicationBillingDetails.DeserializeArmApplicationBillingDetails(property0.Value); continue; } if (property0.NameEquals("jitAccessPolicy")) @@ -252,7 +262,7 @@ internal static ApplicationData DeserializeApplicationData(JsonElement element) property0.ThrowNonNullablePropertyIsNull(); continue; } - jitAccessPolicy = ApplicationJitAccessPolicy.DeserializeApplicationJitAccessPolicy(property0.Value); + jitAccessPolicy = ArmApplicationJitAccessPolicy.DeserializeArmApplicationJitAccessPolicy(property0.Value); continue; } if (property0.NameEquals("publisherTenantId")) @@ -267,10 +277,10 @@ internal static ApplicationData DeserializeApplicationData(JsonElement element) property0.ThrowNonNullablePropertyIsNull(); continue; } - List array = new List(); + List array = new List(); foreach (var item in property0.Value.EnumerateArray()) { - array.Add(ApplicationAuthorization.DeserializeApplicationAuthorization(item)); + array.Add(ArmApplicationAuthorization.DeserializeArmApplicationAuthorization(item)); } authorizations = array; continue; @@ -282,7 +292,7 @@ internal static ApplicationData DeserializeApplicationData(JsonElement element) property0.ThrowNonNullablePropertyIsNull(); continue; } - managementMode = new ApplicationManagementMode(property0.Value.GetString()); + managementMode = new ArmApplicationManagementMode(property0.Value.GetString()); continue; } if (property0.NameEquals("customerSupport")) @@ -292,7 +302,7 @@ internal static ApplicationData DeserializeApplicationData(JsonElement element) property0.ThrowNonNullablePropertyIsNull(); continue; } - customerSupport = ApplicationPackageContact.DeserializeApplicationPackageContact(property0.Value); + customerSupport = ArmApplicationPackageContact.DeserializeArmApplicationPackageContact(property0.Value); continue; } if (property0.NameEquals("supportUrls")) @@ -302,7 +312,7 @@ internal static ApplicationData DeserializeApplicationData(JsonElement element) property0.ThrowNonNullablePropertyIsNull(); continue; } - supportUrls = ApplicationPackageSupportUrls.DeserializeApplicationPackageSupportUrls(property0.Value); + supportUrls = ArmApplicationPackageSupportUrls.DeserializeArmApplicationPackageSupportUrls(property0.Value); continue; } if (property0.NameEquals("artifacts")) @@ -312,10 +322,10 @@ internal static ApplicationData DeserializeApplicationData(JsonElement element) property0.ThrowNonNullablePropertyIsNull(); continue; } - List array = new List(); + List array = new List(); foreach (var item in property0.Value.EnumerateArray()) { - array.Add(ApplicationArtifact.DeserializeApplicationArtifact(item)); + array.Add(ArmApplicationArtifact.DeserializeArmApplicationArtifact(item)); } artifacts = array; continue; @@ -327,7 +337,7 @@ internal static ApplicationData DeserializeApplicationData(JsonElement element) property0.ThrowNonNullablePropertyIsNull(); continue; } - createdBy = ApplicationClientDetails.DeserializeApplicationClientDetails(property0.Value); + createdBy = ArmApplicationDetails.DeserializeArmApplicationDetails(property0.Value); continue; } if (property0.NameEquals("updatedBy")) @@ -337,14 +347,14 @@ internal static ApplicationData DeserializeApplicationData(JsonElement element) property0.ThrowNonNullablePropertyIsNull(); continue; } - updatedBy = ApplicationClientDetails.DeserializeApplicationClientDetails(property0.Value); + updatedBy = ArmApplicationDetails.DeserializeArmApplicationDetails(property0.Value); continue; } } continue; } } - return new ApplicationData(id, name, type, systemData, tags, location, managedBy.Value, sku.Value, plan, kind, identity.Value, managedResourceGroupId.Value, applicationDefinitionId.Value, parameters.Value, outputs.Value, Optional.ToNullable(provisioningState), billingDetails.Value, jitAccessPolicy.Value, publisherTenantId.Value, Optional.ToList(authorizations), Optional.ToNullable(managementMode), customerSupport.Value, supportUrls.Value, Optional.ToList(artifacts), createdBy.Value, updatedBy.Value); + return new ArmApplicationData(id, name, type, systemData, tags, location, managedBy.Value, sku.Value, plan, kind, identity.Value, managedResourceGroupId.Value, applicationDefinitionId.Value, parameters.Value, outputs.Value, Optional.ToNullable(provisioningState), billingDetails.Value, jitAccessPolicy.Value, publisherTenantId.Value, Optional.ToList(authorizations), Optional.ToNullable(managementMode), customerSupport.Value, supportUrls.Value, Optional.ToList(artifacts), createdBy.Value, updatedBy.Value); } } } diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ApplicationDefinitionArtifact.Serialization.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmApplicationDefinitionArtifact.Serialization.cs similarity index 64% rename from sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ApplicationDefinitionArtifact.Serialization.cs rename to sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmApplicationDefinitionArtifact.Serialization.cs index 48064399c520a..6230b0bef52c1 100644 --- a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ApplicationDefinitionArtifact.Serialization.cs +++ b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmApplicationDefinitionArtifact.Serialization.cs @@ -11,7 +11,7 @@ namespace Azure.ResourceManager.Resources.Models { - public partial class ApplicationDefinitionArtifact : IUtf8JsonSerializable + public partial class ArmApplicationDefinitionArtifact : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -21,20 +21,20 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WritePropertyName("uri"); writer.WriteStringValue(Uri.AbsoluteUri); writer.WritePropertyName("type"); - writer.WriteStringValue(ApplicationArtifactType.ToSerialString()); + writer.WriteStringValue(ArmApplicationArtifactType.ToSerialString()); writer.WriteEndObject(); } - internal static ApplicationDefinitionArtifact DeserializeApplicationDefinitionArtifact(JsonElement element) + internal static ArmApplicationDefinitionArtifact DeserializeArmApplicationDefinitionArtifact(JsonElement element) { - ApplicationDefinitionArtifactName name = default; + ArmApplicationDefinitionArtifactName name = default; Uri uri = default; - ApplicationArtifactType type = default; + ArmApplicationArtifactType type = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("name")) { - name = new ApplicationDefinitionArtifactName(property.Value.GetString()); + name = new ArmApplicationDefinitionArtifactName(property.Value.GetString()); continue; } if (property.NameEquals("uri")) @@ -44,11 +44,11 @@ internal static ApplicationDefinitionArtifact DeserializeApplicationDefinitionAr } if (property.NameEquals("type")) { - type = property.Value.GetString().ToApplicationArtifactType(); + type = property.Value.GetString().ToArmApplicationArtifactType(); continue; } } - return new ApplicationDefinitionArtifact(name, uri, type); + return new ArmApplicationDefinitionArtifact(name, uri, type); } } } diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ApplicationDefinitionArtifact.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmApplicationDefinitionArtifact.cs similarity index 61% rename from sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ApplicationDefinitionArtifact.cs rename to sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmApplicationDefinitionArtifact.cs index 7f2ed62ae353d..98d8f9cc31aa3 100644 --- a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ApplicationDefinitionArtifact.cs +++ b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmApplicationDefinitionArtifact.cs @@ -10,14 +10,14 @@ namespace Azure.ResourceManager.Resources.Models { /// Application definition artifact. - public partial class ApplicationDefinitionArtifact + public partial class ArmApplicationDefinitionArtifact { - /// Initializes a new instance of ApplicationDefinitionArtifact. + /// Initializes a new instance of ArmApplicationDefinitionArtifact. /// The managed application definition artifact name. /// The managed application definition artifact blob uri. - /// The managed application definition artifact type. + /// The managed application definition artifact type. /// is null. - public ApplicationDefinitionArtifact(ApplicationDefinitionArtifactName name, Uri uri, ApplicationArtifactType applicationArtifactType) + public ArmApplicationDefinitionArtifact(ArmApplicationDefinitionArtifactName name, Uri uri, ArmApplicationArtifactType armApplicationArtifactType) { if (uri == null) { @@ -26,14 +26,14 @@ public ApplicationDefinitionArtifact(ApplicationDefinitionArtifactName name, Uri Name = name; Uri = uri; - ApplicationArtifactType = applicationArtifactType; + ArmApplicationArtifactType = armApplicationArtifactType; } /// The managed application definition artifact name. - public ApplicationDefinitionArtifactName Name { get; set; } + public ArmApplicationDefinitionArtifactName Name { get; set; } /// The managed application definition artifact blob uri. public Uri Uri { get; set; } /// The managed application definition artifact type. - public ApplicationArtifactType ApplicationArtifactType { get; set; } + public ArmApplicationArtifactType ArmApplicationArtifactType { get; set; } } } diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmApplicationDefinitionArtifactName.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmApplicationDefinitionArtifactName.cs new file mode 100644 index 0000000000000..7f89d738e1552 --- /dev/null +++ b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmApplicationDefinitionArtifactName.cs @@ -0,0 +1,57 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.ResourceManager.Resources.Models +{ + /// The managed application artifact name. + public readonly partial struct ArmApplicationDefinitionArtifactName : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public ArmApplicationDefinitionArtifactName(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string NotSpecifiedValue = "NotSpecified"; + private const string ApplicationResourceTemplateValue = "ApplicationResourceTemplate"; + private const string CreateUiDefinitionValue = "CreateUiDefinition"; + private const string MainTemplateParametersValue = "MainTemplateParameters"; + + /// NotSpecified. + public static ArmApplicationDefinitionArtifactName NotSpecified { get; } = new ArmApplicationDefinitionArtifactName(NotSpecifiedValue); + /// ApplicationResourceTemplate. + public static ArmApplicationDefinitionArtifactName ApplicationResourceTemplate { get; } = new ArmApplicationDefinitionArtifactName(ApplicationResourceTemplateValue); + /// CreateUiDefinition. + public static ArmApplicationDefinitionArtifactName CreateUiDefinition { get; } = new ArmApplicationDefinitionArtifactName(CreateUiDefinitionValue); + /// MainTemplateParameters. + public static ArmApplicationDefinitionArtifactName MainTemplateParameters { get; } = new ArmApplicationDefinitionArtifactName(MainTemplateParametersValue); + /// Determines if two values are the same. + public static bool operator ==(ArmApplicationDefinitionArtifactName left, ArmApplicationDefinitionArtifactName right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(ArmApplicationDefinitionArtifactName left, ArmApplicationDefinitionArtifactName right) => !left.Equals(right); + /// Converts a string to a . + public static implicit operator ArmApplicationDefinitionArtifactName(string value) => new ArmApplicationDefinitionArtifactName(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is ArmApplicationDefinitionArtifactName other && Equals(other); + /// + public bool Equals(ArmApplicationDefinitionArtifactName other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value?.GetHashCode() ?? 0; + /// + public override string ToString() => _value; + } +} diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ApplicationDefinitionData.Serialization.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmApplicationDefinitionData.Serialization.cs similarity index 84% rename from sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ApplicationDefinitionData.Serialization.cs rename to sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmApplicationDefinitionData.Serialization.cs index 4f821ec323bf9..6601bf373fbaf 100644 --- a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ApplicationDefinitionData.Serialization.cs +++ b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmApplicationDefinitionData.Serialization.cs @@ -14,7 +14,7 @@ namespace Azure.ResourceManager.Resources { - public partial class ApplicationDefinitionData : IUtf8JsonSerializable + public partial class ArmApplicationDefinitionData : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -135,30 +135,30 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndObject(); } - internal static ApplicationDefinitionData DeserializeApplicationDefinitionData(JsonElement element) + internal static ArmApplicationDefinitionData DeserializeArmApplicationDefinitionData(JsonElement element) { Optional managedBy = default; - Optional sku = default; + Optional sku = default; IDictionary tags = default; AzureLocation location = default; ResourceIdentifier id = default; string name = default; ResourceType type = default; SystemData systemData = default; - ApplicationLockLevel lockLevel = default; + ArmApplicationLockLevel lockLevel = default; Optional displayName = default; Optional isEnabled = default; - Optional> authorizations = default; - Optional> artifacts = default; + Optional> authorizations = default; + Optional> artifacts = default; Optional description = default; Optional packageFileUri = default; Optional mainTemplate = default; Optional createUiDefinition = default; - Optional notificationPolicy = default; - Optional lockingPolicy = default; - Optional deploymentPolicy = default; - Optional managementPolicy = default; - Optional> policies = default; + Optional notificationPolicy = default; + Optional lockingPolicy = default; + Optional deploymentPolicy = default; + Optional managementPolicy = default; + Optional> policies = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("managedBy")) @@ -173,7 +173,7 @@ internal static ApplicationDefinitionData DeserializeApplicationDefinitionData(J property.ThrowNonNullablePropertyIsNull(); continue; } - sku = ApplicationSku.DeserializeApplicationSku(property.Value); + sku = ArmApplicationSku.DeserializeArmApplicationSku(property.Value); continue; } if (property.NameEquals("tags")) @@ -222,7 +222,7 @@ internal static ApplicationDefinitionData DeserializeApplicationDefinitionData(J { if (property0.NameEquals("lockLevel")) { - lockLevel = property0.Value.GetString().ToApplicationLockLevel(); + lockLevel = property0.Value.GetString().ToArmApplicationLockLevel(); continue; } if (property0.NameEquals("displayName")) @@ -247,10 +247,10 @@ internal static ApplicationDefinitionData DeserializeApplicationDefinitionData(J property0.ThrowNonNullablePropertyIsNull(); continue; } - List array = new List(); + List array = new List(); foreach (var item in property0.Value.EnumerateArray()) { - array.Add(ApplicationAuthorization.DeserializeApplicationAuthorization(item)); + array.Add(ArmApplicationAuthorization.DeserializeArmApplicationAuthorization(item)); } authorizations = array; continue; @@ -262,10 +262,10 @@ internal static ApplicationDefinitionData DeserializeApplicationDefinitionData(J property0.ThrowNonNullablePropertyIsNull(); continue; } - List array = new List(); + List array = new List(); foreach (var item in property0.Value.EnumerateArray()) { - array.Add(ApplicationDefinitionArtifact.DeserializeApplicationDefinitionArtifact(item)); + array.Add(ArmApplicationDefinitionArtifact.DeserializeArmApplicationDefinitionArtifact(item)); } artifacts = array; continue; @@ -312,7 +312,7 @@ internal static ApplicationDefinitionData DeserializeApplicationDefinitionData(J property0.ThrowNonNullablePropertyIsNull(); continue; } - notificationPolicy = ApplicationNotificationPolicy.DeserializeApplicationNotificationPolicy(property0.Value); + notificationPolicy = ArmApplicationNotificationPolicy.DeserializeArmApplicationNotificationPolicy(property0.Value); continue; } if (property0.NameEquals("lockingPolicy")) @@ -322,7 +322,7 @@ internal static ApplicationDefinitionData DeserializeApplicationDefinitionData(J property0.ThrowNonNullablePropertyIsNull(); continue; } - lockingPolicy = ApplicationPackageLockingPolicyDefinition.DeserializeApplicationPackageLockingPolicyDefinition(property0.Value); + lockingPolicy = ArmApplicationPackageLockingPolicy.DeserializeArmApplicationPackageLockingPolicy(property0.Value); continue; } if (property0.NameEquals("deploymentPolicy")) @@ -332,7 +332,7 @@ internal static ApplicationDefinitionData DeserializeApplicationDefinitionData(J property0.ThrowNonNullablePropertyIsNull(); continue; } - deploymentPolicy = ApplicationDeploymentPolicy.DeserializeApplicationDeploymentPolicy(property0.Value); + deploymentPolicy = ArmApplicationDeploymentPolicy.DeserializeArmApplicationDeploymentPolicy(property0.Value); continue; } if (property0.NameEquals("managementPolicy")) @@ -342,7 +342,7 @@ internal static ApplicationDefinitionData DeserializeApplicationDefinitionData(J property0.ThrowNonNullablePropertyIsNull(); continue; } - managementPolicy = ApplicationManagementPolicy.DeserializeApplicationManagementPolicy(property0.Value); + managementPolicy = ArmApplicationManagementPolicy.DeserializeArmApplicationManagementPolicy(property0.Value); continue; } if (property0.NameEquals("policies")) @@ -352,10 +352,10 @@ internal static ApplicationDefinitionData DeserializeApplicationDefinitionData(J property0.ThrowNonNullablePropertyIsNull(); continue; } - List array = new List(); + List array = new List(); foreach (var item in property0.Value.EnumerateArray()) { - array.Add(ApplicationPolicy.DeserializeApplicationPolicy(item)); + array.Add(ArmApplicationPolicy.DeserializeArmApplicationPolicy(item)); } policies = array; continue; @@ -364,7 +364,7 @@ internal static ApplicationDefinitionData DeserializeApplicationDefinitionData(J continue; } } - return new ApplicationDefinitionData(id, name, type, systemData, tags, location, managedBy.Value, sku.Value, lockLevel, displayName.Value, Optional.ToNullable(isEnabled), Optional.ToList(authorizations), Optional.ToList(artifacts), description.Value, packageFileUri.Value, mainTemplate.Value, createUiDefinition.Value, notificationPolicy.Value, lockingPolicy.Value, deploymentPolicy.Value, managementPolicy.Value, Optional.ToList(policies)); + return new ArmApplicationDefinitionData(id, name, type, systemData, tags, location, managedBy.Value, sku.Value, lockLevel, displayName.Value, Optional.ToNullable(isEnabled), Optional.ToList(authorizations), Optional.ToList(artifacts), description.Value, packageFileUri.Value, mainTemplate.Value, createUiDefinition.Value, notificationPolicy.Value, lockingPolicy.Value, deploymentPolicy.Value, managementPolicy.Value, Optional.ToList(policies)); } } } diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ApplicationDefinitionListResult.Serialization.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmApplicationDefinitionListResult.Serialization.cs similarity index 66% rename from sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ApplicationDefinitionListResult.Serialization.cs rename to sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmApplicationDefinitionListResult.Serialization.cs index 96cf5486b529a..01b92b50277f8 100644 --- a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ApplicationDefinitionListResult.Serialization.cs +++ b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmApplicationDefinitionListResult.Serialization.cs @@ -12,11 +12,11 @@ namespace Azure.ResourceManager.Resources.Models { - internal partial class ApplicationDefinitionListResult + internal partial class ArmApplicationDefinitionListResult { - internal static ApplicationDefinitionListResult DeserializeApplicationDefinitionListResult(JsonElement element) + internal static ArmApplicationDefinitionListResult DeserializeArmApplicationDefinitionListResult(JsonElement element) { - Optional> value = default; + Optional> value = default; Optional nextLink = default; foreach (var property in element.EnumerateObject()) { @@ -27,10 +27,10 @@ internal static ApplicationDefinitionListResult DeserializeApplicationDefinition property.ThrowNonNullablePropertyIsNull(); continue; } - List array = new List(); + List array = new List(); foreach (var item in property.Value.EnumerateArray()) { - array.Add(ApplicationDefinitionData.DeserializeApplicationDefinitionData(item)); + array.Add(ArmApplicationDefinitionData.DeserializeArmApplicationDefinitionData(item)); } value = array; continue; @@ -41,7 +41,7 @@ internal static ApplicationDefinitionListResult DeserializeApplicationDefinition continue; } } - return new ApplicationDefinitionListResult(Optional.ToList(value), nextLink.Value); + return new ArmApplicationDefinitionListResult(Optional.ToList(value), nextLink.Value); } } } diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ApplicationDefinitionListResult.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmApplicationDefinitionListResult.cs similarity index 59% rename from sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ApplicationDefinitionListResult.cs rename to sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmApplicationDefinitionListResult.cs index 4e9f45f3a77bc..cdb59568cd690 100644 --- a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ApplicationDefinitionListResult.cs +++ b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmApplicationDefinitionListResult.cs @@ -12,25 +12,25 @@ namespace Azure.ResourceManager.Resources.Models { /// List of managed application definitions. - internal partial class ApplicationDefinitionListResult + internal partial class ArmApplicationDefinitionListResult { - /// Initializes a new instance of ApplicationDefinitionListResult. - internal ApplicationDefinitionListResult() + /// Initializes a new instance of ArmApplicationDefinitionListResult. + internal ArmApplicationDefinitionListResult() { - Value = new ChangeTrackingList(); + Value = new ChangeTrackingList(); } - /// Initializes a new instance of ApplicationDefinitionListResult. + /// Initializes a new instance of ArmApplicationDefinitionListResult. /// The array of managed application definitions. /// The URL to use for getting the next set of results. - internal ApplicationDefinitionListResult(IReadOnlyList value, string nextLink) + internal ArmApplicationDefinitionListResult(IReadOnlyList value, string nextLink) { Value = value; NextLink = nextLink; } /// The array of managed application definitions. - public IReadOnlyList Value { get; } + public IReadOnlyList Value { get; } /// The URL to use for getting the next set of results. public string NextLink { get; } } diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmApplicationDeploymentMode.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmApplicationDeploymentMode.cs new file mode 100644 index 0000000000000..7f99ca3582765 --- /dev/null +++ b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmApplicationDeploymentMode.cs @@ -0,0 +1,54 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.ResourceManager.Resources.Models +{ + /// The deployment mode. + public readonly partial struct ArmApplicationDeploymentMode : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public ArmApplicationDeploymentMode(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string NotSpecifiedValue = "NotSpecified"; + private const string IncrementalValue = "Incremental"; + private const string CompleteValue = "Complete"; + + /// NotSpecified. + public static ArmApplicationDeploymentMode NotSpecified { get; } = new ArmApplicationDeploymentMode(NotSpecifiedValue); + /// Incremental. + public static ArmApplicationDeploymentMode Incremental { get; } = new ArmApplicationDeploymentMode(IncrementalValue); + /// Complete. + public static ArmApplicationDeploymentMode Complete { get; } = new ArmApplicationDeploymentMode(CompleteValue); + /// Determines if two values are the same. + public static bool operator ==(ArmApplicationDeploymentMode left, ArmApplicationDeploymentMode right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(ArmApplicationDeploymentMode left, ArmApplicationDeploymentMode right) => !left.Equals(right); + /// Converts a string to a . + public static implicit operator ArmApplicationDeploymentMode(string value) => new ArmApplicationDeploymentMode(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is ArmApplicationDeploymentMode other && Equals(other); + /// + public bool Equals(ArmApplicationDeploymentMode other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value?.GetHashCode() ?? 0; + /// + public override string ToString() => _value; + } +} diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ApplicationDeploymentPolicy.Serialization.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmApplicationDeploymentPolicy.Serialization.cs similarity index 63% rename from sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ApplicationDeploymentPolicy.Serialization.cs rename to sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmApplicationDeploymentPolicy.Serialization.cs index 4345e1161a077..b10041112579c 100644 --- a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ApplicationDeploymentPolicy.Serialization.cs +++ b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmApplicationDeploymentPolicy.Serialization.cs @@ -10,7 +10,7 @@ namespace Azure.ResourceManager.Resources.Models { - internal partial class ApplicationDeploymentPolicy : IUtf8JsonSerializable + internal partial class ArmApplicationDeploymentPolicy : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -20,18 +20,18 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndObject(); } - internal static ApplicationDeploymentPolicy DeserializeApplicationDeploymentPolicy(JsonElement element) + internal static ArmApplicationDeploymentPolicy DeserializeArmApplicationDeploymentPolicy(JsonElement element) { - DeploymentMode deploymentMode = default; + ArmApplicationDeploymentMode deploymentMode = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("deploymentMode")) { - deploymentMode = new DeploymentMode(property.Value.GetString()); + deploymentMode = new ArmApplicationDeploymentMode(property.Value.GetString()); continue; } } - return new ApplicationDeploymentPolicy(deploymentMode); + return new ArmApplicationDeploymentPolicy(deploymentMode); } } } diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ApplicationDeploymentPolicy.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmApplicationDeploymentPolicy.cs similarity index 61% rename from sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ApplicationDeploymentPolicy.cs rename to sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmApplicationDeploymentPolicy.cs index 5bf4203a150cf..3f279ba8a9d7d 100644 --- a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ApplicationDeploymentPolicy.cs +++ b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmApplicationDeploymentPolicy.cs @@ -8,16 +8,16 @@ namespace Azure.ResourceManager.Resources.Models { /// Managed application deployment policy. - internal partial class ApplicationDeploymentPolicy + internal partial class ArmApplicationDeploymentPolicy { - /// Initializes a new instance of ApplicationDeploymentPolicy. + /// Initializes a new instance of ArmApplicationDeploymentPolicy. /// The managed application deployment mode. - public ApplicationDeploymentPolicy(DeploymentMode deploymentMode) + public ArmApplicationDeploymentPolicy(ArmApplicationDeploymentMode deploymentMode) { DeploymentMode = deploymentMode; } /// The managed application deployment mode. - public DeploymentMode DeploymentMode { get; set; } + public ArmApplicationDeploymentMode DeploymentMode { get; set; } } } diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmApplicationDetails.Serialization.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmApplicationDetails.Serialization.cs new file mode 100644 index 0000000000000..aebc19e256447 --- /dev/null +++ b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmApplicationDetails.Serialization.cs @@ -0,0 +1,52 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.Resources.Models +{ + public partial class ArmApplicationDetails + { + internal static ArmApplicationDetails DeserializeArmApplicationDetails(JsonElement element) + { + Optional oid = default; + Optional puid = default; + Optional applicationId = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("oid")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + oid = property.Value.GetGuid(); + continue; + } + if (property.NameEquals("puid")) + { + puid = property.Value.GetString(); + continue; + } + if (property.NameEquals("applicationId")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + applicationId = property.Value.GetGuid(); + continue; + } + } + return new ArmApplicationDetails(Optional.ToNullable(oid), puid.Value, Optional.ToNullable(applicationId)); + } + } +} diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ApplicationClientDetails.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmApplicationDetails.cs similarity index 65% rename from sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ApplicationClientDetails.cs rename to sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmApplicationDetails.cs index 2268a9ac1cae3..13179244a0107 100644 --- a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ApplicationClientDetails.cs +++ b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmApplicationDetails.cs @@ -5,21 +5,23 @@ #nullable disable +using System; + namespace Azure.ResourceManager.Resources.Models { /// The application client details to track the entity creating/updating the managed app resource. - public partial class ApplicationClientDetails + public partial class ArmApplicationDetails { - /// Initializes a new instance of ApplicationClientDetails. - internal ApplicationClientDetails() + /// Initializes a new instance of ArmApplicationDetails. + internal ArmApplicationDetails() { } - /// Initializes a new instance of ApplicationClientDetails. + /// Initializes a new instance of ArmApplicationDetails. /// The client Oid. /// The client Puid. /// The client application Id. - internal ApplicationClientDetails(string oid, string puid, string applicationId) + internal ArmApplicationDetails(Guid? oid, string puid, Guid? applicationId) { Oid = oid; Puid = puid; @@ -27,10 +29,10 @@ internal ApplicationClientDetails(string oid, string puid, string applicationId) } /// The client Oid. - public string Oid { get; } + public Guid? Oid { get; } /// The client Puid. public string Puid { get; } /// The client application Id. - public string ApplicationId { get; } + public Guid? ApplicationId { get; } } } diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ApplicationErrorResponse.Serialization.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmApplicationErrorResponse.Serialization.cs similarity index 79% rename from sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ApplicationErrorResponse.Serialization.cs rename to sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmApplicationErrorResponse.Serialization.cs index d4078d2082fe7..b424d79bf0010 100644 --- a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ApplicationErrorResponse.Serialization.cs +++ b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmApplicationErrorResponse.Serialization.cs @@ -10,9 +10,9 @@ namespace Azure.ResourceManager.Resources.Models { - internal partial class ApplicationErrorResponse + internal partial class ArmApplicationErrorResponse { - internal static ApplicationErrorResponse DeserializeApplicationErrorResponse(JsonElement element) + internal static ArmApplicationErrorResponse DeserializeArmApplicationErrorResponse(JsonElement element) { Optional httpStatus = default; Optional errorCode = default; @@ -35,7 +35,7 @@ internal static ApplicationErrorResponse DeserializeApplicationErrorResponse(Jso continue; } } - return new ApplicationErrorResponse(httpStatus.Value, errorCode.Value, errorMessage.Value); + return new ArmApplicationErrorResponse(httpStatus.Value, errorCode.Value, errorMessage.Value); } } } diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ApplicationErrorResponse.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmApplicationErrorResponse.cs similarity index 73% rename from sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ApplicationErrorResponse.cs rename to sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmApplicationErrorResponse.cs index c30073233ec08..dc64967657341 100644 --- a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ApplicationErrorResponse.cs +++ b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmApplicationErrorResponse.cs @@ -8,18 +8,18 @@ namespace Azure.ResourceManager.Resources.Models { /// Error response indicates managed application is not able to process the incoming request. The reason is provided in the error message. - internal partial class ApplicationErrorResponse + internal partial class ArmApplicationErrorResponse { - /// Initializes a new instance of ApplicationErrorResponse. - internal ApplicationErrorResponse() + /// Initializes a new instance of ArmApplicationErrorResponse. + internal ArmApplicationErrorResponse() { } - /// Initializes a new instance of ApplicationErrorResponse. + /// Initializes a new instance of ArmApplicationErrorResponse. /// Http status code. /// Error code. /// Error message indicating why the operation failed. - internal ApplicationErrorResponse(string httpStatus, string errorCode, string errorMessage) + internal ArmApplicationErrorResponse(string httpStatus, string errorCode, string errorMessage) { HttpStatus = httpStatus; ErrorCode = errorCode; diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ApplicationJitAccessPolicy.Serialization.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmApplicationJitAccessPolicy.Serialization.cs similarity index 83% rename from sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ApplicationJitAccessPolicy.Serialization.cs rename to sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmApplicationJitAccessPolicy.Serialization.cs index 44d4e2a0bbd6a..21f400724a1f0 100644 --- a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ApplicationJitAccessPolicy.Serialization.cs +++ b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmApplicationJitAccessPolicy.Serialization.cs @@ -12,7 +12,7 @@ namespace Azure.ResourceManager.Resources.Models { - public partial class ApplicationJitAccessPolicy : IUtf8JsonSerializable + public partial class ArmApplicationJitAccessPolicy : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -42,11 +42,11 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndObject(); } - internal static ApplicationJitAccessPolicy DeserializeApplicationJitAccessPolicy(JsonElement element) + internal static ArmApplicationJitAccessPolicy DeserializeArmApplicationJitAccessPolicy(JsonElement element) { bool jitAccessEnabled = default; Optional jitApprovalMode = default; - Optional> jitApprovers = default; + Optional> jitApprovers = default; Optional maximumJitAccessDuration = default; foreach (var property in element.EnumerateObject()) { @@ -72,10 +72,10 @@ internal static ApplicationJitAccessPolicy DeserializeApplicationJitAccessPolicy property.ThrowNonNullablePropertyIsNull(); continue; } - List array = new List(); + List array = new List(); foreach (var item in property.Value.EnumerateArray()) { - array.Add(JitApproverDefinition.DeserializeJitApproverDefinition(item)); + array.Add(JitApprover.DeserializeJitApprover(item)); } jitApprovers = array; continue; @@ -91,7 +91,7 @@ internal static ApplicationJitAccessPolicy DeserializeApplicationJitAccessPolicy continue; } } - return new ApplicationJitAccessPolicy(jitAccessEnabled, Optional.ToNullable(jitApprovalMode), Optional.ToList(jitApprovers), Optional.ToNullable(maximumJitAccessDuration)); + return new ArmApplicationJitAccessPolicy(jitAccessEnabled, Optional.ToNullable(jitApprovalMode), Optional.ToList(jitApprovers), Optional.ToNullable(maximumJitAccessDuration)); } } } diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ApplicationJitAccessPolicy.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmApplicationJitAccessPolicy.cs similarity index 71% rename from sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ApplicationJitAccessPolicy.cs rename to sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmApplicationJitAccessPolicy.cs index 847ada7e2a215..203d77b2f9c6e 100644 --- a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ApplicationJitAccessPolicy.cs +++ b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmApplicationJitAccessPolicy.cs @@ -12,22 +12,22 @@ namespace Azure.ResourceManager.Resources.Models { /// Managed application Jit access policy. - public partial class ApplicationJitAccessPolicy + public partial class ArmApplicationJitAccessPolicy { - /// Initializes a new instance of ApplicationJitAccessPolicy. + /// Initializes a new instance of ArmApplicationJitAccessPolicy. /// Whether the JIT access is enabled. - public ApplicationJitAccessPolicy(bool jitAccessEnabled) + public ArmApplicationJitAccessPolicy(bool jitAccessEnabled) { JitAccessEnabled = jitAccessEnabled; - JitApprovers = new ChangeTrackingList(); + JitApprovers = new ChangeTrackingList(); } - /// Initializes a new instance of ApplicationJitAccessPolicy. + /// Initializes a new instance of ArmApplicationJitAccessPolicy. /// Whether the JIT access is enabled. /// JIT approval mode. /// The JIT approvers. /// The maximum duration JIT access is granted. This is an ISO8601 time period value. - internal ApplicationJitAccessPolicy(bool jitAccessEnabled, JitApprovalMode? jitApprovalMode, IList jitApprovers, TimeSpan? maximumJitAccessDuration) + internal ArmApplicationJitAccessPolicy(bool jitAccessEnabled, JitApprovalMode? jitApprovalMode, IList jitApprovers, TimeSpan? maximumJitAccessDuration) { JitAccessEnabled = jitAccessEnabled; JitApprovalMode = jitApprovalMode; @@ -40,7 +40,7 @@ internal ApplicationJitAccessPolicy(bool jitAccessEnabled, JitApprovalMode? jitA /// JIT approval mode. public JitApprovalMode? JitApprovalMode { get; set; } /// The JIT approvers. - public IList JitApprovers { get; } + public IList JitApprovers { get; } /// The maximum duration JIT access is granted. This is an ISO8601 time period value. public TimeSpan? MaximumJitAccessDuration { get; set; } } diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/DeploymentListResult.Serialization.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmApplicationListResult.Serialization.cs similarity index 69% rename from sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/DeploymentListResult.Serialization.cs rename to sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmApplicationListResult.Serialization.cs index 71812b0c5fef4..7ad98bea8281b 100644 --- a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/DeploymentListResult.Serialization.cs +++ b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmApplicationListResult.Serialization.cs @@ -12,11 +12,11 @@ namespace Azure.ResourceManager.Resources.Models { - internal partial class DeploymentListResult + internal partial class ArmApplicationListResult { - internal static DeploymentListResult DeserializeDeploymentListResult(JsonElement element) + internal static ArmApplicationListResult DeserializeArmApplicationListResult(JsonElement element) { - Optional> value = default; + Optional> value = default; Optional nextLink = default; foreach (var property in element.EnumerateObject()) { @@ -27,10 +27,10 @@ internal static DeploymentListResult DeserializeDeploymentListResult(JsonElement property.ThrowNonNullablePropertyIsNull(); continue; } - List array = new List(); + List array = new List(); foreach (var item in property.Value.EnumerateArray()) { - array.Add(DeploymentData.DeserializeDeploymentData(item)); + array.Add(ArmApplicationData.DeserializeArmApplicationData(item)); } value = array; continue; @@ -41,7 +41,7 @@ internal static DeploymentListResult DeserializeDeploymentListResult(JsonElement continue; } } - return new DeploymentListResult(Optional.ToList(value), nextLink.Value); + return new ArmApplicationListResult(Optional.ToList(value), nextLink.Value); } } } diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ApplicationListResult.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmApplicationListResult.cs similarity index 62% rename from sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ApplicationListResult.cs rename to sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmApplicationListResult.cs index 9c0f582f50ea2..0e80c570ae69f 100644 --- a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ApplicationListResult.cs +++ b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmApplicationListResult.cs @@ -12,25 +12,25 @@ namespace Azure.ResourceManager.Resources.Models { /// List of managed applications. - internal partial class ApplicationListResult + internal partial class ArmApplicationListResult { - /// Initializes a new instance of ApplicationListResult. - internal ApplicationListResult() + /// Initializes a new instance of ArmApplicationListResult. + internal ArmApplicationListResult() { - Value = new ChangeTrackingList(); + Value = new ChangeTrackingList(); } - /// Initializes a new instance of ApplicationListResult. + /// Initializes a new instance of ArmApplicationListResult. /// The array of managed applications. /// The URL to use for getting the next set of results. - internal ApplicationListResult(IReadOnlyList value, string nextLink) + internal ArmApplicationListResult(IReadOnlyList value, string nextLink) { Value = value; NextLink = nextLink; } /// The array of managed applications. - public IReadOnlyList Value { get; } + public IReadOnlyList Value { get; } /// The URL to use for getting the next set of results. public string NextLink { get; } } diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmApplicationLockLevel.Serialization.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmApplicationLockLevel.Serialization.cs new file mode 100644 index 0000000000000..80c06a034841a --- /dev/null +++ b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmApplicationLockLevel.Serialization.cs @@ -0,0 +1,30 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; + +namespace Azure.ResourceManager.Resources.Models +{ + internal static partial class ArmApplicationLockLevelExtensions + { + public static string ToSerialString(this ArmApplicationLockLevel value) => value switch + { + ArmApplicationLockLevel.None => "None", + ArmApplicationLockLevel.CanNotDelete => "CanNotDelete", + ArmApplicationLockLevel.ReadOnly => "ReadOnly", + _ => throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown ArmApplicationLockLevel value.") + }; + + public static ArmApplicationLockLevel ToArmApplicationLockLevel(this string value) + { + if (string.Equals(value, "None", StringComparison.InvariantCultureIgnoreCase)) return ArmApplicationLockLevel.None; + if (string.Equals(value, "CanNotDelete", StringComparison.InvariantCultureIgnoreCase)) return ArmApplicationLockLevel.CanNotDelete; + if (string.Equals(value, "ReadOnly", StringComparison.InvariantCultureIgnoreCase)) return ArmApplicationLockLevel.ReadOnly; + throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown ArmApplicationLockLevel value."); + } + } +} diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ApplicationLockLevel.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmApplicationLockLevel.cs similarity index 91% rename from sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ApplicationLockLevel.cs rename to sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmApplicationLockLevel.cs index 32ba2548153e0..b920946bd38d6 100644 --- a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ApplicationLockLevel.cs +++ b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmApplicationLockLevel.cs @@ -8,7 +8,7 @@ namespace Azure.ResourceManager.Resources.Models { /// The managed application lock level. - public enum ApplicationLockLevel + public enum ArmApplicationLockLevel { /// None. None, diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ApplicationManagedIdentity.Serialization.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmApplicationManagedIdentity.Serialization.cs similarity index 54% rename from sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ApplicationManagedIdentity.Serialization.cs rename to sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmApplicationManagedIdentity.Serialization.cs index bff7cd877dae5..8d973ad97e405 100644 --- a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ApplicationManagedIdentity.Serialization.cs +++ b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmApplicationManagedIdentity.Serialization.cs @@ -5,21 +5,22 @@ #nullable disable +using System; using System.Collections.Generic; using System.Text.Json; using Azure.Core; namespace Azure.ResourceManager.Resources.Models { - public partial class ApplicationManagedIdentity : IUtf8JsonSerializable + public partial class ArmApplicationManagedIdentity : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { writer.WriteStartObject(); - if (Optional.IsDefined(ApplicationManagedIdentityType)) + if (Optional.IsDefined(ArmApplicationManagedIdentityType)) { writer.WritePropertyName("type"); - writer.WriteStringValue(ApplicationManagedIdentityType.Value.ToSerialString()); + writer.WriteStringValue(ArmApplicationManagedIdentityType.Value.ToSerialString()); } if (Optional.IsCollectionDefined(UserAssignedIdentities)) { @@ -35,22 +36,32 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndObject(); } - internal static ApplicationManagedIdentity DeserializeApplicationManagedIdentity(JsonElement element) + internal static ArmApplicationManagedIdentity DeserializeArmApplicationManagedIdentity(JsonElement element) { - Optional principalId = default; - Optional tenantId = default; - Optional type = default; - Optional> userAssignedIdentities = default; + Optional principalId = default; + Optional tenantId = default; + Optional type = default; + Optional> userAssignedIdentities = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("principalId")) { - principalId = property.Value.GetString(); + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + principalId = property.Value.GetGuid(); continue; } if (property.NameEquals("tenantId")) { - tenantId = property.Value.GetString(); + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + tenantId = property.Value.GetGuid(); continue; } if (property.NameEquals("type")) @@ -60,7 +71,7 @@ internal static ApplicationManagedIdentity DeserializeApplicationManagedIdentity property.ThrowNonNullablePropertyIsNull(); continue; } - type = property.Value.GetString().ToApplicationManagedIdentityType(); + type = property.Value.GetString().ToArmApplicationManagedIdentityType(); continue; } if (property.NameEquals("userAssignedIdentities")) @@ -70,16 +81,16 @@ internal static ApplicationManagedIdentity DeserializeApplicationManagedIdentity property.ThrowNonNullablePropertyIsNull(); continue; } - Dictionary dictionary = new Dictionary(); + Dictionary dictionary = new Dictionary(); foreach (var property0 in property.Value.EnumerateObject()) { - dictionary.Add(property0.Name, UserAssignedResourceIdentity.DeserializeUserAssignedResourceIdentity(property0.Value)); + dictionary.Add(property0.Name, ArmApplicationUserAssignedIdentity.DeserializeArmApplicationUserAssignedIdentity(property0.Value)); } userAssignedIdentities = dictionary; continue; } } - return new ApplicationManagedIdentity(principalId.Value, tenantId.Value, Optional.ToNullable(type), Optional.ToDictionary(userAssignedIdentities)); + return new ArmApplicationManagedIdentity(Optional.ToNullable(principalId), Optional.ToNullable(tenantId), Optional.ToNullable(type), Optional.ToDictionary(userAssignedIdentities)); } } } diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ApplicationManagedIdentity.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmApplicationManagedIdentity.cs similarity index 60% rename from sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ApplicationManagedIdentity.cs rename to sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmApplicationManagedIdentity.cs index 2c4f32ac8e2b8..17d5e6c7289c4 100644 --- a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ApplicationManagedIdentity.cs +++ b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmApplicationManagedIdentity.cs @@ -5,40 +5,41 @@ #nullable disable +using System; using System.Collections.Generic; using Azure.Core; namespace Azure.ResourceManager.Resources.Models { /// Identity for the resource. - public partial class ApplicationManagedIdentity + public partial class ArmApplicationManagedIdentity { - /// Initializes a new instance of ApplicationManagedIdentity. - public ApplicationManagedIdentity() + /// Initializes a new instance of ArmApplicationManagedIdentity. + public ArmApplicationManagedIdentity() { - UserAssignedIdentities = new ChangeTrackingDictionary(); + UserAssignedIdentities = new ChangeTrackingDictionary(); } - /// Initializes a new instance of ApplicationManagedIdentity. + /// Initializes a new instance of ArmApplicationManagedIdentity. /// The principal ID of resource identity. /// The tenant ID of resource. - /// The identity type. + /// The identity type. /// The list of user identities associated with the resource. The user identity dictionary key references will be resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'. - internal ApplicationManagedIdentity(string principalId, string tenantId, ApplicationManagedIdentityType? applicationManagedIdentityType, IDictionary userAssignedIdentities) + internal ArmApplicationManagedIdentity(Guid? principalId, Guid? tenantId, ArmApplicationManagedIdentityType? armApplicationManagedIdentityType, IDictionary userAssignedIdentities) { PrincipalId = principalId; TenantId = tenantId; - ApplicationManagedIdentityType = applicationManagedIdentityType; + ArmApplicationManagedIdentityType = armApplicationManagedIdentityType; UserAssignedIdentities = userAssignedIdentities; } /// The principal ID of resource identity. - public string PrincipalId { get; } + public Guid? PrincipalId { get; } /// The tenant ID of resource. - public string TenantId { get; } + public Guid? TenantId { get; } /// The identity type. - public ApplicationManagedIdentityType? ApplicationManagedIdentityType { get; set; } + public ArmApplicationManagedIdentityType? ArmApplicationManagedIdentityType { get; set; } /// The list of user identities associated with the resource. The user identity dictionary key references will be resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'. - public IDictionary UserAssignedIdentities { get; } + public IDictionary UserAssignedIdentities { get; } } } diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmApplicationManagedIdentityType.Serialization.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmApplicationManagedIdentityType.Serialization.cs new file mode 100644 index 0000000000000..af34dc8d06a93 --- /dev/null +++ b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmApplicationManagedIdentityType.Serialization.cs @@ -0,0 +1,32 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; + +namespace Azure.ResourceManager.Resources.Models +{ + internal static partial class ArmApplicationManagedIdentityTypeExtensions + { + public static string ToSerialString(this ArmApplicationManagedIdentityType value) => value switch + { + ArmApplicationManagedIdentityType.None => "None", + ArmApplicationManagedIdentityType.SystemAssigned => "SystemAssigned", + ArmApplicationManagedIdentityType.UserAssigned => "UserAssigned", + ArmApplicationManagedIdentityType.SystemAssignedUserAssigned => "SystemAssigned, UserAssigned", + _ => throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown ArmApplicationManagedIdentityType value.") + }; + + public static ArmApplicationManagedIdentityType ToArmApplicationManagedIdentityType(this string value) + { + if (string.Equals(value, "None", StringComparison.InvariantCultureIgnoreCase)) return ArmApplicationManagedIdentityType.None; + if (string.Equals(value, "SystemAssigned", StringComparison.InvariantCultureIgnoreCase)) return ArmApplicationManagedIdentityType.SystemAssigned; + if (string.Equals(value, "UserAssigned", StringComparison.InvariantCultureIgnoreCase)) return ArmApplicationManagedIdentityType.UserAssigned; + if (string.Equals(value, "SystemAssigned, UserAssigned", StringComparison.InvariantCultureIgnoreCase)) return ArmApplicationManagedIdentityType.SystemAssignedUserAssigned; + throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown ArmApplicationManagedIdentityType value."); + } + } +} diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ApplicationManagedIdentityType.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmApplicationManagedIdentityType.cs similarity index 91% rename from sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ApplicationManagedIdentityType.cs rename to sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmApplicationManagedIdentityType.cs index fd93a5493a7cc..6c287d0396a79 100644 --- a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ApplicationManagedIdentityType.cs +++ b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmApplicationManagedIdentityType.cs @@ -8,7 +8,7 @@ namespace Azure.ResourceManager.Resources.Models { /// The identity type. - public enum ApplicationManagedIdentityType + public enum ArmApplicationManagedIdentityType { /// None. None, diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmApplicationManagementMode.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmApplicationManagementMode.cs new file mode 100644 index 0000000000000..ebd170ba00b29 --- /dev/null +++ b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmApplicationManagementMode.cs @@ -0,0 +1,54 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.ResourceManager.Resources.Models +{ + /// The management mode. + public readonly partial struct ArmApplicationManagementMode : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public ArmApplicationManagementMode(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string NotSpecifiedValue = "NotSpecified"; + private const string UnmanagedValue = "Unmanaged"; + private const string ManagedValue = "Managed"; + + /// NotSpecified. + public static ArmApplicationManagementMode NotSpecified { get; } = new ArmApplicationManagementMode(NotSpecifiedValue); + /// Unmanaged. + public static ArmApplicationManagementMode Unmanaged { get; } = new ArmApplicationManagementMode(UnmanagedValue); + /// Managed. + public static ArmApplicationManagementMode Managed { get; } = new ArmApplicationManagementMode(ManagedValue); + /// Determines if two values are the same. + public static bool operator ==(ArmApplicationManagementMode left, ArmApplicationManagementMode right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(ArmApplicationManagementMode left, ArmApplicationManagementMode right) => !left.Equals(right); + /// Converts a string to a . + public static implicit operator ArmApplicationManagementMode(string value) => new ArmApplicationManagementMode(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is ArmApplicationManagementMode other && Equals(other); + /// + public bool Equals(ArmApplicationManagementMode other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value?.GetHashCode() ?? 0; + /// + public override string ToString() => _value; + } +} diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ApplicationManagementPolicy.Serialization.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmApplicationManagementPolicy.Serialization.cs similarity index 70% rename from sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ApplicationManagementPolicy.Serialization.cs rename to sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmApplicationManagementPolicy.Serialization.cs index 80c527d971192..1496f3ea9fd25 100644 --- a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ApplicationManagementPolicy.Serialization.cs +++ b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmApplicationManagementPolicy.Serialization.cs @@ -10,7 +10,7 @@ namespace Azure.ResourceManager.Resources.Models { - internal partial class ApplicationManagementPolicy : IUtf8JsonSerializable + internal partial class ArmApplicationManagementPolicy : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -23,9 +23,9 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndObject(); } - internal static ApplicationManagementPolicy DeserializeApplicationManagementPolicy(JsonElement element) + internal static ArmApplicationManagementPolicy DeserializeArmApplicationManagementPolicy(JsonElement element) { - Optional mode = default; + Optional mode = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("mode")) @@ -35,11 +35,11 @@ internal static ApplicationManagementPolicy DeserializeApplicationManagementPoli property.ThrowNonNullablePropertyIsNull(); continue; } - mode = new ApplicationManagementMode(property.Value.GetString()); + mode = new ArmApplicationManagementMode(property.Value.GetString()); continue; } } - return new ApplicationManagementPolicy(Optional.ToNullable(mode)); + return new ArmApplicationManagementPolicy(Optional.ToNullable(mode)); } } } diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ApplicationManagementPolicy.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmApplicationManagementPolicy.cs similarity index 52% rename from sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ApplicationManagementPolicy.cs rename to sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmApplicationManagementPolicy.cs index 181fc42c06e02..8e3b3a47bab7f 100644 --- a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ApplicationManagementPolicy.cs +++ b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmApplicationManagementPolicy.cs @@ -8,21 +8,21 @@ namespace Azure.ResourceManager.Resources.Models { /// Managed application management policy. - internal partial class ApplicationManagementPolicy + internal partial class ArmApplicationManagementPolicy { - /// Initializes a new instance of ApplicationManagementPolicy. - public ApplicationManagementPolicy() + /// Initializes a new instance of ArmApplicationManagementPolicy. + public ArmApplicationManagementPolicy() { } - /// Initializes a new instance of ApplicationManagementPolicy. + /// Initializes a new instance of ArmApplicationManagementPolicy. /// The managed application management mode. - internal ApplicationManagementPolicy(ApplicationManagementMode? mode) + internal ArmApplicationManagementPolicy(ArmApplicationManagementMode? mode) { Mode = mode; } /// The managed application management mode. - public ApplicationManagementMode? Mode { get; set; } + public ArmApplicationManagementMode? Mode { get; set; } } } diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ApplicationNotificationEndpoint.Serialization.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmApplicationNotificationEndpoint.Serialization.cs similarity index 75% rename from sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ApplicationNotificationEndpoint.Serialization.cs rename to sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmApplicationNotificationEndpoint.Serialization.cs index d8bd54c64a9e6..e67e9959dd81a 100644 --- a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ApplicationNotificationEndpoint.Serialization.cs +++ b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmApplicationNotificationEndpoint.Serialization.cs @@ -11,7 +11,7 @@ namespace Azure.ResourceManager.Resources.Models { - public partial class ApplicationNotificationEndpoint : IUtf8JsonSerializable + public partial class ArmApplicationNotificationEndpoint : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -21,7 +21,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndObject(); } - internal static ApplicationNotificationEndpoint DeserializeApplicationNotificationEndpoint(JsonElement element) + internal static ArmApplicationNotificationEndpoint DeserializeArmApplicationNotificationEndpoint(JsonElement element) { Uri uri = default; foreach (var property in element.EnumerateObject()) @@ -32,7 +32,7 @@ internal static ApplicationNotificationEndpoint DeserializeApplicationNotificati continue; } } - return new ApplicationNotificationEndpoint(uri); + return new ArmApplicationNotificationEndpoint(uri); } } } diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ApplicationNotificationEndpoint.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmApplicationNotificationEndpoint.cs similarity index 77% rename from sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ApplicationNotificationEndpoint.cs rename to sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmApplicationNotificationEndpoint.cs index 2d2590be666b0..c11279161bd8d 100644 --- a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ApplicationNotificationEndpoint.cs +++ b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmApplicationNotificationEndpoint.cs @@ -10,12 +10,12 @@ namespace Azure.ResourceManager.Resources.Models { /// Managed application notification endpoint. - public partial class ApplicationNotificationEndpoint + public partial class ArmApplicationNotificationEndpoint { - /// Initializes a new instance of ApplicationNotificationEndpoint. + /// Initializes a new instance of ArmApplicationNotificationEndpoint. /// The managed application notification endpoint uri. /// is null. - public ApplicationNotificationEndpoint(Uri uri) + public ArmApplicationNotificationEndpoint(Uri uri) { if (uri == null) { diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ApplicationNotificationPolicy.Serialization.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmApplicationNotificationPolicy.Serialization.cs similarity index 64% rename from sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ApplicationNotificationPolicy.Serialization.cs rename to sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmApplicationNotificationPolicy.Serialization.cs index 24e60c622c229..ee66e95c26e29 100644 --- a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ApplicationNotificationPolicy.Serialization.cs +++ b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmApplicationNotificationPolicy.Serialization.cs @@ -11,7 +11,7 @@ namespace Azure.ResourceManager.Resources.Models { - internal partial class ApplicationNotificationPolicy : IUtf8JsonSerializable + internal partial class ArmApplicationNotificationPolicy : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -26,23 +26,23 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndObject(); } - internal static ApplicationNotificationPolicy DeserializeApplicationNotificationPolicy(JsonElement element) + internal static ArmApplicationNotificationPolicy DeserializeArmApplicationNotificationPolicy(JsonElement element) { - IList notificationEndpoints = default; + IList notificationEndpoints = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("notificationEndpoints")) { - List array = new List(); + List array = new List(); foreach (var item in property.Value.EnumerateArray()) { - array.Add(ApplicationNotificationEndpoint.DeserializeApplicationNotificationEndpoint(item)); + array.Add(ArmApplicationNotificationEndpoint.DeserializeArmApplicationNotificationEndpoint(item)); } notificationEndpoints = array; continue; } } - return new ApplicationNotificationPolicy(notificationEndpoints); + return new ArmApplicationNotificationPolicy(notificationEndpoints); } } } diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ApplicationNotificationPolicy.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmApplicationNotificationPolicy.cs similarity index 65% rename from sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ApplicationNotificationPolicy.cs rename to sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmApplicationNotificationPolicy.cs index 9a5089ac40bd2..b69ab3c863ac2 100644 --- a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ApplicationNotificationPolicy.cs +++ b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmApplicationNotificationPolicy.cs @@ -12,12 +12,12 @@ namespace Azure.ResourceManager.Resources.Models { /// Managed application notification policy. - internal partial class ApplicationNotificationPolicy + internal partial class ArmApplicationNotificationPolicy { - /// Initializes a new instance of ApplicationNotificationPolicy. + /// Initializes a new instance of ArmApplicationNotificationPolicy. /// The managed application notification endpoint. /// is null. - public ApplicationNotificationPolicy(IEnumerable notificationEndpoints) + public ArmApplicationNotificationPolicy(IEnumerable notificationEndpoints) { if (notificationEndpoints == null) { @@ -27,14 +27,14 @@ public ApplicationNotificationPolicy(IEnumerable Initializes a new instance of ApplicationNotificationPolicy. + /// Initializes a new instance of ArmApplicationNotificationPolicy. /// The managed application notification endpoint. - internal ApplicationNotificationPolicy(IList notificationEndpoints) + internal ArmApplicationNotificationPolicy(IList notificationEndpoints) { NotificationEndpoints = notificationEndpoints; } /// The managed application notification endpoint. - public IList NotificationEndpoints { get; } + public IList NotificationEndpoints { get; } } } diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ApplicationPackageContact.Serialization.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmApplicationPackageContact.Serialization.cs similarity index 79% rename from sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ApplicationPackageContact.Serialization.cs rename to sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmApplicationPackageContact.Serialization.cs index 28de9c84a7974..68db74a7a7bfa 100644 --- a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ApplicationPackageContact.Serialization.cs +++ b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmApplicationPackageContact.Serialization.cs @@ -10,9 +10,9 @@ namespace Azure.ResourceManager.Resources.Models { - public partial class ApplicationPackageContact + public partial class ArmApplicationPackageContact { - internal static ApplicationPackageContact DeserializeApplicationPackageContact(JsonElement element) + internal static ArmApplicationPackageContact DeserializeArmApplicationPackageContact(JsonElement element) { Optional contactName = default; string email = default; @@ -35,7 +35,7 @@ internal static ApplicationPackageContact DeserializeApplicationPackageContact(J continue; } } - return new ApplicationPackageContact(contactName.Value, email, phone); + return new ArmApplicationPackageContact(contactName.Value, email, phone); } } } diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ApplicationPackageContact.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmApplicationPackageContact.cs similarity index 78% rename from sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ApplicationPackageContact.cs rename to sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmApplicationPackageContact.cs index bfd82d7bff846..c67f9382227a4 100644 --- a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ApplicationPackageContact.cs +++ b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmApplicationPackageContact.cs @@ -10,13 +10,13 @@ namespace Azure.ResourceManager.Resources.Models { /// The application package contact information. - public partial class ApplicationPackageContact + public partial class ArmApplicationPackageContact { - /// Initializes a new instance of ApplicationPackageContact. + /// Initializes a new instance of ArmApplicationPackageContact. /// The contact email. /// The contact phone number. /// or is null. - internal ApplicationPackageContact(string email, string phone) + internal ArmApplicationPackageContact(string email, string phone) { if (email == null) { @@ -31,11 +31,11 @@ internal ApplicationPackageContact(string email, string phone) Phone = phone; } - /// Initializes a new instance of ApplicationPackageContact. + /// Initializes a new instance of ArmApplicationPackageContact. /// The contact name. /// The contact email. /// The contact phone number. - internal ApplicationPackageContact(string contactName, string email, string phone) + internal ArmApplicationPackageContact(string contactName, string email, string phone) { ContactName = contactName; Email = email; diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ApplicationPackageLockingPolicyDefinition.Serialization.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmApplicationPackageLockingPolicy.Serialization.cs similarity index 82% rename from sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ApplicationPackageLockingPolicyDefinition.Serialization.cs rename to sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmApplicationPackageLockingPolicy.Serialization.cs index a5b6b86679456..3dc34378d2f71 100644 --- a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ApplicationPackageLockingPolicyDefinition.Serialization.cs +++ b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmApplicationPackageLockingPolicy.Serialization.cs @@ -11,7 +11,7 @@ namespace Azure.ResourceManager.Resources.Models { - internal partial class ApplicationPackageLockingPolicyDefinition : IUtf8JsonSerializable + internal partial class ArmApplicationPackageLockingPolicy : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -29,7 +29,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndObject(); } - internal static ApplicationPackageLockingPolicyDefinition DeserializeApplicationPackageLockingPolicyDefinition(JsonElement element) + internal static ArmApplicationPackageLockingPolicy DeserializeArmApplicationPackageLockingPolicy(JsonElement element) { Optional> allowedActions = default; foreach (var property in element.EnumerateObject()) @@ -50,7 +50,7 @@ internal static ApplicationPackageLockingPolicyDefinition DeserializeApplication continue; } } - return new ApplicationPackageLockingPolicyDefinition(Optional.ToList(allowedActions)); + return new ArmApplicationPackageLockingPolicy(Optional.ToList(allowedActions)); } } } diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ApplicationPackageLockingPolicyDefinition.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmApplicationPackageLockingPolicy.cs similarity index 61% rename from sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ApplicationPackageLockingPolicyDefinition.cs rename to sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmApplicationPackageLockingPolicy.cs index c3156f16e97fe..1e511af799f6c 100644 --- a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ApplicationPackageLockingPolicyDefinition.cs +++ b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmApplicationPackageLockingPolicy.cs @@ -11,17 +11,17 @@ namespace Azure.ResourceManager.Resources.Models { /// Managed application locking policy. - internal partial class ApplicationPackageLockingPolicyDefinition + internal partial class ArmApplicationPackageLockingPolicy { - /// Initializes a new instance of ApplicationPackageLockingPolicyDefinition. - public ApplicationPackageLockingPolicyDefinition() + /// Initializes a new instance of ArmApplicationPackageLockingPolicy. + public ArmApplicationPackageLockingPolicy() { AllowedActions = new ChangeTrackingList(); } - /// Initializes a new instance of ApplicationPackageLockingPolicyDefinition. + /// Initializes a new instance of ArmApplicationPackageLockingPolicy. /// The deny assignment excluded actions. - internal ApplicationPackageLockingPolicyDefinition(IList allowedActions) + internal ArmApplicationPackageLockingPolicy(IList allowedActions) { AllowedActions = allowedActions; } diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ApplicationPackageSupportUrls.Serialization.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmApplicationPackageSupportUrls.Serialization.cs similarity index 75% rename from sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ApplicationPackageSupportUrls.Serialization.cs rename to sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmApplicationPackageSupportUrls.Serialization.cs index ba4297e8cee5c..e6f1c6bf18861 100644 --- a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ApplicationPackageSupportUrls.Serialization.cs +++ b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmApplicationPackageSupportUrls.Serialization.cs @@ -10,9 +10,9 @@ namespace Azure.ResourceManager.Resources.Models { - public partial class ApplicationPackageSupportUrls + public partial class ArmApplicationPackageSupportUrls { - internal static ApplicationPackageSupportUrls DeserializeApplicationPackageSupportUrls(JsonElement element) + internal static ArmApplicationPackageSupportUrls DeserializeArmApplicationPackageSupportUrls(JsonElement element) { Optional publicAzure = default; Optional governmentCloud = default; @@ -29,7 +29,7 @@ internal static ApplicationPackageSupportUrls DeserializeApplicationPackageSuppo continue; } } - return new ApplicationPackageSupportUrls(publicAzure.Value, governmentCloud.Value); + return new ArmApplicationPackageSupportUrls(publicAzure.Value, governmentCloud.Value); } } } diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmApplicationPackageSupportUrls.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmApplicationPackageSupportUrls.cs new file mode 100644 index 0000000000000..6533b5cf3f6c8 --- /dev/null +++ b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmApplicationPackageSupportUrls.cs @@ -0,0 +1,32 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.ResourceManager.Resources.Models +{ + /// The appliance package support URLs. + public partial class ArmApplicationPackageSupportUrls + { + /// Initializes a new instance of ArmApplicationPackageSupportUrls. + internal ArmApplicationPackageSupportUrls() + { + } + + /// Initializes a new instance of ArmApplicationPackageSupportUrls. + /// The public azure support URL. + /// The government cloud support URL. + internal ArmApplicationPackageSupportUrls(string azurePublicCloud, string azureGovernment) + { + AzurePublicCloud = azurePublicCloud; + AzureGovernment = azureGovernment; + } + + /// The public azure support URL. + public string AzurePublicCloud { get; } + /// The government cloud support URL. + public string AzureGovernment { get; } + } +} diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ApplicationPolicy.Serialization.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmApplicationPolicy.Serialization.cs similarity index 86% rename from sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ApplicationPolicy.Serialization.cs rename to sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmApplicationPolicy.Serialization.cs index 6a884ace8fd4f..00289fbfd899c 100644 --- a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ApplicationPolicy.Serialization.cs +++ b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmApplicationPolicy.Serialization.cs @@ -10,7 +10,7 @@ namespace Azure.ResourceManager.Resources.Models { - public partial class ApplicationPolicy : IUtf8JsonSerializable + public partial class ArmApplicationPolicy : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -33,7 +33,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndObject(); } - internal static ApplicationPolicy DeserializeApplicationPolicy(JsonElement element) + internal static ArmApplicationPolicy DeserializeArmApplicationPolicy(JsonElement element) { Optional name = default; Optional policyDefinitionId = default; @@ -56,7 +56,7 @@ internal static ApplicationPolicy DeserializeApplicationPolicy(JsonElement eleme continue; } } - return new ApplicationPolicy(name.Value, policyDefinitionId.Value, parameters.Value); + return new ArmApplicationPolicy(name.Value, policyDefinitionId.Value, parameters.Value); } } } diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ApplicationPolicy.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmApplicationPolicy.cs similarity index 72% rename from sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ApplicationPolicy.cs rename to sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmApplicationPolicy.cs index dfb2111d51147..365f787adcb34 100644 --- a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ApplicationPolicy.cs +++ b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmApplicationPolicy.cs @@ -8,18 +8,18 @@ namespace Azure.ResourceManager.Resources.Models { /// Managed application policy. - public partial class ApplicationPolicy + public partial class ArmApplicationPolicy { - /// Initializes a new instance of ApplicationPolicy. - public ApplicationPolicy() + /// Initializes a new instance of ArmApplicationPolicy. + public ArmApplicationPolicy() { } - /// Initializes a new instance of ApplicationPolicy. + /// Initializes a new instance of ArmApplicationPolicy. /// The policy name. /// The policy definition Id. /// The policy parameters. - internal ApplicationPolicy(string name, string policyDefinitionId, string parameters) + internal ArmApplicationPolicy(string name, string policyDefinitionId, string parameters) { Name = name; PolicyDefinitionId = policyDefinitionId; diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ApplicationPropertiesPatchable.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmApplicationPropertiesPatchable.cs similarity index 67% rename from sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ApplicationPropertiesPatchable.cs rename to sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmApplicationPropertiesPatchable.cs index c6411a49b7534..9efecd53443b4 100644 --- a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ApplicationPropertiesPatchable.cs +++ b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmApplicationPropertiesPatchable.cs @@ -6,26 +6,27 @@ #nullable disable using System; +using Azure.Core; namespace Azure.ResourceManager.Resources.Models { /// The managed application properties. - internal partial class ApplicationPropertiesPatchable + internal partial class ArmApplicationPropertiesPatchable { - /// Initializes a new instance of ApplicationPropertiesPatchable. - internal ApplicationPropertiesPatchable() + /// Initializes a new instance of ArmApplicationPropertiesPatchable. + internal ArmApplicationPropertiesPatchable() { } /// The managed resource group Id. - public string ManagedResourceGroupId { get; } + public ResourceIdentifier ManagedResourceGroupId { get; } /// The fully qualified path of managed application definition Id. - public string ApplicationDefinitionId { get; } + public ResourceIdentifier ApplicationDefinitionId { get; } /// Name and value pairs that define the managed application parameters. It can be a JObject or a well formed JSON string. public BinaryData Parameters { get; } /// Name and value pairs that define the managed application outputs. public BinaryData Outputs { get; } /// The managed application provisioning state. - public ProvisioningState? ProvisioningState { get; } + public ResourcesProvisioningState? ProvisioningState { get; } } } diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ApplicationResource.Serialization.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmApplicationResource.Serialization.cs similarity index 88% rename from sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ApplicationResource.Serialization.cs rename to sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmApplicationResource.Serialization.cs index f92d45de02ca3..efd6ec8b5cb5e 100644 --- a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ApplicationResource.Serialization.cs +++ b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmApplicationResource.Serialization.cs @@ -12,7 +12,7 @@ namespace Azure.ResourceManager.Resources.Models { - public partial class ApplicationResource : IUtf8JsonSerializable + public partial class ArmApplicationResource : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -40,10 +40,10 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndObject(); } - internal static ApplicationResource DeserializeApplicationResource(JsonElement element) + internal static ArmApplicationResource DeserializeArmApplicationResource(JsonElement element) { Optional managedBy = default; - Optional sku = default; + Optional sku = default; IDictionary tags = default; AzureLocation location = default; ResourceIdentifier id = default; @@ -64,7 +64,7 @@ internal static ApplicationResource DeserializeApplicationResource(JsonElement e property.ThrowNonNullablePropertyIsNull(); continue; } - sku = ApplicationSku.DeserializeApplicationSku(property.Value); + sku = ArmApplicationSku.DeserializeArmApplicationSku(property.Value); continue; } if (property.NameEquals("tags")) @@ -103,7 +103,7 @@ internal static ApplicationResource DeserializeApplicationResource(JsonElement e continue; } } - return new ApplicationResource(id, name, type, systemData, tags, location, managedBy.Value, sku.Value); + return new ArmApplicationResource(id, name, type, systemData, tags, location, managedBy.Value, sku.Value); } } } diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ApplicationResource.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmApplicationResource.cs similarity index 64% rename from sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ApplicationResource.cs rename to sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmApplicationResource.cs index 5814d91c27951..2897448d65ec7 100644 --- a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ApplicationResource.cs +++ b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmApplicationResource.cs @@ -12,15 +12,15 @@ namespace Azure.ResourceManager.Resources.Models { /// Resource information. - public partial class ApplicationResource : TrackedResourceData + public partial class ArmApplicationResource : TrackedResourceData { - /// Initializes a new instance of ApplicationResource. + /// Initializes a new instance of ArmApplicationResource. /// The location. - public ApplicationResource(AzureLocation location) : base(location) + public ArmApplicationResource(AzureLocation location) : base(location) { } - /// Initializes a new instance of ApplicationResource. + /// Initializes a new instance of ArmApplicationResource. /// The id. /// The name. /// The resourceType. @@ -29,7 +29,7 @@ public ApplicationResource(AzureLocation location) : base(location) /// The location. /// ID of the resource that manages this resource. /// The SKU of the resource. - internal ApplicationResource(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, string managedBy, ApplicationSku sku) : base(id, name, resourceType, systemData, tags, location) + internal ArmApplicationResource(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, string managedBy, ArmApplicationSku sku) : base(id, name, resourceType, systemData, tags, location) { ManagedBy = managedBy; Sku = sku; @@ -38,6 +38,6 @@ internal ApplicationResource(ResourceIdentifier id, string name, ResourceType re /// ID of the resource that manages this resource. public string ManagedBy { get; set; } /// The SKU of the resource. - public ApplicationSku Sku { get; set; } + public ArmApplicationSku Sku { get; set; } } } diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ApplicationSku.Serialization.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmApplicationSku.Serialization.cs similarity index 91% rename from sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ApplicationSku.Serialization.cs rename to sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmApplicationSku.Serialization.cs index 42adcff2680da..9e1e5463a133e 100644 --- a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ApplicationSku.Serialization.cs +++ b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmApplicationSku.Serialization.cs @@ -10,7 +10,7 @@ namespace Azure.ResourceManager.Resources.Models { - public partial class ApplicationSku : IUtf8JsonSerializable + public partial class ArmApplicationSku : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -45,7 +45,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndObject(); } - internal static ApplicationSku DeserializeApplicationSku(JsonElement element) + internal static ArmApplicationSku DeserializeArmApplicationSku(JsonElement element) { string name = default; Optional tier = default; @@ -91,7 +91,7 @@ internal static ApplicationSku DeserializeApplicationSku(JsonElement element) continue; } } - return new ApplicationSku(name, tier.Value, size.Value, family.Value, model.Value, Optional.ToNullable(capacity)); + return new ArmApplicationSku(name, tier.Value, size.Value, family.Value, model.Value, Optional.ToNullable(capacity)); } } } diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ApplicationSku.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmApplicationSku.cs similarity index 81% rename from sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ApplicationSku.cs rename to sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmApplicationSku.cs index a3cd01e9b99fe..d5f263d3904b6 100644 --- a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ApplicationSku.cs +++ b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmApplicationSku.cs @@ -10,12 +10,12 @@ namespace Azure.ResourceManager.Resources.Models { /// SKU for the resource. - public partial class ApplicationSku + public partial class ArmApplicationSku { - /// Initializes a new instance of ApplicationSku. + /// Initializes a new instance of ArmApplicationSku. /// The SKU name. /// is null. - public ApplicationSku(string name) + public ArmApplicationSku(string name) { if (name == null) { @@ -25,14 +25,14 @@ public ApplicationSku(string name) Name = name; } - /// Initializes a new instance of ApplicationSku. + /// Initializes a new instance of ArmApplicationSku. /// The SKU name. /// The SKU tier. /// The SKU size. /// The SKU family. /// The SKU model. /// The SKU capacity. - internal ApplicationSku(string name, string tier, string size, string family, string model, int? capacity) + internal ArmApplicationSku(string name, string tier, string size, string family, string model, int? capacity) { Name = name; Tier = tier; diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmApplicationUserAssignedIdentity.Serialization.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmApplicationUserAssignedIdentity.Serialization.cs new file mode 100644 index 0000000000000..ccc415f55e017 --- /dev/null +++ b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmApplicationUserAssignedIdentity.Serialization.cs @@ -0,0 +1,52 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.Resources.Models +{ + public partial class ArmApplicationUserAssignedIdentity : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + writer.WriteEndObject(); + } + + internal static ArmApplicationUserAssignedIdentity DeserializeArmApplicationUserAssignedIdentity(JsonElement element) + { + Optional principalId = default; + Optional tenantId = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("principalId")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + principalId = property.Value.GetGuid(); + continue; + } + if (property.NameEquals("tenantId")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + tenantId = property.Value.GetGuid(); + continue; + } + } + return new ArmApplicationUserAssignedIdentity(Optional.ToNullable(principalId), Optional.ToNullable(tenantId)); + } + } +} diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/UserAssignedResourceIdentity.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmApplicationUserAssignedIdentity.cs similarity index 61% rename from sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/UserAssignedResourceIdentity.cs rename to sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmApplicationUserAssignedIdentity.cs index 313427c962616..c97ea3230b8bf 100644 --- a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/UserAssignedResourceIdentity.cs +++ b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmApplicationUserAssignedIdentity.cs @@ -5,28 +5,30 @@ #nullable disable +using System; + namespace Azure.ResourceManager.Resources.Models { /// Represents the user assigned identity that is contained within the UserAssignedIdentities dictionary on ResourceIdentity. - public partial class UserAssignedResourceIdentity + public partial class ArmApplicationUserAssignedIdentity { - /// Initializes a new instance of UserAssignedResourceIdentity. - public UserAssignedResourceIdentity() + /// Initializes a new instance of ArmApplicationUserAssignedIdentity. + public ArmApplicationUserAssignedIdentity() { } - /// Initializes a new instance of UserAssignedResourceIdentity. + /// Initializes a new instance of ArmApplicationUserAssignedIdentity. /// The principal id of user assigned identity. /// The tenant id of user assigned identity. - internal UserAssignedResourceIdentity(string principalId, string tenantId) + internal ArmApplicationUserAssignedIdentity(Guid? principalId, Guid? tenantId) { PrincipalId = principalId; TenantId = tenantId; } /// The principal id of user assigned identity. - public string PrincipalId { get; } + public Guid? PrincipalId { get; } /// The tenant id of user assigned identity. - public string TenantId { get; } + public Guid? TenantId { get; } } } diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/Dependency.Serialization.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmDependency.Serialization.cs similarity index 88% rename from sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/Dependency.Serialization.cs rename to sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmDependency.Serialization.cs index 01fa3c6d94eb8..05767465a4394 100644 --- a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/Dependency.Serialization.cs +++ b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmDependency.Serialization.cs @@ -11,9 +11,9 @@ namespace Azure.ResourceManager.Resources.Models { - public partial class Dependency + public partial class ArmDependency { - internal static Dependency DeserializeDependency(JsonElement element) + internal static ArmDependency DeserializeArmDependency(JsonElement element) { Optional> dependsOn = default; Optional id = default; @@ -52,7 +52,7 @@ internal static Dependency DeserializeDependency(JsonElement element) continue; } } - return new Dependency(Optional.ToList(dependsOn), id.Value, resourceType.Value, resourceName.Value); + return new ArmDependency(Optional.ToList(dependsOn), id.Value, resourceType.Value, resourceName.Value); } } } diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/Dependency.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmDependency.cs similarity index 78% rename from sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/Dependency.cs rename to sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmDependency.cs index 1fc1ccc3e3b5e..247bf33861681 100644 --- a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/Dependency.cs +++ b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmDependency.cs @@ -11,20 +11,20 @@ namespace Azure.ResourceManager.Resources.Models { /// Deployment dependency information. - public partial class Dependency + public partial class ArmDependency { - /// Initializes a new instance of Dependency. - internal Dependency() + /// Initializes a new instance of ArmDependency. + internal ArmDependency() { DependsOn = new ChangeTrackingList(); } - /// Initializes a new instance of Dependency. + /// Initializes a new instance of ArmDependency. /// The list of dependencies. /// The ID of the dependency. /// The dependency resource type. /// The dependency resource name. - internal Dependency(IReadOnlyList dependsOn, string id, string resourceType, string resourceName) + internal ArmDependency(IReadOnlyList dependsOn, string id, string resourceType, string resourceName) { DependsOn = dependsOn; Id = id; diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/DeploymentData.Serialization.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmDeploymentData.Serialization.cs similarity index 85% rename from sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/DeploymentData.Serialization.cs rename to sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmDeploymentData.Serialization.cs index 6da0aa61da700..1cbde7bd5ff06 100644 --- a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/DeploymentData.Serialization.cs +++ b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmDeploymentData.Serialization.cs @@ -13,12 +13,12 @@ namespace Azure.ResourceManager.Resources { - public partial class DeploymentData + public partial class ArmDeploymentData { - internal static DeploymentData DeserializeDeploymentData(JsonElement element) + internal static ArmDeploymentData DeserializeArmDeploymentData(JsonElement element) { Optional location = default; - Optional properties = default; + Optional properties = default; Optional> tags = default; ResourceIdentifier id = default; string name = default; @@ -38,7 +38,7 @@ internal static DeploymentData DeserializeDeploymentData(JsonElement element) property.ThrowNonNullablePropertyIsNull(); continue; } - properties = DeploymentPropertiesExtended.DeserializeDeploymentPropertiesExtended(property.Value); + properties = ArmDeploymentPropertiesExtended.DeserializeArmDeploymentPropertiesExtended(property.Value); continue; } if (property.NameEquals("tags")) @@ -77,7 +77,7 @@ internal static DeploymentData DeserializeDeploymentData(JsonElement element) continue; } } - return new DeploymentData(id, name, type, systemData, location.Value, properties.Value, Optional.ToDictionary(tags)); + return new ArmDeploymentData(id, name, type, systemData, location.Value, properties.Value, Optional.ToDictionary(tags)); } } } diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/DeploymentExportResult.Serialization.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmDeploymentExportResult.Serialization.cs similarity index 78% rename from sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/DeploymentExportResult.Serialization.cs rename to sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmDeploymentExportResult.Serialization.cs index 7705104718651..15a40519b1ae8 100644 --- a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/DeploymentExportResult.Serialization.cs +++ b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmDeploymentExportResult.Serialization.cs @@ -11,9 +11,9 @@ namespace Azure.ResourceManager.Resources.Models { - public partial class DeploymentExportResult + public partial class ArmDeploymentExportResult { - internal static DeploymentExportResult DeserializeDeploymentExportResult(JsonElement element) + internal static ArmDeploymentExportResult DeserializeArmDeploymentExportResult(JsonElement element) { Optional template = default; foreach (var property in element.EnumerateObject()) @@ -29,7 +29,7 @@ internal static DeploymentExportResult DeserializeDeploymentExportResult(JsonEle continue; } } - return new DeploymentExportResult(template.Value); + return new ArmDeploymentExportResult(template.Value); } } } diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/DeploymentExportResult.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmDeploymentExportResult.cs similarity index 60% rename from sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/DeploymentExportResult.cs rename to sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmDeploymentExportResult.cs index d675c8201eabc..3f0fa75c6c7d2 100644 --- a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/DeploymentExportResult.cs +++ b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmDeploymentExportResult.cs @@ -10,16 +10,16 @@ namespace Azure.ResourceManager.Resources.Models { /// The deployment export result. - public partial class DeploymentExportResult + public partial class ArmDeploymentExportResult { - /// Initializes a new instance of DeploymentExportResult. - internal DeploymentExportResult() + /// Initializes a new instance of ArmDeploymentExportResult. + internal ArmDeploymentExportResult() { } - /// Initializes a new instance of DeploymentExportResult. + /// Initializes a new instance of ArmDeploymentExportResult. /// The template content. - internal DeploymentExportResult(BinaryData template) + internal ArmDeploymentExportResult(BinaryData template) { Template = template; } diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/DeploymentExtendedFilter.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmDeploymentExtendedFilter.cs similarity index 66% rename from sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/DeploymentExtendedFilter.cs rename to sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmDeploymentExtendedFilter.cs index 3971d73faf06e..bbefe5851d673 100644 --- a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/DeploymentExtendedFilter.cs +++ b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmDeploymentExtendedFilter.cs @@ -8,10 +8,10 @@ namespace Azure.ResourceManager.Resources.Models { /// Deployment filter. - internal partial class DeploymentExtendedFilter + internal partial class ArmDeploymentExtendedFilter { - /// Initializes a new instance of DeploymentExtendedFilter. - internal DeploymentExtendedFilter() + /// Initializes a new instance of ArmDeploymentExtendedFilter. + internal ArmDeploymentExtendedFilter() { } diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/DeploymentInput.Serialization.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmDeploymentInput.Serialization.cs similarity index 94% rename from sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/DeploymentInput.Serialization.cs rename to sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmDeploymentInput.Serialization.cs index 3da5225d0b019..741fe22eedbc5 100644 --- a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/DeploymentInput.Serialization.cs +++ b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmDeploymentInput.Serialization.cs @@ -10,7 +10,7 @@ namespace Azure.ResourceManager.Resources.Models { - public partial class DeploymentInput : IUtf8JsonSerializable + public partial class ArmDeploymentInput : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/DeploymentInput.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmDeploymentInput.cs similarity index 80% rename from sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/DeploymentInput.cs rename to sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmDeploymentInput.cs index a8a56dca913bf..b42cc3496e55d 100644 --- a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/DeploymentInput.cs +++ b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmDeploymentInput.cs @@ -12,12 +12,12 @@ namespace Azure.ResourceManager.Resources.Models { /// Deployment operation parameters. - public partial class DeploymentInput + public partial class ArmDeploymentInput { - /// Initializes a new instance of DeploymentInput. + /// Initializes a new instance of ArmDeploymentInput. /// The deployment properties. /// is null. - public DeploymentInput(DeploymentProperties properties) + public ArmDeploymentInput(ArmDeploymentProperties properties) { if (properties == null) { @@ -31,7 +31,7 @@ public DeploymentInput(DeploymentProperties properties) /// The location to store the deployment data. public string Location { get; set; } /// The deployment properties. - public DeploymentProperties Properties { get; } + public ArmDeploymentProperties Properties { get; } /// Deployment tags. public IDictionary Tags { get; } } diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ApplicationListResult.Serialization.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmDeploymentListResult.Serialization.cs similarity index 70% rename from sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ApplicationListResult.Serialization.cs rename to sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmDeploymentListResult.Serialization.cs index 08582a6df26ee..7c98cb29f5790 100644 --- a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ApplicationListResult.Serialization.cs +++ b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmDeploymentListResult.Serialization.cs @@ -12,11 +12,11 @@ namespace Azure.ResourceManager.Resources.Models { - internal partial class ApplicationListResult + internal partial class ArmDeploymentListResult { - internal static ApplicationListResult DeserializeApplicationListResult(JsonElement element) + internal static ArmDeploymentListResult DeserializeArmDeploymentListResult(JsonElement element) { - Optional> value = default; + Optional> value = default; Optional nextLink = default; foreach (var property in element.EnumerateObject()) { @@ -27,10 +27,10 @@ internal static ApplicationListResult DeserializeApplicationListResult(JsonEleme property.ThrowNonNullablePropertyIsNull(); continue; } - List array = new List(); + List array = new List(); foreach (var item in property.Value.EnumerateArray()) { - array.Add(ApplicationData.DeserializeApplicationData(item)); + array.Add(ArmDeploymentData.DeserializeArmDeploymentData(item)); } value = array; continue; @@ -41,7 +41,7 @@ internal static ApplicationListResult DeserializeApplicationListResult(JsonEleme continue; } } - return new ApplicationListResult(Optional.ToList(value), nextLink.Value); + return new ArmDeploymentListResult(Optional.ToList(value), nextLink.Value); } } } diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/DeploymentListResult.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmDeploymentListResult.cs similarity index 61% rename from sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/DeploymentListResult.cs rename to sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmDeploymentListResult.cs index ed88fc0e02905..beb68203211e0 100644 --- a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/DeploymentListResult.cs +++ b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmDeploymentListResult.cs @@ -12,25 +12,25 @@ namespace Azure.ResourceManager.Resources.Models { /// List of deployments. - internal partial class DeploymentListResult + internal partial class ArmDeploymentListResult { - /// Initializes a new instance of DeploymentListResult. - internal DeploymentListResult() + /// Initializes a new instance of ArmDeploymentListResult. + internal ArmDeploymentListResult() { - Value = new ChangeTrackingList(); + Value = new ChangeTrackingList(); } - /// Initializes a new instance of DeploymentListResult. + /// Initializes a new instance of ArmDeploymentListResult. /// An array of deployments. /// The URL to use for getting the next set of results. - internal DeploymentListResult(IReadOnlyList value, string nextLink) + internal ArmDeploymentListResult(IReadOnlyList value, string nextLink) { Value = value; NextLink = nextLink; } /// An array of deployments. - public IReadOnlyList Value { get; } + public IReadOnlyList Value { get; } /// The URL to use for getting the next set of results. public string NextLink { get; } } diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmDeploymentMode.Serialization.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmDeploymentMode.Serialization.cs new file mode 100644 index 0000000000000..5579e0d875094 --- /dev/null +++ b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmDeploymentMode.Serialization.cs @@ -0,0 +1,28 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; + +namespace Azure.ResourceManager.Resources.Models +{ + internal static partial class ArmDeploymentModeExtensions + { + public static string ToSerialString(this ArmDeploymentMode value) => value switch + { + ArmDeploymentMode.Incremental => "Incremental", + ArmDeploymentMode.Complete => "Complete", + _ => throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown ArmDeploymentMode value.") + }; + + public static ArmDeploymentMode ToArmDeploymentMode(this string value) + { + if (string.Equals(value, "Incremental", StringComparison.InvariantCultureIgnoreCase)) return ArmDeploymentMode.Incremental; + if (string.Equals(value, "Complete", StringComparison.InvariantCultureIgnoreCase)) return ArmDeploymentMode.Complete; + throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown ArmDeploymentMode value."); + } + } +} diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmDeploymentMode.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmDeploymentMode.cs new file mode 100644 index 0000000000000..860c051a927d9 --- /dev/null +++ b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmDeploymentMode.cs @@ -0,0 +1,18 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.ResourceManager.Resources.Models +{ + /// The mode that is used to deploy resources. This value can be either Incremental or Complete. In Incremental mode, resources are deployed without deleting existing resources that are not included in the template. In Complete mode, resources are deployed and existing resources in the resource group that are not included in the template are deleted. Be careful when using Complete mode as you may unintentionally delete resources. + public enum ArmDeploymentMode + { + /// Incremental. + Incremental, + /// Complete. + Complete + } +} diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/DeploymentOperation.Serialization.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmDeploymentOperation.Serialization.cs similarity index 71% rename from sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/DeploymentOperation.Serialization.cs rename to sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmDeploymentOperation.Serialization.cs index 5fe3b16c43ac2..fc275a260afa6 100644 --- a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/DeploymentOperation.Serialization.cs +++ b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmDeploymentOperation.Serialization.cs @@ -10,13 +10,13 @@ namespace Azure.ResourceManager.Resources.Models { - public partial class DeploymentOperation + public partial class ArmDeploymentOperation { - internal static DeploymentOperation DeserializeDeploymentOperation(JsonElement element) + internal static ArmDeploymentOperation DeserializeArmDeploymentOperation(JsonElement element) { Optional id = default; Optional operationId = default; - Optional properties = default; + Optional properties = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("id")) @@ -36,11 +36,11 @@ internal static DeploymentOperation DeserializeDeploymentOperation(JsonElement e property.ThrowNonNullablePropertyIsNull(); continue; } - properties = DeploymentOperationProperties.DeserializeDeploymentOperationProperties(property.Value); + properties = ArmDeploymentOperationProperties.DeserializeArmDeploymentOperationProperties(property.Value); continue; } } - return new DeploymentOperation(id.Value, operationId.Value, properties.Value); + return new ArmDeploymentOperation(id.Value, operationId.Value, properties.Value); } } } diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/DeploymentOperation.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmDeploymentOperation.cs similarity index 66% rename from sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/DeploymentOperation.cs rename to sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmDeploymentOperation.cs index fb3a49bca72e3..0a19b938ebd25 100644 --- a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/DeploymentOperation.cs +++ b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmDeploymentOperation.cs @@ -8,18 +8,18 @@ namespace Azure.ResourceManager.Resources.Models { /// Deployment operation information. - public partial class DeploymentOperation + public partial class ArmDeploymentOperation { - /// Initializes a new instance of DeploymentOperation. - internal DeploymentOperation() + /// Initializes a new instance of ArmDeploymentOperation. + internal ArmDeploymentOperation() { } - /// Initializes a new instance of DeploymentOperation. + /// Initializes a new instance of ArmDeploymentOperation. /// Full deployment operation ID. /// Deployment operation ID. /// Deployment properties. - internal DeploymentOperation(string id, string operationId, DeploymentOperationProperties properties) + internal ArmDeploymentOperation(string id, string operationId, ArmDeploymentOperationProperties properties) { Id = id; OperationId = operationId; @@ -31,6 +31,6 @@ internal DeploymentOperation(string id, string operationId, DeploymentOperationP /// Deployment operation ID. public string OperationId { get; } /// Deployment properties. - public DeploymentOperationProperties Properties { get; } + public ArmDeploymentOperationProperties Properties { get; } } } diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/DeploymentOperationProperties.Serialization.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmDeploymentOperationProperties.Serialization.cs similarity index 90% rename from sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/DeploymentOperationProperties.Serialization.cs rename to sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmDeploymentOperationProperties.Serialization.cs index 123be51435c93..894812558a7f0 100644 --- a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/DeploymentOperationProperties.Serialization.cs +++ b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmDeploymentOperationProperties.Serialization.cs @@ -11,9 +11,9 @@ namespace Azure.ResourceManager.Resources.Models { - public partial class DeploymentOperationProperties + public partial class ArmDeploymentOperationProperties { - internal static DeploymentOperationProperties DeserializeDeploymentOperationProperties(JsonElement element) + internal static ArmDeploymentOperationProperties DeserializeArmDeploymentOperationProperties(JsonElement element) { Optional provisioningOperation = default; Optional provisioningState = default; @@ -113,7 +113,7 @@ internal static DeploymentOperationProperties DeserializeDeploymentOperationProp continue; } } - return new DeploymentOperationProperties(Optional.ToNullable(provisioningOperation), provisioningState.Value, Optional.ToNullable(timestamp), Optional.ToNullable(duration), serviceRequestId.Value, statusCode.Value, statusMessage.Value, targetResource.Value, request.Value, response.Value); + return new ArmDeploymentOperationProperties(Optional.ToNullable(provisioningOperation), provisioningState.Value, Optional.ToNullable(timestamp), Optional.ToNullable(duration), serviceRequestId.Value, statusCode.Value, statusMessage.Value, targetResource.Value, request.Value, response.Value); } } } diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/DeploymentOperationProperties.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmDeploymentOperationProperties.cs similarity index 84% rename from sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/DeploymentOperationProperties.cs rename to sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmDeploymentOperationProperties.cs index d337b488f1441..9623dbd6c3059 100644 --- a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/DeploymentOperationProperties.cs +++ b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmDeploymentOperationProperties.cs @@ -10,14 +10,14 @@ namespace Azure.ResourceManager.Resources.Models { /// Deployment operation properties. - public partial class DeploymentOperationProperties + public partial class ArmDeploymentOperationProperties { - /// Initializes a new instance of DeploymentOperationProperties. - internal DeploymentOperationProperties() + /// Initializes a new instance of ArmDeploymentOperationProperties. + internal ArmDeploymentOperationProperties() { } - /// Initializes a new instance of DeploymentOperationProperties. + /// Initializes a new instance of ArmDeploymentOperationProperties. /// The name of the current provisioning operation. /// The state of the provisioning. /// The date and time of the operation. @@ -28,7 +28,7 @@ internal DeploymentOperationProperties() /// The target resource. /// The HTTP request message. /// The HTTP response message. - internal DeploymentOperationProperties(ProvisioningOperation? provisioningOperation, string provisioningState, DateTimeOffset? timestamp, TimeSpan? duration, string serviceRequestId, string statusCode, StatusMessage statusMessage, TargetResource targetResource, HttpMessage request, HttpMessage response) + internal ArmDeploymentOperationProperties(ProvisioningOperation? provisioningOperation, string provisioningState, DateTimeOffset? timestamp, TimeSpan? duration, string serviceRequestId, string statusCode, StatusMessage statusMessage, TargetResource targetResource, HttpMessage request, HttpMessage response) { ProvisioningOperation = provisioningOperation; ProvisioningState = provisioningState; diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/DeploymentOperationsListResult.Serialization.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmDeploymentOperationsListResult.Serialization.cs similarity index 66% rename from sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/DeploymentOperationsListResult.Serialization.cs rename to sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmDeploymentOperationsListResult.Serialization.cs index fde590a48b643..22e55858d389d 100644 --- a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/DeploymentOperationsListResult.Serialization.cs +++ b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmDeploymentOperationsListResult.Serialization.cs @@ -11,11 +11,11 @@ namespace Azure.ResourceManager.Resources.Models { - internal partial class DeploymentOperationsListResult + internal partial class ArmDeploymentOperationsListResult { - internal static DeploymentOperationsListResult DeserializeDeploymentOperationsListResult(JsonElement element) + internal static ArmDeploymentOperationsListResult DeserializeArmDeploymentOperationsListResult(JsonElement element) { - Optional> value = default; + Optional> value = default; Optional nextLink = default; foreach (var property in element.EnumerateObject()) { @@ -26,10 +26,10 @@ internal static DeploymentOperationsListResult DeserializeDeploymentOperationsLi property.ThrowNonNullablePropertyIsNull(); continue; } - List array = new List(); + List array = new List(); foreach (var item in property.Value.EnumerateArray()) { - array.Add(DeploymentOperation.DeserializeDeploymentOperation(item)); + array.Add(ArmDeploymentOperation.DeserializeArmDeploymentOperation(item)); } value = array; continue; @@ -40,7 +40,7 @@ internal static DeploymentOperationsListResult DeserializeDeploymentOperationsLi continue; } } - return new DeploymentOperationsListResult(Optional.ToList(value), nextLink.Value); + return new ArmDeploymentOperationsListResult(Optional.ToList(value), nextLink.Value); } } } diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/DeploymentOperationsListResult.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmDeploymentOperationsListResult.cs similarity index 58% rename from sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/DeploymentOperationsListResult.cs rename to sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmDeploymentOperationsListResult.cs index a5fd0ed27c5f9..3f061fe451a52 100644 --- a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/DeploymentOperationsListResult.cs +++ b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmDeploymentOperationsListResult.cs @@ -11,25 +11,25 @@ namespace Azure.ResourceManager.Resources.Models { /// List of deployment operations. - internal partial class DeploymentOperationsListResult + internal partial class ArmDeploymentOperationsListResult { - /// Initializes a new instance of DeploymentOperationsListResult. - internal DeploymentOperationsListResult() + /// Initializes a new instance of ArmDeploymentOperationsListResult. + internal ArmDeploymentOperationsListResult() { - Value = new ChangeTrackingList(); + Value = new ChangeTrackingList(); } - /// Initializes a new instance of DeploymentOperationsListResult. + /// Initializes a new instance of ArmDeploymentOperationsListResult. /// An array of deployment operations. /// The URL to use for getting the next set of results. - internal DeploymentOperationsListResult(IReadOnlyList value, string nextLink) + internal ArmDeploymentOperationsListResult(IReadOnlyList value, string nextLink) { Value = value; NextLink = nextLink; } /// An array of deployment operations. - public IReadOnlyList Value { get; } + public IReadOnlyList Value { get; } /// The URL to use for getting the next set of results. public string NextLink { get; } } diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/DeploymentScriptData.Serialization.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmDeploymentScriptData.Serialization.cs similarity index 89% rename from sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/DeploymentScriptData.Serialization.cs rename to sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmDeploymentScriptData.Serialization.cs index 3bbb02a295eba..218919fcf12f1 100644 --- a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/DeploymentScriptData.Serialization.cs +++ b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmDeploymentScriptData.Serialization.cs @@ -13,7 +13,7 @@ namespace Azure.ResourceManager.Resources { - public partial class DeploymentScriptData : IUtf8JsonSerializable + public partial class ArmDeploymentScriptData : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -41,7 +41,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndObject(); } - internal static DeploymentScriptData DeserializeDeploymentScriptData(JsonElement element) + internal static ArmDeploymentScriptData DeserializeArmDeploymentScriptData(JsonElement element) { if (element.TryGetProperty("kind", out JsonElement discriminator)) { @@ -51,7 +51,7 @@ internal static DeploymentScriptData DeserializeDeploymentScriptData(JsonElement case "AzurePowerShell": return AzurePowerShellScript.DeserializeAzurePowerShellScript(element); } } - Optional identity = default; + Optional identity = default; string location = default; Optional> tags = default; ScriptType kind = default; @@ -68,7 +68,7 @@ internal static DeploymentScriptData DeserializeDeploymentScriptData(JsonElement property.ThrowNonNullablePropertyIsNull(); continue; } - identity = DeploymentScriptManagedIdentity.DeserializeDeploymentScriptManagedIdentity(property.Value); + identity = ArmDeploymentScriptManagedIdentity.DeserializeArmDeploymentScriptManagedIdentity(property.Value); continue; } if (property.NameEquals("location")) @@ -117,7 +117,7 @@ internal static DeploymentScriptData DeserializeDeploymentScriptData(JsonElement continue; } } - return new DeploymentScriptData(id, name, type, systemData, identity.Value, location, Optional.ToDictionary(tags), kind); + return new ArmDeploymentScriptData(id, name, type, systemData, identity.Value, location, Optional.ToDictionary(tags), kind); } } } diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/DeploymentScriptListResult.Serialization.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmDeploymentScriptListResult.Serialization.cs similarity index 67% rename from sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/DeploymentScriptListResult.Serialization.cs rename to sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmDeploymentScriptListResult.Serialization.cs index 9b2dbabd42e8f..7a9eb4874fe35 100644 --- a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/DeploymentScriptListResult.Serialization.cs +++ b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmDeploymentScriptListResult.Serialization.cs @@ -12,11 +12,11 @@ namespace Azure.ResourceManager.Resources.Models { - internal partial class DeploymentScriptListResult + internal partial class ArmDeploymentScriptListResult { - internal static DeploymentScriptListResult DeserializeDeploymentScriptListResult(JsonElement element) + internal static ArmDeploymentScriptListResult DeserializeArmDeploymentScriptListResult(JsonElement element) { - Optional> value = default; + Optional> value = default; Optional nextLink = default; foreach (var property in element.EnumerateObject()) { @@ -27,10 +27,10 @@ internal static DeploymentScriptListResult DeserializeDeploymentScriptListResult property.ThrowNonNullablePropertyIsNull(); continue; } - List array = new List(); + List array = new List(); foreach (var item in property.Value.EnumerateArray()) { - array.Add(DeploymentScriptData.DeserializeDeploymentScriptData(item)); + array.Add(ArmDeploymentScriptData.DeserializeArmDeploymentScriptData(item)); } value = array; continue; @@ -41,7 +41,7 @@ internal static DeploymentScriptListResult DeserializeDeploymentScriptListResult continue; } } - return new DeploymentScriptListResult(Optional.ToList(value), nextLink.Value); + return new ArmDeploymentScriptListResult(Optional.ToList(value), nextLink.Value); } } } diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/DeploymentScriptListResult.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmDeploymentScriptListResult.cs similarity index 59% rename from sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/DeploymentScriptListResult.cs rename to sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmDeploymentScriptListResult.cs index a0e14457bd045..fb0cc24191109 100644 --- a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/DeploymentScriptListResult.cs +++ b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmDeploymentScriptListResult.cs @@ -12,25 +12,25 @@ namespace Azure.ResourceManager.Resources.Models { /// List of deployment scripts. - internal partial class DeploymentScriptListResult + internal partial class ArmDeploymentScriptListResult { - /// Initializes a new instance of DeploymentScriptListResult. - internal DeploymentScriptListResult() + /// Initializes a new instance of ArmDeploymentScriptListResult. + internal ArmDeploymentScriptListResult() { - Value = new ChangeTrackingList(); + Value = new ChangeTrackingList(); } - /// Initializes a new instance of DeploymentScriptListResult. + /// Initializes a new instance of ArmDeploymentScriptListResult. /// An array of deployment scripts. /// The URL to use for getting the next set of results. - internal DeploymentScriptListResult(IReadOnlyList value, string nextLink) + internal ArmDeploymentScriptListResult(IReadOnlyList value, string nextLink) { Value = value; NextLink = nextLink; } /// An array of deployment scripts. - public IReadOnlyList Value { get; } + public IReadOnlyList Value { get; } /// The URL to use for getting the next set of results. public string NextLink { get; } } diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/DeploymentScriptManagedIdentity.Serialization.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmDeploymentScriptManagedIdentity.Serialization.cs similarity index 70% rename from sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/DeploymentScriptManagedIdentity.Serialization.cs rename to sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmDeploymentScriptManagedIdentity.Serialization.cs index 810344784750b..b02e00a928a67 100644 --- a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/DeploymentScriptManagedIdentity.Serialization.cs +++ b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmDeploymentScriptManagedIdentity.Serialization.cs @@ -5,6 +5,7 @@ #nullable disable +using System; using System.Collections.Generic; using System.Text.Json; using Azure.Core; @@ -12,15 +13,15 @@ namespace Azure.ResourceManager.Resources.Models { - public partial class DeploymentScriptManagedIdentity : IUtf8JsonSerializable + public partial class ArmDeploymentScriptManagedIdentity : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { writer.WriteStartObject(); - if (Optional.IsDefined(DeploymentScriptManagedIdentityType)) + if (Optional.IsDefined(ArmDeploymentScriptManagedIdentityType)) { writer.WritePropertyName("type"); - writer.WriteStringValue(DeploymentScriptManagedIdentityType.Value.ToString()); + writer.WriteStringValue(ArmDeploymentScriptManagedIdentityType.Value.ToString()); } if (Optional.IsCollectionDefined(UserAssignedIdentities)) { @@ -36,10 +37,10 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndObject(); } - internal static DeploymentScriptManagedIdentity DeserializeDeploymentScriptManagedIdentity(JsonElement element) + internal static ArmDeploymentScriptManagedIdentity DeserializeArmDeploymentScriptManagedIdentity(JsonElement element) { - Optional type = default; - Optional tenantId = default; + Optional type = default; + Optional tenantId = default; Optional> userAssignedIdentities = default; foreach (var property in element.EnumerateObject()) { @@ -50,12 +51,17 @@ internal static DeploymentScriptManagedIdentity DeserializeDeploymentScriptManag property.ThrowNonNullablePropertyIsNull(); continue; } - type = new DeploymentScriptManagedIdentityType(property.Value.GetString()); + type = new ArmDeploymentScriptManagedIdentityType(property.Value.GetString()); continue; } if (property.NameEquals("tenantId")) { - tenantId = property.Value.GetString(); + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + tenantId = property.Value.GetGuid(); continue; } if (property.NameEquals("userAssignedIdentities")) @@ -74,7 +80,7 @@ internal static DeploymentScriptManagedIdentity DeserializeDeploymentScriptManag continue; } } - return new DeploymentScriptManagedIdentity(Optional.ToNullable(type), tenantId.Value, Optional.ToDictionary(userAssignedIdentities)); + return new ArmDeploymentScriptManagedIdentity(Optional.ToNullable(type), Optional.ToNullable(tenantId), Optional.ToDictionary(userAssignedIdentities)); } } } diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/DeploymentScriptManagedIdentity.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmDeploymentScriptManagedIdentity.cs similarity index 58% rename from sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/DeploymentScriptManagedIdentity.cs rename to sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmDeploymentScriptManagedIdentity.cs index 9dbced0d7288f..963dd9c766bfb 100644 --- a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/DeploymentScriptManagedIdentity.cs +++ b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmDeploymentScriptManagedIdentity.cs @@ -5,6 +5,7 @@ #nullable disable +using System; using System.Collections.Generic; using Azure.Core; using Azure.ResourceManager.Models; @@ -12,29 +13,29 @@ namespace Azure.ResourceManager.Resources.Models { /// Managed identity generic object. - public partial class DeploymentScriptManagedIdentity + public partial class ArmDeploymentScriptManagedIdentity { - /// Initializes a new instance of DeploymentScriptManagedIdentity. - public DeploymentScriptManagedIdentity() + /// Initializes a new instance of ArmDeploymentScriptManagedIdentity. + public ArmDeploymentScriptManagedIdentity() { UserAssignedIdentities = new ChangeTrackingDictionary(); } - /// Initializes a new instance of DeploymentScriptManagedIdentity. - /// Type of the managed identity. + /// Initializes a new instance of ArmDeploymentScriptManagedIdentity. + /// Type of the managed identity. /// ID of the Azure Active Directory. /// The list of user-assigned managed identities associated with the resource. Key is the Azure resource Id of the managed identity. - internal DeploymentScriptManagedIdentity(DeploymentScriptManagedIdentityType? deploymentScriptManagedIdentityType, string tenantId, IDictionary userAssignedIdentities) + internal ArmDeploymentScriptManagedIdentity(ArmDeploymentScriptManagedIdentityType? armDeploymentScriptManagedIdentityType, Guid? tenantId, IDictionary userAssignedIdentities) { - DeploymentScriptManagedIdentityType = deploymentScriptManagedIdentityType; + ArmDeploymentScriptManagedIdentityType = armDeploymentScriptManagedIdentityType; TenantId = tenantId; UserAssignedIdentities = userAssignedIdentities; } /// Type of the managed identity. - public DeploymentScriptManagedIdentityType? DeploymentScriptManagedIdentityType { get; set; } + public ArmDeploymentScriptManagedIdentityType? ArmDeploymentScriptManagedIdentityType { get; set; } /// ID of the Azure Active Directory. - public string TenantId { get; } + public Guid? TenantId { get; } /// The list of user-assigned managed identities associated with the resource. Key is the Azure resource Id of the managed identity. public IDictionary UserAssignedIdentities { get; } } diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmDeploymentScriptManagedIdentityType.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmDeploymentScriptManagedIdentityType.cs new file mode 100644 index 0000000000000..a7c2c54a69c66 --- /dev/null +++ b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmDeploymentScriptManagedIdentityType.cs @@ -0,0 +1,48 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.ResourceManager.Resources.Models +{ + /// Type of the managed identity. + public readonly partial struct ArmDeploymentScriptManagedIdentityType : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public ArmDeploymentScriptManagedIdentityType(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string UserAssignedValue = "UserAssigned"; + + /// UserAssigned. + public static ArmDeploymentScriptManagedIdentityType UserAssigned { get; } = new ArmDeploymentScriptManagedIdentityType(UserAssignedValue); + /// Determines if two values are the same. + public static bool operator ==(ArmDeploymentScriptManagedIdentityType left, ArmDeploymentScriptManagedIdentityType right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(ArmDeploymentScriptManagedIdentityType left, ArmDeploymentScriptManagedIdentityType right) => !left.Equals(right); + /// Converts a string to a . + public static implicit operator ArmDeploymentScriptManagedIdentityType(string value) => new ArmDeploymentScriptManagedIdentityType(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is ArmDeploymentScriptManagedIdentityType other && Equals(other); + /// + public bool Equals(ArmDeploymentScriptManagedIdentityType other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value?.GetHashCode() ?? 0; + /// + public override string ToString() => _value; + } +} diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/DeploymentScriptPropertiesBase.Serialization.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmDeploymentScriptPropertiesBase.Serialization.cs similarity index 76% rename from sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/DeploymentScriptPropertiesBase.Serialization.cs rename to sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmDeploymentScriptPropertiesBase.Serialization.cs index fe7ed41ec7973..167412341588a 100644 --- a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/DeploymentScriptPropertiesBase.Serialization.cs +++ b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmDeploymentScriptPropertiesBase.Serialization.cs @@ -7,7 +7,7 @@ namespace Azure.ResourceManager.Resources.Models { - internal partial class DeploymentScriptPropertiesBase + internal partial class ArmDeploymentScriptPropertiesBase { } } diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/DeploymentScriptPropertiesBase.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmDeploymentScriptPropertiesBase.cs similarity index 92% rename from sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/DeploymentScriptPropertiesBase.cs rename to sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmDeploymentScriptPropertiesBase.cs index d76aafaa3172a..bd3f7627514f4 100644 --- a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/DeploymentScriptPropertiesBase.cs +++ b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmDeploymentScriptPropertiesBase.cs @@ -12,10 +12,10 @@ namespace Azure.ResourceManager.Resources.Models { /// Common properties for the deployment script. - internal partial class DeploymentScriptPropertiesBase + internal partial class ArmDeploymentScriptPropertiesBase { - /// Initializes a new instance of DeploymentScriptPropertiesBase. - internal DeploymentScriptPropertiesBase() + /// Initializes a new instance of ArmDeploymentScriptPropertiesBase. + internal ArmDeploymentScriptPropertiesBase() { Outputs = new ChangeTrackingDictionary(); } diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/DeploymentScriptsError.Serialization.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmDeploymentScriptsError.Serialization.cs similarity index 80% rename from sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/DeploymentScriptsError.Serialization.cs rename to sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmDeploymentScriptsError.Serialization.cs index 88016b1112fba..374358d055d92 100644 --- a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/DeploymentScriptsError.Serialization.cs +++ b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmDeploymentScriptsError.Serialization.cs @@ -11,9 +11,9 @@ namespace Azure.ResourceManager.Resources.Models { - internal partial class DeploymentScriptsError + internal partial class ArmDeploymentScriptsError { - internal static DeploymentScriptsError DeserializeDeploymentScriptsError(JsonElement element) + internal static ArmDeploymentScriptsError DeserializeArmDeploymentScriptsError(JsonElement element) { Optional error = default; foreach (var property in element.EnumerateObject()) @@ -29,7 +29,7 @@ internal static DeploymentScriptsError DeserializeDeploymentScriptsError(JsonEle continue; } } - return new DeploymentScriptsError(error); + return new ArmDeploymentScriptsError(error); } } } diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/DeploymentScriptsError.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmDeploymentScriptsError.cs similarity index 70% rename from sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/DeploymentScriptsError.cs rename to sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmDeploymentScriptsError.cs index 0f2872dec3c7b..b149cad23e3de 100644 --- a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/DeploymentScriptsError.cs +++ b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmDeploymentScriptsError.cs @@ -10,16 +10,16 @@ namespace Azure.ResourceManager.Resources.Models { /// Deployment scripts error response. - internal partial class DeploymentScriptsError + internal partial class ArmDeploymentScriptsError { - /// Initializes a new instance of DeploymentScriptsError. - internal DeploymentScriptsError() + /// Initializes a new instance of ArmDeploymentScriptsError. + internal ArmDeploymentScriptsError() { } - /// Initializes a new instance of DeploymentScriptsError. + /// Initializes a new instance of ArmDeploymentScriptsError. /// Common error response for all Azure Resource Manager APIs to return error details for failed operations. (This also follows the OData error response format.). - internal DeploymentScriptsError(ErrorDetail error) + internal ArmDeploymentScriptsError(ErrorDetail error) { Error = error; } diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/DeploymentValidateResult.Serialization.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmDeploymentValidateResult.Serialization.cs similarity index 73% rename from sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/DeploymentValidateResult.Serialization.cs rename to sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmDeploymentValidateResult.Serialization.cs index 99ce25ae5e03d..4c8d02933cc67 100644 --- a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/DeploymentValidateResult.Serialization.cs +++ b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmDeploymentValidateResult.Serialization.cs @@ -11,12 +11,12 @@ namespace Azure.ResourceManager.Resources.Models { - public partial class DeploymentValidateResult + public partial class ArmDeploymentValidateResult { - internal static DeploymentValidateResult DeserializeDeploymentValidateResult(JsonElement element) + internal static ArmDeploymentValidateResult DeserializeArmDeploymentValidateResult(JsonElement element) { Optional error = default; - Optional properties = default; + Optional properties = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("error")) @@ -36,11 +36,11 @@ internal static DeploymentValidateResult DeserializeDeploymentValidateResult(Jso property.ThrowNonNullablePropertyIsNull(); continue; } - properties = DeploymentPropertiesExtended.DeserializeDeploymentPropertiesExtended(property.Value); + properties = ArmDeploymentPropertiesExtended.DeserializeArmDeploymentPropertiesExtended(property.Value); continue; } } - return new DeploymentValidateResult(error, properties.Value); + return new ArmDeploymentValidateResult(error, properties.Value); } } } diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/DeploymentValidateResult.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmDeploymentValidateResult.cs similarity index 62% rename from sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/DeploymentValidateResult.cs rename to sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmDeploymentValidateResult.cs index 5b4d04165768a..d7ac21af5e082 100644 --- a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/DeploymentValidateResult.cs +++ b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmDeploymentValidateResult.cs @@ -10,17 +10,17 @@ namespace Azure.ResourceManager.Resources.Models { /// Information from validate template deployment response. - public partial class DeploymentValidateResult + public partial class ArmDeploymentValidateResult { - /// Initializes a new instance of DeploymentValidateResult. - internal DeploymentValidateResult() + /// Initializes a new instance of ArmDeploymentValidateResult. + internal ArmDeploymentValidateResult() { } - /// Initializes a new instance of DeploymentValidateResult. + /// Initializes a new instance of ArmDeploymentValidateResult. /// The deployment validation error. /// The template deployment properties. - internal DeploymentValidateResult(ErrorDetail error, DeploymentPropertiesExtended properties) + internal ArmDeploymentValidateResult(ErrorDetail error, ArmDeploymentPropertiesExtended properties) { Error = error; Properties = properties; @@ -29,6 +29,6 @@ internal DeploymentValidateResult(ErrorDetail error, DeploymentPropertiesExtende /// The deployment validation error. public ErrorDetail Error { get; } /// The template deployment properties. - public DeploymentPropertiesExtended Properties { get; } + public ArmDeploymentPropertiesExtended Properties { get; } } } diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/DeploymentWhatIf.Serialization.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmDeploymentWhatIf.Serialization.cs similarity index 90% rename from sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/DeploymentWhatIf.Serialization.cs rename to sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmDeploymentWhatIf.Serialization.cs index f16f792cde0dc..0ab5f0b57e98b 100644 --- a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/DeploymentWhatIf.Serialization.cs +++ b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmDeploymentWhatIf.Serialization.cs @@ -10,7 +10,7 @@ namespace Azure.ResourceManager.Resources.Models { - public partial class DeploymentWhatIf : IUtf8JsonSerializable + public partial class ArmDeploymentWhatIf : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/DeploymentWhatIf.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmDeploymentWhatIf.cs similarity index 76% rename from sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/DeploymentWhatIf.cs rename to sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmDeploymentWhatIf.cs index 8761072b76425..bb1ea5c55102e 100644 --- a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/DeploymentWhatIf.cs +++ b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmDeploymentWhatIf.cs @@ -10,12 +10,12 @@ namespace Azure.ResourceManager.Resources.Models { /// Deployment What-if operation parameters. - public partial class DeploymentWhatIf + public partial class ArmDeploymentWhatIf { - /// Initializes a new instance of DeploymentWhatIf. + /// Initializes a new instance of ArmDeploymentWhatIf. /// The deployment properties. /// is null. - public DeploymentWhatIf(DeploymentWhatIfProperties properties) + public ArmDeploymentWhatIf(ArmDeploymentWhatIfProperties properties) { if (properties == null) { @@ -28,6 +28,6 @@ public DeploymentWhatIf(DeploymentWhatIfProperties properties) /// The location to store the deployment data, only required at the tenant and management group scope. public string Location { get; set; } /// The deployment properties. - public DeploymentWhatIfProperties Properties { get; } + public ArmDeploymentWhatIfProperties Properties { get; } } } diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/DeploymentWhatIfSettings.Serialization.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmDeploymentWhatIfSettings.Serialization.cs similarity index 88% rename from sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/DeploymentWhatIfSettings.Serialization.cs rename to sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmDeploymentWhatIfSettings.Serialization.cs index 5a19a75f57bf4..320a1e62db6b3 100644 --- a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/DeploymentWhatIfSettings.Serialization.cs +++ b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmDeploymentWhatIfSettings.Serialization.cs @@ -10,7 +10,7 @@ namespace Azure.ResourceManager.Resources.Models { - internal partial class DeploymentWhatIfSettings : IUtf8JsonSerializable + internal partial class ArmDeploymentWhatIfSettings : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/DeploymentWhatIfSettings.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmDeploymentWhatIfSettings.cs similarity index 68% rename from sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/DeploymentWhatIfSettings.cs rename to sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmDeploymentWhatIfSettings.cs index 3cf5c5760f0d5..43ad081a35129 100644 --- a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/DeploymentWhatIfSettings.cs +++ b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmDeploymentWhatIfSettings.cs @@ -8,10 +8,10 @@ namespace Azure.ResourceManager.Resources.Models { /// Deployment What-If operation settings. - internal partial class DeploymentWhatIfSettings + internal partial class ArmDeploymentWhatIfSettings { - /// Initializes a new instance of DeploymentWhatIfSettings. - public DeploymentWhatIfSettings() + /// Initializes a new instance of ArmDeploymentWhatIfSettings. + public ArmDeploymentWhatIfSettings() { } diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/AzureCliScript.Serialization.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/AzureCliScript.Serialization.cs index 981e1002805bc..4a59f98b095f0 100644 --- a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/AzureCliScript.Serialization.cs +++ b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/AzureCliScript.Serialization.cs @@ -110,7 +110,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) internal static AzureCliScript DeserializeAzureCliScript(JsonElement element) { - Optional identity = default; + Optional identity = default; string location = default; Optional> tags = default; ScriptType kind = default; @@ -142,7 +142,7 @@ internal static AzureCliScript DeserializeAzureCliScript(JsonElement element) property.ThrowNonNullablePropertyIsNull(); continue; } - identity = DeploymentScriptManagedIdentity.DeserializeDeploymentScriptManagedIdentity(property.Value); + identity = ArmDeploymentScriptManagedIdentity.DeserializeArmDeploymentScriptManagedIdentity(property.Value); continue; } if (property.NameEquals("location")) diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/AzureCliScript.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/AzureCliScript.cs index 4f2e756769dcd..b6d3e3c88bc92 100644 --- a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/AzureCliScript.cs +++ b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/AzureCliScript.cs @@ -14,7 +14,7 @@ namespace Azure.ResourceManager.Resources.Models { /// Object model for the Azure CLI script. - public partial class AzureCliScript : DeploymentScriptData + public partial class AzureCliScript : ArmDeploymentScriptData { /// Initializes a new instance of AzureCliScript. /// The location of the ACI and the storage account for the deployment script. @@ -64,7 +64,7 @@ public AzureCliScript(string location, TimeSpan retentionInterval, string azCliV /// Interval for which the service retains the script resource after it reaches a terminal state. Resource will be deleted when this duration expires. Duration is based on ISO 8601 pattern (for example P1D means one day). /// Maximum allowed script execution time specified in ISO 8601 format. Default value is P1D. /// Azure CLI module version to be used. - internal AzureCliScript(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, DeploymentScriptManagedIdentity identity, string location, IDictionary tags, ScriptType kind, ContainerConfiguration containerSettings, StorageAccountConfiguration storageAccountSettings, CleanupOptions? cleanupPreference, ScriptProvisioningState? provisioningState, ScriptStatus status, IReadOnlyDictionary outputs, Uri primaryScriptUri, IList supportingScriptUris, string scriptContent, string arguments, IList environmentVariables, string forceUpdateTag, TimeSpan retentionInterval, TimeSpan? timeout, string azCliVersion) : base(id, name, resourceType, systemData, identity, location, tags, kind) + internal AzureCliScript(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, ArmDeploymentScriptManagedIdentity identity, string location, IDictionary tags, ScriptType kind, ContainerConfiguration containerSettings, StorageAccountConfiguration storageAccountSettings, CleanupOptions? cleanupPreference, ScriptProvisioningState? provisioningState, ScriptStatus status, IReadOnlyDictionary outputs, Uri primaryScriptUri, IList supportingScriptUris, string scriptContent, string arguments, IList environmentVariables, string forceUpdateTag, TimeSpan retentionInterval, TimeSpan? timeout, string azCliVersion) : base(id, name, resourceType, systemData, identity, location, tags, kind) { ContainerSettings = containerSettings; StorageAccountSettings = storageAccountSettings; diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/AzureCliScriptProperties.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/AzureCliScriptProperties.cs index d4598f905e6bc..5a5a0ed847fa8 100644 --- a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/AzureCliScriptProperties.cs +++ b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/AzureCliScriptProperties.cs @@ -12,7 +12,7 @@ namespace Azure.ResourceManager.Resources.Models { /// Properties of the Azure CLI script object. - internal partial class AzureCliScriptProperties : DeploymentScriptPropertiesBase + internal partial class AzureCliScriptProperties : ArmDeploymentScriptPropertiesBase { /// Initializes a new instance of AzureCliScriptProperties. /// Azure CLI module version to be used. diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/AzurePowerShellScript.Serialization.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/AzurePowerShellScript.Serialization.cs index 78402b4663f5d..d2b8be6578851 100644 --- a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/AzurePowerShellScript.Serialization.cs +++ b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/AzurePowerShellScript.Serialization.cs @@ -110,7 +110,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) internal static AzurePowerShellScript DeserializeAzurePowerShellScript(JsonElement element) { - Optional identity = default; + Optional identity = default; string location = default; Optional> tags = default; ScriptType kind = default; @@ -142,7 +142,7 @@ internal static AzurePowerShellScript DeserializeAzurePowerShellScript(JsonEleme property.ThrowNonNullablePropertyIsNull(); continue; } - identity = DeploymentScriptManagedIdentity.DeserializeDeploymentScriptManagedIdentity(property.Value); + identity = ArmDeploymentScriptManagedIdentity.DeserializeArmDeploymentScriptManagedIdentity(property.Value); continue; } if (property.NameEquals("location")) diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/AzurePowerShellScript.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/AzurePowerShellScript.cs index 325538d53d33e..83b8c441cb11f 100644 --- a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/AzurePowerShellScript.cs +++ b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/AzurePowerShellScript.cs @@ -14,7 +14,7 @@ namespace Azure.ResourceManager.Resources.Models { /// Object model for the Azure PowerShell script. - public partial class AzurePowerShellScript : DeploymentScriptData + public partial class AzurePowerShellScript : ArmDeploymentScriptData { /// Initializes a new instance of AzurePowerShellScript. /// The location of the ACI and the storage account for the deployment script. @@ -64,7 +64,7 @@ public AzurePowerShellScript(string location, TimeSpan retentionInterval, string /// Interval for which the service retains the script resource after it reaches a terminal state. Resource will be deleted when this duration expires. Duration is based on ISO 8601 pattern (for example P1D means one day). /// Maximum allowed script execution time specified in ISO 8601 format. Default value is P1D. /// Azure PowerShell module version to be used. - internal AzurePowerShellScript(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, DeploymentScriptManagedIdentity identity, string location, IDictionary tags, ScriptType kind, ContainerConfiguration containerSettings, StorageAccountConfiguration storageAccountSettings, CleanupOptions? cleanupPreference, ScriptProvisioningState? provisioningState, ScriptStatus status, IReadOnlyDictionary outputs, Uri primaryScriptUri, IList supportingScriptUris, string scriptContent, string arguments, IList environmentVariables, string forceUpdateTag, TimeSpan retentionInterval, TimeSpan? timeout, string azPowerShellVersion) : base(id, name, resourceType, systemData, identity, location, tags, kind) + internal AzurePowerShellScript(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, ArmDeploymentScriptManagedIdentity identity, string location, IDictionary tags, ScriptType kind, ContainerConfiguration containerSettings, StorageAccountConfiguration storageAccountSettings, CleanupOptions? cleanupPreference, ScriptProvisioningState? provisioningState, ScriptStatus status, IReadOnlyDictionary outputs, Uri primaryScriptUri, IList supportingScriptUris, string scriptContent, string arguments, IList environmentVariables, string forceUpdateTag, TimeSpan retentionInterval, TimeSpan? timeout, string azPowerShellVersion) : base(id, name, resourceType, systemData, identity, location, tags, kind) { ContainerSettings = containerSettings; StorageAccountSettings = storageAccountSettings; diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/AzurePowerShellScriptProperties.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/AzurePowerShellScriptProperties.cs index b79fb91db250d..08213cc878f0c 100644 --- a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/AzurePowerShellScriptProperties.cs +++ b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/AzurePowerShellScriptProperties.cs @@ -12,7 +12,7 @@ namespace Azure.ResourceManager.Resources.Models { /// Properties of the Azure PowerShell script object. - internal partial class AzurePowerShellScriptProperties : DeploymentScriptPropertiesBase + internal partial class AzurePowerShellScriptProperties : ArmDeploymentScriptPropertiesBase { /// Initializes a new instance of AzurePowerShellScriptProperties. /// Azure PowerShell module version to be used. diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/DeploymentMode.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/DeploymentMode.cs deleted file mode 100644 index 5e9308e3de692..0000000000000 --- a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/DeploymentMode.cs +++ /dev/null @@ -1,54 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.ComponentModel; - -namespace Azure.ResourceManager.Resources.Models -{ - /// The deployment mode. - public readonly partial struct DeploymentMode : IEquatable - { - private readonly string _value; - - /// Initializes a new instance of . - /// is null. - public DeploymentMode(string value) - { - _value = value ?? throw new ArgumentNullException(nameof(value)); - } - - private const string NotSpecifiedValue = "NotSpecified"; - private const string IncrementalValue = "Incremental"; - private const string CompleteValue = "Complete"; - - /// NotSpecified. - public static DeploymentMode NotSpecified { get; } = new DeploymentMode(NotSpecifiedValue); - /// Incremental. - public static DeploymentMode Incremental { get; } = new DeploymentMode(IncrementalValue); - /// Complete. - public static DeploymentMode Complete { get; } = new DeploymentMode(CompleteValue); - /// Determines if two values are the same. - public static bool operator ==(DeploymentMode left, DeploymentMode right) => left.Equals(right); - /// Determines if two values are not the same. - public static bool operator !=(DeploymentMode left, DeploymentMode right) => !left.Equals(right); - /// Converts a string to a . - public static implicit operator DeploymentMode(string value) => new DeploymentMode(value); - - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public override bool Equals(object obj) => obj is DeploymentMode other && Equals(other); - /// - public bool Equals(DeploymentMode other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); - - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public override int GetHashCode() => _value?.GetHashCode() ?? 0; - /// - public override string ToString() => _value; - } -} diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/DeploymentScriptManagedIdentityType.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/DeploymentScriptManagedIdentityType.cs deleted file mode 100644 index fe754ad07eeba..0000000000000 --- a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/DeploymentScriptManagedIdentityType.cs +++ /dev/null @@ -1,48 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.ComponentModel; - -namespace Azure.ResourceManager.Resources.Models -{ - /// Type of the managed identity. - public readonly partial struct DeploymentScriptManagedIdentityType : IEquatable - { - private readonly string _value; - - /// Initializes a new instance of . - /// is null. - public DeploymentScriptManagedIdentityType(string value) - { - _value = value ?? throw new ArgumentNullException(nameof(value)); - } - - private const string UserAssignedValue = "UserAssigned"; - - /// UserAssigned. - public static DeploymentScriptManagedIdentityType UserAssigned { get; } = new DeploymentScriptManagedIdentityType(UserAssignedValue); - /// Determines if two values are the same. - public static bool operator ==(DeploymentScriptManagedIdentityType left, DeploymentScriptManagedIdentityType right) => left.Equals(right); - /// Determines if two values are not the same. - public static bool operator !=(DeploymentScriptManagedIdentityType left, DeploymentScriptManagedIdentityType right) => !left.Equals(right); - /// Converts a string to a . - public static implicit operator DeploymentScriptManagedIdentityType(string value) => new DeploymentScriptManagedIdentityType(value); - - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public override bool Equals(object obj) => obj is DeploymentScriptManagedIdentityType other && Equals(other); - /// - public bool Equals(DeploymentScriptManagedIdentityType other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); - - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public override int GetHashCode() => _value?.GetHashCode() ?? 0; - /// - public override string ToString() => _value; - } -} diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/JitApproverDefinition.Serialization.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/JitApprover.Serialization.cs similarity index 87% rename from sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/JitApproverDefinition.Serialization.cs rename to sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/JitApprover.Serialization.cs index f37c28d52937b..928882293f2cd 100644 --- a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/JitApproverDefinition.Serialization.cs +++ b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/JitApprover.Serialization.cs @@ -10,7 +10,7 @@ namespace Azure.ResourceManager.Resources.Models { - public partial class JitApproverDefinition : IUtf8JsonSerializable + public partial class JitApprover : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -30,7 +30,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndObject(); } - internal static JitApproverDefinition DeserializeJitApproverDefinition(JsonElement element) + internal static JitApprover DeserializeJitApprover(JsonElement element) { string id = default; Optional type = default; @@ -58,7 +58,7 @@ internal static JitApproverDefinition DeserializeJitApproverDefinition(JsonEleme continue; } } - return new JitApproverDefinition(id, Optional.ToNullable(type), displayName.Value); + return new JitApprover(id, Optional.ToNullable(type), displayName.Value); } } } diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/JitApproverDefinition.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/JitApprover.cs similarity index 77% rename from sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/JitApproverDefinition.cs rename to sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/JitApprover.cs index 4eab543780247..4c5f005fd789d 100644 --- a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/JitApproverDefinition.cs +++ b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/JitApprover.cs @@ -10,12 +10,12 @@ namespace Azure.ResourceManager.Resources.Models { /// JIT approver definition. - public partial class JitApproverDefinition + public partial class JitApprover { - /// Initializes a new instance of JitApproverDefinition. + /// Initializes a new instance of JitApprover. /// The approver service principal Id. /// is null. - public JitApproverDefinition(string id) + public JitApprover(string id) { if (id == null) { @@ -25,11 +25,11 @@ public JitApproverDefinition(string id) Id = id; } - /// Initializes a new instance of JitApproverDefinition. + /// Initializes a new instance of JitApprover. /// The approver service principal Id. /// The approver type. /// The approver display name. - internal JitApproverDefinition(string id, JitApproverType? jitApproverType, string displayName) + internal JitApprover(string id, JitApproverType? jitApproverType, string displayName) { Id = id; JitApproverType = jitApproverType; diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/JitAuthorizationPolicies.Serialization.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/JitAuthorizationPolicies.Serialization.cs index 42249a8883c36..5309ee1760509 100644 --- a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/JitAuthorizationPolicies.Serialization.cs +++ b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/JitAuthorizationPolicies.Serialization.cs @@ -5,6 +5,7 @@ #nullable disable +using System; using System.Text.Json; using Azure.Core; @@ -24,13 +25,13 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) internal static JitAuthorizationPolicies DeserializeJitAuthorizationPolicies(JsonElement element) { - string principalId = default; + Guid principalId = default; string roleDefinitionId = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("principalId")) { - principalId = property.Value.GetString(); + principalId = property.Value.GetGuid(); continue; } if (property.NameEquals("roleDefinitionId")) diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/JitAuthorizationPolicies.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/JitAuthorizationPolicies.cs index fc9e14bf2f603..f973f17504ea5 100644 --- a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/JitAuthorizationPolicies.cs +++ b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/JitAuthorizationPolicies.cs @@ -15,13 +15,9 @@ public partial class JitAuthorizationPolicies /// Initializes a new instance of JitAuthorizationPolicies. /// The the principal id that will be granted JIT access. /// The role definition id that will be granted to the Principal. - /// or is null. - public JitAuthorizationPolicies(string principalId, string roleDefinitionId) + /// is null. + public JitAuthorizationPolicies(Guid principalId, string roleDefinitionId) { - if (principalId == null) - { - throw new ArgumentNullException(nameof(principalId)); - } if (roleDefinitionId == null) { throw new ArgumentNullException(nameof(roleDefinitionId)); @@ -32,7 +28,7 @@ public JitAuthorizationPolicies(string principalId, string roleDefinitionId) } /// The the principal id that will be granted JIT access. - public string PrincipalId { get; set; } + public Guid PrincipalId { get; set; } /// The role definition id that will be granted to the Principal. public string RoleDefinitionId { get; set; } } diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/JitRequestData.Serialization.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/JitRequestData.Serialization.cs index 0e560df01ae8f..d932f46dbc567 100644 --- a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/JitRequestData.Serialization.cs +++ b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/JitRequestData.Serialization.cs @@ -66,10 +66,10 @@ internal static JitRequestData DeserializeJitRequestData(JsonElement element) Optional publisherTenantId = default; Optional> jitAuthorizationPolicies = default; Optional jitSchedulingPolicy = default; - Optional provisioningState = default; + Optional provisioningState = default; Optional jitRequestState = default; - Optional createdBy = default; - Optional updatedBy = default; + Optional createdBy = default; + Optional updatedBy = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("tags")) @@ -158,7 +158,7 @@ internal static JitRequestData DeserializeJitRequestData(JsonElement element) property0.ThrowNonNullablePropertyIsNull(); continue; } - provisioningState = new ProvisioningState(property0.Value.GetString()); + provisioningState = new ResourcesProvisioningState(property0.Value.GetString()); continue; } if (property0.NameEquals("jitRequestState")) @@ -178,7 +178,7 @@ internal static JitRequestData DeserializeJitRequestData(JsonElement element) property0.ThrowNonNullablePropertyIsNull(); continue; } - createdBy = ApplicationClientDetails.DeserializeApplicationClientDetails(property0.Value); + createdBy = ArmApplicationDetails.DeserializeArmApplicationDetails(property0.Value); continue; } if (property0.NameEquals("updatedBy")) @@ -188,7 +188,7 @@ internal static JitRequestData DeserializeJitRequestData(JsonElement element) property0.ThrowNonNullablePropertyIsNull(); continue; } - updatedBy = ApplicationClientDetails.DeserializeApplicationClientDetails(property0.Value); + updatedBy = ArmApplicationDetails.DeserializeArmApplicationDetails(property0.Value); continue; } } diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/PatchableApplicationData.Serialization.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/PatchableArmApplicationData.Serialization.cs similarity index 75% rename from sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/PatchableApplicationData.Serialization.cs rename to sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/PatchableArmApplicationData.Serialization.cs index c49907528a1fd..4cae02c7ea377 100644 --- a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/PatchableApplicationData.Serialization.cs +++ b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/PatchableArmApplicationData.Serialization.cs @@ -13,7 +13,7 @@ namespace Azure.ResourceManager.Resources.Models { - public partial class PatchableApplicationData : IUtf8JsonSerializable + public partial class PatchableArmApplicationData : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -83,34 +83,34 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndObject(); } - internal static PatchableApplicationData DeserializePatchableApplicationData(JsonElement element) + internal static PatchableArmApplicationData DeserializePatchableArmApplicationData(JsonElement element) { Optional plan = default; Optional kind = default; - Optional identity = default; + Optional identity = default; Optional managedBy = default; - Optional sku = default; + Optional sku = default; IDictionary tags = default; AzureLocation location = default; ResourceIdentifier id = default; string name = default; ResourceType type = default; SystemData systemData = default; - Optional managedResourceGroupId = default; - Optional applicationDefinitionId = default; + Optional managedResourceGroupId = default; + Optional applicationDefinitionId = default; Optional parameters = default; Optional outputs = default; - Optional provisioningState = default; - Optional billingDetails = default; - Optional jitAccessPolicy = default; + Optional provisioningState = default; + Optional billingDetails = default; + Optional jitAccessPolicy = default; Optional publisherTenantId = default; - Optional> authorizations = default; - Optional managementMode = default; - Optional customerSupport = default; - Optional supportUrls = default; - Optional> artifacts = default; - Optional createdBy = default; - Optional updatedBy = default; + Optional> authorizations = default; + Optional managementMode = default; + Optional customerSupport = default; + Optional supportUrls = default; + Optional> artifacts = default; + Optional createdBy = default; + Optional updatedBy = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("plan")) @@ -135,7 +135,7 @@ internal static PatchableApplicationData DeserializePatchableApplicationData(Jso property.ThrowNonNullablePropertyIsNull(); continue; } - identity = ApplicationManagedIdentity.DeserializeApplicationManagedIdentity(property.Value); + identity = ArmApplicationManagedIdentity.DeserializeArmApplicationManagedIdentity(property.Value); continue; } if (property.NameEquals("managedBy")) @@ -150,7 +150,7 @@ internal static PatchableApplicationData DeserializePatchableApplicationData(Jso property.ThrowNonNullablePropertyIsNull(); continue; } - sku = ApplicationSku.DeserializeApplicationSku(property.Value); + sku = ArmApplicationSku.DeserializeArmApplicationSku(property.Value); continue; } if (property.NameEquals("tags")) @@ -199,12 +199,22 @@ internal static PatchableApplicationData DeserializePatchableApplicationData(Jso { if (property0.NameEquals("managedResourceGroupId")) { - managedResourceGroupId = property0.Value.GetString(); + if (property0.Value.ValueKind == JsonValueKind.Null) + { + property0.ThrowNonNullablePropertyIsNull(); + continue; + } + managedResourceGroupId = new ResourceIdentifier(property0.Value.GetString()); continue; } if (property0.NameEquals("applicationDefinitionId")) { - applicationDefinitionId = property0.Value.GetString(); + if (property0.Value.ValueKind == JsonValueKind.Null) + { + property0.ThrowNonNullablePropertyIsNull(); + continue; + } + applicationDefinitionId = new ResourceIdentifier(property0.Value.GetString()); continue; } if (property0.NameEquals("parameters")) @@ -234,7 +244,7 @@ internal static PatchableApplicationData DeserializePatchableApplicationData(Jso property0.ThrowNonNullablePropertyIsNull(); continue; } - provisioningState = new ProvisioningState(property0.Value.GetString()); + provisioningState = new ResourcesProvisioningState(property0.Value.GetString()); continue; } if (property0.NameEquals("billingDetails")) @@ -244,7 +254,7 @@ internal static PatchableApplicationData DeserializePatchableApplicationData(Jso property0.ThrowNonNullablePropertyIsNull(); continue; } - billingDetails = ApplicationBillingDetailsDefinition.DeserializeApplicationBillingDetailsDefinition(property0.Value); + billingDetails = ArmApplicationBillingDetails.DeserializeArmApplicationBillingDetails(property0.Value); continue; } if (property0.NameEquals("jitAccessPolicy")) @@ -254,7 +264,7 @@ internal static PatchableApplicationData DeserializePatchableApplicationData(Jso property0.ThrowNonNullablePropertyIsNull(); continue; } - jitAccessPolicy = ApplicationJitAccessPolicy.DeserializeApplicationJitAccessPolicy(property0.Value); + jitAccessPolicy = ArmApplicationJitAccessPolicy.DeserializeArmApplicationJitAccessPolicy(property0.Value); continue; } if (property0.NameEquals("publisherTenantId")) @@ -269,10 +279,10 @@ internal static PatchableApplicationData DeserializePatchableApplicationData(Jso property0.ThrowNonNullablePropertyIsNull(); continue; } - List array = new List(); + List array = new List(); foreach (var item in property0.Value.EnumerateArray()) { - array.Add(ApplicationAuthorization.DeserializeApplicationAuthorization(item)); + array.Add(ArmApplicationAuthorization.DeserializeArmApplicationAuthorization(item)); } authorizations = array; continue; @@ -284,7 +294,7 @@ internal static PatchableApplicationData DeserializePatchableApplicationData(Jso property0.ThrowNonNullablePropertyIsNull(); continue; } - managementMode = new ApplicationManagementMode(property0.Value.GetString()); + managementMode = new ArmApplicationManagementMode(property0.Value.GetString()); continue; } if (property0.NameEquals("customerSupport")) @@ -294,7 +304,7 @@ internal static PatchableApplicationData DeserializePatchableApplicationData(Jso property0.ThrowNonNullablePropertyIsNull(); continue; } - customerSupport = ApplicationPackageContact.DeserializeApplicationPackageContact(property0.Value); + customerSupport = ArmApplicationPackageContact.DeserializeArmApplicationPackageContact(property0.Value); continue; } if (property0.NameEquals("supportUrls")) @@ -304,7 +314,7 @@ internal static PatchableApplicationData DeserializePatchableApplicationData(Jso property0.ThrowNonNullablePropertyIsNull(); continue; } - supportUrls = ApplicationPackageSupportUrls.DeserializeApplicationPackageSupportUrls(property0.Value); + supportUrls = ArmApplicationPackageSupportUrls.DeserializeArmApplicationPackageSupportUrls(property0.Value); continue; } if (property0.NameEquals("artifacts")) @@ -314,10 +324,10 @@ internal static PatchableApplicationData DeserializePatchableApplicationData(Jso property0.ThrowNonNullablePropertyIsNull(); continue; } - List array = new List(); + List array = new List(); foreach (var item in property0.Value.EnumerateArray()) { - array.Add(ApplicationArtifact.DeserializeApplicationArtifact(item)); + array.Add(ArmApplicationArtifact.DeserializeArmApplicationArtifact(item)); } artifacts = array; continue; @@ -329,7 +339,7 @@ internal static PatchableApplicationData DeserializePatchableApplicationData(Jso property0.ThrowNonNullablePropertyIsNull(); continue; } - createdBy = ApplicationClientDetails.DeserializeApplicationClientDetails(property0.Value); + createdBy = ArmApplicationDetails.DeserializeArmApplicationDetails(property0.Value); continue; } if (property0.NameEquals("updatedBy")) @@ -339,14 +349,14 @@ internal static PatchableApplicationData DeserializePatchableApplicationData(Jso property0.ThrowNonNullablePropertyIsNull(); continue; } - updatedBy = ApplicationClientDetails.DeserializeApplicationClientDetails(property0.Value); + updatedBy = ArmApplicationDetails.DeserializeArmApplicationDetails(property0.Value); continue; } } continue; } } - return new PatchableApplicationData(id, name, type, systemData, tags, location, managedBy.Value, sku.Value, plan, kind.Value, identity.Value, managedResourceGroupId.Value, applicationDefinitionId.Value, parameters.Value, outputs.Value, Optional.ToNullable(provisioningState), billingDetails.Value, jitAccessPolicy.Value, publisherTenantId.Value, Optional.ToList(authorizations), Optional.ToNullable(managementMode), customerSupport.Value, supportUrls.Value, Optional.ToList(artifacts), createdBy.Value, updatedBy.Value); + return new PatchableArmApplicationData(id, name, type, systemData, tags, location, managedBy.Value, sku.Value, plan, kind.Value, identity.Value, managedResourceGroupId.Value, applicationDefinitionId.Value, parameters.Value, outputs.Value, Optional.ToNullable(provisioningState), billingDetails.Value, jitAccessPolicy.Value, publisherTenantId.Value, Optional.ToList(authorizations), Optional.ToNullable(managementMode), customerSupport.Value, supportUrls.Value, Optional.ToList(artifacts), createdBy.Value, updatedBy.Value); } } } diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/PatchableApplicationData.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/PatchableArmApplicationData.cs similarity index 70% rename from sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/PatchableApplicationData.cs rename to sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/PatchableArmApplicationData.cs index 9ba7bb6314f48..e4a7673d5aed0 100644 --- a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/PatchableApplicationData.cs +++ b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/PatchableArmApplicationData.cs @@ -13,17 +13,17 @@ namespace Azure.ResourceManager.Resources.Models { /// Information about managed application. - public partial class PatchableApplicationData : ApplicationResource + public partial class PatchableArmApplicationData : ArmApplicationResource { - /// Initializes a new instance of PatchableApplicationData. + /// Initializes a new instance of PatchableArmApplicationData. /// The location. - public PatchableApplicationData(AzureLocation location) : base(location) + public PatchableArmApplicationData(AzureLocation location) : base(location) { - Authorizations = new ChangeTrackingList(); - Artifacts = new ChangeTrackingList(); + Authorizations = new ChangeTrackingList(); + Artifacts = new ChangeTrackingList(); } - /// Initializes a new instance of PatchableApplicationData. + /// Initializes a new instance of PatchableArmApplicationData. /// The id. /// The name. /// The resourceType. @@ -50,7 +50,7 @@ public PatchableApplicationData(AzureLocation location) : base(location) /// The collection of managed application artifacts. /// The client entity that created the JIT request. /// The client entity that last updated the JIT request. - internal PatchableApplicationData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, string managedBy, ApplicationSku sku, ArmPlan plan, string kind, ApplicationManagedIdentity identity, string managedResourceGroupId, string applicationDefinitionId, BinaryData parameters, BinaryData outputs, ProvisioningState? provisioningState, ApplicationBillingDetailsDefinition billingDetails, ApplicationJitAccessPolicy jitAccessPolicy, string publisherTenantId, IReadOnlyList authorizations, ApplicationManagementMode? managementMode, ApplicationPackageContact customerSupport, ApplicationPackageSupportUrls supportUrls, IReadOnlyList artifacts, ApplicationClientDetails createdBy, ApplicationClientDetails updatedBy) : base(id, name, resourceType, systemData, tags, location, managedBy, sku) + internal PatchableArmApplicationData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, string managedBy, ArmApplicationSku sku, ArmPlan plan, string kind, ArmApplicationManagedIdentity identity, ResourceIdentifier managedResourceGroupId, ResourceIdentifier applicationDefinitionId, BinaryData parameters, BinaryData outputs, ResourcesProvisioningState? provisioningState, ArmApplicationBillingDetails billingDetails, ArmApplicationJitAccessPolicy jitAccessPolicy, string publisherTenantId, IReadOnlyList authorizations, ArmApplicationManagementMode? managementMode, ArmApplicationPackageContact customerSupport, ArmApplicationPackageSupportUrls supportUrls, IReadOnlyList artifacts, ArmApplicationDetails createdBy, ArmApplicationDetails updatedBy) : base(id, name, resourceType, systemData, tags, location, managedBy, sku) { Plan = plan; Kind = kind; @@ -77,19 +77,19 @@ internal PatchableApplicationData(ResourceIdentifier id, string name, ResourceTy /// The kind of the managed application. Allowed values are MarketPlace and ServiceCatalog. public string Kind { get; set; } /// The identity of the resource. - public ApplicationManagedIdentity Identity { get; set; } + public ArmApplicationManagedIdentity Identity { get; set; } /// The managed resource group Id. - public string ManagedResourceGroupId { get; set; } + public ResourceIdentifier ManagedResourceGroupId { get; set; } /// The fully qualified path of managed application definition Id. - public string ApplicationDefinitionId { get; set; } + public ResourceIdentifier ApplicationDefinitionId { get; set; } /// Name and value pairs that define the managed application parameters. It can be a JObject or a well formed JSON string. public BinaryData Parameters { get; set; } /// Name and value pairs that define the managed application outputs. public BinaryData Outputs { get; } /// The managed application provisioning state. - public ProvisioningState? ProvisioningState { get; } + public ResourcesProvisioningState? ProvisioningState { get; } /// The managed application billing details. - internal ApplicationBillingDetailsDefinition BillingDetails { get; } + internal ArmApplicationBillingDetails BillingDetails { get; } /// The managed application resource usage Id. public string BillingDetailsResourceUsageId { @@ -97,22 +97,22 @@ public string BillingDetailsResourceUsageId } /// The managed application Jit access policy. - public ApplicationJitAccessPolicy JitAccessPolicy { get; set; } + public ArmApplicationJitAccessPolicy JitAccessPolicy { get; set; } /// The publisher tenant Id. public string PublisherTenantId { get; } /// The read-only authorizations property that is retrieved from the application package. - public IReadOnlyList Authorizations { get; } + public IReadOnlyList Authorizations { get; } /// The managed application management mode. - public ApplicationManagementMode? ManagementMode { get; } + public ArmApplicationManagementMode? ManagementMode { get; } /// The read-only customer support property that is retrieved from the application package. - public ApplicationPackageContact CustomerSupport { get; } + public ArmApplicationPackageContact CustomerSupport { get; } /// The read-only support URLs property that is retrieved from the application package. - public ApplicationPackageSupportUrls SupportUrls { get; } + public ArmApplicationPackageSupportUrls SupportUrls { get; } /// The collection of managed application artifacts. - public IReadOnlyList Artifacts { get; } + public IReadOnlyList Artifacts { get; } /// The client entity that created the JIT request. - public ApplicationClientDetails CreatedBy { get; } + public ArmApplicationDetails CreatedBy { get; } /// The client entity that last updated the JIT request. - public ApplicationClientDetails UpdatedBy { get; } + public ArmApplicationDetails UpdatedBy { get; } } } diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/PatchableDeploymentScriptData.Serialization.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/PatchableArmDeploymentScriptData.Serialization.cs similarity index 89% rename from sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/PatchableDeploymentScriptData.Serialization.cs rename to sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/PatchableArmDeploymentScriptData.Serialization.cs index 8bb89aa4f27ba..722439bd030ca 100644 --- a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/PatchableDeploymentScriptData.Serialization.cs +++ b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/PatchableArmDeploymentScriptData.Serialization.cs @@ -12,7 +12,7 @@ namespace Azure.ResourceManager.Resources.Models { - public partial class PatchableDeploymentScriptData : IUtf8JsonSerializable + public partial class PatchableArmDeploymentScriptData : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -31,7 +31,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndObject(); } - internal static PatchableDeploymentScriptData DeserializePatchableDeploymentScriptData(JsonElement element) + internal static PatchableArmDeploymentScriptData DeserializePatchableArmDeploymentScriptData(JsonElement element) { Optional> tags = default; ResourceIdentifier id = default; @@ -76,7 +76,7 @@ internal static PatchableDeploymentScriptData DeserializePatchableDeploymentScri continue; } } - return new PatchableDeploymentScriptData(id, name, type, systemData, Optional.ToDictionary(tags)); + return new PatchableArmDeploymentScriptData(id, name, type, systemData, Optional.ToDictionary(tags)); } } } diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/PatchableDeploymentScriptData.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/PatchableArmDeploymentScriptData.cs similarity index 63% rename from sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/PatchableDeploymentScriptData.cs rename to sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/PatchableArmDeploymentScriptData.cs index ade155652d959..2536d1037d875 100644 --- a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/PatchableDeploymentScriptData.cs +++ b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/PatchableArmDeploymentScriptData.cs @@ -12,21 +12,21 @@ namespace Azure.ResourceManager.Resources.Models { /// Deployment script parameters to be updated. - public partial class PatchableDeploymentScriptData : ResourceData + public partial class PatchableArmDeploymentScriptData : ResourceData { - /// Initializes a new instance of PatchableDeploymentScriptData. - public PatchableDeploymentScriptData() + /// Initializes a new instance of PatchableArmDeploymentScriptData. + public PatchableArmDeploymentScriptData() { Tags = new ChangeTrackingDictionary(); } - /// Initializes a new instance of PatchableDeploymentScriptData. + /// Initializes a new instance of PatchableArmDeploymentScriptData. /// The id. /// The name. /// The resourceType. /// The systemData. /// Resource tags to be updated. - internal PatchableDeploymentScriptData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags) : base(id, name, resourceType, systemData) + internal PatchableArmDeploymentScriptData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags) : base(id, name, resourceType, systemData) { Tags = tags; } diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ProvisioningState.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ProvisioningState.cs deleted file mode 100644 index 0cabdc95e32e3..0000000000000 --- a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ProvisioningState.cs +++ /dev/null @@ -1,81 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.ComponentModel; - -namespace Azure.ResourceManager.Resources.Models -{ - /// Provisioning status of the managed application. - public readonly partial struct ProvisioningState : IEquatable - { - private readonly string _value; - - /// Initializes a new instance of . - /// is null. - public ProvisioningState(string value) - { - _value = value ?? throw new ArgumentNullException(nameof(value)); - } - - private const string NotSpecifiedValue = "NotSpecified"; - private const string AcceptedValue = "Accepted"; - private const string RunningValue = "Running"; - private const string ReadyValue = "Ready"; - private const string CreatingValue = "Creating"; - private const string CreatedValue = "Created"; - private const string DeletingValue = "Deleting"; - private const string DeletedValue = "Deleted"; - private const string CanceledValue = "Canceled"; - private const string FailedValue = "Failed"; - private const string SucceededValue = "Succeeded"; - private const string UpdatingValue = "Updating"; - - /// NotSpecified. - public static ProvisioningState NotSpecified { get; } = new ProvisioningState(NotSpecifiedValue); - /// Accepted. - public static ProvisioningState Accepted { get; } = new ProvisioningState(AcceptedValue); - /// Running. - public static ProvisioningState Running { get; } = new ProvisioningState(RunningValue); - /// Ready. - public static ProvisioningState Ready { get; } = new ProvisioningState(ReadyValue); - /// Creating. - public static ProvisioningState Creating { get; } = new ProvisioningState(CreatingValue); - /// Created. - public static ProvisioningState Created { get; } = new ProvisioningState(CreatedValue); - /// Deleting. - public static ProvisioningState Deleting { get; } = new ProvisioningState(DeletingValue); - /// Deleted. - public static ProvisioningState Deleted { get; } = new ProvisioningState(DeletedValue); - /// Canceled. - public static ProvisioningState Canceled { get; } = new ProvisioningState(CanceledValue); - /// Failed. - public static ProvisioningState Failed { get; } = new ProvisioningState(FailedValue); - /// Succeeded. - public static ProvisioningState Succeeded { get; } = new ProvisioningState(SucceededValue); - /// Updating. - public static ProvisioningState Updating { get; } = new ProvisioningState(UpdatingValue); - /// Determines if two values are the same. - public static bool operator ==(ProvisioningState left, ProvisioningState right) => left.Equals(right); - /// Determines if two values are not the same. - public static bool operator !=(ProvisioningState left, ProvisioningState right) => !left.Equals(right); - /// Converts a string to a . - public static implicit operator ProvisioningState(string value) => new ProvisioningState(value); - - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public override bool Equals(object obj) => obj is ProvisioningState other && Equals(other); - /// - public bool Equals(ProvisioningState other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); - - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public override int GetHashCode() => _value?.GetHashCode() ?? 0; - /// - public override string ToString() => _value; - } -} diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ResourcesProvisioningState.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ResourcesProvisioningState.cs new file mode 100644 index 0000000000000..73f80b0ecb969 --- /dev/null +++ b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ResourcesProvisioningState.cs @@ -0,0 +1,81 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.ResourceManager.Resources.Models +{ + /// Provisioning status of the managed application. + public readonly partial struct ResourcesProvisioningState : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public ResourcesProvisioningState(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string NotSpecifiedValue = "NotSpecified"; + private const string AcceptedValue = "Accepted"; + private const string RunningValue = "Running"; + private const string ReadyValue = "Ready"; + private const string CreatingValue = "Creating"; + private const string CreatedValue = "Created"; + private const string DeletingValue = "Deleting"; + private const string DeletedValue = "Deleted"; + private const string CanceledValue = "Canceled"; + private const string FailedValue = "Failed"; + private const string SucceededValue = "Succeeded"; + private const string UpdatingValue = "Updating"; + + /// NotSpecified. + public static ResourcesProvisioningState NotSpecified { get; } = new ResourcesProvisioningState(NotSpecifiedValue); + /// Accepted. + public static ResourcesProvisioningState Accepted { get; } = new ResourcesProvisioningState(AcceptedValue); + /// Running. + public static ResourcesProvisioningState Running { get; } = new ResourcesProvisioningState(RunningValue); + /// Ready. + public static ResourcesProvisioningState Ready { get; } = new ResourcesProvisioningState(ReadyValue); + /// Creating. + public static ResourcesProvisioningState Creating { get; } = new ResourcesProvisioningState(CreatingValue); + /// Created. + public static ResourcesProvisioningState Created { get; } = new ResourcesProvisioningState(CreatedValue); + /// Deleting. + public static ResourcesProvisioningState Deleting { get; } = new ResourcesProvisioningState(DeletingValue); + /// Deleted. + public static ResourcesProvisioningState Deleted { get; } = new ResourcesProvisioningState(DeletedValue); + /// Canceled. + public static ResourcesProvisioningState Canceled { get; } = new ResourcesProvisioningState(CanceledValue); + /// Failed. + public static ResourcesProvisioningState Failed { get; } = new ResourcesProvisioningState(FailedValue); + /// Succeeded. + public static ResourcesProvisioningState Succeeded { get; } = new ResourcesProvisioningState(SucceededValue); + /// Updating. + public static ResourcesProvisioningState Updating { get; } = new ResourcesProvisioningState(UpdatingValue); + /// Determines if two values are the same. + public static bool operator ==(ResourcesProvisioningState left, ResourcesProvisioningState right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(ResourcesProvisioningState left, ResourcesProvisioningState right) => !left.Equals(right); + /// Converts a string to a . + public static implicit operator ResourcesProvisioningState(string value) => new ResourcesProvisioningState(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is ResourcesProvisioningState other && Equals(other); + /// + public bool Equals(ResourcesProvisioningState other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value?.GetHashCode() ?? 0; + /// + public override string ToString() => _value; + } +} diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ScopedDeployment.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ScopedDeployment.cs index b17b7ecc4a801..4d955bd545f8a 100644 --- a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ScopedDeployment.cs +++ b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ScopedDeployment.cs @@ -18,7 +18,7 @@ internal partial class ScopedDeployment /// The location to store the deployment data. /// The deployment properties. /// or is null. - internal ScopedDeployment(string location, DeploymentProperties properties) + internal ScopedDeployment(string location, ArmDeploymentProperties properties) { if (location == null) { @@ -37,7 +37,7 @@ internal ScopedDeployment(string location, DeploymentProperties properties) /// The location to store the deployment data. public string Location { get; } /// The deployment properties. - public DeploymentProperties Properties { get; } + public ArmDeploymentProperties Properties { get; } /// Deployment tags. public IReadOnlyDictionary Tags { get; } } diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ScopedDeploymentWhatIf.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ScopedDeploymentWhatIf.cs index 8d49694623796..da74425580732 100644 --- a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ScopedDeploymentWhatIf.cs +++ b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ScopedDeploymentWhatIf.cs @@ -16,7 +16,7 @@ internal partial class ScopedDeploymentWhatIf /// The location to store the deployment data. /// The deployment properties. /// or is null. - internal ScopedDeploymentWhatIf(string location, DeploymentWhatIfProperties properties) + internal ScopedDeploymentWhatIf(string location, ArmDeploymentWhatIfProperties properties) { if (location == null) { @@ -34,6 +34,6 @@ internal ScopedDeploymentWhatIf(string location, DeploymentWhatIfProperties prop /// The location to store the deployment data. public string Location { get; } /// The deployment properties. - public DeploymentWhatIfProperties Properties { get; } + public ArmDeploymentWhatIfProperties Properties { get; } } } diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/UserAssignedResourceIdentity.Serialization.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/UserAssignedResourceIdentity.Serialization.cs deleted file mode 100644 index f134bd5aab3d1..0000000000000 --- a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/UserAssignedResourceIdentity.Serialization.cs +++ /dev/null @@ -1,41 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System.Text.Json; -using Azure.Core; - -namespace Azure.ResourceManager.Resources.Models -{ - public partial class UserAssignedResourceIdentity : IUtf8JsonSerializable - { - void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) - { - writer.WriteStartObject(); - writer.WriteEndObject(); - } - - internal static UserAssignedResourceIdentity DeserializeUserAssignedResourceIdentity(JsonElement element) - { - Optional principalId = default; - Optional tenantId = default; - foreach (var property in element.EnumerateObject()) - { - if (property.NameEquals("principalId")) - { - principalId = property.Value.GetString(); - continue; - } - if (property.NameEquals("tenantId")) - { - tenantId = property.Value.GetString(); - continue; - } - } - return new UserAssignedResourceIdentity(principalId.Value, tenantId.Value); - } - } -} diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/RestOperations/ApplicationDefinitionsRestOperations.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/RestOperations/ApplicationDefinitionsRestOperations.cs index f28dd784fb84b..f604b2663e40e 100644 --- a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/RestOperations/ApplicationDefinitionsRestOperations.cs +++ b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/RestOperations/ApplicationDefinitionsRestOperations.cs @@ -64,7 +64,7 @@ internal Azure.Core.HttpMessage CreateGetRequest(string subscriptionId, string r /// The cancellation token to use. /// , or is null. /// , or is an empty string, and was expected to be non-empty. - public async Task> GetAsync(string subscriptionId, string resourceGroupName, string applicationDefinitionName, CancellationToken cancellationToken = default) + public async Task> GetAsync(string subscriptionId, string resourceGroupName, string applicationDefinitionName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -76,13 +76,13 @@ public async Task> GetAsync(string subscript { case 200: { - ApplicationDefinitionData value = default; + ArmApplicationDefinitionData value = default; using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = ApplicationDefinitionData.DeserializeApplicationDefinitionData(document.RootElement); + value = ArmApplicationDefinitionData.DeserializeArmApplicationDefinitionData(document.RootElement); return Response.FromValue(value, message.Response); } case 404: - return Response.FromValue((ApplicationDefinitionData)null, message.Response); + return Response.FromValue((ArmApplicationDefinitionData)null, message.Response); default: throw new RequestFailedException(message.Response); } @@ -95,7 +95,7 @@ public async Task> GetAsync(string subscript /// The cancellation token to use. /// , or is null. /// , or is an empty string, and was expected to be non-empty. - public Response Get(string subscriptionId, string resourceGroupName, string applicationDefinitionName, CancellationToken cancellationToken = default) + public Response Get(string subscriptionId, string resourceGroupName, string applicationDefinitionName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -107,13 +107,13 @@ public Response Get(string subscriptionId, string res { case 200: { - ApplicationDefinitionData value = default; + ArmApplicationDefinitionData value = default; using var document = JsonDocument.Parse(message.Response.ContentStream); - value = ApplicationDefinitionData.DeserializeApplicationDefinitionData(document.RootElement); + value = ArmApplicationDefinitionData.DeserializeArmApplicationDefinitionData(document.RootElement); return Response.FromValue(value, message.Response); } case 404: - return Response.FromValue((ApplicationDefinitionData)null, message.Response); + return Response.FromValue((ArmApplicationDefinitionData)null, message.Response); default: throw new RequestFailedException(message.Response); } @@ -191,7 +191,7 @@ public Response Delete(string subscriptionId, string resourceGroupName, string a } } - internal Azure.Core.HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string applicationDefinitionName, ApplicationDefinitionData parameters) + internal Azure.Core.HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string applicationDefinitionName, ArmApplicationDefinitionData parameters) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -223,7 +223,7 @@ internal Azure.Core.HttpMessage CreateCreateOrUpdateRequest(string subscriptionI /// The cancellation token to use. /// , , or is null. /// , or is an empty string, and was expected to be non-empty. - public async Task CreateOrUpdateAsync(string subscriptionId, string resourceGroupName, string applicationDefinitionName, ApplicationDefinitionData parameters, CancellationToken cancellationToken = default) + public async Task CreateOrUpdateAsync(string subscriptionId, string resourceGroupName, string applicationDefinitionName, ArmApplicationDefinitionData parameters, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -250,7 +250,7 @@ public async Task CreateOrUpdateAsync(string subscriptionId, string re /// The cancellation token to use. /// , , or is null. /// , or is an empty string, and was expected to be non-empty. - public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, string applicationDefinitionName, ApplicationDefinitionData parameters, CancellationToken cancellationToken = default) + public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, string applicationDefinitionName, ArmApplicationDefinitionData parameters, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -294,7 +294,7 @@ internal Azure.Core.HttpMessage CreateListByResourceGroupRequest(string subscrip /// The cancellation token to use. /// or is null. /// or is an empty string, and was expected to be non-empty. - public async Task> ListByResourceGroupAsync(string subscriptionId, string resourceGroupName, CancellationToken cancellationToken = default) + public async Task> ListByResourceGroupAsync(string subscriptionId, string resourceGroupName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -305,9 +305,9 @@ public async Task> ListByResourceGroup { case 200: { - ApplicationDefinitionListResult value = default; + ArmApplicationDefinitionListResult value = default; using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = ApplicationDefinitionListResult.DeserializeApplicationDefinitionListResult(document.RootElement); + value = ArmApplicationDefinitionListResult.DeserializeArmApplicationDefinitionListResult(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -321,7 +321,7 @@ public async Task> ListByResourceGroup /// The cancellation token to use. /// or is null. /// or is an empty string, and was expected to be non-empty. - public Response ListByResourceGroup(string subscriptionId, string resourceGroupName, CancellationToken cancellationToken = default) + public Response ListByResourceGroup(string subscriptionId, string resourceGroupName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -332,9 +332,9 @@ public Response ListByResourceGroup(string subs { case 200: { - ApplicationDefinitionListResult value = default; + ArmApplicationDefinitionListResult value = default; using var document = JsonDocument.Parse(message.Response.ContentStream); - value = ApplicationDefinitionListResult.DeserializeApplicationDefinitionListResult(document.RootElement); + value = ArmApplicationDefinitionListResult.DeserializeArmApplicationDefinitionListResult(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -363,7 +363,7 @@ internal Azure.Core.HttpMessage CreateListByResourceGroupNextPageRequest(string /// The cancellation token to use. /// , or is null. /// or is an empty string, and was expected to be non-empty. - public async Task> ListByResourceGroupNextPageAsync(string nextLink, string subscriptionId, string resourceGroupName, CancellationToken cancellationToken = default) + public async Task> ListByResourceGroupNextPageAsync(string nextLink, string subscriptionId, string resourceGroupName, CancellationToken cancellationToken = default) { Argument.AssertNotNull(nextLink, nameof(nextLink)); Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); @@ -375,9 +375,9 @@ public async Task> ListByResourceGroup { case 200: { - ApplicationDefinitionListResult value = default; + ArmApplicationDefinitionListResult value = default; using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = ApplicationDefinitionListResult.DeserializeApplicationDefinitionListResult(document.RootElement); + value = ArmApplicationDefinitionListResult.DeserializeArmApplicationDefinitionListResult(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -392,7 +392,7 @@ public async Task> ListByResourceGroup /// The cancellation token to use. /// , or is null. /// or is an empty string, and was expected to be non-empty. - public Response ListByResourceGroupNextPage(string nextLink, string subscriptionId, string resourceGroupName, CancellationToken cancellationToken = default) + public Response ListByResourceGroupNextPage(string nextLink, string subscriptionId, string resourceGroupName, CancellationToken cancellationToken = default) { Argument.AssertNotNull(nextLink, nameof(nextLink)); Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); @@ -404,9 +404,9 @@ public Response ListByResourceGroupNextPage(str { case 200: { - ApplicationDefinitionListResult value = default; + ArmApplicationDefinitionListResult value = default; using var document = JsonDocument.Parse(message.Response.ContentStream); - value = ApplicationDefinitionListResult.DeserializeApplicationDefinitionListResult(document.RootElement); + value = ArmApplicationDefinitionListResult.DeserializeArmApplicationDefinitionListResult(document.RootElement); return Response.FromValue(value, message.Response); } default: diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/RestOperations/ApplicationsRestOperations.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/RestOperations/ApplicationsRestOperations.cs index a5506d258f324..876cc1104b2c4 100644 --- a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/RestOperations/ApplicationsRestOperations.cs +++ b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/RestOperations/ApplicationsRestOperations.cs @@ -64,7 +64,7 @@ internal Azure.Core.HttpMessage CreateGetRequest(string subscriptionId, string r /// The cancellation token to use. /// , or is null. /// , or is an empty string, and was expected to be non-empty. - public async Task> GetAsync(string subscriptionId, string resourceGroupName, string applicationName, CancellationToken cancellationToken = default) + public async Task> GetAsync(string subscriptionId, string resourceGroupName, string applicationName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -76,13 +76,13 @@ public async Task> GetAsync(string subscriptionId, str { case 200: { - ApplicationData value = default; + ArmApplicationData value = default; using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = ApplicationData.DeserializeApplicationData(document.RootElement); + value = ArmApplicationData.DeserializeArmApplicationData(document.RootElement); return Response.FromValue(value, message.Response); } case 404: - return Response.FromValue((ApplicationData)null, message.Response); + return Response.FromValue((ArmApplicationData)null, message.Response); default: throw new RequestFailedException(message.Response); } @@ -95,7 +95,7 @@ public async Task> GetAsync(string subscriptionId, str /// The cancellation token to use. /// , or is null. /// , or is an empty string, and was expected to be non-empty. - public Response Get(string subscriptionId, string resourceGroupName, string applicationName, CancellationToken cancellationToken = default) + public Response Get(string subscriptionId, string resourceGroupName, string applicationName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -107,13 +107,13 @@ public Response Get(string subscriptionId, string resourceGroup { case 200: { - ApplicationData value = default; + ArmApplicationData value = default; using var document = JsonDocument.Parse(message.Response.ContentStream); - value = ApplicationData.DeserializeApplicationData(document.RootElement); + value = ArmApplicationData.DeserializeArmApplicationData(document.RootElement); return Response.FromValue(value, message.Response); } case 404: - return Response.FromValue((ApplicationData)null, message.Response); + return Response.FromValue((ArmApplicationData)null, message.Response); default: throw new RequestFailedException(message.Response); } @@ -189,7 +189,7 @@ public Response Delete(string subscriptionId, string resourceGroupName, string a } } - internal Azure.Core.HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string applicationName, ApplicationData parameters) + internal Azure.Core.HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string applicationName, ArmApplicationData parameters) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -221,7 +221,7 @@ internal Azure.Core.HttpMessage CreateCreateOrUpdateRequest(string subscriptionI /// The cancellation token to use. /// , , or is null. /// , or is an empty string, and was expected to be non-empty. - public async Task CreateOrUpdateAsync(string subscriptionId, string resourceGroupName, string applicationName, ApplicationData parameters, CancellationToken cancellationToken = default) + public async Task CreateOrUpdateAsync(string subscriptionId, string resourceGroupName, string applicationName, ArmApplicationData parameters, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -248,7 +248,7 @@ public async Task CreateOrUpdateAsync(string subscriptionId, string re /// The cancellation token to use. /// , , or is null. /// , or is an empty string, and was expected to be non-empty. - public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, string applicationName, ApplicationData parameters, CancellationToken cancellationToken = default) + public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, string applicationName, ArmApplicationData parameters, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -267,7 +267,7 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } - internal Azure.Core.HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string applicationName, PatchableApplicationData data) + internal Azure.Core.HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string applicationName, PatchableArmApplicationData data) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -299,7 +299,7 @@ internal Azure.Core.HttpMessage CreateUpdateRequest(string subscriptionId, strin /// The cancellation token to use. /// , , or is null. /// , or is an empty string, and was expected to be non-empty. - public async Task> UpdateAsync(string subscriptionId, string resourceGroupName, string applicationName, PatchableApplicationData data, CancellationToken cancellationToken = default) + public async Task> UpdateAsync(string subscriptionId, string resourceGroupName, string applicationName, PatchableArmApplicationData data, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -312,9 +312,9 @@ public async Task> UpdateAsync(string subscriptionId, { case 200: { - ApplicationData value = default; + ArmApplicationData value = default; using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = ApplicationData.DeserializeApplicationData(document.RootElement); + value = ArmApplicationData.DeserializeArmApplicationData(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -330,7 +330,7 @@ public async Task> UpdateAsync(string subscriptionId, /// The cancellation token to use. /// , , or is null. /// , or is an empty string, and was expected to be non-empty. - public Response Update(string subscriptionId, string resourceGroupName, string applicationName, PatchableApplicationData data, CancellationToken cancellationToken = default) + public Response Update(string subscriptionId, string resourceGroupName, string applicationName, PatchableArmApplicationData data, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -343,9 +343,9 @@ public Response Update(string subscriptionId, string resourceGr { case 200: { - ApplicationData value = default; + ArmApplicationData value = default; using var document = JsonDocument.Parse(message.Response.ContentStream); - value = ApplicationData.DeserializeApplicationData(document.RootElement); + value = ArmApplicationData.DeserializeArmApplicationData(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -378,7 +378,7 @@ internal Azure.Core.HttpMessage CreateListByResourceGroupRequest(string subscrip /// The cancellation token to use. /// or is null. /// or is an empty string, and was expected to be non-empty. - public async Task> ListByResourceGroupAsync(string subscriptionId, string resourceGroupName, CancellationToken cancellationToken = default) + public async Task> ListByResourceGroupAsync(string subscriptionId, string resourceGroupName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -389,9 +389,9 @@ public async Task> ListByResourceGroupAsync(stri { case 200: { - ApplicationListResult value = default; + ArmApplicationListResult value = default; using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = ApplicationListResult.DeserializeApplicationListResult(document.RootElement); + value = ArmApplicationListResult.DeserializeArmApplicationListResult(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -405,7 +405,7 @@ public async Task> ListByResourceGroupAsync(stri /// The cancellation token to use. /// or is null. /// or is an empty string, and was expected to be non-empty. - public Response ListByResourceGroup(string subscriptionId, string resourceGroupName, CancellationToken cancellationToken = default) + public Response ListByResourceGroup(string subscriptionId, string resourceGroupName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -416,9 +416,9 @@ public Response ListByResourceGroup(string subscriptionId { case 200: { - ApplicationListResult value = default; + ArmApplicationListResult value = default; using var document = JsonDocument.Parse(message.Response.ContentStream); - value = ApplicationListResult.DeserializeApplicationListResult(document.RootElement); + value = ArmApplicationListResult.DeserializeArmApplicationListResult(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -448,7 +448,7 @@ internal Azure.Core.HttpMessage CreateListBySubscriptionRequest(string subscript /// The cancellation token to use. /// is null. /// is an empty string, and was expected to be non-empty. - public async Task> ListBySubscriptionAsync(string subscriptionId, CancellationToken cancellationToken = default) + public async Task> ListBySubscriptionAsync(string subscriptionId, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); @@ -458,9 +458,9 @@ public async Task> ListBySubscriptionAsync(strin { case 200: { - ApplicationListResult value = default; + ArmApplicationListResult value = default; using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = ApplicationListResult.DeserializeApplicationListResult(document.RootElement); + value = ArmApplicationListResult.DeserializeArmApplicationListResult(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -473,7 +473,7 @@ public async Task> ListBySubscriptionAsync(strin /// The cancellation token to use. /// is null. /// is an empty string, and was expected to be non-empty. - public Response ListBySubscription(string subscriptionId, CancellationToken cancellationToken = default) + public Response ListBySubscription(string subscriptionId, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); @@ -483,9 +483,9 @@ public Response ListBySubscription(string subscriptionId, { case 200: { - ApplicationListResult value = default; + ArmApplicationListResult value = default; using var document = JsonDocument.Parse(message.Response.ContentStream); - value = ApplicationListResult.DeserializeApplicationListResult(document.RootElement); + value = ArmApplicationListResult.DeserializeArmApplicationListResult(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -583,7 +583,7 @@ internal Azure.Core.HttpMessage CreateListByResourceGroupNextPageRequest(string /// The cancellation token to use. /// , or is null. /// or is an empty string, and was expected to be non-empty. - public async Task> ListByResourceGroupNextPageAsync(string nextLink, string subscriptionId, string resourceGroupName, CancellationToken cancellationToken = default) + public async Task> ListByResourceGroupNextPageAsync(string nextLink, string subscriptionId, string resourceGroupName, CancellationToken cancellationToken = default) { Argument.AssertNotNull(nextLink, nameof(nextLink)); Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); @@ -595,9 +595,9 @@ public async Task> ListByResourceGroupNextPageAs { case 200: { - ApplicationListResult value = default; + ArmApplicationListResult value = default; using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = ApplicationListResult.DeserializeApplicationListResult(document.RootElement); + value = ArmApplicationListResult.DeserializeArmApplicationListResult(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -612,7 +612,7 @@ public async Task> ListByResourceGroupNextPageAs /// The cancellation token to use. /// , or is null. /// or is an empty string, and was expected to be non-empty. - public Response ListByResourceGroupNextPage(string nextLink, string subscriptionId, string resourceGroupName, CancellationToken cancellationToken = default) + public Response ListByResourceGroupNextPage(string nextLink, string subscriptionId, string resourceGroupName, CancellationToken cancellationToken = default) { Argument.AssertNotNull(nextLink, nameof(nextLink)); Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); @@ -624,9 +624,9 @@ public Response ListByResourceGroupNextPage(string nextLi { case 200: { - ApplicationListResult value = default; + ArmApplicationListResult value = default; using var document = JsonDocument.Parse(message.Response.ContentStream); - value = ApplicationListResult.DeserializeApplicationListResult(document.RootElement); + value = ArmApplicationListResult.DeserializeArmApplicationListResult(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -654,7 +654,7 @@ internal Azure.Core.HttpMessage CreateListBySubscriptionNextPageRequest(string n /// The cancellation token to use. /// or is null. /// is an empty string, and was expected to be non-empty. - public async Task> ListBySubscriptionNextPageAsync(string nextLink, string subscriptionId, CancellationToken cancellationToken = default) + public async Task> ListBySubscriptionNextPageAsync(string nextLink, string subscriptionId, CancellationToken cancellationToken = default) { Argument.AssertNotNull(nextLink, nameof(nextLink)); Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); @@ -665,9 +665,9 @@ public async Task> ListBySubscriptionNextPageAsy { case 200: { - ApplicationListResult value = default; + ArmApplicationListResult value = default; using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = ApplicationListResult.DeserializeApplicationListResult(document.RootElement); + value = ArmApplicationListResult.DeserializeArmApplicationListResult(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -681,7 +681,7 @@ public async Task> ListBySubscriptionNextPageAsy /// The cancellation token to use. /// or is null. /// is an empty string, and was expected to be non-empty. - public Response ListBySubscriptionNextPage(string nextLink, string subscriptionId, CancellationToken cancellationToken = default) + public Response ListBySubscriptionNextPage(string nextLink, string subscriptionId, CancellationToken cancellationToken = default) { Argument.AssertNotNull(nextLink, nameof(nextLink)); Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); @@ -692,9 +692,9 @@ public Response ListBySubscriptionNextPage(string nextLin { case 200: { - ApplicationListResult value = default; + ArmApplicationListResult value = default; using var document = JsonDocument.Parse(message.Response.ContentStream); - value = ApplicationListResult.DeserializeApplicationListResult(document.RootElement); + value = ArmApplicationListResult.DeserializeArmApplicationListResult(document.RootElement); return Response.FromValue(value, message.Response); } default: diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/RestOperations/DeploymentRestOperations.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/RestOperations/DeploymentRestOperations.cs index 8ed83bdc63e25..88c0196d3e539 100644 --- a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/RestOperations/DeploymentRestOperations.cs +++ b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/RestOperations/DeploymentRestOperations.cs @@ -64,7 +64,7 @@ internal Azure.Core.HttpMessage CreateGetAtScopeRequest(string scope, string dep /// The cancellation token to use. /// , or is null. /// or is an empty string, and was expected to be non-empty. - public async Task> GetAtScopeAsync(string scope, string deploymentName, string operationId, CancellationToken cancellationToken = default) + public async Task> GetAtScopeAsync(string scope, string deploymentName, string operationId, CancellationToken cancellationToken = default) { Argument.AssertNotNull(scope, nameof(scope)); Argument.AssertNotNullOrEmpty(deploymentName, nameof(deploymentName)); @@ -76,9 +76,9 @@ public async Task> GetAtScopeAsync(string scope, s { case 200: { - DeploymentOperation value = default; + ArmDeploymentOperation value = default; using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = DeploymentOperation.DeserializeDeploymentOperation(document.RootElement); + value = ArmDeploymentOperation.DeserializeArmDeploymentOperation(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -93,7 +93,7 @@ public async Task> GetAtScopeAsync(string scope, s /// The cancellation token to use. /// , or is null. /// or is an empty string, and was expected to be non-empty. - public Response GetAtScope(string scope, string deploymentName, string operationId, CancellationToken cancellationToken = default) + public Response GetAtScope(string scope, string deploymentName, string operationId, CancellationToken cancellationToken = default) { Argument.AssertNotNull(scope, nameof(scope)); Argument.AssertNotNullOrEmpty(deploymentName, nameof(deploymentName)); @@ -105,9 +105,9 @@ public Response GetAtScope(string scope, string deploymentN { case 200: { - DeploymentOperation value = default; + ArmDeploymentOperation value = default; using var document = JsonDocument.Parse(message.Response.ContentStream); - value = DeploymentOperation.DeserializeDeploymentOperation(document.RootElement); + value = ArmDeploymentOperation.DeserializeArmDeploymentOperation(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -145,7 +145,7 @@ internal Azure.Core.HttpMessage CreateListAtScopeRequest(string scope, string de /// The cancellation token to use. /// or is null. /// is an empty string, and was expected to be non-empty. - public async Task> ListAtScopeAsync(string scope, string deploymentName, int? top = null, CancellationToken cancellationToken = default) + public async Task> ListAtScopeAsync(string scope, string deploymentName, int? top = null, CancellationToken cancellationToken = default) { Argument.AssertNotNull(scope, nameof(scope)); Argument.AssertNotNullOrEmpty(deploymentName, nameof(deploymentName)); @@ -156,9 +156,9 @@ public async Task> ListAtScopeAsync(str { case 200: { - DeploymentOperationsListResult value = default; + ArmDeploymentOperationsListResult value = default; using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = DeploymentOperationsListResult.DeserializeDeploymentOperationsListResult(document.RootElement); + value = ArmDeploymentOperationsListResult.DeserializeArmDeploymentOperationsListResult(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -173,7 +173,7 @@ public async Task> ListAtScopeAsync(str /// The cancellation token to use. /// or is null. /// is an empty string, and was expected to be non-empty. - public Response ListAtScope(string scope, string deploymentName, int? top = null, CancellationToken cancellationToken = default) + public Response ListAtScope(string scope, string deploymentName, int? top = null, CancellationToken cancellationToken = default) { Argument.AssertNotNull(scope, nameof(scope)); Argument.AssertNotNullOrEmpty(deploymentName, nameof(deploymentName)); @@ -184,9 +184,9 @@ public Response ListAtScope(string scope, string { case 200: { - DeploymentOperationsListResult value = default; + ArmDeploymentOperationsListResult value = default; using var document = JsonDocument.Parse(message.Response.ContentStream); - value = DeploymentOperationsListResult.DeserializeDeploymentOperationsListResult(document.RootElement); + value = ArmDeploymentOperationsListResult.DeserializeArmDeploymentOperationsListResult(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -216,7 +216,7 @@ internal Azure.Core.HttpMessage CreateListAtScopeNextPageRequest(string nextLink /// The cancellation token to use. /// , or is null. /// is an empty string, and was expected to be non-empty. - public async Task> ListAtScopeNextPageAsync(string nextLink, string scope, string deploymentName, int? top = null, CancellationToken cancellationToken = default) + public async Task> ListAtScopeNextPageAsync(string nextLink, string scope, string deploymentName, int? top = null, CancellationToken cancellationToken = default) { Argument.AssertNotNull(nextLink, nameof(nextLink)); Argument.AssertNotNull(scope, nameof(scope)); @@ -228,9 +228,9 @@ public async Task> ListAtScopeNextPageA { case 200: { - DeploymentOperationsListResult value = default; + ArmDeploymentOperationsListResult value = default; using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = DeploymentOperationsListResult.DeserializeDeploymentOperationsListResult(document.RootElement); + value = ArmDeploymentOperationsListResult.DeserializeArmDeploymentOperationsListResult(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -246,7 +246,7 @@ public async Task> ListAtScopeNextPageA /// The cancellation token to use. /// , or is null. /// is an empty string, and was expected to be non-empty. - public Response ListAtScopeNextPage(string nextLink, string scope, string deploymentName, int? top = null, CancellationToken cancellationToken = default) + public Response ListAtScopeNextPage(string nextLink, string scope, string deploymentName, int? top = null, CancellationToken cancellationToken = default) { Argument.AssertNotNull(nextLink, nameof(nextLink)); Argument.AssertNotNull(scope, nameof(scope)); @@ -258,9 +258,9 @@ public Response ListAtScopeNextPage(string nextL { case 200: { - DeploymentOperationsListResult value = default; + ArmDeploymentOperationsListResult value = default; using var document = JsonDocument.Parse(message.Response.ContentStream); - value = DeploymentOperationsListResult.DeserializeDeploymentOperationsListResult(document.RootElement); + value = ArmDeploymentOperationsListResult.DeserializeArmDeploymentOperationsListResult(document.RootElement); return Response.FromValue(value, message.Response); } default: diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/RestOperations/DeploymentScriptsRestOperations.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/RestOperations/DeploymentScriptsRestOperations.cs index 9175251cb63cd..c50725addb2eb 100644 --- a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/RestOperations/DeploymentScriptsRestOperations.cs +++ b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/RestOperations/DeploymentScriptsRestOperations.cs @@ -37,7 +37,7 @@ public DeploymentScriptsRestOperations(HttpPipeline pipeline, string application _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } - internal Azure.Core.HttpMessage CreateCreateRequest(string subscriptionId, string resourceGroupName, string scriptName, DeploymentScriptData deploymentScript) + internal Azure.Core.HttpMessage CreateCreateRequest(string subscriptionId, string resourceGroupName, string scriptName, ArmDeploymentScriptData deploymentScript) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -69,7 +69,7 @@ internal Azure.Core.HttpMessage CreateCreateRequest(string subscriptionId, strin /// The cancellation token to use. /// , , or is null. /// , or is an empty string, and was expected to be non-empty. - public async Task CreateAsync(string subscriptionId, string resourceGroupName, string scriptName, DeploymentScriptData deploymentScript, CancellationToken cancellationToken = default) + public async Task CreateAsync(string subscriptionId, string resourceGroupName, string scriptName, ArmDeploymentScriptData deploymentScript, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -96,7 +96,7 @@ public async Task CreateAsync(string subscriptionId, string resourceGr /// The cancellation token to use. /// , , or is null. /// , or is an empty string, and was expected to be non-empty. - public Response Create(string subscriptionId, string resourceGroupName, string scriptName, DeploymentScriptData deploymentScript, CancellationToken cancellationToken = default) + public Response Create(string subscriptionId, string resourceGroupName, string scriptName, ArmDeploymentScriptData deploymentScript, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -115,7 +115,7 @@ public Response Create(string subscriptionId, string resourceGroupName, string s } } - internal Azure.Core.HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string scriptName, PatchableDeploymentScriptData data) + internal Azure.Core.HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string scriptName, PatchableArmDeploymentScriptData data) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -147,7 +147,7 @@ internal Azure.Core.HttpMessage CreateUpdateRequest(string subscriptionId, strin /// The cancellation token to use. /// , , or is null. /// , or is an empty string, and was expected to be non-empty. - public async Task> UpdateAsync(string subscriptionId, string resourceGroupName, string scriptName, PatchableDeploymentScriptData data, CancellationToken cancellationToken = default) + public async Task> UpdateAsync(string subscriptionId, string resourceGroupName, string scriptName, PatchableArmDeploymentScriptData data, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -160,9 +160,9 @@ public async Task> UpdateAsync(string subscriptio { case 200: { - DeploymentScriptData value = default; + ArmDeploymentScriptData value = default; using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = DeploymentScriptData.DeserializeDeploymentScriptData(document.RootElement); + value = ArmDeploymentScriptData.DeserializeArmDeploymentScriptData(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -178,7 +178,7 @@ public async Task> UpdateAsync(string subscriptio /// The cancellation token to use. /// , , or is null. /// , or is an empty string, and was expected to be non-empty. - public Response Update(string subscriptionId, string resourceGroupName, string scriptName, PatchableDeploymentScriptData data, CancellationToken cancellationToken = default) + public Response Update(string subscriptionId, string resourceGroupName, string scriptName, PatchableArmDeploymentScriptData data, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -191,9 +191,9 @@ public Response Update(string subscriptionId, string resou { case 200: { - DeploymentScriptData value = default; + ArmDeploymentScriptData value = default; using var document = JsonDocument.Parse(message.Response.ContentStream); - value = DeploymentScriptData.DeserializeDeploymentScriptData(document.RootElement); + value = ArmDeploymentScriptData.DeserializeArmDeploymentScriptData(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -228,7 +228,7 @@ internal Azure.Core.HttpMessage CreateGetRequest(string subscriptionId, string r /// The cancellation token to use. /// , or is null. /// , or is an empty string, and was expected to be non-empty. - public async Task> GetAsync(string subscriptionId, string resourceGroupName, string scriptName, CancellationToken cancellationToken = default) + public async Task> GetAsync(string subscriptionId, string resourceGroupName, string scriptName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -240,13 +240,13 @@ public async Task> GetAsync(string subscriptionId { case 200: { - DeploymentScriptData value = default; + ArmDeploymentScriptData value = default; using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = DeploymentScriptData.DeserializeDeploymentScriptData(document.RootElement); + value = ArmDeploymentScriptData.DeserializeArmDeploymentScriptData(document.RootElement); return Response.FromValue(value, message.Response); } case 404: - return Response.FromValue((DeploymentScriptData)null, message.Response); + return Response.FromValue((ArmDeploymentScriptData)null, message.Response); default: throw new RequestFailedException(message.Response); } @@ -259,7 +259,7 @@ public async Task> GetAsync(string subscriptionId /// The cancellation token to use. /// , or is null. /// , or is an empty string, and was expected to be non-empty. - public Response Get(string subscriptionId, string resourceGroupName, string scriptName, CancellationToken cancellationToken = default) + public Response Get(string subscriptionId, string resourceGroupName, string scriptName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -271,13 +271,13 @@ public Response Get(string subscriptionId, string resource { case 200: { - DeploymentScriptData value = default; + ArmDeploymentScriptData value = default; using var document = JsonDocument.Parse(message.Response.ContentStream); - value = DeploymentScriptData.DeserializeDeploymentScriptData(document.RootElement); + value = ArmDeploymentScriptData.DeserializeArmDeploymentScriptData(document.RootElement); return Response.FromValue(value, message.Response); } case 404: - return Response.FromValue((DeploymentScriptData)null, message.Response); + return Response.FromValue((ArmDeploymentScriptData)null, message.Response); default: throw new RequestFailedException(message.Response); } @@ -375,7 +375,7 @@ internal Azure.Core.HttpMessage CreateListBySubscriptionRequest(string subscript /// The cancellation token to use. /// is null. /// is an empty string, and was expected to be non-empty. - public async Task> ListBySubscriptionAsync(string subscriptionId, CancellationToken cancellationToken = default) + public async Task> ListBySubscriptionAsync(string subscriptionId, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); @@ -385,9 +385,9 @@ public async Task> ListBySubscriptionAsync( { case 200: { - DeploymentScriptListResult value = default; + ArmDeploymentScriptListResult value = default; using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = DeploymentScriptListResult.DeserializeDeploymentScriptListResult(document.RootElement); + value = ArmDeploymentScriptListResult.DeserializeArmDeploymentScriptListResult(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -400,7 +400,7 @@ public async Task> ListBySubscriptionAsync( /// The cancellation token to use. /// is null. /// is an empty string, and was expected to be non-empty. - public Response ListBySubscription(string subscriptionId, CancellationToken cancellationToken = default) + public Response ListBySubscription(string subscriptionId, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); @@ -410,9 +410,9 @@ public Response ListBySubscription(string subscripti { case 200: { - DeploymentScriptListResult value = default; + ArmDeploymentScriptListResult value = default; using var document = JsonDocument.Parse(message.Response.ContentStream); - value = DeploymentScriptListResult.DeserializeDeploymentScriptListResult(document.RootElement); + value = ArmDeploymentScriptListResult.DeserializeArmDeploymentScriptListResult(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -613,7 +613,7 @@ internal Azure.Core.HttpMessage CreateListByResourceGroupRequest(string subscrip /// The cancellation token to use. /// or is null. /// or is an empty string, and was expected to be non-empty. - public async Task> ListByResourceGroupAsync(string subscriptionId, string resourceGroupName, CancellationToken cancellationToken = default) + public async Task> ListByResourceGroupAsync(string subscriptionId, string resourceGroupName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -624,9 +624,9 @@ public async Task> ListByResourceGroupAsync { case 200: { - DeploymentScriptListResult value = default; + ArmDeploymentScriptListResult value = default; using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = DeploymentScriptListResult.DeserializeDeploymentScriptListResult(document.RootElement); + value = ArmDeploymentScriptListResult.DeserializeArmDeploymentScriptListResult(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -640,7 +640,7 @@ public async Task> ListByResourceGroupAsync /// The cancellation token to use. /// or is null. /// or is an empty string, and was expected to be non-empty. - public Response ListByResourceGroup(string subscriptionId, string resourceGroupName, CancellationToken cancellationToken = default) + public Response ListByResourceGroup(string subscriptionId, string resourceGroupName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -651,9 +651,9 @@ public Response ListByResourceGroup(string subscript { case 200: { - DeploymentScriptListResult value = default; + ArmDeploymentScriptListResult value = default; using var document = JsonDocument.Parse(message.Response.ContentStream); - value = DeploymentScriptListResult.DeserializeDeploymentScriptListResult(document.RootElement); + value = ArmDeploymentScriptListResult.DeserializeArmDeploymentScriptListResult(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -681,7 +681,7 @@ internal Azure.Core.HttpMessage CreateListBySubscriptionNextPageRequest(string n /// The cancellation token to use. /// or is null. /// is an empty string, and was expected to be non-empty. - public async Task> ListBySubscriptionNextPageAsync(string nextLink, string subscriptionId, CancellationToken cancellationToken = default) + public async Task> ListBySubscriptionNextPageAsync(string nextLink, string subscriptionId, CancellationToken cancellationToken = default) { Argument.AssertNotNull(nextLink, nameof(nextLink)); Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); @@ -692,9 +692,9 @@ public async Task> ListBySubscriptionNextPa { case 200: { - DeploymentScriptListResult value = default; + ArmDeploymentScriptListResult value = default; using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = DeploymentScriptListResult.DeserializeDeploymentScriptListResult(document.RootElement); + value = ArmDeploymentScriptListResult.DeserializeArmDeploymentScriptListResult(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -708,7 +708,7 @@ public async Task> ListBySubscriptionNextPa /// The cancellation token to use. /// or is null. /// is an empty string, and was expected to be non-empty. - public Response ListBySubscriptionNextPage(string nextLink, string subscriptionId, CancellationToken cancellationToken = default) + public Response ListBySubscriptionNextPage(string nextLink, string subscriptionId, CancellationToken cancellationToken = default) { Argument.AssertNotNull(nextLink, nameof(nextLink)); Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); @@ -719,9 +719,9 @@ public Response ListBySubscriptionNextPage(string ne { case 200: { - DeploymentScriptListResult value = default; + ArmDeploymentScriptListResult value = default; using var document = JsonDocument.Parse(message.Response.ContentStream); - value = DeploymentScriptListResult.DeserializeDeploymentScriptListResult(document.RootElement); + value = ArmDeploymentScriptListResult.DeserializeArmDeploymentScriptListResult(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -750,7 +750,7 @@ internal Azure.Core.HttpMessage CreateListByResourceGroupNextPageRequest(string /// The cancellation token to use. /// , or is null. /// or is an empty string, and was expected to be non-empty. - public async Task> ListByResourceGroupNextPageAsync(string nextLink, string subscriptionId, string resourceGroupName, CancellationToken cancellationToken = default) + public async Task> ListByResourceGroupNextPageAsync(string nextLink, string subscriptionId, string resourceGroupName, CancellationToken cancellationToken = default) { Argument.AssertNotNull(nextLink, nameof(nextLink)); Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); @@ -762,9 +762,9 @@ public async Task> ListByResourceGroupNextP { case 200: { - DeploymentScriptListResult value = default; + ArmDeploymentScriptListResult value = default; using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = DeploymentScriptListResult.DeserializeDeploymentScriptListResult(document.RootElement); + value = ArmDeploymentScriptListResult.DeserializeArmDeploymentScriptListResult(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -779,7 +779,7 @@ public async Task> ListByResourceGroupNextP /// The cancellation token to use. /// , or is null. /// or is an empty string, and was expected to be non-empty. - public Response ListByResourceGroupNextPage(string nextLink, string subscriptionId, string resourceGroupName, CancellationToken cancellationToken = default) + public Response ListByResourceGroupNextPage(string nextLink, string subscriptionId, string resourceGroupName, CancellationToken cancellationToken = default) { Argument.AssertNotNull(nextLink, nameof(nextLink)); Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); @@ -791,9 +791,9 @@ public Response ListByResourceGroupNextPage(string n { case 200: { - DeploymentScriptListResult value = default; + ArmDeploymentScriptListResult value = default; using var document = JsonDocument.Parse(message.Response.ContentStream); - value = DeploymentScriptListResult.DeserializeDeploymentScriptListResult(document.RootElement); + value = ArmDeploymentScriptListResult.DeserializeArmDeploymentScriptListResult(document.RootElement); return Response.FromValue(value, message.Response); } default: diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/RestOperations/DeploymentsRestOperations.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/RestOperations/DeploymentsRestOperations.cs index 6607036f76b70..f894943bb0c6c 100644 --- a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/RestOperations/DeploymentsRestOperations.cs +++ b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/RestOperations/DeploymentsRestOperations.cs @@ -165,7 +165,7 @@ public Response CheckExistenceAtScope(string scope, string deploymentName, Cance } } - internal Azure.Core.HttpMessage CreateCreateOrUpdateAtScopeRequest(string scope, string deploymentName, DeploymentInput parameters) + internal Azure.Core.HttpMessage CreateCreateOrUpdateAtScopeRequest(string scope, string deploymentName, ArmDeploymentInput parameters) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -194,7 +194,7 @@ internal Azure.Core.HttpMessage CreateCreateOrUpdateAtScopeRequest(string scope, /// The cancellation token to use. /// , or is null. /// is an empty string, and was expected to be non-empty. - public async Task CreateOrUpdateAtScopeAsync(string scope, string deploymentName, DeploymentInput parameters, CancellationToken cancellationToken = default) + public async Task CreateOrUpdateAtScopeAsync(string scope, string deploymentName, ArmDeploymentInput parameters, CancellationToken cancellationToken = default) { Argument.AssertNotNull(scope, nameof(scope)); Argument.AssertNotNullOrEmpty(deploymentName, nameof(deploymentName)); @@ -219,7 +219,7 @@ public async Task CreateOrUpdateAtScopeAsync(string scope, string depl /// The cancellation token to use. /// , or is null. /// is an empty string, and was expected to be non-empty. - public Response CreateOrUpdateAtScope(string scope, string deploymentName, DeploymentInput parameters, CancellationToken cancellationToken = default) + public Response CreateOrUpdateAtScope(string scope, string deploymentName, ArmDeploymentInput parameters, CancellationToken cancellationToken = default) { Argument.AssertNotNull(scope, nameof(scope)); Argument.AssertNotNullOrEmpty(deploymentName, nameof(deploymentName)); @@ -261,7 +261,7 @@ internal Azure.Core.HttpMessage CreateGetAtScopeRequest(string scope, string dep /// The cancellation token to use. /// or is null. /// is an empty string, and was expected to be non-empty. - public async Task> GetAtScopeAsync(string scope, string deploymentName, CancellationToken cancellationToken = default) + public async Task> GetAtScopeAsync(string scope, string deploymentName, CancellationToken cancellationToken = default) { Argument.AssertNotNull(scope, nameof(scope)); Argument.AssertNotNullOrEmpty(deploymentName, nameof(deploymentName)); @@ -272,13 +272,13 @@ public async Task> GetAtScopeAsync(string scope, string { case 200: { - DeploymentData value = default; + ArmDeploymentData value = default; using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = DeploymentData.DeserializeDeploymentData(document.RootElement); + value = ArmDeploymentData.DeserializeArmDeploymentData(document.RootElement); return Response.FromValue(value, message.Response); } case 404: - return Response.FromValue((DeploymentData)null, message.Response); + return Response.FromValue((ArmDeploymentData)null, message.Response); default: throw new RequestFailedException(message.Response); } @@ -290,7 +290,7 @@ public async Task> GetAtScopeAsync(string scope, string /// The cancellation token to use. /// or is null. /// is an empty string, and was expected to be non-empty. - public Response GetAtScope(string scope, string deploymentName, CancellationToken cancellationToken = default) + public Response GetAtScope(string scope, string deploymentName, CancellationToken cancellationToken = default) { Argument.AssertNotNull(scope, nameof(scope)); Argument.AssertNotNullOrEmpty(deploymentName, nameof(deploymentName)); @@ -301,13 +301,13 @@ public Response GetAtScope(string scope, string deploymentName, { case 200: { - DeploymentData value = default; + ArmDeploymentData value = default; using var document = JsonDocument.Parse(message.Response.ContentStream); - value = DeploymentData.DeserializeDeploymentData(document.RootElement); + value = ArmDeploymentData.DeserializeArmDeploymentData(document.RootElement); return Response.FromValue(value, message.Response); } case 404: - return Response.FromValue((DeploymentData)null, message.Response); + return Response.FromValue((ArmDeploymentData)null, message.Response); default: throw new RequestFailedException(message.Response); } @@ -376,7 +376,7 @@ public Response CancelAtScope(string scope, string deploymentName, CancellationT } } - internal Azure.Core.HttpMessage CreateValidateAtScopeRequest(string scope, string deploymentName, DeploymentInput parameters) + internal Azure.Core.HttpMessage CreateValidateAtScopeRequest(string scope, string deploymentName, ArmDeploymentInput parameters) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -406,7 +406,7 @@ internal Azure.Core.HttpMessage CreateValidateAtScopeRequest(string scope, strin /// The cancellation token to use. /// , or is null. /// is an empty string, and was expected to be non-empty. - public async Task ValidateAtScopeAsync(string scope, string deploymentName, DeploymentInput parameters, CancellationToken cancellationToken = default) + public async Task ValidateAtScopeAsync(string scope, string deploymentName, ArmDeploymentInput parameters, CancellationToken cancellationToken = default) { Argument.AssertNotNull(scope, nameof(scope)); Argument.AssertNotNullOrEmpty(deploymentName, nameof(deploymentName)); @@ -432,7 +432,7 @@ public async Task ValidateAtScopeAsync(string scope, string deployment /// The cancellation token to use. /// , or is null. /// is an empty string, and was expected to be non-empty. - public Response ValidateAtScope(string scope, string deploymentName, DeploymentInput parameters, CancellationToken cancellationToken = default) + public Response ValidateAtScope(string scope, string deploymentName, ArmDeploymentInput parameters, CancellationToken cancellationToken = default) { Argument.AssertNotNull(scope, nameof(scope)); Argument.AssertNotNullOrEmpty(deploymentName, nameof(deploymentName)); @@ -476,7 +476,7 @@ internal Azure.Core.HttpMessage CreateExportTemplateAtScopeRequest(string scope, /// The cancellation token to use. /// or is null. /// is an empty string, and was expected to be non-empty. - public async Task> ExportTemplateAtScopeAsync(string scope, string deploymentName, CancellationToken cancellationToken = default) + public async Task> ExportTemplateAtScopeAsync(string scope, string deploymentName, CancellationToken cancellationToken = default) { Argument.AssertNotNull(scope, nameof(scope)); Argument.AssertNotNullOrEmpty(deploymentName, nameof(deploymentName)); @@ -487,9 +487,9 @@ public async Task> ExportTemplateAtScopeAsync(s { case 200: { - DeploymentExportResult value = default; + ArmDeploymentExportResult value = default; using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = DeploymentExportResult.DeserializeDeploymentExportResult(document.RootElement); + value = ArmDeploymentExportResult.DeserializeArmDeploymentExportResult(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -503,7 +503,7 @@ public async Task> ExportTemplateAtScopeAsync(s /// The cancellation token to use. /// or is null. /// is an empty string, and was expected to be non-empty. - public Response ExportTemplateAtScope(string scope, string deploymentName, CancellationToken cancellationToken = default) + public Response ExportTemplateAtScope(string scope, string deploymentName, CancellationToken cancellationToken = default) { Argument.AssertNotNull(scope, nameof(scope)); Argument.AssertNotNullOrEmpty(deploymentName, nameof(deploymentName)); @@ -514,9 +514,9 @@ public Response ExportTemplateAtScope(string scope, stri { case 200: { - DeploymentExportResult value = default; + ArmDeploymentExportResult value = default; using var document = JsonDocument.Parse(message.Response.ContentStream); - value = DeploymentExportResult.DeserializeDeploymentExportResult(document.RootElement); + value = ArmDeploymentExportResult.DeserializeArmDeploymentExportResult(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -555,7 +555,7 @@ internal Azure.Core.HttpMessage CreateListAtScopeRequest(string scope, string fi /// The number of results to get. If null is passed, returns all deployments. /// The cancellation token to use. /// is null. - public async Task> ListAtScopeAsync(string scope, string filter = null, int? top = null, CancellationToken cancellationToken = default) + public async Task> ListAtScopeAsync(string scope, string filter = null, int? top = null, CancellationToken cancellationToken = default) { Argument.AssertNotNull(scope, nameof(scope)); @@ -565,9 +565,9 @@ public async Task> ListAtScopeAsync(string scope, { case 200: { - DeploymentListResult value = default; + ArmDeploymentListResult value = default; using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = DeploymentListResult.DeserializeDeploymentListResult(document.RootElement); + value = ArmDeploymentListResult.DeserializeArmDeploymentListResult(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -581,7 +581,7 @@ public async Task> ListAtScopeAsync(string scope, /// The number of results to get. If null is passed, returns all deployments. /// The cancellation token to use. /// is null. - public Response ListAtScope(string scope, string filter = null, int? top = null, CancellationToken cancellationToken = default) + public Response ListAtScope(string scope, string filter = null, int? top = null, CancellationToken cancellationToken = default) { Argument.AssertNotNull(scope, nameof(scope)); @@ -591,9 +591,9 @@ public Response ListAtScope(string scope, string filter = { case 200: { - DeploymentListResult value = default; + ArmDeploymentListResult value = default; using var document = JsonDocument.Parse(message.Response.ContentStream); - value = DeploymentListResult.DeserializeDeploymentListResult(document.RootElement); + value = ArmDeploymentListResult.DeserializeArmDeploymentListResult(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -601,7 +601,7 @@ public Response ListAtScope(string scope, string filter = } } - internal Azure.Core.HttpMessage CreateWhatIfAtTenantScopeRequest(string deploymentName, DeploymentWhatIf parameters) + internal Azure.Core.HttpMessage CreateWhatIfAtTenantScopeRequest(string deploymentName, ArmDeploymentWhatIf parameters) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -628,7 +628,7 @@ internal Azure.Core.HttpMessage CreateWhatIfAtTenantScopeRequest(string deployme /// The cancellation token to use. /// or is null. /// is an empty string, and was expected to be non-empty. - public async Task WhatIfAtTenantScopeAsync(string deploymentName, DeploymentWhatIf parameters, CancellationToken cancellationToken = default) + public async Task WhatIfAtTenantScopeAsync(string deploymentName, ArmDeploymentWhatIf parameters, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(deploymentName, nameof(deploymentName)); Argument.AssertNotNull(parameters, nameof(parameters)); @@ -651,7 +651,7 @@ public async Task WhatIfAtTenantScopeAsync(string deploymentName, Depl /// The cancellation token to use. /// or is null. /// is an empty string, and was expected to be non-empty. - public Response WhatIfAtTenantScope(string deploymentName, DeploymentWhatIf parameters, CancellationToken cancellationToken = default) + public Response WhatIfAtTenantScope(string deploymentName, ArmDeploymentWhatIf parameters, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(deploymentName, nameof(deploymentName)); Argument.AssertNotNull(parameters, nameof(parameters)); @@ -668,7 +668,7 @@ public Response WhatIfAtTenantScope(string deploymentName, DeploymentWhatIf para } } - internal Azure.Core.HttpMessage CreateWhatIfAtManagementGroupScopeRequest(string groupId, string deploymentName, DeploymentWhatIf parameters) + internal Azure.Core.HttpMessage CreateWhatIfAtManagementGroupScopeRequest(string groupId, string deploymentName, ArmDeploymentWhatIf parameters) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -698,7 +698,7 @@ internal Azure.Core.HttpMessage CreateWhatIfAtManagementGroupScopeRequest(string /// The cancellation token to use. /// , or is null. /// or is an empty string, and was expected to be non-empty. - public async Task WhatIfAtManagementGroupScopeAsync(string groupId, string deploymentName, DeploymentWhatIf parameters, CancellationToken cancellationToken = default) + public async Task WhatIfAtManagementGroupScopeAsync(string groupId, string deploymentName, ArmDeploymentWhatIf parameters, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(groupId, nameof(groupId)); Argument.AssertNotNullOrEmpty(deploymentName, nameof(deploymentName)); @@ -723,7 +723,7 @@ public async Task WhatIfAtManagementGroupScopeAsync(string groupId, st /// The cancellation token to use. /// , or is null. /// or is an empty string, and was expected to be non-empty. - public Response WhatIfAtManagementGroupScope(string groupId, string deploymentName, DeploymentWhatIf parameters, CancellationToken cancellationToken = default) + public Response WhatIfAtManagementGroupScope(string groupId, string deploymentName, ArmDeploymentWhatIf parameters, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(groupId, nameof(groupId)); Argument.AssertNotNullOrEmpty(deploymentName, nameof(deploymentName)); @@ -741,7 +741,7 @@ public Response WhatIfAtManagementGroupScope(string groupId, string deploymentNa } } - internal Azure.Core.HttpMessage CreateWhatIfAtSubscriptionScopeRequest(string subscriptionId, string deploymentName, DeploymentWhatIf parameters) + internal Azure.Core.HttpMessage CreateWhatIfAtSubscriptionScopeRequest(string subscriptionId, string deploymentName, ArmDeploymentWhatIf parameters) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -771,7 +771,7 @@ internal Azure.Core.HttpMessage CreateWhatIfAtSubscriptionScopeRequest(string su /// The cancellation token to use. /// , or is null. /// or is an empty string, and was expected to be non-empty. - public async Task WhatIfAtSubscriptionScopeAsync(string subscriptionId, string deploymentName, DeploymentWhatIf parameters, CancellationToken cancellationToken = default) + public async Task WhatIfAtSubscriptionScopeAsync(string subscriptionId, string deploymentName, ArmDeploymentWhatIf parameters, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(deploymentName, nameof(deploymentName)); @@ -796,7 +796,7 @@ public async Task WhatIfAtSubscriptionScopeAsync(string subscriptionId /// The cancellation token to use. /// , or is null. /// or is an empty string, and was expected to be non-empty. - public Response WhatIfAtSubscriptionScope(string subscriptionId, string deploymentName, DeploymentWhatIf parameters, CancellationToken cancellationToken = default) + public Response WhatIfAtSubscriptionScope(string subscriptionId, string deploymentName, ArmDeploymentWhatIf parameters, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(deploymentName, nameof(deploymentName)); @@ -814,7 +814,7 @@ public Response WhatIfAtSubscriptionScope(string subscriptionId, string deployme } } - internal Azure.Core.HttpMessage CreateWhatIfRequest(string subscriptionId, string resourceGroupName, string deploymentName, DeploymentWhatIf parameters) + internal Azure.Core.HttpMessage CreateWhatIfRequest(string subscriptionId, string resourceGroupName, string deploymentName, ArmDeploymentWhatIf parameters) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -847,7 +847,7 @@ internal Azure.Core.HttpMessage CreateWhatIfRequest(string subscriptionId, strin /// The cancellation token to use. /// , , or is null. /// , or is an empty string, and was expected to be non-empty. - public async Task WhatIfAsync(string subscriptionId, string resourceGroupName, string deploymentName, DeploymentWhatIf parameters, CancellationToken cancellationToken = default) + public async Task WhatIfAsync(string subscriptionId, string resourceGroupName, string deploymentName, ArmDeploymentWhatIf parameters, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -874,7 +874,7 @@ public async Task WhatIfAsync(string subscriptionId, string resourceGr /// The cancellation token to use. /// , , or is null. /// , or is an empty string, and was expected to be non-empty. - public Response WhatIf(string subscriptionId, string resourceGroupName, string deploymentName, DeploymentWhatIf parameters, CancellationToken cancellationToken = default) + public Response WhatIf(string subscriptionId, string resourceGroupName, string deploymentName, ArmDeploymentWhatIf parameters, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -985,7 +985,7 @@ internal Azure.Core.HttpMessage CreateListAtScopeNextPageRequest(string nextLink /// The number of results to get. If null is passed, returns all deployments. /// The cancellation token to use. /// or is null. - public async Task> ListAtScopeNextPageAsync(string nextLink, string scope, string filter = null, int? top = null, CancellationToken cancellationToken = default) + public async Task> ListAtScopeNextPageAsync(string nextLink, string scope, string filter = null, int? top = null, CancellationToken cancellationToken = default) { Argument.AssertNotNull(nextLink, nameof(nextLink)); Argument.AssertNotNull(scope, nameof(scope)); @@ -996,9 +996,9 @@ public async Task> ListAtScopeNextPageAsync(strin { case 200: { - DeploymentListResult value = default; + ArmDeploymentListResult value = default; using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = DeploymentListResult.DeserializeDeploymentListResult(document.RootElement); + value = ArmDeploymentListResult.DeserializeArmDeploymentListResult(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -1013,7 +1013,7 @@ public async Task> ListAtScopeNextPageAsync(strin /// The number of results to get. If null is passed, returns all deployments. /// The cancellation token to use. /// or is null. - public Response ListAtScopeNextPage(string nextLink, string scope, string filter = null, int? top = null, CancellationToken cancellationToken = default) + public Response ListAtScopeNextPage(string nextLink, string scope, string filter = null, int? top = null, CancellationToken cancellationToken = default) { Argument.AssertNotNull(nextLink, nameof(nextLink)); Argument.AssertNotNull(scope, nameof(scope)); @@ -1024,9 +1024,9 @@ public Response ListAtScopeNextPage(string nextLink, strin { case 200: { - DeploymentListResult value = default; + ArmDeploymentListResult value = default; using var document = JsonDocument.Parse(message.Response.ContentStream); - value = DeploymentListResult.DeserializeDeploymentListResult(document.RootElement); + value = ArmDeploymentListResult.DeserializeArmDeploymentListResult(document.RootElement); return Response.FromValue(value, message.Response); } default: diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/ScriptLogResource.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/ScriptLogResource.cs index 0e5378e769831..9aa488b86440c 100644 --- a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/ScriptLogResource.cs +++ b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/ScriptLogResource.cs @@ -20,7 +20,7 @@ namespace Azure.ResourceManager.Resources /// A Class representing a ScriptLog along with the instance operations that can be performed on it. /// If you have a you can construct a /// from an instance of using the GetScriptLogResource method. - /// Otherwise you can get one from its parent resource using the GetScriptLog method. + /// Otherwise you can get one from its parent resource using the GetScriptLog method. /// public partial class ScriptLogResource : ArmResource { diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/autorest.md b/sdk/resources/Azure.ResourceManager.Resources/src/autorest.md index 6af7dc4ccd36a..9679c783692be 100644 --- a/sdk/resources/Azure.ResourceManager.Resources/src/autorest.md +++ b/sdk/resources/Azure.ResourceManager.Resources/src/autorest.md @@ -75,13 +75,6 @@ rename-rules: URI: Uri directive: - - from: resources.json - where: $.definitions.DeploymentExtended - transform: $['x-ms-client-name'] = 'Deployment' - - from: resources.json - where: $.definitions.Deployment - transform: $['x-ms-client-name'] = 'DeploymentInput' - - remove-operation: checkResourceName # Use AtScope methods to replace the following operations # Keep the get method at each scope so that generator can know the possible values of container's parent @@ -146,31 +139,108 @@ directive: - from: deploymentScripts.json where: $.definitions.ManagedServiceIdentity.properties.type["x-ms-enum"] transform: > - $.name = "DeploymentScriptManagedIdentityType" + $.name = "ArmDeploymentScriptManagedIdentityType" - from: deploymentScripts.json where: $.definitions transform: > - $["ManagedServiceIdentity"]["x-ms-client-name"] = "DeploymentScriptManagedIdentity"; - $["AzureResourceBase"]["x-ms-client-name"] = "DeploymentScriptResourceBase"; + $["ManagedServiceIdentity"]["x-ms-client-name"] = "ArmDeploymentScriptManagedIdentity"; + $.ManagedServiceIdentity.properties.tenantId.format = "uuid"; + $["AzureResourceBase"]["x-ms-client-name"] = "ArmDeploymentScriptResourceBase"; + $["DeploymentScriptPropertiesBase"]["x-ms-client-name"] = "ArmDeploymentScriptPropertiesBase"; + $["DeploymentScriptsError"]["x-ms-client-name"] = "ArmDeploymentScriptsError"; + $.DeploymentScript['x-ms-client-name'] = 'ArmDeploymentScript'; + $.DeploymentScriptListResult['x-ms-client-name'] = 'ArmDeploymentScriptListResult'; - from: managedapplications.json - where: $.definitions.Identity + where: $.definitions transform: > - $["x-ms-client-name"] = "ApplicationManagedIdentity"; - $["properties"]["type"]["x-ms-enum"]["name"] = "ApplicationManagedIdentityType"; + - from: managedapplications.json where: $.definitions transform: > - $["GenericResource"]["x-ms-client-name"] = "ApplicationResource"; - $["Resource"]["x-ms-client-name"] = "ApplicationResourceBase"; - $["Plan"]["x-ms-client-name"] = "ApplicationPlan"; - $["Sku"]["x-ms-client-name"] = "ApplicationSku"; - $["ErrorResponse"]["x-ms-client-name"] = "ApplicationErrorResponse"; - $["OperationListResult"]["x-ms-client-name"] = "ApplicationOperationListResult"; - $["Operation"]["x-ms-client-name"] = "ApplicationOperation"; + $["Identity"]["x-ms-client-name"] = "ArmApplicationManagedIdentity"; + $["Identity"]["properties"]["type"]["x-ms-enum"]["name"] = "ArmApplicationManagedIdentityType"; + $["Identity"]["properties"]["principalId"]["format"] = "uuid"; + $["Identity"]["properties"]["tenantId"]["format"] = "uuid"; + $["GenericResource"]["x-ms-client-name"] = "ArmApplicationResource"; + $["Resource"]["x-ms-client-name"] = "ArmApplicationResourceBase"; + $["Plan"]["x-ms-client-name"] = "ArmApplicationPlan"; + $["Sku"]["x-ms-client-name"] = "ArmApplicationSku"; + $["ErrorResponse"]["x-ms-client-name"] = "ArmApplicationErrorResponse"; + $["OperationListResult"]["x-ms-client-name"] = "ArmApplicationOperationListResult"; + $["Operation"]["x-ms-client-name"] = "ArmApplicationOperation"; $["Operation"]["properties"]["displayOfApplication"] = $["Operation"]["properties"]["display"]; $["Operation"]["properties"]["display"] = undefined; $["JitRequestDefinition"]["x-ms-client-name"] = "JitRequest"; $["JitRequestDefinitionListResult"]["x-ms-client-name"] = "JitRequestListResult"; + $["Application"]["x-ms-client-name"] = "ArmApplication"; + $["ApplicationPackageLockingPolicyDefinition"]["x-ms-client-name"] = "ApplicationPackageLockingPolicy"; + $["ApplicationBillingDetailsDefinition"]["x-ms-client-name"] = "ApplicationBillingDetails"; + $["JitApproverDefinition"]["x-ms-client-name"] = "JitApprover"; + $["DeploymentMode"]["x-ms-enum"]["name"] = "ArmApplicationDeploymentMode"; + $.Application['x-ms-client-name'] = 'ArmApplication'; + $.ApplicationDefinition['x-ms-client-name'] = 'ArmApplicationDefinition'; + $.ApplicationPackageLockingPolicyDefinition['x-ms-client-name'] = 'ArmApplicationPackageLockingPolicy'; + $.ApplicationBillingDetailsDefinition['x-ms-client-name'] = 'ArmApplicationBillingDetails'; + $.ApplicationArtifact['x-ms-client-name'] = 'ArmApplicationArtifact'; + $.ApplicationAuthorization['x-ms-client-name'] = 'ArmApplicationAuthorization'; + $.ApplicationAuthorization.properties.principalId.format = 'uuid'; + $.JitAuthorizationPolicies.properties.principalId.format = 'uuid'; + $.ApplicationClientDetails['x-ms-client-name'] = 'ArmApplicationDetails'; + $.ApplicationClientDetails.properties.oid.format = 'uuid'; + $.ApplicationClientDetails.properties.applicationId.format = 'uuid'; + $.ApplicationDefinitionArtifact['x-ms-client-name'] = 'ArmApplicationDefinitionArtifact'; + $.ApplicationDefinitionListResult['x-ms-client-name'] = 'ArmApplicationDefinitionListResult'; + $.ApplicationDeploymentPolicy['x-ms-client-name'] = 'ArmApplicationDeploymentPolicy'; + $.ApplicationJitAccessPolicy['x-ms-client-name'] = 'ArmApplicationJitAccessPolicy'; + $.ApplicationListResult['x-ms-client-name'] = 'ArmApplicationListResult'; + $.ApplicationManagementPolicy['x-ms-client-name'] = 'ArmApplicationManagementPolicy'; + $.ApplicationNotificationEndpoint['x-ms-client-name'] = 'ArmApplicationNotificationEndpoint'; + $.ApplicationNotificationPolicy['x-ms-client-name'] = 'ArmApplicationNotificationPolicy'; + $.ApplicationPackageContact['x-ms-client-name'] = 'ArmApplicationPackageContact'; + $.ApplicationPackageSupportUrls['x-ms-client-name'] = 'ArmApplicationPackageSupportUrls'; + $.ApplicationPackageSupportUrls.properties.governmentCloud['x-ms-client-name'] = 'AzureGovernment'; + $.ApplicationPackageSupportUrls.properties.publicAzure['x-ms-client-name'] = 'AzurePublicCloud'; + $.ApplicationPolicy['x-ms-client-name'] = 'ArmApplicationPolicy'; + $.ApplicationPropertiesPatchable['x-ms-client-name'] = 'ArmApplicationPropertiesPatchable'; + $.ApplicationArtifactName['x-ms-enum'].name = 'ArmApplicationArtifactName'; + $.ApplicationArtifactType['x-ms-enum'].name = 'ArmApplicationArtifactType'; + $.ApplicationDefinitionArtifactName['x-ms-enum'].name = 'ArmApplicationDefinitionArtifactName'; + $.ApplicationLockLevel['x-ms-enum'].name = 'ArmApplicationLockLevel'; + $.ApplicationManagementMode['x-ms-enum'].name = 'ArmApplicationManagementMode'; + $.ApplicationJitAccessPolicy.properties.maximumJitAccessDuration["format"] = "duration"; + $.JitSchedulingPolicy.properties.duration["format"] = "duration"; + $.ProvisioningState["x-ms-enum"].name = "ResourcesProvisioningState"; + $.ProvisioningState["x-ms-client-name"] = "ResourcesProvisioningState"; + $.userAssignedResourceIdentity.properties.principalId.format = "uuid"; + $.userAssignedResourceIdentity.properties.tenantId.format = "uuid"; + $.userAssignedResourceIdentity["x-ms-client-name"] = "ArmApplicationUserAssignedIdentity"; + $.ApplicationProperties.properties.applicationDefinitionId["x-ms-format"] = "arm-id"; + $.ApplicationProperties.properties.managedResourceGroupId["x-ms-format"] = "arm-id"; + $.ApplicationPropertiesPatchable.properties.applicationDefinitionId["x-ms-format"] = "arm-id"; + $.ApplicationPropertiesPatchable.properties.managedResourceGroupId["x-ms-format"] = "arm-id"; + - from: resources.json + where: $.definitions + transform: > + $.DeploymentProperties.properties.mode['x-ms-enum'].name = 'ArmDeploymentMode'; + $.DeploymentPropertiesExtended.properties.mode['x-ms-enum'].name = 'ArmDeploymentMode'; + $.DeploymentExtended['x-ms-client-name'] = 'ArmDeployment'; + $.Deployment['x-ms-client-name'] = 'ArmDeploymentInput'; + $.DeploymentExportResult['x-ms-client-name'] = 'ArmDeploymentExportResult'; + $.DeploymentExtendedFilter['x-ms-client-name'] = 'ArmDeploymentExtendedFilter'; + $.DeploymentListResult['x-ms-client-name'] = 'ArmDeploymentListResult'; + $.DeploymentOperation['x-ms-client-name'] = 'ArmDeploymentOperation'; + $.DeploymentOperationProperties['x-ms-client-name'] = 'ArmDeploymentOperationProperties'; + $.DeploymentOperationsListResult['x-ms-client-name'] = 'ArmDeploymentOperationsListResult'; + $.DeploymentValidateResult['x-ms-client-name'] = 'ArmDeploymentValidateResult'; + $.DeploymentWhatIf['x-ms-client-name'] = 'ArmDeploymentWhatIf'; + $.DeploymentWhatIfSettings['x-ms-client-name'] = 'ArmDeploymentWhatIfSettings'; + $.DeploymentWhatIfProperties['x-ms-client-name'] = 'ArmDeploymentWhatIfProperties'; + $.DeploymentProperties['x-ms-client-name'] = 'ArmDeploymentProperties'; + $.DeploymentPropertiesExtended['x-ms-client-name'] = 'ArmDeploymentPropertiesExtended'; + $.Dependency["x-ms-client-name"] = "ArmDependency"; + $.DeploymentPropertiesExtended.properties.provisioningState["x-ms-enum"].name = "ResourcesProvisioningState"; + $.DeploymentPropertiesExtended.properties.duration["format"] = "duration"; + $.DeploymentOperationProperties.properties.duration["format"] = "duration"; - from: resources.json where: $.paths['/providers/Microsoft.Resources/deployments/{deploymentName}/whatIf'].post.parameters[1].schema transform: $['$ref'] = '#/definitions/DeploymentWhatIf' @@ -180,16 +250,6 @@ directive: - from: resources.json where: $.definitions.DeploymentWhatIf.properties.location transform: $['description'] = 'The location to store the deployment data, only required at the tenant and management group scope.' - - from: managedapplications.json - where: $.definitions - transform: > - $.ApplicationJitAccessPolicy.properties.maximumJitAccessDuration["format"] = "duration"; - $.JitSchedulingPolicy.properties.duration["format"] = "duration"; - - from: resources.json - where: $.definitions - transform: > - $.DeploymentPropertiesExtended.properties.duration["format"] = "duration"; - $.DeploymentOperationProperties.properties.duration["format"] = "duration"; - from: resources.json where: $.definitions.Alias transform: diff --git a/sdk/resources/Azure.ResourceManager.Resources/tests/ResourcesTestBase.cs b/sdk/resources/Azure.ResourceManager.Resources/tests/ResourcesTestBase.cs index 47cf4e12d902e..babea0e48ad06 100644 --- a/sdk/resources/Azure.ResourceManager.Resources/tests/ResourcesTestBase.cs +++ b/sdk/resources/Azure.ResourceManager.Resources/tests/ResourcesTestBase.cs @@ -37,14 +37,14 @@ public void CreateCommonClient() Client = GetArmClient(); } - protected static ApplicationDefinitionData CreateApplicationDefinitionData(string displayName) => new ApplicationDefinitionData(AzureLocation.WestUS2, ApplicationLockLevel.None) + protected static ArmApplicationDefinitionData CreateApplicationDefinitionData(string displayName) => new ArmApplicationDefinitionData(AzureLocation.WestUS2, ArmApplicationLockLevel.None) { DisplayName = displayName, Description = $"{displayName} description", PackageFileUri = new Uri("https://raw.githubusercontent.com/Azure/azure-managedapp-samples/master/Managed%20Application%20Sample%20Packages/201-managed-storage-account/managedstorage.zip") }; - protected static ApplicationData CreateApplicationData(string applicationDefinitionId, string managedResourceGroupId, string storageAccountPrefix) => new ApplicationData(AzureLocation.WestUS2, "ServiceCatalog") + protected static ArmApplicationData CreateApplicationData(ResourceIdentifier applicationDefinitionId, ResourceIdentifier managedResourceGroupId, string storageAccountPrefix) => new ArmApplicationData(AzureLocation.WestUS2, "ServiceCatalog") { ApplicationDefinitionId = applicationDefinitionId, ManagedResourceGroupId = managedResourceGroupId, @@ -63,9 +63,9 @@ public void CreateCommonClient() }) }; - protected static DeploymentProperties CreateDeploymentProperties() + protected static ArmDeploymentProperties CreateDeploymentProperties() { - DeploymentProperties tmpDeploymentProperties = new DeploymentProperties(DeploymentMode.Incremental); + ArmDeploymentProperties tmpDeploymentProperties = new ArmDeploymentProperties(ArmDeploymentMode.Incremental); tmpDeploymentProperties.TemplateLink = new TemplateLink(); tmpDeploymentProperties.TemplateLink.Uri = new Uri("https://raw.githubusercontent.com/Azure/azure-quickstart-templates/master/quickstarts/microsoft.storage/storage-account-create/azuredeploy.json"); tmpDeploymentProperties.Parameters = new JsonObject() @@ -79,9 +79,9 @@ protected static DeploymentProperties CreateDeploymentProperties() return tmpDeploymentProperties; } - protected static DeploymentProperties CreateDeploymentPropertiesUsingString() + protected static ArmDeploymentProperties CreateDeploymentPropertiesUsingString() { - DeploymentProperties tmpDeploymentProperties = new DeploymentProperties(DeploymentMode.Incremental); + ArmDeploymentProperties tmpDeploymentProperties = new ArmDeploymentProperties(ArmDeploymentMode.Incremental); tmpDeploymentProperties.Template = File.ReadAllText(Path.Combine( Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location), "Scenario", @@ -95,9 +95,9 @@ protected static DeploymentProperties CreateDeploymentPropertiesUsingString() return tmpDeploymentProperties; } - protected static DeploymentProperties CreateDeploymentPropertiesUsingJsonElement() + protected static ArmDeploymentProperties CreateDeploymentPropertiesUsingJsonElement() { - DeploymentProperties tmpDeploymentProperties = new DeploymentProperties(DeploymentMode.Incremental); + ArmDeploymentProperties tmpDeploymentProperties = new ArmDeploymentProperties(ArmDeploymentMode.Incremental); tmpDeploymentProperties.TemplateLink = new TemplateLink(); tmpDeploymentProperties.TemplateLink.Uri = new Uri("https://raw.githubusercontent.com/Azure/azure-quickstart-templates/master/quickstarts/microsoft.storage/storage-account-create/azuredeploy.json"); var parametersObject = new { storageAccountType = new { value = "Standard_GRS" } }; @@ -108,7 +108,7 @@ protected static DeploymentProperties CreateDeploymentPropertiesUsingJsonElement return tmpDeploymentProperties; } - protected static DeploymentInput CreateDeploymentData(DeploymentProperties deploymentProperties) => new DeploymentInput(deploymentProperties); + protected static ArmDeploymentInput CreateDeploymentData(ArmDeploymentProperties deploymentProperties) => new ArmDeploymentInput(deploymentProperties); private static GenericResourceData ConstructGenericUserAssignedIdentities() { @@ -116,7 +116,7 @@ private static GenericResourceData ConstructGenericUserAssignedIdentities() return userAssignedIdentities; } - protected async Task GetDeploymentScriptDataAsync() + protected async Task GetDeploymentScriptDataAsync() { //The user assigned identities was created firstly in Portal due to the unexpected behavior of using generic resource to create the user assigned identities. string rgName4Identities = "rg-for-DeployScript"; @@ -128,9 +128,9 @@ protected async Task GetDeploymentScriptDataAsync() ResourceIdentifier userAssignedIdentitiesId = rg4Identities.Id.AppendProviderResource("Microsoft.ManagedIdentity", "userAssignedIdentities", "test-user-assigned-msi"); var lro2 = await Client.GetGenericResources().CreateOrUpdateAsync(WaitUntil.Completed, userAssignedIdentitiesId, userAssignedIdentitiesData); GenericResource userAssignedIdentities = lro2.Value; - var managedIdentity = new DeploymentScriptManagedIdentity() + var managedIdentity = new ArmDeploymentScriptManagedIdentity() { - DeploymentScriptManagedIdentityType = "UserAssigned", + ArmDeploymentScriptManagedIdentityType = "UserAssigned", UserAssignedIdentities = { { diff --git a/sdk/resources/Azure.ResourceManager.Resources/tests/Samples/Sample1_ManagingApplicationDefinitions.cs b/sdk/resources/Azure.ResourceManager.Resources/tests/Samples/Sample1_ManagingApplicationDefinitions.cs index a2e8ea15902b6..5f2fdd8b56f0e 100644 --- a/sdk/resources/Azure.ResourceManager.Resources/tests/Samples/Sample1_ManagingApplicationDefinitions.cs +++ b/sdk/resources/Azure.ResourceManager.Resources/tests/Samples/Sample1_ManagingApplicationDefinitions.cs @@ -22,17 +22,17 @@ public async Task CreateApplicationDefinitions() { #region Snippet:Managing_ApplicationDefinitions_CreateAnApplicationDefinition // First we need to get the application definition collection from the resource group - ApplicationDefinitionCollection applicationDefinitionCollection = resourceGroup.GetApplicationDefinitions(); + ArmApplicationDefinitionCollection applicationDefinitionCollection = resourceGroup.GetArmApplicationDefinitions(); // Use the same location as the resource group string applicationDefinitionName = "myApplicationDefinition"; - var input = new ApplicationDefinitionData(resourceGroup.Data.Location, ApplicationLockLevel.None) + var input = new ArmApplicationDefinitionData(resourceGroup.Data.Location, ArmApplicationLockLevel.None) { DisplayName = applicationDefinitionName, Description = $"{applicationDefinitionName} description", PackageFileUri = new Uri("https://raw.githubusercontent.com/Azure/azure-managedapp-samples/master/Managed%20Application%20Sample%20Packages/201-managed-storage-account/managedstorage.zip") }; - ArmOperation lro = await applicationDefinitionCollection.CreateOrUpdateAsync(WaitUntil.Completed, applicationDefinitionName, input); - ApplicationDefinitionResource applicationDefinition = lro.Value; + ArmOperation lro = await applicationDefinitionCollection.CreateOrUpdateAsync(WaitUntil.Completed, applicationDefinitionName, input); + ArmApplicationDefinitionResource applicationDefinition = lro.Value; #endregion Snippet:Managing_ApplicationDefinitions_CreateAnApplicationDefinition } @@ -42,10 +42,10 @@ public async Task ListApplicationDefinitions() { #region Snippet:Managing_ApplicationDefinitions_ListAllApplicationDefinitions // First we need to get the application definition collection from the resource group - ApplicationDefinitionCollection applicationDefinitionCollection = resourceGroup.GetApplicationDefinitions(); + ArmApplicationDefinitionCollection applicationDefinitionCollection = resourceGroup.GetArmApplicationDefinitions(); // With GetAllAsync(), we can get a list of the application definitions in the collection - AsyncPageable response = applicationDefinitionCollection.GetAllAsync(); - await foreach (ApplicationDefinitionResource applicationDefinition in response) + AsyncPageable response = applicationDefinitionCollection.GetAllAsync(); + await foreach (ArmApplicationDefinitionResource applicationDefinition in response) { Console.WriteLine(applicationDefinition.Data.Name); } @@ -58,9 +58,9 @@ public async Task DeleteApplicationDefinitions() { #region Snippet:Managing_ApplicationDefinitions_DeleteAnApplicationDefinition // First we need to get the application definition collection from the resource group - ApplicationDefinitionCollection applicationDefinitionCollection = resourceGroup.GetApplicationDefinitions(); + ArmApplicationDefinitionCollection applicationDefinitionCollection = resourceGroup.GetArmApplicationDefinitions(); // Now we can get the application definition with GetAsync() - ApplicationDefinitionResource applicationDefinition = await applicationDefinitionCollection.GetAsync("myApplicationDefinition"); + ArmApplicationDefinitionResource applicationDefinition = await applicationDefinitionCollection.GetAsync("myApplicationDefinition"); // With DeleteAsync(), we can delete the application definition await applicationDefinition.DeleteAsync(WaitUntil.Completed); #endregion Snippet:Managing_ApplicationDefinitions_DeleteAnApplicationDefinition diff --git a/sdk/resources/Azure.ResourceManager.Resources/tests/Samples/Sample2_ManagingDeployments.cs b/sdk/resources/Azure.ResourceManager.Resources/tests/Samples/Sample2_ManagingDeployments.cs index 39755902cd513..c2a3dec2d0def 100644 --- a/sdk/resources/Azure.ResourceManager.Resources/tests/Samples/Sample2_ManagingDeployments.cs +++ b/sdk/resources/Azure.ResourceManager.Resources/tests/Samples/Sample2_ManagingDeployments.cs @@ -26,10 +26,10 @@ public async Task CreateDeployments() { #region Snippet:Managing_Deployments_CreateADeployment // First we need to get the deployment collection from the resource group - DeploymentCollection deploymentCollection = resourceGroup.GetDeployments(); + ArmDeploymentCollection ArmDeploymentCollection = resourceGroup.GetArmDeployments(); // Use the same location as the resource group string deploymentName = "myDeployment"; - var input = new DeploymentInput(new DeploymentProperties(DeploymentMode.Incremental) + var input = new ArmDeploymentInput(new ArmDeploymentProperties(ArmDeploymentMode.Incremental) { TemplateLink = new TemplateLink() { @@ -44,8 +44,8 @@ public async Task CreateDeployments() } } }); - ArmOperation lro = await deploymentCollection.CreateOrUpdateAsync(WaitUntil.Completed, deploymentName, input); - DeploymentResource deployment = lro.Value; + ArmOperation lro = await ArmDeploymentCollection.CreateOrUpdateAsync(WaitUntil.Completed, deploymentName, input); + ArmDeploymentResource deployment = lro.Value; #endregion Snippet:Managing_Deployments_CreateADeployment } @@ -55,7 +55,7 @@ public async Task CreateDeploymentsUsingJsonElement() { #region Snippet:Managing_Deployments_CreateADeploymentUsingJsonElement // First we need to get the deployment collection from the resource group - DeploymentCollection deploymentCollection = resourceGroup.GetDeployments(); + ArmDeploymentCollection ArmDeploymentCollection = resourceGroup.GetArmDeployments(); // Use the same location as the resource group string deploymentName = "myDeployment"; // Create a parameter object @@ -63,7 +63,7 @@ public async Task CreateDeploymentsUsingJsonElement() //convert this object to JsonElement var parametersString = JsonSerializer.Serialize(parametersObject); var parameters = JsonDocument.Parse(parametersString).RootElement; - var input = new DeploymentInput(new DeploymentProperties(DeploymentMode.Incremental) + var input = new ArmDeploymentInput(new ArmDeploymentProperties(ArmDeploymentMode.Incremental) { TemplateLink = new TemplateLink() { @@ -71,8 +71,8 @@ public async Task CreateDeploymentsUsingJsonElement() }, Parameters = parameters }); - ArmOperation lro = await deploymentCollection.CreateOrUpdateAsync(WaitUntil.Completed, deploymentName, input); - DeploymentResource deployment = lro.Value; + ArmOperation lro = await ArmDeploymentCollection.CreateOrUpdateAsync(WaitUntil.Completed, deploymentName, input); + ArmDeploymentResource deployment = lro.Value; #endregion Snippet:Managing_Deployments_CreateADeployment } @@ -82,17 +82,17 @@ public async Task CreateDeploymentsUsingString() { #region Snippet:Managing_Deployments_CreateADeploymentUsingString // First we need to get the deployment collection from the resource group - DeploymentCollection deploymentCollection = resourceGroup.GetDeployments(); + ArmDeploymentCollection ArmDeploymentCollection = resourceGroup.GetArmDeployments(); // Use the same location as the resource group string deploymentName = "myDeployment"; // Passing string to template and parameters - var input = new DeploymentInput(new DeploymentProperties(DeploymentMode.Incremental) + var input = new ArmDeploymentInput(new ArmDeploymentProperties(ArmDeploymentMode.Incremental) { Template = File.ReadAllText("storage-template.json"), Parameters = File.ReadAllText("storage-parameters.json") }); - ArmOperation lro = await deploymentCollection.CreateOrUpdateAsync(WaitUntil.Completed, deploymentName, input); - DeploymentResource deployment = lro.Value; + ArmOperation lro = await ArmDeploymentCollection.CreateOrUpdateAsync(WaitUntil.Completed, deploymentName, input); + ArmDeploymentResource deployment = lro.Value; #endregion Snippet:Managing_Deployments_CreateADeployment } @@ -102,10 +102,10 @@ public async Task ListDeployments() { #region Snippet:Managing_Deployments_ListAllDeployments // First we need to get the deployment collection from the resource group - DeploymentCollection deploymentCollection = resourceGroup.GetDeployments(); + ArmDeploymentCollection ArmDeploymentCollection = resourceGroup.GetArmDeployments(); // With GetAllAsync(), we can get a list of the deployments in the collection - AsyncPageable response = deploymentCollection.GetAllAsync(); - await foreach (DeploymentResource deployment in response) + AsyncPageable response = ArmDeploymentCollection.GetAllAsync(); + await foreach (ArmDeploymentResource deployment in response) { Console.WriteLine(deployment.Data.Name); } @@ -118,9 +118,9 @@ public async Task DeleteDeployments() { #region Snippet:Managing_Deployments_DeleteADeployment // First we need to get the deployment collection from the resource group - DeploymentCollection deploymentCollection = resourceGroup.GetDeployments(); + ArmDeploymentCollection ArmDeploymentCollection = resourceGroup.GetArmDeployments(); // Now we can get the deployment with GetAsync() - DeploymentResource deployment = await deploymentCollection.GetAsync("myDeployment"); + ArmDeploymentResource deployment = await ArmDeploymentCollection.GetAsync("myDeployment"); // With DeleteAsync(), we can delete the deployment await deployment.DeleteAsync(WaitUntil.Completed); #endregion Snippet:Managing_Deployments_DeleteADeployment diff --git a/sdk/resources/Azure.ResourceManager.Resources/tests/Scenario/ApplicationCollectionTests.cs b/sdk/resources/Azure.ResourceManager.Resources/tests/Scenario/ApplicationCollectionTests.cs index 7b693fac34d29..dc24d2d5b417e 100644 --- a/sdk/resources/Azure.ResourceManager.Resources/tests/Scenario/ApplicationCollectionTests.cs +++ b/sdk/resources/Azure.ResourceManager.Resources/tests/Scenario/ApplicationCollectionTests.cs @@ -27,14 +27,14 @@ public async Task CreateOrUpdate() var lro = await subscription.GetResourceGroups().CreateOrUpdateAsync(WaitUntil.Completed, rgName, rgData); ResourceGroupResource rg = lro.Value; string appDefName = Recording.GenerateAssetName("appDef-C-"); - ApplicationDefinitionData appDefData = CreateApplicationDefinitionData(appDefName); - ApplicationDefinitionResource appDef = (await rg.GetApplicationDefinitions().CreateOrUpdateAsync(WaitUntil.Completed, appDefName, appDefData)).Value; + ArmApplicationDefinitionData appDefData = CreateApplicationDefinitionData(appDefName); + ArmApplicationDefinitionResource appDef = (await rg.GetArmApplicationDefinitions().CreateOrUpdateAsync(WaitUntil.Completed, appDefName, appDefData)).Value; string appName = Recording.GenerateAssetName("application-C-"); - ApplicationData applicationData = CreateApplicationData(appDef.Id, subscription.Id + Recording.GenerateAssetName("/resourceGroups/managed-1-"), Recording.GenerateAssetName("s1")); - ApplicationResource application = (await rg.GetApplications().CreateOrUpdateAsync(WaitUntil.Completed, appName, applicationData)).Value; + ArmApplicationData applicationData = CreateApplicationData(appDef.Id, new ResourceIdentifier(subscription.Id + Recording.GenerateAssetName("/resourceGroups/managed-1-")), Recording.GenerateAssetName("s1")); + ArmApplicationResource application = (await rg.GetArmApplications().CreateOrUpdateAsync(WaitUntil.Completed, appName, applicationData)).Value; Assert.AreEqual(appName, application.Data.Name); - Assert.ThrowsAsync(async () => _ = await rg.GetApplications().CreateOrUpdateAsync(WaitUntil.Completed, null, applicationData)); - Assert.ThrowsAsync(async () => _ = await rg.GetApplications().CreateOrUpdateAsync(WaitUntil.Completed, appName, null)); + Assert.ThrowsAsync(async () => _ = await rg.GetArmApplications().CreateOrUpdateAsync(WaitUntil.Completed, null, applicationData)); + Assert.ThrowsAsync(async () => _ = await rg.GetArmApplications().CreateOrUpdateAsync(WaitUntil.Completed, appName, null)); } [TestCase] @@ -47,13 +47,13 @@ public async Task ListByRG() var lro = await subscription.GetResourceGroups().CreateOrUpdateAsync(WaitUntil.Completed, rgName, rgData); ResourceGroupResource rg = lro.Value; string appDefName = Recording.GenerateAssetName("appDef-L-"); - ApplicationDefinitionData appDefData = CreateApplicationDefinitionData(appDefName); - ApplicationDefinitionResource appDef = (await rg.GetApplicationDefinitions().CreateOrUpdateAsync(WaitUntil.Completed, appDefName, appDefData)).Value; + ArmApplicationDefinitionData appDefData = CreateApplicationDefinitionData(appDefName); + ArmApplicationDefinitionResource appDef = (await rg.GetArmApplicationDefinitions().CreateOrUpdateAsync(WaitUntil.Completed, appDefName, appDefData)).Value; string appName = Recording.GenerateAssetName("application-L-"); - ApplicationData applicationData = CreateApplicationData(appDef.Id, subscription.Id + Recording.GenerateAssetName("/resourceGroups/managed-2-"), Recording.GenerateAssetName("s2")); - _ = await rg.GetApplications().CreateOrUpdateAsync(WaitUntil.Completed, appName, applicationData); + ArmApplicationData applicationData = CreateApplicationData(appDef.Id, new ResourceIdentifier(subscription.Id + Recording.GenerateAssetName("/resourceGroups/managed-2-")), Recording.GenerateAssetName("s2")); + _ = await rg.GetArmApplications().CreateOrUpdateAsync(WaitUntil.Completed, appName, applicationData); int count = 0; - await foreach (var tempApplication in rg.GetApplications().GetAllAsync()) + await foreach (var tempApplication in rg.GetArmApplications().GetAllAsync()) { count++; } @@ -70,13 +70,13 @@ public async Task ListBySubscription() var lro = await subscription.GetResourceGroups().CreateOrUpdateAsync(WaitUntil.Completed, rgName, rgData); ResourceGroupResource rg = lro.Value; string appDefName = Recording.GenerateAssetName("appDef-L-"); - ApplicationDefinitionData appDefData = CreateApplicationDefinitionData(appDefName); - ApplicationDefinitionResource appDef = (await rg.GetApplicationDefinitions().CreateOrUpdateAsync(WaitUntil.Completed, appDefName, appDefData)).Value; + ArmApplicationDefinitionData appDefData = CreateApplicationDefinitionData(appDefName); + ArmApplicationDefinitionResource appDef = (await rg.GetArmApplicationDefinitions().CreateOrUpdateAsync(WaitUntil.Completed, appDefName, appDefData)).Value; string appName = Recording.GenerateAssetName("application-L-"); - ApplicationData applicationData = CreateApplicationData(appDef.Id, subscription.Id + Recording.GenerateAssetName("/resourceGroups/managed-3-"), Recording.GenerateAssetName("s3")); - _ = await rg.GetApplications().CreateOrUpdateAsync(WaitUntil.Completed, appName, applicationData); + ArmApplicationData applicationData = CreateApplicationData(appDef.Id, new ResourceIdentifier(subscription.Id + Recording.GenerateAssetName("/resourceGroups/managed-3-")), Recording.GenerateAssetName("s3")); + _ = await rg.GetArmApplications().CreateOrUpdateAsync(WaitUntil.Completed, appName, applicationData); int count = 0; - await foreach (var tempApplication in subscription.GetApplicationsAsync()) + await foreach (var tempApplication in subscription.GetArmApplicationsAsync()) { if (tempApplication.Data.ApplicationDefinitionId == appDef.Id) { @@ -96,17 +96,17 @@ public async Task Get() var lro = await subscription.GetResourceGroups().CreateOrUpdateAsync(WaitUntil.Completed, rgName, rgData); ResourceGroupResource rg = lro.Value; string appDefName = Recording.GenerateAssetName("appDef-G-"); - ApplicationDefinitionData appDefData = CreateApplicationDefinitionData(appDefName); - ApplicationDefinitionResource appDef = (await rg.GetApplicationDefinitions().CreateOrUpdateAsync(WaitUntil.Completed, appDefName, appDefData)).Value; + ArmApplicationDefinitionData appDefData = CreateApplicationDefinitionData(appDefName); + ArmApplicationDefinitionResource appDef = (await rg.GetArmApplicationDefinitions().CreateOrUpdateAsync(WaitUntil.Completed, appDefName, appDefData)).Value; string appName = Recording.GenerateAssetName("application-G-"); - ApplicationData applicationData = CreateApplicationData(appDef.Id, subscription.Id + Recording.GenerateAssetName("/resourceGroups/managed-4-"), Recording.GenerateAssetName("s4")); - ApplicationResource application = (await rg.GetApplications().CreateOrUpdateAsync(WaitUntil.Completed, appName, applicationData)).Value; - ApplicationResource getApplication = await rg.GetApplications().GetAsync(appName); + ArmApplicationData applicationData = CreateApplicationData(appDef.Id, new ResourceIdentifier(subscription.Id + Recording.GenerateAssetName("/resourceGroups/managed-4-")), Recording.GenerateAssetName("s4")); + ArmApplicationResource application = (await rg.GetArmApplications().CreateOrUpdateAsync(WaitUntil.Completed, appName, applicationData)).Value; + ArmApplicationResource getApplication = await rg.GetArmApplications().GetAsync(appName); AssertValidApplication(application, getApplication); - Assert.ThrowsAsync(async () => _ = await rg.GetApplications().GetAsync(null)); + Assert.ThrowsAsync(async () => _ = await rg.GetArmApplications().GetAsync(null)); } - private static void AssertValidApplication(ApplicationResource model, ApplicationResource getResult) + private static void AssertValidApplication(ArmApplicationResource model, ArmApplicationResource getResult) { Assert.AreEqual(model.Data.Name, getResult.Data.Name); Assert.AreEqual(model.Data.Id, getResult.Data.Id); @@ -168,8 +168,8 @@ private static void AssertValidApplication(ApplicationResource model, Applicatio { Assert.NotNull(model.Data.SupportUrls); Assert.NotNull(getResult.Data.SupportUrls); - Assert.AreEqual(model.Data.SupportUrls.GovernmentCloud, getResult.Data.SupportUrls.GovernmentCloud); - Assert.AreEqual(model.Data.SupportUrls.PublicAzure, getResult.Data.SupportUrls.PublicAzure); + Assert.AreEqual(model.Data.SupportUrls.AzureGovernment, getResult.Data.SupportUrls.AzureGovernment); + Assert.AreEqual(model.Data.SupportUrls.AzurePublicCloud, getResult.Data.SupportUrls.AzurePublicCloud); } if (model.Data.Artifacts != null || getResult.Data.Artifacts != null) { @@ -180,7 +180,7 @@ private static void AssertValidApplication(ApplicationResource model, Applicatio { Assert.AreEqual(model.Data.Artifacts[i].Name, getResult.Data.Artifacts[i].Name); Assert.AreEqual(model.Data.Artifacts[i].Uri, getResult.Data.Artifacts[i].Uri); - Assert.AreEqual(model.Data.Artifacts[i].ApplicationArtifactType, getResult.Data.Artifacts[i].ApplicationArtifactType); + Assert.AreEqual(model.Data.Artifacts[i].ArmApplicationArtifactType, getResult.Data.Artifacts[i].ArmApplicationArtifactType); } } if (model.Data.CreatedBy != null || getResult.Data.CreatedBy != null) diff --git a/sdk/resources/Azure.ResourceManager.Resources/tests/Scenario/ApplicationDefinitionCollectionTests.cs b/sdk/resources/Azure.ResourceManager.Resources/tests/Scenario/ApplicationDefinitionCollectionTests.cs index a015a91283c64..56305bd6f7cc4 100644 --- a/sdk/resources/Azure.ResourceManager.Resources/tests/Scenario/ApplicationDefinitionCollectionTests.cs +++ b/sdk/resources/Azure.ResourceManager.Resources/tests/Scenario/ApplicationDefinitionCollectionTests.cs @@ -27,11 +27,11 @@ public async Task CreateOrUpdate() var lro = await subscription.GetResourceGroups().CreateOrUpdateAsync(WaitUntil.Completed, rgName, rgData); ResourceGroupResource rg = lro.Value; string applicationDefinitionName = Recording.GenerateAssetName("appDef-C-"); - ApplicationDefinitionData applicationDefinitionData = CreateApplicationDefinitionData(applicationDefinitionName); - ApplicationDefinitionResource applicationDefinition = (await rg.GetApplicationDefinitions().CreateOrUpdateAsync(WaitUntil.Completed, applicationDefinitionName, applicationDefinitionData)).Value; + ArmApplicationDefinitionData applicationDefinitionData = CreateApplicationDefinitionData(applicationDefinitionName); + ArmApplicationDefinitionResource applicationDefinition = (await rg.GetArmApplicationDefinitions().CreateOrUpdateAsync(WaitUntil.Completed, applicationDefinitionName, applicationDefinitionData)).Value; Assert.AreEqual(applicationDefinitionName, applicationDefinition.Data.Name); - Assert.ThrowsAsync(async () => _ = await rg.GetApplicationDefinitions().CreateOrUpdateAsync(WaitUntil.Completed, null, applicationDefinitionData)); - Assert.ThrowsAsync(async () => _ = await rg.GetApplicationDefinitions().CreateOrUpdateAsync(WaitUntil.Completed, applicationDefinitionName, null)); + Assert.ThrowsAsync(async () => _ = await rg.GetArmApplicationDefinitions().CreateOrUpdateAsync(WaitUntil.Completed, null, applicationDefinitionData)); + Assert.ThrowsAsync(async () => _ = await rg.GetArmApplicationDefinitions().CreateOrUpdateAsync(WaitUntil.Completed, applicationDefinitionName, null)); } [TestCase] @@ -44,10 +44,10 @@ public async Task List() var lro = await subscription.GetResourceGroups().CreateOrUpdateAsync(WaitUntil.Completed, rgName, rgData); ResourceGroupResource rg = lro.Value; string applicationDefinitionName = Recording.GenerateAssetName("appDef-L-"); - ApplicationDefinitionData applicationDefinitionData = CreateApplicationDefinitionData(applicationDefinitionName); - _ = await rg.GetApplicationDefinitions().CreateOrUpdateAsync(WaitUntil.Completed, applicationDefinitionName, applicationDefinitionData); + ArmApplicationDefinitionData applicationDefinitionData = CreateApplicationDefinitionData(applicationDefinitionName); + _ = await rg.GetArmApplicationDefinitions().CreateOrUpdateAsync(WaitUntil.Completed, applicationDefinitionName, applicationDefinitionData); int count = 0; - await foreach (var tempApplicationDefinition in rg.GetApplicationDefinitions().GetAllAsync()) + await foreach (var tempApplicationDefinition in rg.GetArmApplicationDefinitions().GetAllAsync()) { count++; } @@ -64,13 +64,13 @@ public async Task Get() var lro = await subscription.GetResourceGroups().CreateOrUpdateAsync(WaitUntil.Completed, rgName, rgData); ResourceGroupResource rg = lro.Value; string applicationDefinitionName = Recording.GenerateAssetName("appDef-G-"); - ApplicationDefinitionData applicationDefinitionData = CreateApplicationDefinitionData(applicationDefinitionName); - ApplicationDefinitionResource applicationDefinition = (await rg.GetApplicationDefinitions().CreateOrUpdateAsync(WaitUntil.Completed, applicationDefinitionName, applicationDefinitionData)).Value; - ApplicationDefinitionResource getApplicationDefinition = await rg.GetApplicationDefinitions().GetAsync(applicationDefinitionName); + ArmApplicationDefinitionData applicationDefinitionData = CreateApplicationDefinitionData(applicationDefinitionName); + ArmApplicationDefinitionResource applicationDefinition = (await rg.GetArmApplicationDefinitions().CreateOrUpdateAsync(WaitUntil.Completed, applicationDefinitionName, applicationDefinitionData)).Value; + ArmApplicationDefinitionResource getApplicationDefinition = await rg.GetArmApplicationDefinitions().GetAsync(applicationDefinitionName); AssertValidApplicationDefinition(applicationDefinition, getApplicationDefinition); } - private static void AssertValidApplicationDefinition(ApplicationDefinitionResource model, ApplicationDefinitionResource getResult) + private static void AssertValidApplicationDefinition(ArmApplicationDefinitionResource model, ArmApplicationDefinitionResource getResult) { Assert.AreEqual(model.Data.Name, getResult.Data.Name); Assert.AreEqual(model.Data.Id, getResult.Data.Id); @@ -86,7 +86,7 @@ private static void AssertValidApplicationDefinition(ApplicationDefinitionResour Assert.AreEqual(model.Data.Authorizations.Count, getResult.Data.Authorizations.Count); for (int i = 0; i < model.Data.Authorizations.Count; ++i) { - ApplicationAuthorization modelAuthorizations = model.Data.Authorizations[i], getResultAuthorizations = getResult.Data.Authorizations[i]; + ArmApplicationAuthorization modelAuthorizations = model.Data.Authorizations[i], getResultAuthorizations = getResult.Data.Authorizations[i]; AssertValidAuthorizations(modelAuthorizations, getResultAuthorizations); } } @@ -97,7 +97,7 @@ private static void AssertValidApplicationDefinition(ApplicationDefinitionResour Assert.AreEqual(model.Data.Artifacts.Count, getResult.Data.Artifacts.Count); for (int i = 0; i < model.Data.Artifacts.Count; ++i) { - ApplicationDefinitionArtifact modelArtifacts = model.Data.Artifacts[i], getResultArtifacts = getResult.Data.Artifacts[i]; + ArmApplicationDefinitionArtifact modelArtifacts = model.Data.Artifacts[i], getResultArtifacts = getResult.Data.Artifacts[i]; AssertValidArtifacts(modelArtifacts, getResultArtifacts); } } @@ -154,26 +154,26 @@ private static void AssertValidApplicationDefinition(ApplicationDefinitionResour Assert.AreEqual(model.Data.Policies.Count, getResult.Data.Policies.Count); for (int i = 0; i < model.Data.Policies.Count; ++i) { - ApplicationPolicy policy = model.Data.Policies[i], getPolicy = getResult.Data.Policies[i]; + ArmApplicationPolicy policy = model.Data.Policies[i], getPolicy = getResult.Data.Policies[i]; AssertValidPolicy(policy, getPolicy); } } } - private static void AssertValidAuthorizations(ApplicationAuthorization model, ApplicationAuthorization getResult) + private static void AssertValidAuthorizations(ArmApplicationAuthorization model, ArmApplicationAuthorization getResult) { Assert.AreEqual(model.PrincipalId, getResult.PrincipalId); Assert.AreEqual(model.RoleDefinitionId, getResult.RoleDefinitionId); } - private static void AssertValidArtifacts(ApplicationDefinitionArtifact model, ApplicationDefinitionArtifact getResult) + private static void AssertValidArtifacts(ArmApplicationDefinitionArtifact model, ArmApplicationDefinitionArtifact getResult) { Assert.AreEqual(model.Name, getResult.Name); Assert.AreEqual(model.Uri, getResult.Uri); - Assert.AreEqual(model.ApplicationArtifactType, getResult.ApplicationArtifactType); + Assert.AreEqual(model.ArmApplicationArtifactType, getResult.ArmApplicationArtifactType); } - private static void AssertValidPolicy(ApplicationPolicy model, ApplicationPolicy getResult) + private static void AssertValidPolicy(ArmApplicationPolicy model, ArmApplicationPolicy getResult) { Assert.AreEqual(model.Name, getResult.Name); Assert.AreEqual(model.Parameters, getResult.Parameters); diff --git a/sdk/resources/Azure.ResourceManager.Resources/tests/Scenario/ApplicationDefinitionOperationsTests.cs b/sdk/resources/Azure.ResourceManager.Resources/tests/Scenario/ApplicationDefinitionOperationsTests.cs index c88c6187e264e..5660d1337f3f5 100644 --- a/sdk/resources/Azure.ResourceManager.Resources/tests/Scenario/ApplicationDefinitionOperationsTests.cs +++ b/sdk/resources/Azure.ResourceManager.Resources/tests/Scenario/ApplicationDefinitionOperationsTests.cs @@ -26,8 +26,8 @@ public async Task Delete() var lro = await subscription.GetResourceGroups().CreateOrUpdateAsync(WaitUntil.Completed, rgName, rgData); ResourceGroupResource rg = lro.Value; string applicationDefinitionName = Recording.GenerateAssetName("appDef-C-"); - ApplicationDefinitionData applicationDefinitionData = CreateApplicationDefinitionData(applicationDefinitionName); - ApplicationDefinitionResource applicationDefinition = (await rg.GetApplicationDefinitions().CreateOrUpdateAsync(WaitUntil.Completed, applicationDefinitionName, applicationDefinitionData)).Value; + ArmApplicationDefinitionData applicationDefinitionData = CreateApplicationDefinitionData(applicationDefinitionName); + ArmApplicationDefinitionResource applicationDefinition = (await rg.GetArmApplicationDefinitions().CreateOrUpdateAsync(WaitUntil.Completed, applicationDefinitionName, applicationDefinitionData)).Value; await applicationDefinition.DeleteAsync(WaitUntil.Completed); var ex = Assert.ThrowsAsync(async () => await applicationDefinition.GetAsync()); Assert.AreEqual(404, ex.Status); diff --git a/sdk/resources/Azure.ResourceManager.Resources/tests/Scenario/ApplicationOperationsTests.cs b/sdk/resources/Azure.ResourceManager.Resources/tests/Scenario/ApplicationOperationsTests.cs index a69a053254bde..3b3f945593a03 100644 --- a/sdk/resources/Azure.ResourceManager.Resources/tests/Scenario/ApplicationOperationsTests.cs +++ b/sdk/resources/Azure.ResourceManager.Resources/tests/Scenario/ApplicationOperationsTests.cs @@ -26,11 +26,11 @@ public async Task Delete() var lro = await subscription.GetResourceGroups().CreateOrUpdateAsync(WaitUntil.Completed, rgName, rgData); ResourceGroupResource rg = lro.Value; string appDefName = Recording.GenerateAssetName("appDef-D-"); - ApplicationDefinitionData appDefData = CreateApplicationDefinitionData(appDefName); - ApplicationDefinitionResource appDef = (await rg.GetApplicationDefinitions().CreateOrUpdateAsync(WaitUntil.Completed, appDefName, appDefData)).Value; + ArmApplicationDefinitionData appDefData = CreateApplicationDefinitionData(appDefName); + ArmApplicationDefinitionResource appDef = (await rg.GetArmApplicationDefinitions().CreateOrUpdateAsync(WaitUntil.Completed, appDefName, appDefData)).Value; string appName = Recording.GenerateAssetName("application-D-"); - ApplicationData applicationData = CreateApplicationData(appDef.Id, subscription.Id + Recording.GenerateAssetName("/resourceGroups/managed-5-"), Recording.GenerateAssetName("s5")); - ApplicationResource application = (await rg.GetApplications().CreateOrUpdateAsync(WaitUntil.Completed, appName, applicationData)).Value; + ArmApplicationData applicationData = CreateApplicationData(appDef.Id, new ResourceIdentifier(subscription.Id + Recording.GenerateAssetName("/resourceGroups/managed-5-")), Recording.GenerateAssetName("s5")); + ArmApplicationResource application = (await rg.GetArmApplications().CreateOrUpdateAsync(WaitUntil.Completed, appName, applicationData)).Value; await application.DeleteAsync(WaitUntil.Completed); var ex = Assert.ThrowsAsync(async () => await application.GetAsync()); Assert.AreEqual(404, ex.Status); diff --git a/sdk/resources/Azure.ResourceManager.Resources/tests/Scenario/DeploymentCollectionTests.cs b/sdk/resources/Azure.ResourceManager.Resources/tests/Scenario/DeploymentCollectionTests.cs index 12d97a11b1d91..a43458f5d8728 100644 --- a/sdk/resources/Azure.ResourceManager.Resources/tests/Scenario/DeploymentCollectionTests.cs +++ b/sdk/resources/Azure.ResourceManager.Resources/tests/Scenario/DeploymentCollectionTests.cs @@ -27,11 +27,11 @@ public async Task CreateOrUpdate() var lro = await subscription.GetResourceGroups().CreateOrUpdateAsync(WaitUntil.Completed, rgName, rgData); ResourceGroupResource rg = lro.Value; string deployName = Recording.GenerateAssetName("deployEx-C-"); - DeploymentInput deploymentData = CreateDeploymentData(CreateDeploymentProperties()); - DeploymentResource deployment = (await rg.GetDeployments().CreateOrUpdateAsync(WaitUntil.Completed, deployName, deploymentData)).Value; + var deploymentData = CreateDeploymentData(CreateDeploymentProperties()); + ArmDeploymentResource deployment = (await rg.GetArmDeployments().CreateOrUpdateAsync(WaitUntil.Completed, deployName, deploymentData)).Value; Assert.AreEqual(deployName, deployment.Data.Name); - Assert.ThrowsAsync(async () => _ = await rg.GetDeployments().CreateOrUpdateAsync(WaitUntil.Completed, null, deploymentData)); - Assert.ThrowsAsync(async () => _ = await rg.GetDeployments().CreateOrUpdateAsync(WaitUntil.Completed, deployName, null)); + Assert.ThrowsAsync(async () => _ = await rg.GetArmDeployments().CreateOrUpdateAsync(WaitUntil.Completed, null, deploymentData)); + Assert.ThrowsAsync(async () => _ = await rg.GetArmDeployments().CreateOrUpdateAsync(WaitUntil.Completed, deployName, null)); } [TestCase] @@ -44,11 +44,11 @@ public async Task CreateOrUpdateUsingString() var lro = await subscription.GetResourceGroups().CreateOrUpdateAsync(WaitUntil.Completed, rgName, rgData); ResourceGroupResource rg = lro.Value; string deployExName = Recording.GenerateAssetName("deployEx-C-"); - DeploymentInput deploymentData = CreateDeploymentData(CreateDeploymentPropertiesUsingString()); - DeploymentResource deployment = (await rg.GetDeployments().CreateOrUpdateAsync(WaitUntil.Completed, deployExName, deploymentData)).Value; + var deploymentData = CreateDeploymentData(CreateDeploymentPropertiesUsingString()); + ArmDeploymentResource deployment = (await rg.GetArmDeployments().CreateOrUpdateAsync(WaitUntil.Completed, deployExName, deploymentData)).Value; Assert.AreEqual(deployExName, deployment.Data.Name); - Assert.ThrowsAsync(async () => _ = await rg.GetDeployments().CreateOrUpdateAsync(WaitUntil.Completed, null, deploymentData)); - Assert.ThrowsAsync(async () => _ = await rg.GetDeployments().CreateOrUpdateAsync(WaitUntil.Completed, deployExName, null)); + Assert.ThrowsAsync(async () => _ = await rg.GetArmDeployments().CreateOrUpdateAsync(WaitUntil.Completed, null, deploymentData)); + Assert.ThrowsAsync(async () => _ = await rg.GetArmDeployments().CreateOrUpdateAsync(WaitUntil.Completed, deployExName, null)); } [TestCase] @@ -61,11 +61,11 @@ public async Task CreateOrUpdateUsingJsonElement() var lro = await subscription.GetResourceGroups().CreateOrUpdateAsync(WaitUntil.Completed, rgName, rgData); ResourceGroupResource rg = lro.Value; string deployExName = Recording.GenerateAssetName("deployEx-C-"); - DeploymentInput deploymentData = CreateDeploymentData(CreateDeploymentPropertiesUsingJsonElement()); - DeploymentResource deployment = (await rg.GetDeployments().CreateOrUpdateAsync(WaitUntil.Completed, deployExName, deploymentData)).Value; + var deploymentData = CreateDeploymentData(CreateDeploymentPropertiesUsingJsonElement()); + ArmDeploymentResource deployment = (await rg.GetArmDeployments().CreateOrUpdateAsync(WaitUntil.Completed, deployExName, deploymentData)).Value; Assert.AreEqual(deployExName, deployment.Data.Name); - Assert.ThrowsAsync(async () => _ = await rg.GetDeployments().CreateOrUpdateAsync(WaitUntil.Completed, null, deploymentData)); - Assert.ThrowsAsync(async () => _ = await rg.GetDeployments().CreateOrUpdateAsync(WaitUntil.Completed, deployExName, null)); + Assert.ThrowsAsync(async () => _ = await rg.GetArmDeployments().CreateOrUpdateAsync(WaitUntil.Completed, null, deploymentData)); + Assert.ThrowsAsync(async () => _ = await rg.GetArmDeployments().CreateOrUpdateAsync(WaitUntil.Completed, deployExName, null)); } [TestCase] @@ -78,10 +78,10 @@ public async Task List() var lro = await subscription.GetResourceGroups().CreateOrUpdateAsync(WaitUntil.Completed, rgName, rgData); ResourceGroupResource rg = lro.Value; string deployName = Recording.GenerateAssetName("deployEx-L-"); - DeploymentInput deploymentData = CreateDeploymentData(CreateDeploymentProperties()); - _ = await rg.GetDeployments().CreateOrUpdateAsync(WaitUntil.Completed, deployName, deploymentData); + var deploymentData = CreateDeploymentData(CreateDeploymentProperties()); + _ = await rg.GetArmDeployments().CreateOrUpdateAsync(WaitUntil.Completed, deployName, deploymentData); int count = 0; - await foreach (var tempDeployment in rg.GetDeployments().GetAllAsync()) + await foreach (var tempDeployment in rg.GetArmDeployments().GetAllAsync()) { count++; } @@ -98,13 +98,13 @@ public async Task Get() var lro = await subscription.GetResourceGroups().CreateOrUpdateAsync(WaitUntil.Completed, rgName, rgData); ResourceGroupResource rg = lro.Value; string deployName = Recording.GenerateAssetName("deployEx-G-"); - DeploymentInput deploymentData = CreateDeploymentData(CreateDeploymentProperties()); - DeploymentResource deployment = (await rg.GetDeployments().CreateOrUpdateAsync(WaitUntil.Completed, deployName, deploymentData)).Value; - DeploymentResource getDeployment = await rg.GetDeployments().GetAsync(deployName); + var deploymentData = CreateDeploymentData(CreateDeploymentProperties()); + ArmDeploymentResource deployment = (await rg.GetArmDeployments().CreateOrUpdateAsync(WaitUntil.Completed, deployName, deploymentData)).Value; + ArmDeploymentResource getDeployment = await rg.GetArmDeployments().GetAsync(deployName); AssertValidDeployment(deployment, getDeployment); } - private static void AssertValidDeployment(DeploymentResource model, DeploymentResource getResult) + private static void AssertValidDeployment(ArmDeploymentResource model, ArmDeploymentResource getResult) { Assert.AreEqual(model.Data.Name, getResult.Data.Name); Assert.AreEqual(model.Data.Id, getResult.Data.Id); diff --git a/sdk/resources/Azure.ResourceManager.Resources/tests/Scenario/DeploymentOperationCollectionTests.cs b/sdk/resources/Azure.ResourceManager.Resources/tests/Scenario/DeploymentOperationCollectionTests.cs index 122cdae099bc4..69355cec1220a 100644 --- a/sdk/resources/Azure.ResourceManager.Resources/tests/Scenario/DeploymentOperationCollectionTests.cs +++ b/sdk/resources/Azure.ResourceManager.Resources/tests/Scenario/DeploymentOperationCollectionTests.cs @@ -26,8 +26,8 @@ public async Task List() var lro = await subscription.GetResourceGroups().CreateOrUpdateAsync(WaitUntil.Completed, rgName, rgData); ResourceGroupResource rg = lro.Value; string deployName = Recording.GenerateAssetName("deployEx-"); - DeploymentInput deploymentData = CreateDeploymentData(CreateDeploymentProperties()); - DeploymentResource deployment = (await rg.GetDeployments().CreateOrUpdateAsync(WaitUntil.Completed, deployName, deploymentData)).Value; + var deploymentData = CreateDeploymentData(CreateDeploymentProperties()); + ArmDeploymentResource deployment = (await rg.GetArmDeployments().CreateOrUpdateAsync(WaitUntil.Completed, deployName, deploymentData)).Value; int count = 0; await foreach (var tempDeploymentOperation in deployment.GetDeploymentOperationsAsync()) { @@ -46,16 +46,16 @@ public async Task Get() var lro = await subscription.GetResourceGroups().CreateOrUpdateAsync(WaitUntil.Completed, rgName, rgData); ResourceGroupResource rg = lro.Value; string deployName = Recording.GenerateAssetName("deployEx-"); - DeploymentInput deploymentData = CreateDeploymentData(CreateDeploymentProperties()); - DeploymentResource deployment = (await rg.GetDeployments().CreateOrUpdateAsync(WaitUntil.Completed, deployName, deploymentData)).Value; + var deploymentData = CreateDeploymentData(CreateDeploymentProperties()); + ArmDeploymentResource deployment = (await rg.GetArmDeployments().CreateOrUpdateAsync(WaitUntil.Completed, deployName, deploymentData)).Value; await foreach (var tempDeploymentOperation in deployment.GetDeploymentOperationsAsync()) { - DeploymentOperation getDeploymentOperation = await deployment.GetDeploymentOperationAsync(tempDeploymentOperation.OperationId); + var getDeploymentOperation = await deployment.GetDeploymentOperationAsync(tempDeploymentOperation.OperationId); AssertValidDeploymentOperation(tempDeploymentOperation, getDeploymentOperation); } } - private static void AssertValidDeploymentOperation(DeploymentOperation model, DeploymentOperation getResult) + private static void AssertValidDeploymentOperation(ArmDeploymentOperation model, ArmDeploymentOperation getResult) { Assert.AreEqual(model.Id, getResult.Id); Assert.AreEqual(model.OperationId, getResult.OperationId); diff --git a/sdk/resources/Azure.ResourceManager.Resources/tests/Scenario/DeploymentOperationsTests.cs b/sdk/resources/Azure.ResourceManager.Resources/tests/Scenario/DeploymentOperationsTests.cs index acb84be04b456..da9c58627342b 100644 --- a/sdk/resources/Azure.ResourceManager.Resources/tests/Scenario/DeploymentOperationsTests.cs +++ b/sdk/resources/Azure.ResourceManager.Resources/tests/Scenario/DeploymentOperationsTests.cs @@ -26,8 +26,8 @@ public async Task Delete() var lro = await subscription.GetResourceGroups().CreateOrUpdateAsync(WaitUntil.Completed, rgName, rgData); ResourceGroupResource rg = lro.Value; string deployName = Recording.GenerateAssetName("deployEx-D-"); - DeploymentInput deploymentData = CreateDeploymentData(CreateDeploymentProperties()); - DeploymentResource deployment = (await rg.GetDeployments().CreateOrUpdateAsync(WaitUntil.Completed, deployName, deploymentData)).Value; + var deploymentData = CreateDeploymentData(CreateDeploymentProperties()); + var deployment = (await rg.GetArmDeployments().CreateOrUpdateAsync(WaitUntil.Completed, deployName, deploymentData)).Value; await deployment.DeleteAsync(WaitUntil.Completed); var ex = Assert.ThrowsAsync(async () => await deployment.GetAsync()); Assert.AreEqual(404, ex.Status); @@ -42,9 +42,9 @@ public async Task WhatIfAtResourceGroup() ResourceGroupData rgData = new ResourceGroupData(AzureLocation.WestUS2); var lro = await subscription.GetResourceGroups().CreateOrUpdateAsync(WaitUntil.Completed, rgName, rgData); ResourceGroupResource rg = lro.Value; - ResourceIdentifier deploymentResourceIdentifier = DeploymentResource.CreateResourceIdentifier(rg.Id, "testDeploymentWhatIf"); - DeploymentResource deployment = Client.GetDeploymentResource(deploymentResourceIdentifier); - DeploymentWhatIf deploymentWhatIf = new DeploymentWhatIf(new DeploymentWhatIfProperties(DeploymentMode.Incremental) + ResourceIdentifier deploymentResourceIdentifier = ArmDeploymentResource.CreateResourceIdentifier(rg.Id, "testDeploymentWhatIf"); + ArmDeploymentResource deployment = Client.GetArmDeploymentResource(deploymentResourceIdentifier); + var deploymentWhatIf = new ArmDeploymentWhatIf(new ArmDeploymentWhatIfProperties(ArmDeploymentMode.Incremental) { Template = CreateDeploymentPropertiesUsingString().Template, Parameters = CreateDeploymentPropertiesUsingJsonElement().Parameters diff --git a/sdk/resources/Azure.ResourceManager.Resources/tests/Scenario/DeploymentScriptCollectionTests.cs b/sdk/resources/Azure.ResourceManager.Resources/tests/Scenario/DeploymentScriptCollectionTests.cs index ca81111e574e2..53dd0f1986819 100644 --- a/sdk/resources/Azure.ResourceManager.Resources/tests/Scenario/DeploymentScriptCollectionTests.cs +++ b/sdk/resources/Azure.ResourceManager.Resources/tests/Scenario/DeploymentScriptCollectionTests.cs @@ -27,11 +27,11 @@ public async Task CreateOrUpdate() var lro = await subscription.GetResourceGroups().CreateOrUpdateAsync(WaitUntil.Completed, rgName, rgData); ResourceGroupResource rg = lro.Value; string deployScriptName = Recording.GenerateAssetName("deployScript-C-"); - DeploymentScriptData deploymentScriptData = await GetDeploymentScriptDataAsync(); - DeploymentScriptResource deploymentScript = (await rg.GetDeploymentScripts().CreateOrUpdateAsync(WaitUntil.Completed, deployScriptName, deploymentScriptData)).Value; + var deploymentScriptData = await GetDeploymentScriptDataAsync(); + var deploymentScript = (await rg.GetArmDeploymentScripts().CreateOrUpdateAsync(WaitUntil.Completed, deployScriptName, deploymentScriptData)).Value; Assert.AreEqual(deployScriptName, deploymentScript.Data.Name); - Assert.ThrowsAsync(async () => _ = await rg.GetDeploymentScripts().CreateOrUpdateAsync(WaitUntil.Completed, null, deploymentScriptData)); - Assert.ThrowsAsync(async () => _ = await rg.GetDeploymentScripts().CreateOrUpdateAsync(WaitUntil.Completed, deployScriptName, null)); + Assert.ThrowsAsync(async () => _ = await rg.GetArmDeploymentScripts().CreateOrUpdateAsync(WaitUntil.Completed, null, deploymentScriptData)); + Assert.ThrowsAsync(async () => _ = await rg.GetArmDeploymentScripts().CreateOrUpdateAsync(WaitUntil.Completed, deployScriptName, null)); } [TestCase] @@ -44,10 +44,10 @@ public async Task ListByRg() var lro = await subscription.GetResourceGroups().CreateOrUpdateAsync(WaitUntil.Completed, rgName, rgData); ResourceGroupResource rg = lro.Value; string deployScriptName = Recording.GenerateAssetName("deployScript-L-"); - DeploymentScriptData deploymentScriptData = await GetDeploymentScriptDataAsync(); - _ = await rg.GetDeploymentScripts().CreateOrUpdateAsync(WaitUntil.Completed, deployScriptName, deploymentScriptData); + var deploymentScriptData = await GetDeploymentScriptDataAsync(); + _ = await rg.GetArmDeploymentScripts().CreateOrUpdateAsync(WaitUntil.Completed, deployScriptName, deploymentScriptData); int count = 0; - await foreach (var tempDeploymentScript in rg.GetDeploymentScripts().GetAllAsync()) + await foreach (var tempDeploymentScript in rg.GetArmDeploymentScripts().GetAllAsync()) { count++; } @@ -64,10 +64,10 @@ public async Task ListBySub() var lro = await subscription.GetResourceGroups().CreateOrUpdateAsync(WaitUntil.Completed, rgName, rgData); ResourceGroupResource rg = lro.Value; string deployScriptName = Recording.GenerateAssetName("deployScript-L-"); - DeploymentScriptData deploymentScriptData = await GetDeploymentScriptDataAsync(); - _ = await rg.GetDeploymentScripts().CreateOrUpdateAsync(WaitUntil.Completed, deployScriptName, deploymentScriptData); + var deploymentScriptData = await GetDeploymentScriptDataAsync(); + _ = await rg.GetArmDeploymentScripts().CreateOrUpdateAsync(WaitUntil.Completed, deployScriptName, deploymentScriptData); int count = 0; - await foreach (var tempDeploymentScript in subscription.GetDeploymentScriptsAsync()) + await foreach (var tempDeploymentScript in subscription.GetArmDeploymentScriptsAsync()) { if (tempDeploymentScript.Data.Name == deployScriptName) { @@ -87,10 +87,10 @@ public async Task Get() var lro = await subscription.GetResourceGroups().CreateOrUpdateAsync(WaitUntil.Completed, rgName, rgData); ResourceGroupResource rg = lro.Value; string deployScriptName = Recording.GenerateAssetName("deployScript-G-"); - DeploymentScriptData deploymentScriptData = await GetDeploymentScriptDataAsync(); - DeploymentScriptResource tempDeploymentScript = (await rg.GetDeploymentScripts().CreateOrUpdateAsync(WaitUntil.Completed, deployScriptName, deploymentScriptData)).Value; + var deploymentScriptData = await GetDeploymentScriptDataAsync(); + var tempDeploymentScript = (await rg.GetArmDeploymentScripts().CreateOrUpdateAsync(WaitUntil.Completed, deployScriptName, deploymentScriptData)).Value; AzurePowerShellScript deploymentScript = tempDeploymentScript.Data as AzurePowerShellScript; - DeploymentScriptResource tempGetDeploymentScript = await rg.GetDeploymentScripts().GetAsync(deployScriptName); + ArmDeploymentScriptResource tempGetDeploymentScript = await rg.GetArmDeploymentScripts().GetAsync(deployScriptName); AzurePowerShellScript getdeploymentScript = tempGetDeploymentScript.Data as AzurePowerShellScript; AssertValidDeploymentScript(deploymentScript, getdeploymentScript); } diff --git a/sdk/resources/Azure.ResourceManager.Resources/tests/Scenario/DeploymentScriptOperationsTests.cs b/sdk/resources/Azure.ResourceManager.Resources/tests/Scenario/DeploymentScriptOperationsTests.cs index d6908566d27fb..acd51bd604d6f 100644 --- a/sdk/resources/Azure.ResourceManager.Resources/tests/Scenario/DeploymentScriptOperationsTests.cs +++ b/sdk/resources/Azure.ResourceManager.Resources/tests/Scenario/DeploymentScriptOperationsTests.cs @@ -26,8 +26,8 @@ public async Task Delete() var lro = await subscription.GetResourceGroups().CreateOrUpdateAsync(WaitUntil.Completed, rgName, rgData); ResourceGroupResource rg = lro.Value; string deployScriptName = Recording.GenerateAssetName("deployScript-D-"); - DeploymentScriptData deploymentScriptData = await GetDeploymentScriptDataAsync(); - DeploymentScriptResource deploymentScript = (await rg.GetDeploymentScripts().CreateOrUpdateAsync(WaitUntil.Completed, deployScriptName, deploymentScriptData)).Value; + var deploymentScriptData = await GetDeploymentScriptDataAsync(); + var deploymentScript = (await rg.GetArmDeploymentScripts().CreateOrUpdateAsync(WaitUntil.Completed, deployScriptName, deploymentScriptData)).Value; await deploymentScript.DeleteAsync(WaitUntil.Completed); var ex = Assert.ThrowsAsync(async () => await deploymentScript.GetAsync()); Assert.AreEqual(404, ex.Status);