From 8b5fc149f3abb95ff197b08c84343a2780f31215 Mon Sep 17 00:00:00 2001 From: Dapeng Zhang Date: Wed, 22 Feb 2023 15:41:21 +0800 Subject: [PATCH] regen for https://github.com/Azure/autorest.csharp/pull/3119 (#34256) * regenerate * regenerate after merge * regenerate again after merge * update version * refresh api files --- eng/Packages.Data.props | 2 +- .../Generated/ApiManagementServiceResource.cs | 6 +++--- .../Generated/AppPlatformServiceResource.cs | 4 ++-- .../VirtualMachineScaleSetResource.cs | 2 +- .../ContainerAppManagedEnvironmentResource.cs | 2 +- .../src/Generated/ContainerAppResource.cs | 2 +- .../ContainerServiceAgentPoolResource.cs | 2 +- .../ContainerServiceManagedClusterResource.cs | 2 +- .../Generated/CassandraKeyspaceResource.cs | 2 +- .../src/Generated/CassandraTableResource.cs | 2 +- .../Generated/CosmosDBSqlContainerResource.cs | 2 +- .../Generated/CosmosDBSqlDatabaseResource.cs | 2 +- .../src/Generated/CosmosDBTableResource.cs | 2 +- .../src/Generated/GremlinDatabaseResource.cs | 2 +- .../src/Generated/GremlinGraphResource.cs | 2 +- .../Generated/MongoDBCollectionResource.cs | 2 +- .../src/Generated/MongoDBDatabaseResource.cs | 2 +- .../Generated/DataBoxEdgeDeviceResource.cs | 6 +++--- .../src/Generated/DataBoxEdgeRoleResource.cs | 2 +- .../Generated/NetworkConnectionResource.cs | 2 +- .../Extensions/ArmResourceExtensionClient.cs | 2 +- .../ResourceGroupResourceExtensionClient.cs | 2 +- .../Generated/EventHubsNamespaceResource.cs | 2 +- .../Extensions/ArmResourceExtensionClient.cs | 2 +- .../Extensions/ArmResourceExtensionClient.cs | 2 +- .../MySql/Generated/MySqlServerResource.cs | 2 +- .../Generated/PostgreSqlServerResource.cs | 2 +- .../RecoveryServicesVaultResource.cs | 2 +- .../src/Generated/RelayNamespaceResource.cs | 2 +- .../Extensions/ArmResourceExtensionClient.cs | 2 +- .../Generated/ArmDeploymentScriptResource.cs | 2 +- .../Extensions/ArmResourceExtensionClient.cs | 2 +- .../Generated/IotSecuritySolutionResource.cs | 2 +- .../Generated/ServiceBusNamespaceResource.cs | 2 +- .../src/Generated/ManagedInstanceResource.cs | 2 +- .../src/Generated/SqlDatabaseResource.cs | 8 +++---- .../src/Generated/SqlServerResource.cs | 2 +- .../src/Generated/BlobContainerResource.cs | 2 +- .../src/Generated/StorageAccountResource.cs | 12 +++++------ .../api/Azure.Storage.Blobs.net6.0.cs | 3 +++ .../Azure.Storage.Files.DataLake.net6.0.cs | 21 +++++++++++-------- .../TenantResourceExtensionClient.cs | 2 +- .../src/Generated/SynapseSqlPoolResource.cs | 12 +++++------ .../src/Generated/SynapseWorkspaceResource.cs | 6 +++--- .../SubscriptionResourceExtensionClient.cs | 2 +- .../TenantResourceExtensionClient.cs | 2 +- .../AppServiceEnvironmentResource.cs | 4 ++-- .../src/Generated/AppServicePlanResource.cs | 2 +- .../TenantResourceExtensionClient.cs | 2 +- .../src/Generated/SiteInstanceResource.cs | 2 +- .../src/Generated/SiteSlotInstanceResource.cs | 2 +- .../src/Generated/WebSiteResource.cs | 20 +++++++++--------- .../src/Generated/WebSiteSlotResource.cs | 20 +++++++++--------- .../src/Generated/PhpWorkloadResource.cs | 2 +- 54 files changed, 106 insertions(+), 100 deletions(-) diff --git a/eng/Packages.Data.props b/eng/Packages.Data.props index a64e2584effcc..787499b267562 100644 --- a/eng/Packages.Data.props +++ b/eng/Packages.Data.props @@ -160,7 +160,7 @@ All should have PrivateAssets="All" set so they don't become package dependencies --> - + diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiManagementServiceResource.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiManagementServiceResource.cs index eafa87e6aa849..d66c4e91f8cdf 100644 --- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiManagementServiceResource.cs +++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiManagementServiceResource.cs @@ -1153,21 +1153,21 @@ public virtual Response GetApiManagementPor /// Returns a object. public virtual ApiManagementPortalSignInSettingResource GetApiManagementPortalSignInSetting() { - return new ApiManagementPortalSignInSettingResource(Client, new ResourceIdentifier(Id.ToString() + "/portalsettings/signin")); + return new ApiManagementPortalSignInSettingResource(Client, Id.AppendChildResource("portalsettings", "signin")); } /// Gets an object representing a ApiManagementPortalSignUpSettingResource along with the instance operations that can be performed on it in the ApiManagementService. /// Returns a object. public virtual ApiManagementPortalSignUpSettingResource GetApiManagementPortalSignUpSetting() { - return new ApiManagementPortalSignUpSettingResource(Client, new ResourceIdentifier(Id.ToString() + "/portalsettings/signup")); + return new ApiManagementPortalSignUpSettingResource(Client, Id.AppendChildResource("portalsettings", "signup")); } /// Gets an object representing a ApiManagementPortalDelegationSettingResource along with the instance operations that can be performed on it in the ApiManagementService. /// Returns a object. public virtual ApiManagementPortalDelegationSettingResource GetApiManagementPortalDelegationSetting() { - return new ApiManagementPortalDelegationSettingResource(Client, new ResourceIdentifier(Id.ToString() + "/portalsettings/delegation")); + return new ApiManagementPortalDelegationSettingResource(Client, Id.AppendChildResource("portalsettings", "delegation")); } /// Gets a collection of ApiManagementPrivateEndpointConnectionResources in the ApiManagementService. diff --git a/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/AppPlatformServiceResource.cs b/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/AppPlatformServiceResource.cs index 51537176a339d..16af20298f063 100644 --- a/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/AppPlatformServiceResource.cs +++ b/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/AppPlatformServiceResource.cs @@ -103,7 +103,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// Returns a object. public virtual AppPlatformConfigServerResource GetAppPlatformConfigServer() { - return new AppPlatformConfigServerResource(Client, new ResourceIdentifier(Id.ToString() + "/configServers/default")); + return new AppPlatformConfigServerResource(Client, Id.AppendChildResource("configServers", "default")); } /// Gets a collection of AppPlatformConfigurationServiceResources in the AppPlatformService. @@ -269,7 +269,7 @@ public virtual Response GetAppPlatformBuildServ /// Returns a object. public virtual AppPlatformMonitoringSettingResource GetAppPlatformMonitoringSetting() { - return new AppPlatformMonitoringSettingResource(Client, new ResourceIdentifier(Id.ToString() + "/monitoringSettings/default")); + return new AppPlatformMonitoringSettingResource(Client, Id.AppendChildResource("monitoringSettings", "default")); } /// Gets a collection of AppPlatformAppResources in the AppPlatformService. diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/VirtualMachineScaleSetResource.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/VirtualMachineScaleSetResource.cs index 5cc8516401ec0..2b13fda17aeba 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/VirtualMachineScaleSetResource.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/VirtualMachineScaleSetResource.cs @@ -153,7 +153,7 @@ public virtual Response GetVirtualMachi /// Returns a object. public virtual VirtualMachineScaleSetRollingUpgradeResource GetVirtualMachineScaleSetRollingUpgrade() { - return new VirtualMachineScaleSetRollingUpgradeResource(Client, new ResourceIdentifier(Id.ToString() + "/rollingUpgrades/latest")); + return new VirtualMachineScaleSetRollingUpgradeResource(Client, Id.AppendChildResource("rollingUpgrades", "latest")); } /// Gets a collection of VirtualMachineScaleSetVmResources in the VirtualMachineScaleSet. diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/ContainerAppManagedEnvironmentResource.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/ContainerAppManagedEnvironmentResource.cs index 6b73a4bee5393..75a83b36227ab 100644 --- a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/ContainerAppManagedEnvironmentResource.cs +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/ContainerAppManagedEnvironmentResource.cs @@ -256,7 +256,7 @@ public virtual Response GetConta /// Returns a object. public virtual ContainerAppManagedEnvironmentDetectorResourcePropertyResource GetContainerAppManagedEnvironmentDetectorResourceProperty() { - return new ContainerAppManagedEnvironmentDetectorResourcePropertyResource(Client, new ResourceIdentifier(Id.ToString() + "/detectorProperties/rootApi")); + return new ContainerAppManagedEnvironmentDetectorResourcePropertyResource(Client, Id.AppendChildResource("detectorProperties", "rootApi")); } /// Gets a collection of ContainerAppManagedEnvironmentStorageResources in the ContainerAppManagedEnvironment. diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/ContainerAppResource.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/ContainerAppResource.cs index 7aaece995b19a..63039c6a01368 100644 --- a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/ContainerAppResource.cs +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/ContainerAppResource.cs @@ -146,7 +146,7 @@ public virtual Response GetContainerAppAuthConfi /// Returns a object. public virtual ContainerAppDetectorPropertyResource GetContainerAppDetectorProperty() { - return new ContainerAppDetectorPropertyResource(Client, new ResourceIdentifier(Id.ToString() + "/detectorProperties/rootApi")); + return new ContainerAppDetectorPropertyResource(Client, Id.AppendChildResource("detectorProperties", "rootApi")); } /// Gets a collection of ContainerAppRevisionResources in the ContainerApp. diff --git a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/ContainerServiceAgentPoolResource.cs b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/ContainerServiceAgentPoolResource.cs index 6fcc27b9d98d3..5c03d89ec61e5 100644 --- a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/ContainerServiceAgentPoolResource.cs +++ b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/ContainerServiceAgentPoolResource.cs @@ -91,7 +91,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// Returns a object. public virtual AgentPoolUpgradeProfileResource GetAgentPoolUpgradeProfile() { - return new AgentPoolUpgradeProfileResource(Client, new ResourceIdentifier(Id.ToString() + "/upgradeProfiles/default")); + return new AgentPoolUpgradeProfileResource(Client, Id.AppendChildResource("upgradeProfiles", "default")); } /// diff --git a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/ContainerServiceManagedClusterResource.cs b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/ContainerServiceManagedClusterResource.cs index 1de663cf7437e..53761c8302e7f 100644 --- a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/ContainerServiceManagedClusterResource.cs +++ b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/ContainerServiceManagedClusterResource.cs @@ -105,7 +105,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// Returns a object. public virtual ManagedClusterUpgradeProfileResource GetManagedClusterUpgradeProfile() { - return new ManagedClusterUpgradeProfileResource(Client, new ResourceIdentifier(Id.ToString() + "/upgradeProfiles/default")); + return new ManagedClusterUpgradeProfileResource(Client, Id.AppendChildResource("upgradeProfiles", "default")); } /// Gets a collection of ContainerServiceMaintenanceConfigurationResources in the ContainerServiceManagedCluster. diff --git a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/CassandraKeyspaceResource.cs b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/CassandraKeyspaceResource.cs index 5e7010f25400a..8e9f8dbe2b6da 100644 --- a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/CassandraKeyspaceResource.cs +++ b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/CassandraKeyspaceResource.cs @@ -92,7 +92,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// Returns a object. public virtual CassandraKeyspaceThroughputSettingResource GetCassandraKeyspaceThroughputSetting() { - return new CassandraKeyspaceThroughputSettingResource(Client, new ResourceIdentifier(Id.ToString() + "/throughputSettings/default")); + return new CassandraKeyspaceThroughputSettingResource(Client, Id.AppendChildResource("throughputSettings", "default")); } /// Gets a collection of CassandraTableResources in the CassandraKeyspace. diff --git a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/CassandraTableResource.cs b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/CassandraTableResource.cs index 48a1c8950abf1..c2b5361071409 100644 --- a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/CassandraTableResource.cs +++ b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/CassandraTableResource.cs @@ -92,7 +92,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// Returns a object. public virtual CassandraTableThroughputSettingResource GetCassandraTableThroughputSetting() { - return new CassandraTableThroughputSettingResource(Client, new ResourceIdentifier(Id.ToString() + "/throughputSettings/default")); + return new CassandraTableThroughputSettingResource(Client, Id.AppendChildResource("throughputSettings", "default")); } /// diff --git a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/CosmosDBSqlContainerResource.cs b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/CosmosDBSqlContainerResource.cs index 2f74e7f4a98eb..db6f905910343 100644 --- a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/CosmosDBSqlContainerResource.cs +++ b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/CosmosDBSqlContainerResource.cs @@ -92,7 +92,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// Returns a object. public virtual CosmosDBSqlContainerThroughputSettingResource GetCosmosDBSqlContainerThroughputSetting() { - return new CosmosDBSqlContainerThroughputSettingResource(Client, new ResourceIdentifier(Id.ToString() + "/throughputSettings/default")); + return new CosmosDBSqlContainerThroughputSettingResource(Client, Id.AppendChildResource("throughputSettings", "default")); } /// Gets a collection of CosmosDBSqlStoredProcedureResources in the CosmosDBSqlContainer. diff --git a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/CosmosDBSqlDatabaseResource.cs b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/CosmosDBSqlDatabaseResource.cs index 80a69a12f46df..53c6f46a444b2 100644 --- a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/CosmosDBSqlDatabaseResource.cs +++ b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/CosmosDBSqlDatabaseResource.cs @@ -92,7 +92,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// Returns a object. public virtual CosmosDBSqlDatabaseThroughputSettingResource GetCosmosDBSqlDatabaseThroughputSetting() { - return new CosmosDBSqlDatabaseThroughputSettingResource(Client, new ResourceIdentifier(Id.ToString() + "/throughputSettings/default")); + return new CosmosDBSqlDatabaseThroughputSettingResource(Client, Id.AppendChildResource("throughputSettings", "default")); } /// Gets a collection of CosmosDBSqlContainerResources in the CosmosDBSqlDatabase. diff --git a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/CosmosDBTableResource.cs b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/CosmosDBTableResource.cs index 388a294f2e9e6..be147a63e4177 100644 --- a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/CosmosDBTableResource.cs +++ b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/CosmosDBTableResource.cs @@ -92,7 +92,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// Returns a object. public virtual CosmosTableThroughputSettingResource GetCosmosTableThroughputSetting() { - return new CosmosTableThroughputSettingResource(Client, new ResourceIdentifier(Id.ToString() + "/throughputSettings/default")); + return new CosmosTableThroughputSettingResource(Client, Id.AppendChildResource("throughputSettings", "default")); } /// diff --git a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/GremlinDatabaseResource.cs b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/GremlinDatabaseResource.cs index aee6616e14973..2bdd4c627dc8b 100644 --- a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/GremlinDatabaseResource.cs +++ b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/GremlinDatabaseResource.cs @@ -92,7 +92,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// Returns a object. public virtual GremlinDatabaseThroughputSettingResource GetGremlinDatabaseThroughputSetting() { - return new GremlinDatabaseThroughputSettingResource(Client, new ResourceIdentifier(Id.ToString() + "/throughputSettings/default")); + return new GremlinDatabaseThroughputSettingResource(Client, Id.AppendChildResource("throughputSettings", "default")); } /// Gets a collection of GremlinGraphResources in the GremlinDatabase. diff --git a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/GremlinGraphResource.cs b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/GremlinGraphResource.cs index adb34d816e408..616cba9c2337e 100644 --- a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/GremlinGraphResource.cs +++ b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/GremlinGraphResource.cs @@ -92,7 +92,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// Returns a object. public virtual GremlinGraphThroughputSettingResource GetGremlinGraphThroughputSetting() { - return new GremlinGraphThroughputSettingResource(Client, new ResourceIdentifier(Id.ToString() + "/throughputSettings/default")); + return new GremlinGraphThroughputSettingResource(Client, Id.AppendChildResource("throughputSettings", "default")); } /// diff --git a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/MongoDBCollectionResource.cs b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/MongoDBCollectionResource.cs index 480fbf1956ed3..0b49d10a35a00 100644 --- a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/MongoDBCollectionResource.cs +++ b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/MongoDBCollectionResource.cs @@ -92,7 +92,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// Returns a object. public virtual MongoDBCollectionThroughputSettingResource GetMongoDBCollectionThroughputSetting() { - return new MongoDBCollectionThroughputSettingResource(Client, new ResourceIdentifier(Id.ToString() + "/throughputSettings/default")); + return new MongoDBCollectionThroughputSettingResource(Client, Id.AppendChildResource("throughputSettings", "default")); } /// diff --git a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/MongoDBDatabaseResource.cs b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/MongoDBDatabaseResource.cs index 7ce8b81ba0e29..825bce3374700 100644 --- a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/MongoDBDatabaseResource.cs +++ b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/MongoDBDatabaseResource.cs @@ -92,7 +92,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// Returns a object. public virtual MongoDBDatabaseThroughputSettingResource GetMongoDBDatabaseThroughputSetting() { - return new MongoDBDatabaseThroughputSettingResource(Client, new ResourceIdentifier(Id.ToString() + "/throughputSettings/default")); + return new MongoDBDatabaseThroughputSettingResource(Client, Id.AppendChildResource("throughputSettings", "default")); } /// Gets a collection of MongoDBCollectionResources in the MongoDBDatabase. diff --git a/sdk/databoxedge/Azure.ResourceManager.DataBoxEdge/src/Generated/DataBoxEdgeDeviceResource.cs b/sdk/databoxedge/Azure.ResourceManager.DataBoxEdge/src/Generated/DataBoxEdgeDeviceResource.cs index 23141cf65a5e0..c0131edb6a6a4 100644 --- a/sdk/databoxedge/Azure.ResourceManager.DataBoxEdge/src/Generated/DataBoxEdgeDeviceResource.cs +++ b/sdk/databoxedge/Azure.ResourceManager.DataBoxEdge/src/Generated/DataBoxEdgeDeviceResource.cs @@ -215,14 +215,14 @@ public virtual Response GetBandwidthSchedule(string n /// Returns a object. public virtual DiagnosticProactiveLogCollectionSettingResource GetDiagnosticProactiveLogCollectionSetting() { - return new DiagnosticProactiveLogCollectionSettingResource(Client, new ResourceIdentifier(Id.ToString() + "/diagnosticProactiveLogCollectionSettings/default")); + return new DiagnosticProactiveLogCollectionSettingResource(Client, Id.AppendChildResource("diagnosticProactiveLogCollectionSettings", "default")); } /// Gets an object representing a DiagnosticRemoteSupportSettingResource along with the instance operations that can be performed on it in the DataBoxEdgeDevice. /// Returns a object. public virtual DiagnosticRemoteSupportSettingResource GetDiagnosticRemoteSupportSetting() { - return new DiagnosticRemoteSupportSettingResource(Client, new ResourceIdentifier(Id.ToString() + "/diagnosticRemoteSupportSettings/default")); + return new DiagnosticRemoteSupportSettingResource(Client, Id.AppendChildResource("diagnosticRemoteSupportSettings", "default")); } /// Gets a collection of DataBoxEdgeJobResources in the DataBoxEdgeDevice. @@ -282,7 +282,7 @@ public virtual Response GetDataBoxEdgeJob(string name, C /// Returns a object. public virtual DataBoxEdgeOrderResource GetDataBoxEdgeOrder() { - return new DataBoxEdgeOrderResource(Client, new ResourceIdentifier(Id.ToString() + "/orders/default")); + return new DataBoxEdgeOrderResource(Client, Id.AppendChildResource("orders", "default")); } /// Gets a collection of DataBoxEdgeRoleResources in the DataBoxEdgeDevice. diff --git a/sdk/databoxedge/Azure.ResourceManager.DataBoxEdge/src/Generated/DataBoxEdgeRoleResource.cs b/sdk/databoxedge/Azure.ResourceManager.DataBoxEdge/src/Generated/DataBoxEdgeRoleResource.cs index 25289c2ae64e1..7b69e6271bbdf 100644 --- a/sdk/databoxedge/Azure.ResourceManager.DataBoxEdge/src/Generated/DataBoxEdgeRoleResource.cs +++ b/sdk/databoxedge/Azure.ResourceManager.DataBoxEdge/src/Generated/DataBoxEdgeRoleResource.cs @@ -143,7 +143,7 @@ public virtual Response GetDataBoxEdgeRoleAddon(st /// Returns a object. public virtual MonitoringMetricConfigurationResource GetMonitoringMetricConfiguration() { - return new MonitoringMetricConfigurationResource(Client, new ResourceIdentifier(Id.ToString() + "/monitoringConfig/default")); + return new MonitoringMetricConfigurationResource(Client, Id.AppendChildResource("monitoringConfig", "default")); } /// diff --git a/sdk/devcenter/Azure.ResourceManager.DevCenter/src/Generated/NetworkConnectionResource.cs b/sdk/devcenter/Azure.ResourceManager.DevCenter/src/Generated/NetworkConnectionResource.cs index 21c8c097b9fd5..f2d0c7932ec90 100644 --- a/sdk/devcenter/Azure.ResourceManager.DevCenter/src/Generated/NetworkConnectionResource.cs +++ b/sdk/devcenter/Azure.ResourceManager.DevCenter/src/Generated/NetworkConnectionResource.cs @@ -93,7 +93,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// Returns a object. public virtual HealthCheckStatusDetailResource GetHealthCheckStatusDetail() { - return new HealthCheckStatusDetailResource(Client, new ResourceIdentifier(Id.ToString() + "/healthChecks/latest")); + return new HealthCheckStatusDetailResource(Client, Id.AppendChildResource("healthChecks", "latest")); } /// diff --git a/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Extensions/ArmResourceExtensionClient.cs b/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Extensions/ArmResourceExtensionClient.cs index 52d7740c71171..c8a1b5fefc0cd 100644 --- a/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Extensions/ArmResourceExtensionClient.cs +++ b/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Extensions/ArmResourceExtensionClient.cs @@ -42,7 +42,7 @@ public virtual EventSubscriptionCollection GetEventSubscriptions() /// Returns a object. public virtual ExtensionTopicResource GetExtensionTopic() { - return new ExtensionTopicResource(Client, new ResourceIdentifier(Id.ToString() + "/providers/Microsoft.EventGrid/extensionTopics/default")); + return new ExtensionTopicResource(Client, Id.AppendProviderResource("Microsoft.EventGrid", "extensionTopics", "default")); } } } diff --git a/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Extensions/ResourceGroupResourceExtensionClient.cs b/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Extensions/ResourceGroupResourceExtensionClient.cs index ba156fca5bc19..8e4c0f582bd3d 100644 --- a/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Extensions/ResourceGroupResourceExtensionClient.cs +++ b/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Extensions/ResourceGroupResourceExtensionClient.cs @@ -63,7 +63,7 @@ public virtual EventGridTopicCollection GetEventGridTopics() /// Returns a object. public virtual PartnerConfigurationResource GetPartnerConfiguration() { - return new PartnerConfigurationResource(Client, new ResourceIdentifier(Id.ToString() + "/providers/Microsoft.EventGrid/partnerConfigurations/default")); + return new PartnerConfigurationResource(Client, Id.AppendProviderResource("Microsoft.EventGrid", "partnerConfigurations", "default")); } /// Gets a collection of PartnerNamespaceResources in the ResourceGroupResource. diff --git a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/EventHubsNamespaceResource.cs b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/EventHubsNamespaceResource.cs index b0b57a45e0b30..1ccd62e56e651 100644 --- a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/EventHubsNamespaceResource.cs +++ b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/EventHubsNamespaceResource.cs @@ -109,7 +109,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// Returns a object. public virtual EventHubsNetworkRuleSetResource GetEventHubsNetworkRuleSet() { - return new EventHubsNetworkRuleSetResource(Client, new ResourceIdentifier(Id.ToString() + "/networkRuleSets/default")); + return new EventHubsNetworkRuleSetResource(Client, Id.AppendChildResource("networkRuleSets", "default")); } /// Gets a collection of EventHubsNamespaceAuthorizationRuleResources in the EventHubsNamespace. diff --git a/sdk/managedserviceidentity/Azure.ResourceManager.ManagedServiceIdentities/src/Generated/Extensions/ArmResourceExtensionClient.cs b/sdk/managedserviceidentity/Azure.ResourceManager.ManagedServiceIdentities/src/Generated/Extensions/ArmResourceExtensionClient.cs index 1d8d655cf28bf..9ba7f0fbb0940 100644 --- a/sdk/managedserviceidentity/Azure.ResourceManager.ManagedServiceIdentities/src/Generated/Extensions/ArmResourceExtensionClient.cs +++ b/sdk/managedserviceidentity/Azure.ResourceManager.ManagedServiceIdentities/src/Generated/Extensions/ArmResourceExtensionClient.cs @@ -35,7 +35,7 @@ private string GetApiVersionOrNull(ResourceType resourceType) /// Returns a object. public virtual SystemAssignedIdentityResource GetSystemAssignedIdentity() { - return new SystemAssignedIdentityResource(Client, new ResourceIdentifier(Id.ToString() + "/providers/Microsoft.ManagedIdentity/identities/default")); + return new SystemAssignedIdentityResource(Client, Id.AppendProviderResource("Microsoft.ManagedIdentity", "identities", "default")); } } } diff --git a/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Extensions/ArmResourceExtensionClient.cs b/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Extensions/ArmResourceExtensionClient.cs index a09f56bb1f794..348afc195b5b1 100644 --- a/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Extensions/ArmResourceExtensionClient.cs +++ b/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Extensions/ArmResourceExtensionClient.cs @@ -49,7 +49,7 @@ public virtual DiagnosticSettingsCategoryCollection GetDiagnosticSettingsCategor /// Returns a object. public virtual VmInsightsOnboardingStatusResource GetVmInsightsOnboardingStatus() { - return new VmInsightsOnboardingStatusResource(Client, new ResourceIdentifier(Id.ToString() + "/providers/Microsoft.Insights/vmInsightsOnboardingStatuses/default")); + return new VmInsightsOnboardingStatusResource(Client, Id.AppendProviderResource("Microsoft.Insights", "vmInsightsOnboardingStatuses", "default")); } /// Gets a collection of DataCollectionRuleAssociationResources in the ArmResource. diff --git a/sdk/mysql/Azure.ResourceManager.MySql/src/MySql/Generated/MySqlServerResource.cs b/sdk/mysql/Azure.ResourceManager.MySql/src/MySql/Generated/MySqlServerResource.cs index b7b9872d367ed..81d85178d080f 100644 --- a/sdk/mysql/Azure.ResourceManager.MySql/src/MySql/Generated/MySqlServerResource.cs +++ b/sdk/mysql/Azure.ResourceManager.MySql/src/MySql/Generated/MySqlServerResource.cs @@ -329,7 +329,7 @@ public virtual Response GetMySqlConfiguration(string /// Returns a object. public virtual MySqlServerAdministratorResource GetMySqlServerAdministrator() { - return new MySqlServerAdministratorResource(Client, new ResourceIdentifier(Id.ToString() + "/administrators/activeDirectory")); + return new MySqlServerAdministratorResource(Client, Id.AppendChildResource("administrators", "activeDirectory")); } /// Gets a collection of MySqlServerSecurityAlertPolicyResources in the MySqlServer. diff --git a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSql/Generated/PostgreSqlServerResource.cs b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSql/Generated/PostgreSqlServerResource.cs index f78dba7f9f7b3..00f831eeb5b13 100644 --- a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSql/Generated/PostgreSqlServerResource.cs +++ b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSql/Generated/PostgreSqlServerResource.cs @@ -321,7 +321,7 @@ public virtual Response GetPostgreSqlConfigurat /// Returns a object. public virtual PostgreSqlServerAdministratorResource GetPostgreSqlServerAdministrator() { - return new PostgreSqlServerAdministratorResource(Client, new ResourceIdentifier(Id.ToString() + "/administrators/activeDirectory")); + return new PostgreSqlServerAdministratorResource(Client, Id.AppendChildResource("administrators", "activeDirectory")); } /// Gets a collection of PostgreSqlServerSecurityAlertPolicyResources in the PostgreSqlServer. diff --git a/sdk/recoveryservices/Azure.ResourceManager.RecoveryServices/src/Generated/RecoveryServicesVaultResource.cs b/sdk/recoveryservices/Azure.ResourceManager.RecoveryServices/src/Generated/RecoveryServicesVaultResource.cs index 494a4128ce488..d1225c3c02f05 100644 --- a/sdk/recoveryservices/Azure.ResourceManager.RecoveryServices/src/Generated/RecoveryServicesVaultResource.cs +++ b/sdk/recoveryservices/Azure.ResourceManager.RecoveryServices/src/Generated/RecoveryServicesVaultResource.cs @@ -162,7 +162,7 @@ public virtual Response GetRecoveryServices /// Returns a object. public virtual RecoveryServicesVaultExtendedInfoResource GetRecoveryServicesVaultExtendedInfo() { - return new RecoveryServicesVaultExtendedInfoResource(Client, new ResourceIdentifier(Id.ToString() + "/extendedInformation/vaultExtendedInfo")); + return new RecoveryServicesVaultExtendedInfoResource(Client, Id.AppendChildResource("extendedInformation", "vaultExtendedInfo")); } /// diff --git a/sdk/relay/Azure.ResourceManager.Relay/src/Generated/RelayNamespaceResource.cs b/sdk/relay/Azure.ResourceManager.Relay/src/Generated/RelayNamespaceResource.cs index e2a326ce5565a..2091b4480d416 100644 --- a/sdk/relay/Azure.ResourceManager.Relay/src/Generated/RelayNamespaceResource.cs +++ b/sdk/relay/Azure.ResourceManager.Relay/src/Generated/RelayNamespaceResource.cs @@ -146,7 +146,7 @@ public virtual Response GetRelayNamespa /// Returns a object. public virtual RelayNetworkRuleSetResource GetRelayNetworkRuleSet() { - return new RelayNetworkRuleSetResource(Client, new ResourceIdentifier(Id.ToString() + "/networkRuleSets/default")); + return new RelayNetworkRuleSetResource(Client, Id.AppendChildResource("networkRuleSets", "default")); } /// Gets a collection of RelayHybridConnectionResources in the RelayNamespace. diff --git a/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Extensions/ArmResourceExtensionClient.cs b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Extensions/ArmResourceExtensionClient.cs index df8f48f2640e2..9683ff6bee371 100644 --- a/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Extensions/ArmResourceExtensionClient.cs +++ b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Extensions/ArmResourceExtensionClient.cs @@ -35,7 +35,7 @@ private string GetApiVersionOrNull(ResourceType resourceType) /// Returns a object. public virtual AvailabilityStatusResource GetAvailabilityStatus() { - return new AvailabilityStatusResource(Client, new ResourceIdentifier(Id.ToString() + "/providers/Microsoft.ResourceHealth/availabilityStatuses/current")); + return new AvailabilityStatusResource(Client, Id.AppendProviderResource("Microsoft.ResourceHealth", "availabilityStatuses", "current")); } } } diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/ArmDeploymentScriptResource.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/ArmDeploymentScriptResource.cs index a42d9b7a9a0ad..bcf70787ac008 100644 --- a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/ArmDeploymentScriptResource.cs +++ b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/ArmDeploymentScriptResource.cs @@ -97,7 +97,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// Returns a object. public virtual ScriptLogResource GetScriptLog() { - return new ScriptLogResource(Client, new ResourceIdentifier(Id.ToString() + "/logs/default")); + return new ScriptLogResource(Client, Id.AppendChildResource("logs", "default")); } /// diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Extensions/ArmResourceExtensionClient.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Extensions/ArmResourceExtensionClient.cs index 106a1c85a7398..9c6f44cb01bff 100644 --- a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Extensions/ArmResourceExtensionClient.cs +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Extensions/ArmResourceExtensionClient.cs @@ -42,7 +42,7 @@ public virtual ComplianceResultCollection GetComplianceResults() /// Returns a object. public virtual AdvancedThreatProtectionSettingResource GetAdvancedThreatProtectionSetting() { - return new AdvancedThreatProtectionSettingResource(Client, new ResourceIdentifier(Id.ToString() + "/providers/Microsoft.Security/advancedThreatProtectionSettings/current")); + return new AdvancedThreatProtectionSettingResource(Client, Id.AppendProviderResource("Microsoft.Security", "advancedThreatProtectionSettings", "current")); } /// Gets a collection of DeviceSecurityGroupResources in the ArmResource. diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/IotSecuritySolutionResource.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/IotSecuritySolutionResource.cs index 0b453942fbb24..6a65ac8503eb5 100644 --- a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/IotSecuritySolutionResource.cs +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/IotSecuritySolutionResource.cs @@ -93,7 +93,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// Returns a object. public virtual IotSecuritySolutionAnalyticsModelResource GetIotSecuritySolutionAnalyticsModel() { - return new IotSecuritySolutionAnalyticsModelResource(Client, new ResourceIdentifier(Id.ToString() + "/analyticsModels/default")); + return new IotSecuritySolutionAnalyticsModelResource(Client, Id.AppendChildResource("analyticsModels", "default")); } /// diff --git a/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/ServiceBusNamespaceResource.cs b/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/ServiceBusNamespaceResource.cs index 4d01f4b30372b..cbaea746c3db7 100644 --- a/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/ServiceBusNamespaceResource.cs +++ b/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/ServiceBusNamespaceResource.cs @@ -102,7 +102,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// Returns a object. public virtual ServiceBusNetworkRuleSetResource GetServiceBusNetworkRuleSet() { - return new ServiceBusNetworkRuleSetResource(Client, new ResourceIdentifier(Id.ToString() + "/networkRuleSets/default")); + return new ServiceBusNetworkRuleSetResource(Client, Id.AppendChildResource("networkRuleSets", "default")); } /// Gets a collection of ServiceBusPrivateEndpointConnectionResources in the ServiceBusNamespace. diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ManagedInstanceResource.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ManagedInstanceResource.cs index 2474f6dcaf86b..d069ce83ec9af 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ManagedInstanceResource.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ManagedInstanceResource.cs @@ -613,7 +613,7 @@ public virtual Response GetRecoverableManage /// Returns a object. public virtual SqlAgentConfigurationResource GetSqlAgentConfiguration() { - return new SqlAgentConfigurationResource(Client, new ResourceIdentifier(Id.ToString() + "/sqlAgent/current")); + return new SqlAgentConfigurationResource(Client, Id.AppendChildResource("sqlAgent", "current")); } /// Gets a collection of RestorableDroppedManagedDatabaseResources in the ManagedInstance. diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlDatabaseResource.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlDatabaseResource.cs index 4103415637dff..9db0c5abd3545 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlDatabaseResource.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlDatabaseResource.cs @@ -131,7 +131,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// Returns a object. public virtual DataMaskingPolicyResource GetDataMaskingPolicy() { - return new DataMaskingPolicyResource(Client, new ResourceIdentifier(Id.ToString() + "/dataMaskingPolicies/Default")); + return new DataMaskingPolicyResource(Client, Id.AppendChildResource("dataMaskingPolicies", "Default")); } /// Gets a collection of GeoBackupPolicyResources in the SqlDatabase. @@ -240,7 +240,7 @@ public virtual Response GetSqlDatabaseAdvisor(string /// Returns a object. public virtual SqlDatabaseAutomaticTuningResource GetSqlDatabaseAutomaticTuning() { - return new SqlDatabaseAutomaticTuningResource(Client, new ResourceIdentifier(Id.ToString() + "/automaticTuning/current")); + return new SqlDatabaseAutomaticTuningResource(Client, Id.AppendChildResource("automaticTuning", "current")); } /// Gets a collection of SqlDatabaseSchemaResources in the SqlDatabase. @@ -496,14 +496,14 @@ public virtual Response GetLongTermRetentionPol /// Returns a object. public virtual MaintenanceWindowOptionResource GetMaintenanceWindowOption() { - return new MaintenanceWindowOptionResource(Client, new ResourceIdentifier(Id.ToString() + "/maintenanceWindowOptions/current")); + return new MaintenanceWindowOptionResource(Client, Id.AppendChildResource("maintenanceWindowOptions", "current")); } /// Gets an object representing a MaintenanceWindowsResource along with the instance operations that can be performed on it in the SqlDatabase. /// Returns a object. public virtual MaintenanceWindowsResource GetMaintenanceWindows() { - return new MaintenanceWindowsResource(Client, new ResourceIdentifier(Id.ToString() + "/maintenanceWindows/current")); + return new MaintenanceWindowsResource(Client, Id.AppendChildResource("maintenanceWindows", "current")); } /// Gets a collection of SqlServerDatabaseRestorePointResources in the SqlDatabase. diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlServerResource.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlServerResource.cs index cfe5eb6e8fd4e..7b512421e1b7b 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlServerResource.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlServerResource.cs @@ -641,7 +641,7 @@ public virtual Response GetSqlPrivateLinkResource(string /// Returns a object. public virtual SqlServerAutomaticTuningResource GetSqlServerAutomaticTuning() { - return new SqlServerAutomaticTuningResource(Client, new ResourceIdentifier(Id.ToString() + "/automaticTuning/current")); + return new SqlServerAutomaticTuningResource(Client, Id.AppendChildResource("automaticTuning", "current")); } /// Gets a collection of SqlServerAzureADAdministratorResources in the SqlServer. diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/BlobContainerResource.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/BlobContainerResource.cs index cd058707bdda3..778e9ba65b3e0 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/BlobContainerResource.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/BlobContainerResource.cs @@ -91,7 +91,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// Returns a object. public virtual ImmutabilityPolicyResource GetImmutabilityPolicy() { - return new ImmutabilityPolicyResource(Client, new ResourceIdentifier(Id.ToString() + "/immutabilityPolicies/default")); + return new ImmutabilityPolicyResource(Client, Id.AppendChildResource("immutabilityPolicies", "default")); } /// diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/StorageAccountResource.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/StorageAccountResource.cs index 9e617b2192b87..e216665ea0ce0 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/StorageAccountResource.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/StorageAccountResource.cs @@ -97,14 +97,14 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// Returns a object. public virtual StorageAccountManagementPolicyResource GetStorageAccountManagementPolicy() { - return new StorageAccountManagementPolicyResource(Client, new ResourceIdentifier(Id.ToString() + "/managementPolicies/default")); + return new StorageAccountManagementPolicyResource(Client, Id.AppendChildResource("managementPolicies", "default")); } /// Gets an object representing a BlobInventoryPolicyResource along with the instance operations that can be performed on it in the StorageAccount. /// Returns a object. public virtual BlobInventoryPolicyResource GetBlobInventoryPolicy() { - return new BlobInventoryPolicyResource(Client, new ResourceIdentifier(Id.ToString() + "/inventoryPolicies/default")); + return new BlobInventoryPolicyResource(Client, Id.AppendChildResource("inventoryPolicies", "default")); } /// Gets a collection of StoragePrivateEndpointConnectionResources in the StorageAccount. @@ -323,28 +323,28 @@ public virtual Response GetEncryptionScope(string encry /// Returns a object. public virtual BlobServiceResource GetBlobService() { - return new BlobServiceResource(Client, new ResourceIdentifier(Id.ToString() + "/blobServices/default")); + return new BlobServiceResource(Client, Id.AppendChildResource("blobServices", "default")); } /// Gets an object representing a FileServiceResource along with the instance operations that can be performed on it in the StorageAccount. /// Returns a object. public virtual FileServiceResource GetFileService() { - return new FileServiceResource(Client, new ResourceIdentifier(Id.ToString() + "/fileServices/default")); + return new FileServiceResource(Client, Id.AppendChildResource("fileServices", "default")); } /// Gets an object representing a QueueServiceResource along with the instance operations that can be performed on it in the StorageAccount. /// Returns a object. public virtual QueueServiceResource GetQueueService() { - return new QueueServiceResource(Client, new ResourceIdentifier(Id.ToString() + "/queueServices/default")); + return new QueueServiceResource(Client, Id.AppendChildResource("queueServices", "default")); } /// Gets an object representing a TableServiceResource along with the instance operations that can be performed on it in the StorageAccount. /// Returns a object. public virtual TableServiceResource GetTableService() { - return new TableServiceResource(Client, new ResourceIdentifier(Id.ToString() + "/tableServices/default")); + return new TableServiceResource(Client, Id.AppendChildResource("tableServices", "default")); } /// diff --git a/sdk/storage/Azure.Storage.Blobs/api/Azure.Storage.Blobs.net6.0.cs b/sdk/storage/Azure.Storage.Blobs/api/Azure.Storage.Blobs.net6.0.cs index 948199db8d38c..283a0f29ae2f8 100644 --- a/sdk/storage/Azure.Storage.Blobs/api/Azure.Storage.Blobs.net6.0.cs +++ b/sdk/storage/Azure.Storage.Blobs/api/Azure.Storage.Blobs.net6.0.cs @@ -486,6 +486,7 @@ public BlobDownloadDetails() { } public System.Uri CopySource { get { throw null; } } public Azure.Storage.Blobs.Models.CopyStatus CopyStatus { get { throw null; } } public string CopyStatusDescription { get { throw null; } } + public System.DateTimeOffset CreatedOn { get { throw null; } } public string EncryptionKeySha256 { get { throw null; } } public string EncryptionScope { get { throw null; } } public Azure.ETag ETag { get { throw null; } } @@ -1015,7 +1016,9 @@ public static partial class BlobsModelFactory [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public static Azure.Storage.Blobs.Models.BlobCopyInfo BlobCopyInfo(Azure.ETag eTag, System.DateTimeOffset lastModified, string copyId, Azure.Storage.Blobs.Models.CopyStatus copyStatus) { throw null; } public static Azure.Storage.Blobs.Models.BlobCopyInfo BlobCopyInfo(Azure.ETag eTag, System.DateTimeOffset lastModified, string versionId, string copyId, Azure.Storage.Blobs.Models.CopyStatus copyStatus) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public static Azure.Storage.Blobs.Models.BlobDownloadDetails BlobDownloadDetails(Azure.Storage.Blobs.Models.BlobType blobType, long contentLength, string contentType, byte[] contentHash, System.DateTimeOffset lastModified, System.Collections.Generic.IDictionary metadata, string contentRange, string contentEncoding, string cacheControl, string contentDisposition, string contentLanguage, long blobSequenceNumber, System.DateTimeOffset copyCompletedOn, string copyStatusDescription, string copyId, string copyProgress, System.Uri copySource, Azure.Storage.Blobs.Models.CopyStatus copyStatus, Azure.Storage.Blobs.Models.LeaseDurationType leaseDuration, Azure.Storage.Blobs.Models.LeaseState leaseState, Azure.Storage.Blobs.Models.LeaseStatus leaseStatus, string acceptRanges, int blobCommittedBlockCount, bool isServerEncrypted, string encryptionKeySha256, string encryptionScope, byte[] blobContentHash, long tagCount, string versionId, bool isSealed, System.Collections.Generic.IList objectReplicationSourceProperties, string objectReplicationDestinationPolicy) { throw null; } + public static Azure.Storage.Blobs.Models.BlobDownloadDetails BlobDownloadDetails(Azure.Storage.Blobs.Models.BlobType blobType, long contentLength, string contentType, byte[] contentHash, System.DateTimeOffset lastModified, System.Collections.Generic.IDictionary metadata, string contentRange, string contentEncoding, string cacheControl, string contentDisposition, string contentLanguage, long blobSequenceNumber, System.DateTimeOffset copyCompletedOn, string copyStatusDescription, string copyId, string copyProgress, System.Uri copySource, Azure.Storage.Blobs.Models.CopyStatus copyStatus, Azure.Storage.Blobs.Models.LeaseDurationType leaseDuration, Azure.Storage.Blobs.Models.LeaseState leaseState, Azure.Storage.Blobs.Models.LeaseStatus leaseStatus, string acceptRanges, int blobCommittedBlockCount, bool isServerEncrypted, string encryptionKeySha256, string encryptionScope, byte[] blobContentHash, long tagCount, string versionId, bool isSealed, System.Collections.Generic.IList objectReplicationSourceProperties, string objectReplicationDestinationPolicy, bool hasLegalHold, System.DateTimeOffset createdOn) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public static Azure.Storage.Blobs.Models.BlobDownloadDetails BlobDownloadDetails(System.DateTimeOffset lastModified, System.Collections.Generic.IDictionary metadata, string contentRange, string contentEncoding, string cacheControl, string contentDisposition, string contentLanguage, long blobSequenceNumber, System.DateTimeOffset copyCompletedOn, string copyStatusDescription, string copyId, string copyProgress, System.Uri copySource, Azure.Storage.Blobs.Models.CopyStatus copyStatus, Azure.Storage.Blobs.Models.LeaseDurationType leaseDuration, Azure.Storage.Blobs.Models.LeaseState leaseState, Azure.Storage.Blobs.Models.LeaseStatus leaseStatus, string acceptRanges, int blobCommittedBlockCount, bool isServerEncrypted, string encryptionKeySha256, string encryptionScope, byte[] blobContentHash, long tagCount, string versionId, bool isSealed, System.Collections.Generic.IList objectReplicationSourceProperties, string objectReplicationDestinationPolicy) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] diff --git a/sdk/storage/Azure.Storage.Files.DataLake/api/Azure.Storage.Files.DataLake.net6.0.cs b/sdk/storage/Azure.Storage.Files.DataLake/api/Azure.Storage.Files.DataLake.net6.0.cs index 5949d2d551549..332b8bcacf2eb 100644 --- a/sdk/storage/Azure.Storage.Files.DataLake/api/Azure.Storage.Files.DataLake.net6.0.cs +++ b/sdk/storage/Azure.Storage.Files.DataLake/api/Azure.Storage.Files.DataLake.net6.0.cs @@ -561,7 +561,7 @@ public partial class DataLakeFileAppendOptions public DataLakeFileAppendOptions() { } public byte[] ContentHash { get { throw null; } set { } } public bool? Flush { get { throw null; } set { } } - public Azure.Storage.Files.DataLake.Models.LeaseAction? LeaseAction { get { throw null; } set { } } + public Azure.Storage.Files.DataLake.Models.DataLakeLeaseAction? LeaseAction { get { throw null; } set { } } public System.TimeSpan? LeaseDuration { get { throw null; } set { } } public string LeaseId { get { throw null; } set { } } public System.IProgress ProgressHandler { get { throw null; } set { } } @@ -579,7 +579,7 @@ public DataLakeFileFlushOptions() { } public bool? Close { get { throw null; } set { } } public Azure.Storage.Files.DataLake.Models.DataLakeRequestConditions Conditions { get { throw null; } set { } } public Azure.Storage.Files.DataLake.Models.PathHttpHeaders HttpHeaders { get { throw null; } set { } } - public Azure.Storage.Files.DataLake.Models.LeaseAction? LeaseAction { get { throw null; } set { } } + public Azure.Storage.Files.DataLake.Models.DataLakeLeaseAction? LeaseAction { get { throw null; } set { } } public System.TimeSpan? LeaseDuration { get { throw null; } set { } } public string ProposedLeaseId { get { throw null; } set { } } public bool? RetainUncommittedData { get { throw null; } set { } } @@ -650,6 +650,13 @@ internal DataLakeLease() { } public string LeaseId { get { throw null; } } public int? LeaseTime { get { throw null; } } } + public enum DataLakeLeaseAction + { + Acquire = 0, + AutoRenew = 1, + Release = 2, + AcquireRelease = 3, + } public enum DataLakeLeaseDuration { Infinite = 0, @@ -679,7 +686,9 @@ public DataLakeMetrics() { } public static partial class DataLakeModelFactory { public static Azure.Storage.Files.DataLake.Models.DataLakeQueryError DataLakeQueryError(string name = null, string description = null, bool isFatal = false, long position = (long)0) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public static Azure.Storage.Files.DataLake.Models.FileDownloadDetails FileDownloadDetails(System.DateTimeOffset lastModified, System.Collections.Generic.IDictionary metadata, string contentRange, Azure.ETag eTag, string contentEncoding, string cacheControl, string contentDisposition, string contentLanguage, System.DateTimeOffset copyCompletionTime, string copyStatusDescription, string copyId, string copyProgress, System.Uri copySource, Azure.Storage.Files.DataLake.Models.CopyStatus copyStatus, Azure.Storage.Files.DataLake.Models.DataLakeLeaseDuration leaseDuration, Azure.Storage.Files.DataLake.Models.DataLakeLeaseState leaseState, Azure.Storage.Files.DataLake.Models.DataLakeLeaseStatus leaseStatus, string acceptRanges, bool isServerEncrypted, string encryptionKeySha256, byte[] contentHash) { throw null; } + public static Azure.Storage.Files.DataLake.Models.FileDownloadDetails FileDownloadDetails(System.DateTimeOffset lastModified, System.Collections.Generic.IDictionary metadata, string contentRange, Azure.ETag eTag, string contentEncoding, string cacheControl, string contentDisposition, string contentLanguage, System.DateTimeOffset copyCompletionTime, string copyStatusDescription, string copyId, string copyProgress, System.Uri copySource, Azure.Storage.Files.DataLake.Models.CopyStatus copyStatus, Azure.Storage.Files.DataLake.Models.DataLakeLeaseDuration leaseDuration, Azure.Storage.Files.DataLake.Models.DataLakeLeaseState leaseState, Azure.Storage.Files.DataLake.Models.DataLakeLeaseStatus leaseStatus, string acceptRanges, bool isServerEncrypted, string encryptionKeySha256, byte[] contentHash, System.DateTimeOffset createdOn) { throw null; } public static Azure.Storage.Files.DataLake.Models.FileDownloadInfo FileDownloadInfo(long contentLength, System.IO.Stream content, byte[] contentHash, Azure.Storage.Files.DataLake.Models.FileDownloadDetails properties) { throw null; } public static Azure.Storage.Files.DataLake.Models.FileSystemInfo FileSystemInfo(Azure.ETag etag, System.DateTimeOffset lastModified) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] @@ -841,6 +850,7 @@ internal FileDownloadDetails() { } public System.Uri CopySource { get { throw null; } } public Azure.Storage.Files.DataLake.Models.CopyStatus CopyStatus { get { throw null; } } public string CopyStatusDescription { get { throw null; } } + public System.DateTimeOffset CreatedOn { get { throw null; } } public string EncryptionKeySha256 { get { throw null; } } public Azure.ETag ETag { get { throw null; } } public bool IsServerEncrypted { get { throw null; } } @@ -910,13 +920,6 @@ public enum FileSystemTraits None = 0, Metadata = 1, } - public enum LeaseAction - { - Acquire = 0, - AutoRenew = 1, - Release = 2, - AcquireRelease = 3, - } public partial class PathAccessControl { internal PathAccessControl() { } diff --git a/sdk/subscription/Azure.ResourceManager.Subscription/src/Generated/Extensions/TenantResourceExtensionClient.cs b/sdk/subscription/Azure.ResourceManager.Subscription/src/Generated/Extensions/TenantResourceExtensionClient.cs index b1e11e7ec32ce..7bc08b2df6392 100644 --- a/sdk/subscription/Azure.ResourceManager.Subscription/src/Generated/Extensions/TenantResourceExtensionClient.cs +++ b/sdk/subscription/Azure.ResourceManager.Subscription/src/Generated/Extensions/TenantResourceExtensionClient.cs @@ -54,7 +54,7 @@ public virtual SubscriptionAliasCollection GetSubscriptionAliases() /// Returns a object. public virtual TenantPolicyResource GetTenantPolicy() { - return new TenantPolicyResource(Client, new ResourceIdentifier(Id.ToString() + "/providers/Microsoft.Subscription/policies/default")); + return new TenantPolicyResource(Client, Id.AppendProviderResource("Microsoft.Subscription", "policies", "default")); } /// Gets a collection of BillingAccountPolicyResources in the TenantResource. diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/SynapseSqlPoolResource.cs b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/SynapseSqlPoolResource.cs index 56ea770027dfd..291db46089409 100644 --- a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/SynapseSqlPoolResource.cs +++ b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/SynapseSqlPoolResource.cs @@ -110,7 +110,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// Returns a object. public virtual SynapseMetadataSyncConfigurationResource GetSynapseMetadataSyncConfiguration() { - return new SynapseMetadataSyncConfigurationResource(Client, new ResourceIdentifier(Id.ToString() + "/metadataSync/config")); + return new SynapseMetadataSyncConfigurationResource(Client, Id.AppendChildResource("metadataSync", "config")); } /// Gets a collection of SynapseGeoBackupPolicyResources in the SynapseSqlPool. @@ -321,14 +321,14 @@ public virtual Response GetSynapseReplicationLin /// Returns a object. public virtual SynapseMaintenanceWindowResource GetSynapseMaintenanceWindow() { - return new SynapseMaintenanceWindowResource(Client, new ResourceIdentifier(Id.ToString() + "/maintenancewindows/current")); + return new SynapseMaintenanceWindowResource(Client, Id.AppendChildResource("maintenancewindows", "current")); } /// Gets an object representing a SynapseMaintenanceWindowOptionResource along with the instance operations that can be performed on it in the SynapseSqlPool. /// Returns a object. public virtual SynapseMaintenanceWindowOptionResource GetSynapseMaintenanceWindowOption() { - return new SynapseMaintenanceWindowOptionResource(Client, new ResourceIdentifier(Id.ToString() + "/maintenanceWindowOptions/current")); + return new SynapseMaintenanceWindowOptionResource(Client, Id.AppendChildResource("maintenanceWindowOptions", "current")); } /// Gets a collection of SynapseTransparentDataEncryptionResources in the SynapseSqlPool. @@ -384,7 +384,7 @@ public virtual Response GetSynapseTran /// Returns a object. public virtual SynapseSqlPoolBlobAuditingPolicyResource GetSynapseSqlPoolBlobAuditingPolicy() { - return new SynapseSqlPoolBlobAuditingPolicyResource(Client, new ResourceIdentifier(Id.ToString() + "/auditingSettings/default")); + return new SynapseSqlPoolBlobAuditingPolicyResource(Client, Id.AppendChildResource("auditingSettings", "default")); } /// Gets a collection of SynapseSqlPoolSchemaResources in the SynapseSqlPool. @@ -591,14 +591,14 @@ public virtual Response GetSynapseSql /// Returns a object. public virtual SynapseExtendedSqlPoolBlobAuditingPolicyResource GetSynapseExtendedSqlPoolBlobAuditingPolicy() { - return new SynapseExtendedSqlPoolBlobAuditingPolicyResource(Client, new ResourceIdentifier(Id.ToString() + "/extendedAuditingSettings/default")); + return new SynapseExtendedSqlPoolBlobAuditingPolicyResource(Client, Id.AppendChildResource("extendedAuditingSettings", "default")); } /// Gets an object representing a SynapseDataMaskingPolicyResource along with the instance operations that can be performed on it in the SynapseSqlPool. /// Returns a object. public virtual SynapseDataMaskingPolicyResource GetSynapseDataMaskingPolicy() { - return new SynapseDataMaskingPolicyResource(Client, new ResourceIdentifier(Id.ToString() + "/dataMaskingPolicies/Default")); + return new SynapseDataMaskingPolicyResource(Client, Id.AppendChildResource("dataMaskingPolicies", "Default")); } /// Gets a collection of SynapseWorkloadGroupResources in the SynapseSqlPool. diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/SynapseWorkspaceResource.cs b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/SynapseWorkspaceResource.cs index 97858f56f7846..c775e65e4e9c0 100644 --- a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/SynapseWorkspaceResource.cs +++ b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/SynapseWorkspaceResource.cs @@ -767,21 +767,21 @@ public virtual Response GetSynapse /// Returns a object. public virtual SynapseWorkspaceAdministratorResource GetSynapseWorkspaceAdministratorResource() { - return new SynapseWorkspaceAdministratorResource(Client, new ResourceIdentifier(Id.ToString() + "/administrators/activeDirectory")); + return new SynapseWorkspaceAdministratorResource(Client, Id.AppendChildResource("administrators", "activeDirectory")); } /// Gets an object representing a SynapseWorkspaceSqlAdministratorResource along with the instance operations that can be performed on it in the SynapseWorkspace. /// Returns a object. public virtual SynapseWorkspaceSqlAdministratorResource GetSynapseWorkspaceSqlAdministratorResource() { - return new SynapseWorkspaceSqlAdministratorResource(Client, new ResourceIdentifier(Id.ToString() + "/sqlAdministrators/activeDirectory")); + return new SynapseWorkspaceSqlAdministratorResource(Client, Id.AppendChildResource("sqlAdministrators", "activeDirectory")); } /// Gets an object representing a SynapseManagedIdentitySqlControlSettingResource along with the instance operations that can be performed on it in the SynapseWorkspace. /// Returns a object. public virtual SynapseManagedIdentitySqlControlSettingResource GetSynapseManagedIdentitySqlControlSetting() { - return new SynapseManagedIdentitySqlControlSettingResource(Client, new ResourceIdentifier(Id.ToString() + "/managedIdentitySqlControlSettings/default")); + return new SynapseManagedIdentitySqlControlSettingResource(Client, Id.AppendChildResource("managedIdentitySqlControlSettings", "default")); } /// Gets a collection of SynapseRestorableDroppedSqlPoolResources in the SynapseWorkspace. diff --git a/sdk/trafficmanager/Azure.ResourceManager.TrafficManager/src/Generated/Extensions/SubscriptionResourceExtensionClient.cs b/sdk/trafficmanager/Azure.ResourceManager.TrafficManager/src/Generated/Extensions/SubscriptionResourceExtensionClient.cs index 8078c7d14409e..a3acf1250d057 100644 --- a/sdk/trafficmanager/Azure.ResourceManager.TrafficManager/src/Generated/Extensions/SubscriptionResourceExtensionClient.cs +++ b/sdk/trafficmanager/Azure.ResourceManager.TrafficManager/src/Generated/Extensions/SubscriptionResourceExtensionClient.cs @@ -44,7 +44,7 @@ private string GetApiVersionOrNull(ResourceType resourceType) /// Returns a object. public virtual TrafficManagerUserMetricsResource GetTrafficManagerUserMetrics() { - return new TrafficManagerUserMetricsResource(Client, new ResourceIdentifier(Id.ToString() + "/providers/Microsoft.Network/trafficManagerUserMetricsKeys/default")); + return new TrafficManagerUserMetricsResource(Client, Id.AppendProviderResource("Microsoft.Network", "trafficManagerUserMetricsKeys", "default")); } /// diff --git a/sdk/trafficmanager/Azure.ResourceManager.TrafficManager/src/Generated/Extensions/TenantResourceExtensionClient.cs b/sdk/trafficmanager/Azure.ResourceManager.TrafficManager/src/Generated/Extensions/TenantResourceExtensionClient.cs index 3225b806bfa2a..8ae33a4d10b34 100644 --- a/sdk/trafficmanager/Azure.ResourceManager.TrafficManager/src/Generated/Extensions/TenantResourceExtensionClient.cs +++ b/sdk/trafficmanager/Azure.ResourceManager.TrafficManager/src/Generated/Extensions/TenantResourceExtensionClient.cs @@ -47,7 +47,7 @@ private string GetApiVersionOrNull(ResourceType resourceType) /// Returns a object. public virtual TrafficManagerGeographicHierarchyResource GetTrafficManagerGeographicHierarchy() { - return new TrafficManagerGeographicHierarchyResource(Client, new ResourceIdentifier(Id.ToString() + "/providers/Microsoft.Network/trafficManagerGeographicHierarchies/default")); + return new TrafficManagerGeographicHierarchyResource(Client, Id.AppendProviderResource("Microsoft.Network", "trafficManagerGeographicHierarchies", "default")); } /// diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/AppServiceEnvironmentResource.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/AppServiceEnvironmentResource.cs index 8dbafb52d85b5..0b76f6c557002 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/AppServiceEnvironmentResource.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/AppServiceEnvironmentResource.cs @@ -160,14 +160,14 @@ public virtual Response GetHostingEnvironmen /// Returns a object. public virtual AseV3NetworkingConfigurationResource GetAseV3NetworkingConfiguration() { - return new AseV3NetworkingConfigurationResource(Client, new ResourceIdentifier(Id.ToString() + "/configurations/networking")); + return new AseV3NetworkingConfigurationResource(Client, Id.AppendChildResource("configurations", "networking")); } /// Gets an object representing a HostingEnvironmentMultiRolePoolResource along with the instance operations that can be performed on it in the AppServiceEnvironment. /// Returns a object. public virtual HostingEnvironmentMultiRolePoolResource GetHostingEnvironmentMultiRolePool() { - return new HostingEnvironmentMultiRolePoolResource(Client, new ResourceIdentifier(Id.ToString() + "/multiRolePools/default")); + return new HostingEnvironmentMultiRolePoolResource(Client, Id.AppendChildResource("multiRolePools", "default")); } /// Gets a collection of HostingEnvironmentWorkerPoolResources in the AppServiceEnvironment. diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/AppServicePlanResource.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/AppServicePlanResource.cs index 3fc349552d4e3..a1feea53d0433 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/AppServicePlanResource.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/AppServicePlanResource.cs @@ -147,7 +147,7 @@ public virtual Response Ge /// Returns a object. public virtual HybridConnectionLimitResource GetHybridConnectionLimit() { - return new HybridConnectionLimitResource(Client, new ResourceIdentifier(Id.ToString() + "/hybridConnectionPlanLimits/limit")); + return new HybridConnectionLimitResource(Client, Id.AppendChildResource("hybridConnectionPlanLimits", "limit")); } /// Gets a collection of AppServicePlanVirtualNetworkConnectionResources in the AppServicePlan. diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Extensions/TenantResourceExtensionClient.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Extensions/TenantResourceExtensionClient.cs index eb7d8ca820bcf..4377ef79d9bb3 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Extensions/TenantResourceExtensionClient.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Extensions/TenantResourceExtensionClient.cs @@ -53,7 +53,7 @@ private string GetApiVersionOrNull(ResourceType resourceType) /// Returns a object. public virtual PublishingUserResource GetPublishingUser() { - return new PublishingUserResource(Client, new ResourceIdentifier(Id.ToString() + "/providers/Microsoft.Web/publishingUsers/web")); + return new PublishingUserResource(Client, Id.AppendProviderResource("Microsoft.Web", "publishingUsers", "web")); } /// Gets a collection of AppServiceSourceControlResources in the TenantResource. diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteInstanceResource.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteInstanceResource.cs index e3a5c907ad87d..fad9077a07a30 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteInstanceResource.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteInstanceResource.cs @@ -90,7 +90,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// Returns a object. public virtual SiteInstanceExtensionResource GetSiteInstanceExtension() { - return new SiteInstanceExtensionResource(Client, new ResourceIdentifier(Id.ToString() + "/extensions/MSDeploy")); + return new SiteInstanceExtensionResource(Client, Id.AppendChildResource("extensions", "MSDeploy")); } /// Gets a collection of SiteInstanceProcessResources in the SiteInstance. diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotInstanceResource.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotInstanceResource.cs index 04ca2019c2211..d37c9cfc51b42 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotInstanceResource.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotInstanceResource.cs @@ -90,7 +90,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// Returns a object. public virtual SiteSlotInstanceExtensionResource GetSiteSlotInstanceExtension() { - return new SiteSlotInstanceExtensionResource(Client, new ResourceIdentifier(Id.ToString() + "/extensions/MSDeploy")); + return new SiteSlotInstanceExtensionResource(Client, Id.AppendChildResource("extensions", "MSDeploy")); } /// Gets a collection of SiteSlotInstanceProcessResources in the SiteSlotInstance. diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSiteResource.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSiteResource.cs index c493bee3b5173..b8b5a0636dae3 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSiteResource.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSiteResource.cs @@ -433,7 +433,7 @@ public virtual Response GetSiteRecommendation(string /// Returns a object. public virtual WebSiteResourceHealthMetadataResource GetWebSiteResourceHealthMetadata() { - return new WebSiteResourceHealthMetadataResource(Client, new ResourceIdentifier(Id.ToString() + "/resourceHealthMetadata/default")); + return new WebSiteResourceHealthMetadataResource(Client, Id.AppendChildResource("resourceHealthMetadata", "default")); } /// Gets a collection of WebSiteSlotResources in the WebSite. @@ -546,14 +546,14 @@ public virtual Response GetSiteBackup(string backupId, Cance /// Returns a object. public virtual WebSiteFtpPublishingCredentialsPolicyResource GetWebSiteFtpPublishingCredentialsPolicy() { - return new WebSiteFtpPublishingCredentialsPolicyResource(Client, new ResourceIdentifier(Id.ToString() + "/basicPublishingCredentialsPolicies/ftp")); + return new WebSiteFtpPublishingCredentialsPolicyResource(Client, Id.AppendChildResource("basicPublishingCredentialsPolicies", "ftp")); } /// Gets an object representing a ScmSiteBasicPublishingCredentialsPolicyResource along with the instance operations that can be performed on it in the WebSite. /// Returns a object. public virtual ScmSiteBasicPublishingCredentialsPolicyResource GetScmSiteBasicPublishingCredentialsPolicy() { - return new ScmSiteBasicPublishingCredentialsPolicyResource(Client, new ResourceIdentifier(Id.ToString() + "/basicPublishingCredentialsPolicies/scm")); + return new ScmSiteBasicPublishingCredentialsPolicyResource(Client, Id.AppendChildResource("basicPublishingCredentialsPolicies", "scm")); } /// Gets a collection of SiteConfigAppsettingResources in the WebSite. @@ -666,21 +666,21 @@ public virtual Response GetWebSiteConfigC /// Returns a object. public virtual LogsSiteConfigResource GetLogsSiteConfig() { - return new LogsSiteConfigResource(Client, new ResourceIdentifier(Id.ToString() + "/config/logs")); + return new LogsSiteConfigResource(Client, Id.AppendChildResource("config", "logs")); } /// Gets an object representing a SlotConfigNamesResource along with the instance operations that can be performed on it in the WebSite. /// Returns a object. public virtual SlotConfigNamesResource GetSlotConfigNamesResource() { - return new SlotConfigNamesResource(Client, new ResourceIdentifier(Id.ToString() + "/config/slotConfigNames")); + return new SlotConfigNamesResource(Client, Id.AppendChildResource("config", "slotConfigNames")); } /// Gets an object representing a WebSiteConfigResource along with the instance operations that can be performed on it in the WebSite. /// Returns a object. public virtual WebSiteConfigResource GetWebSiteConfig() { - return new WebSiteConfigResource(Client, new ResourceIdentifier(Id.ToString() + "/config/web")); + return new WebSiteConfigResource(Client, Id.AppendChildResource("config", "web")); } /// Gets a collection of WebSiteContinuousWebJobResources in the WebSite. @@ -846,7 +846,7 @@ public virtual Response GetSiteDomainOwne /// Returns a object. public virtual SiteExtensionResource GetSiteExtension() { - return new SiteExtensionResource(Client, new ResourceIdentifier(Id.ToString() + "/extensions/MSDeploy")); + return new SiteExtensionResource(Client, Id.AppendChildResource("extensions", "MSDeploy")); } /// Gets a collection of SiteFunctionResources in the WebSite. @@ -1118,7 +1118,7 @@ public virtual Response GetSiteProcess(string processId, Ca /// Returns a object. public virtual SiteNetworkConfigResource GetSiteNetworkConfig() { - return new SiteNetworkConfigResource(Client, new ResourceIdentifier(Id.ToString() + "/networkConfig/virtualNetwork")); + return new SiteNetworkConfigResource(Client, Id.AppendChildResource("networkConfig", "virtualNetwork")); } /// Gets a collection of WebSitePremierAddonResources in the WebSite. @@ -1178,7 +1178,7 @@ public virtual Response GetWebSitePremierAddon(stri /// Returns a object. public virtual WebSitePrivateAccessResource GetWebSitePrivateAccess() { - return new WebSitePrivateAccessResource(Client, new ResourceIdentifier(Id.ToString() + "/privateAccess/virtualNetworks")); + return new WebSitePrivateAccessResource(Client, Id.AppendChildResource("privateAccess", "virtualNetworks")); } /// Gets a collection of SitePublicCertificateResources in the WebSite. @@ -1291,7 +1291,7 @@ public virtual Response GetWebSiteExtension(string sit /// Returns a object. public virtual WebSiteSourceControlResource GetWebSiteSourceControl() { - return new WebSiteSourceControlResource(Client, new ResourceIdentifier(Id.ToString() + "/sourcecontrols/web")); + return new WebSiteSourceControlResource(Client, Id.AppendChildResource("sourcecontrols", "web")); } /// Gets a collection of WebSiteSlotTriggeredWebJobResources in the WebSite. diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSiteSlotResource.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSiteSlotResource.cs index fdc0089727a53..1b6c81d80ea52 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSiteSlotResource.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSiteSlotResource.cs @@ -366,7 +366,7 @@ public virtual Response GetSiteSlotDiagnostic(string /// Returns a object. public virtual WebSiteSlotResourceHealthMetadataResource GetWebSiteSlotResourceHealthMetadata() { - return new WebSiteSlotResourceHealthMetadataResource(Client, new ResourceIdentifier(Id.ToString() + "/resourceHealthMetadata/default")); + return new WebSiteSlotResourceHealthMetadataResource(Client, Id.AppendChildResource("resourceHealthMetadata", "default")); } /// Gets a collection of SiteSlotBackupResources in the WebSiteSlot. @@ -426,14 +426,14 @@ public virtual Response GetSiteSlotBackup(string backupI /// Returns a object. public virtual WebSiteSlotFtpPublishingCredentialsPolicyResource GetWebSiteSlotFtpPublishingCredentialsPolicy() { - return new WebSiteSlotFtpPublishingCredentialsPolicyResource(Client, new ResourceIdentifier(Id.ToString() + "/basicPublishingCredentialsPolicies/ftp")); + return new WebSiteSlotFtpPublishingCredentialsPolicyResource(Client, Id.AppendChildResource("basicPublishingCredentialsPolicies", "ftp")); } /// Gets an object representing a ScmSiteSlotBasicPublishingCredentialsPolicyResource along with the instance operations that can be performed on it in the WebSiteSlot. /// Returns a object. public virtual ScmSiteSlotBasicPublishingCredentialsPolicyResource GetScmSiteSlotBasicPublishingCredentialsPolicy() { - return new ScmSiteSlotBasicPublishingCredentialsPolicyResource(Client, new ResourceIdentifier(Id.ToString() + "/basicPublishingCredentialsPolicies/scm")); + return new ScmSiteSlotBasicPublishingCredentialsPolicyResource(Client, Id.AppendChildResource("basicPublishingCredentialsPolicies", "scm")); } /// Gets a collection of WebSiteSlotConfigAppSettingResources in the WebSiteSlot. @@ -546,14 +546,14 @@ public virtual Response GetWebSiteSlo /// Returns a object. public virtual LogsSiteSlotConfigResource GetLogsSiteSlotConfig() { - return new LogsSiteSlotConfigResource(Client, new ResourceIdentifier(Id.ToString() + "/config/logs")); + return new LogsSiteSlotConfigResource(Client, Id.AppendChildResource("config", "logs")); } /// Gets an object representing a WebSiteSlotConfigResource along with the instance operations that can be performed on it in the WebSiteSlot. /// Returns a object. public virtual WebSiteSlotConfigResource GetWebSiteSlotConfig() { - return new WebSiteSlotConfigResource(Client, new ResourceIdentifier(Id.ToString() + "/config/web")); + return new WebSiteSlotConfigResource(Client, Id.AppendChildResource("config", "web")); } /// Gets a collection of WebSiteSlotContinuousWebJobResources in the WebSiteSlot. @@ -719,7 +719,7 @@ public virtual Response GetSiteSlotDo /// Returns a object. public virtual SiteSlotExtensionResource GetSiteSlotExtension() { - return new SiteSlotExtensionResource(Client, new ResourceIdentifier(Id.ToString() + "/extensions/MSDeploy")); + return new SiteSlotExtensionResource(Client, Id.AppendChildResource("extensions", "MSDeploy")); } /// Gets a collection of SiteSlotFunctionResources in the WebSiteSlot. @@ -991,7 +991,7 @@ public virtual Response GetSiteSlotProcess(string proce /// Returns a object. public virtual SiteSlotNetworkConfigResource GetSiteSlotNetworkConfig() { - return new SiteSlotNetworkConfigResource(Client, new ResourceIdentifier(Id.ToString() + "/networkConfig/virtualNetwork")); + return new SiteSlotNetworkConfigResource(Client, Id.AppendChildResource("networkConfig", "virtualNetwork")); } /// Gets a collection of WebSiteSlotPremierAddOnResources in the WebSiteSlot. @@ -1051,7 +1051,7 @@ public virtual Response GetWebSiteSlotPremierAd /// Returns a object. public virtual WebSiteSlotPrivateAccessResource GetWebSiteSlotPrivateAccess() { - return new WebSiteSlotPrivateAccessResource(Client, new ResourceIdentifier(Id.ToString() + "/privateAccess/virtualNetworks")); + return new WebSiteSlotPrivateAccessResource(Client, Id.AppendChildResource("privateAccess", "virtualNetworks")); } /// Gets a collection of WebSiteSlotPublicCertificateResources in the WebSiteSlot. @@ -1164,7 +1164,7 @@ public virtual Response GetWebSiteSlotExtension(st /// Returns a object. public virtual MigrateMySqlStatusResource GetMigrateMySqlStatus() { - return new MigrateMySqlStatusResource(Client, new ResourceIdentifier(Id.ToString() + "/migratemysql/status")); + return new MigrateMySqlStatusResource(Client, Id.AppendChildResource("migratemysql", "status")); } /// Gets a collection of NetworkFeatureResources in the WebSiteSlot. @@ -1224,7 +1224,7 @@ public virtual Response GetNetworkFeature(string view, C /// Returns a object. public virtual WebSiteSlotSourceControlResource GetWebSiteSlotSourceControl() { - return new WebSiteSlotSourceControlResource(Client, new ResourceIdentifier(Id.ToString() + "/sourcecontrols/web")); + return new WebSiteSlotSourceControlResource(Client, Id.AppendChildResource("sourcecontrols", "web")); } /// Gets a collection of WebSiteTriggeredwebJobResources in the WebSiteSlot. diff --git a/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/PhpWorkloadResource.cs b/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/PhpWorkloadResource.cs index 21ea8d7490d7e..268e6958b9745 100644 --- a/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/PhpWorkloadResource.cs +++ b/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/PhpWorkloadResource.cs @@ -93,7 +93,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// Returns a object. public virtual WordPressInstanceResource GetWordPressInstanceResource() { - return new WordPressInstanceResource(Client, new ResourceIdentifier(Id.ToString() + "/wordpressInstances/default")); + return new WordPressInstanceResource(Client, Id.AppendChildResource("wordpressInstances", "default")); } ///