diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/SubscriptionOperations.cs b/sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/SubscriptionOperations.cs index 230a9e45091e..391e08eafffc 100644 --- a/sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/SubscriptionOperations.cs +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/SubscriptionOperations.cs @@ -49,23 +49,23 @@ internal SubscriptionOperations(OperationsBase operations, TenantResourceIdentif } /// - /// ListResources of type T + /// ListResources of type T. /// - /// - /// - /// + /// The type of resource being returned in the list. + /// The method to pass the internal properties to. + /// A collection of resources. [EditorBrowsable(EditorBrowsableState.Never)] - public virtual T ListResources(Func func) + public virtual Pageable ListResources(Func> func) { return func(BaseUri, Credential, ClientOptions, Pipeline); } /// - /// ListResourcesAsync of type T + /// ListResources of type T. /// - /// - /// - /// + /// The type of resource being returned in the list. + /// The method to pass the internal properties to. + /// A collection of resources. [EditorBrowsable(EditorBrowsableState.Never)] public virtual AsyncPageable ListResourcesAsync(Func> func) { diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/TenantOperations.cs b/sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/TenantOperations.cs index 9e215003f1a0..4237cc643252 100644 --- a/sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/TenantOperations.cs +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/TenantOperations.cs @@ -36,13 +36,25 @@ internal TenantOperations(ArmClientOptions options, TokenCredential credential, protected override ResourceType ValidResourceType => ResourceType; /// - /// ListResources of type T + /// ListResources of type T. /// - /// - /// - /// + /// The type of resource being returned in the list. + /// The method to pass the internal properties to. + /// A collection of resources. [EditorBrowsable(EditorBrowsableState.Never)] - public virtual T ListResources(Func func) + public virtual Pageable ListResources(Func> func) + { + return func(BaseUri, Credential, ClientOptions, Pipeline); + } + + /// + /// ListResources of type T. + /// + /// The type of resource being returned in the list. + /// The method to pass the internal properties to. + /// A collection of resources. + [EditorBrowsable(EditorBrowsableState.Never)] + public virtual AsyncPageable ListResourcesAsync(Func> func) { return func(BaseUri, Credential, ClientOptions, Pipeline); } diff --git a/sdk/resourcemanager/Proto.Client/src/Program.cs b/sdk/resourcemanager/Proto.Client/src/Program.cs index e528a5c9874c..3c860cfb6c59 100644 --- a/sdk/resourcemanager/Proto.Client/src/Program.cs +++ b/sdk/resourcemanager/Proto.Client/src/Program.cs @@ -11,7 +11,7 @@ static void Main(string[] args) Scenario scenario = null; try { - scenario = ScenarioFactory.GetScenario(Scenarios.VmImageTests); + scenario = ScenarioFactory.GetScenario(Scenarios.ShutdownVmsByLINQ); scenario.Execute(); } finally