internal ApiPortalResourceCollection(ArmClient client, ResourceIdentifier id) : base(client, id) { _apiPortalResourceApiPortalsClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.AppPlatform", ApiPortalResource.ResourceType.Namespace, Diagnostics); TryGetApiVersion(ApiPortalResource.ResourceType, out string apiPortalResourceApiPortalsApiVersion); _apiPortalResourceApiPortalsRestClient = new ApiPortalsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, apiPortalResourceApiPortalsApiVersion); #if DEBUG ValidateResourceId(Id); #endif }