diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/GenericResourceContainer.cs b/sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/GenericResourceContainer.cs index 07bfa0cfd5b01..8b4870ca1413c 100644 --- a/sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/GenericResourceContainer.cs +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/GenericResourceContainer.cs @@ -57,8 +57,14 @@ private ResourcesRestOperations RestClient } } - /// - public override Response Get(string resourceId, CancellationToken cancellationToken = default) + /// + /// Gets details for this resource from the service. + /// + /// The ID of the resource to get. + /// A token to allow the caller to cancel the call to the service. The default value is . + /// A response with the operation for this resource. + /// resourceId cannot be null or a whitespace. + public Response Get(string resourceId, CancellationToken cancellationToken = default) { using var scope = Diagnostics.CreateScope("GenericResourceContainer.Get"); scope.Start(); @@ -75,8 +81,14 @@ public override Response Get(string resourceId, CancellationTok } } - /// - public override async Task> GetAsync(string resourceId, CancellationToken cancellationToken = default) + /// + /// Gets details for this resource from the service. + /// + /// The ID of the resource to get. + /// A token to allow the caller to cancel the call to the service. The default value is . + /// A that on completion returns a response with the operation for this resource. + /// resourceId cannot be null or a whitespace. + public virtual async Task> GetAsync(string resourceId, CancellationToken cancellationToken = default) { using var scope = Diagnostics.CreateScope("GenericResourceContainer.Get"); scope.Start(); diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/ResourceGroupContainer.cs b/sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/ResourceGroupContainer.cs index 50ad5b6295c51..7a103713dea04 100644 --- a/sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/ResourceGroupContainer.cs +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/ResourceGroupContainer.cs @@ -277,8 +277,14 @@ async Task> NextPageFunc(string nextLink, int? pageSizeHint) return PageableHelpers.CreateAsyncEnumerable(FirstPageFunc, NextPageFunc); } - /// - public override Response Get(string resourceGroupName, CancellationToken cancellationToken = default) + /// + /// Gets details for this resource group from the service. + /// + /// The name of the resource group get. + /// A token to allow the caller to cancel the call to the service. The default value is . + /// A response with the operation for this resource group. + /// resourceGroupName cannot be null or a whitespace. + public Response Get(string resourceGroupName, CancellationToken cancellationToken = default) { using var scope = Diagnostics.CreateScope("ResourceGroupContainer.Get"); scope.Start(); @@ -295,8 +301,14 @@ public override Response Get(string resourceGroupName, Cancellati } } - /// - public override async Task> GetAsync(string resourceGroupName, CancellationToken cancellationToken = default) + /// + /// Gets details for this resource group from the service. + /// + /// The name of the resource group get. + /// A token to allow the caller to cancel the call to the service. The default value is . + /// A that on completion returns a response with the operation for this resource group. + /// resourceGroupName cannot be null or a whitespace. + public virtual async Task> GetAsync(string resourceGroupName, CancellationToken cancellationToken = default) { using var scope = Diagnostics.CreateScope("ResourceGroupContainer.Get"); scope.Start(); diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/SubscriptionContainer.cs b/sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/SubscriptionContainer.cs index 4fd03866d3970..6bb1bc63ed203 100644 --- a/sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/SubscriptionContainer.cs +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/SubscriptionContainer.cs @@ -135,16 +135,28 @@ protected override void Validate(ResourceIdentifier identifier) throw new ArgumentException("Invalid parent for subscription container", nameof(identifier)); } - /// - public override Response Get(string subscriptionGuid, CancellationToken cancellationToken = default) + /// + /// Gets details for this subscription from the service. + /// + /// The Id of the subscription to get. + /// A token to allow the caller to cancel the call to the service. The default value is . + /// A response with the operation for this subscription. + /// subscriptionGuid cannot be null or a whitespace. + public Response Get(string subscriptionGuid, CancellationToken cancellationToken = default) { return new SubscriptionOperations( new ClientContext(ClientOptions, Credential, BaseUri, Pipeline), subscriptionGuid).Get(cancellationToken); } - /// - public override Task> GetAsync(string subscriptionGuid, CancellationToken cancellationToken = default) + /// + /// Gets details for this subscription from the service. + /// + /// The Id of the subscription to get. + /// A token to allow the caller to cancel the call to the service. The default value is . + /// A that on completion returns a response with the operation for this subscription. + /// subscriptionGuid cannot be null or a whitespace. + public virtual Task> GetAsync(string subscriptionGuid, CancellationToken cancellationToken = default) { return new SubscriptionOperations( new ClientContext(ClientOptions, Credential, BaseUri, Pipeline), diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/src/ResourceContainerBase.cs b/sdk/resourcemanager/Azure.ResourceManager.Core/src/ResourceContainerBase.cs index 18c1f368e3919..f3be8bc222b0d 100644 --- a/sdk/resourcemanager/Azure.ResourceManager.Core/src/ResourceContainerBase.cs +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/src/ResourceContainerBase.cs @@ -94,24 +94,6 @@ protected TParent GetParentResource() return _parentResource as TParent; } - /// - /// Gets details for this resource from the service. - /// - /// The name of the resource to get. - /// A token to allow the caller to cancel the call to the service. The default value is . - /// A response with the operation for this resource. - /// resourceName cannot be null or a whitespace. - public abstract Response Get(string resourceName, CancellationToken cancellationToken = default); - - /// - /// Gets details for this resource from the service. - /// - /// The name of the resource to get. - /// A token to allow the caller to cancel the call to the service. The default value is . - /// A that on completion returns a response with the operation for this resource. - /// resourceName cannot be null or a whitespace. - public abstract Task> GetAsync(string resourceName, CancellationToken cancellationToken = default); - /// /// Returns the resource from Azure if it exists. /// diff --git a/sdk/resourcemanager/Proto.Client/authorization/RoleAssignmentContainer.cs b/sdk/resourcemanager/Proto.Client/authorization/RoleAssignmentContainer.cs index e4e106801e260..f2454a12be0ac 100644 --- a/sdk/resourcemanager/Proto.Client/authorization/RoleAssignmentContainer.cs +++ b/sdk/resourcemanager/Proto.Client/authorization/RoleAssignmentContainer.cs @@ -64,7 +64,7 @@ internal RoleAssignmentContainer(ResourceOperationsBase operations, ResourceIden /// The role assignment name. /// A token that allows cancellation of any blockign API calls made during this method. /// The role assignment. - public override Response Get(string resourceName, CancellationToken cancellationToken = default) + public Response Get(string resourceName, CancellationToken cancellationToken = default) { var response = Operations.Get(Id, resourceName, cancellationToken); return Response.FromValue(new RoleAssignment(this, new RoleAssignmentData(response.Value)), response.GetRawResponse()); @@ -76,7 +76,7 @@ public override Response Get(string resourceName, CancellationTo /// The role assignment name. /// A token that allows cancellation of any blockign API calls made during this method. /// The role assignment. - public async override Task> GetAsync(string resourceName, CancellationToken cancellationToken = default) + public async Task> GetAsync(string resourceName, CancellationToken cancellationToken = default) { var response = await Operations.GetAsync(Id, resourceName, cancellationToken).ConfigureAwait(false); return Response.FromValue(new RoleAssignment(this, new RoleAssignmentData(response.Value)), response.GetRawResponse()); diff --git a/sdk/resourcemanager/Proto.Client/compute/AvailabilitySetContainer.cs b/sdk/resourcemanager/Proto.Client/compute/AvailabilitySetContainer.cs index 10a1deb832960..97f96ce61a613 100644 --- a/sdk/resourcemanager/Proto.Client/compute/AvailabilitySetContainer.cs +++ b/sdk/resourcemanager/Proto.Client/compute/AvailabilitySetContainer.cs @@ -152,14 +152,14 @@ public AsyncPageable ListAsGenericResourceAsync(string nameFilt /// - public override Response Get(string availabilitySetName, CancellationToken cancellationToken = default) + public Response Get(string availabilitySetName, CancellationToken cancellationToken = default) { var response = Operations.Get(Id.ResourceGroupName, availabilitySetName); return Response.FromValue(new AvailabilitySet(Parent, new AvailabilitySetData(response.Value)), response.GetRawResponse()); } /// - public override async Task> GetAsync(string availabilitySetName, CancellationToken cancellationToken = default) + public async Task> GetAsync(string availabilitySetName, CancellationToken cancellationToken = default) { var response = await Operations.GetAsync(Id.ResourceGroupName, availabilitySetName, cancellationToken).ConfigureAwait(false); return Response.FromValue(new AvailabilitySet(Parent, new AvailabilitySetData(response.Value)), response.GetRawResponse()); diff --git a/sdk/resourcemanager/Proto.Client/compute/VirtualMachineContainer.cs b/sdk/resourcemanager/Proto.Client/compute/VirtualMachineContainer.cs index 8e05bfe46c591..7ce1665443477 100644 --- a/sdk/resourcemanager/Proto.Client/compute/VirtualMachineContainer.cs +++ b/sdk/resourcemanager/Proto.Client/compute/VirtualMachineContainer.cs @@ -195,14 +195,14 @@ public AsyncPageable ListAsGenericResourceAsync(string nameFilt } /// - public override Response Get(string virtualMachineName, CancellationToken cancellationToken = default) + public Response Get(string virtualMachineName, CancellationToken cancellationToken = default) { var response = Operations.Get(Id.ResourceGroupName, virtualMachineName, cancellationToken); return Response.FromValue(new VirtualMachine(Parent, new VirtualMachineData(response.Value)), response.GetRawResponse()); } /// - public override async Task> GetAsync(string virtualMachineName, CancellationToken cancellationToken = default) + public async Task> GetAsync(string virtualMachineName, CancellationToken cancellationToken = default) { var response = await Operations.GetAsync(Id.ResourceGroupName, virtualMachineName, cancellationToken).ConfigureAwait(false); return Response.FromValue(new VirtualMachine(Parent, new VirtualMachineData(response.Value)), response.GetRawResponse()); diff --git a/sdk/resourcemanager/Proto.Client/compute/VirtualMachineScaleSetContainer.cs b/sdk/resourcemanager/Proto.Client/compute/VirtualMachineScaleSetContainer.cs index cfd1693d661ff..db175f0266467 100644 --- a/sdk/resourcemanager/Proto.Client/compute/VirtualMachineScaleSetContainer.cs +++ b/sdk/resourcemanager/Proto.Client/compute/VirtualMachineScaleSetContainer.cs @@ -67,14 +67,14 @@ public async Task> CreateOrUpdateAsync(string n } /// - public override Response Get(string virtualMachineScaleSetName, CancellationToken cancellationToken = default) + public Response Get(string virtualMachineScaleSetName, CancellationToken cancellationToken = default) { var response = Operations.Get(Id.ResourceGroupName, virtualMachineScaleSetName, cancellationToken); return Response.FromValue(new VirtualMachineScaleSet(Parent, new VirtualMachineScaleSetData(response.Value)), response.GetRawResponse()); } /// - public override async Task> GetAsync(string virtualMachineScaleSetName, CancellationToken cancellationToken = default) + public async Task> GetAsync(string virtualMachineScaleSetName, CancellationToken cancellationToken = default) { var response = await Operations.GetAsync(Id.ResourceGroupName, virtualMachineScaleSetName, cancellationToken).ConfigureAwait(false); return Response.FromValue(new VirtualMachineScaleSet(Parent, new VirtualMachineScaleSetData(response.Value)), response.GetRawResponse()); diff --git a/sdk/resourcemanager/Proto.Client/network/LoadBalancerContainer.cs b/sdk/resourcemanager/Proto.Client/network/LoadBalancerContainer.cs index 6e1020946442f..d2232361635eb 100644 --- a/sdk/resourcemanager/Proto.Client/network/LoadBalancerContainer.cs +++ b/sdk/resourcemanager/Proto.Client/network/LoadBalancerContainer.cs @@ -95,7 +95,7 @@ public AsyncPageable ListAsync(CancellationToken cancellationToken } /// - public override Response Get(string loadBalancerName, CancellationToken cancellationToken = default) + public Response Get(string loadBalancerName, CancellationToken cancellationToken = default) { var response = Operations.Get(Id.ResourceGroupName, loadBalancerName, null, cancellationToken: cancellationToken); return Response.FromValue(new LoadBalancer(Parent, new LoadBalancerData(response.Value)), response.GetRawResponse()); @@ -103,7 +103,7 @@ public override Response Get(string loadBalancerName, Cancellation } /// - public override async Task> GetAsync(string loadBalancerName, CancellationToken cancellationToken = default) + public async Task> GetAsync(string loadBalancerName, CancellationToken cancellationToken = default) { var response = await Operations.GetAsync(Id.ResourceGroupName, loadBalancerName, null, cancellationToken).ConfigureAwait(false); return Response.FromValue(new LoadBalancer(Parent, new LoadBalancerData(response.Value)), response.GetRawResponse()); diff --git a/sdk/resourcemanager/Proto.Client/network/NetworkInterfaceContainer.cs b/sdk/resourcemanager/Proto.Client/network/NetworkInterfaceContainer.cs index 8a5f4f73d7fb8..2af6b3c63822b 100644 --- a/sdk/resourcemanager/Proto.Client/network/NetworkInterfaceContainer.cs +++ b/sdk/resourcemanager/Proto.Client/network/NetworkInterfaceContainer.cs @@ -198,14 +198,14 @@ public AsyncPageable ListAsGenericResourceAsync(string nameFilt } /// - public override Response Get(string networkInterfaceName, CancellationToken cancellationToken = default) + public Response Get(string networkInterfaceName, CancellationToken cancellationToken = default) { var response = Operations.Get(Id.ResourceGroupName, networkInterfaceName, cancellationToken: cancellationToken); return Response.FromValue(new NetworkInterface(Parent, new NetworkInterfaceData(response.Value)), response.GetRawResponse()); } /// - public override async Task> GetAsync(string networkInterfaceName, CancellationToken cancellationToken = default) + public async Task> GetAsync(string networkInterfaceName, CancellationToken cancellationToken = default) { var response = await Operations.GetAsync(Id.ResourceGroupName, networkInterfaceName, null, cancellationToken).ConfigureAwait(false); return Response.FromValue(new NetworkInterface(Parent, new NetworkInterfaceData(response.Value)), response.GetRawResponse()); diff --git a/sdk/resourcemanager/Proto.Client/network/NetworkSecurityGroupContainer.cs b/sdk/resourcemanager/Proto.Client/network/NetworkSecurityGroupContainer.cs index 20a9c9de7eed3..f17d4e258dab4 100644 --- a/sdk/resourcemanager/Proto.Client/network/NetworkSecurityGroupContainer.cs +++ b/sdk/resourcemanager/Proto.Client/network/NetworkSecurityGroupContainer.cs @@ -234,14 +234,14 @@ public AsyncPageable ListAsGenericResourceAsync(string nameFilt } /// - public override Response Get(string networkSecurityGroup, CancellationToken cancellationToken = default) + public Response Get(string networkSecurityGroup, CancellationToken cancellationToken = default) { var response = Operations.Get(Id.ResourceGroupName, networkSecurityGroup, cancellationToken: cancellationToken); return Response.FromValue(new NetworkSecurityGroup(Parent, new NetworkSecurityGroupData(response.Value)), response.GetRawResponse()); } /// - public override async Task> GetAsync(string networkSecurityGroup, CancellationToken cancellationToken = default) + public async Task> GetAsync(string networkSecurityGroup, CancellationToken cancellationToken = default) { var response = await Operations.GetAsync(Id.ResourceGroupName, networkSecurityGroup, null, cancellationToken); return Response.FromValue(new NetworkSecurityGroup(Parent, new NetworkSecurityGroupData(response.Value)), response.GetRawResponse()); diff --git a/sdk/resourcemanager/Proto.Client/network/PublicIpAddressContainer.cs b/sdk/resourcemanager/Proto.Client/network/PublicIpAddressContainer.cs index 15b43e394c91e..5879fcf057811 100644 --- a/sdk/resourcemanager/Proto.Client/network/PublicIpAddressContainer.cs +++ b/sdk/resourcemanager/Proto.Client/network/PublicIpAddressContainer.cs @@ -184,14 +184,14 @@ private Func Convertor() return s => new PublicIpAddress(Parent, new PublicIPAddressData(s)); } /// - public override Response Get(string publicIpAddressesName, CancellationToken cancellationToken = default) + public Response Get(string publicIpAddressesName, CancellationToken cancellationToken = default) { var response = Operations.Get(Id.ResourceGroupName, publicIpAddressesName, cancellationToken: cancellationToken); return Response.FromValue(new PublicIpAddress(Parent, new PublicIPAddressData(response.Value)), response.GetRawResponse()); } /// - public override async Task> GetAsync(string publicIpAddressesName, CancellationToken cancellationToken = default) + public async Task> GetAsync(string publicIpAddressesName, CancellationToken cancellationToken = default) { var response = await Operations.GetAsync(Id.ResourceGroupName, publicIpAddressesName, cancellationToken: cancellationToken).ConfigureAwait(false); return Response.FromValue(new PublicIpAddress(Parent, new PublicIPAddressData(response.Value)), response.GetRawResponse()); diff --git a/sdk/resourcemanager/Proto.Client/network/SubnetContainer.cs b/sdk/resourcemanager/Proto.Client/network/SubnetContainer.cs index ca2f8e10e042d..e1112b2468f1e 100644 --- a/sdk/resourcemanager/Proto.Client/network/SubnetContainer.cs +++ b/sdk/resourcemanager/Proto.Client/network/SubnetContainer.cs @@ -154,14 +154,14 @@ public AsyncPageable ListAsync(CancellationToken cancellationToken = def } /// - public override Response Get(string subnetName, CancellationToken cancellationToken = default) + public Response Get(string subnetName, CancellationToken cancellationToken = default) { var response = Operations.Get(Id.ResourceGroupName, Id.Name, subnetName, cancellationToken: cancellationToken); return Response.FromValue(new Subnet(Parent, new SubnetData(response.Value)), response.GetRawResponse()); } /// - public override async Task> GetAsync(string subnetName, CancellationToken cancellationToken = default) + public async Task> GetAsync(string subnetName, CancellationToken cancellationToken = default) { var response = await Operations.GetAsync(Id.ResourceGroupName, Id.Name, subnetName, null, cancellationToken).ConfigureAwait(false); return Response.FromValue(new Subnet(Parent, new SubnetData(response.Value)), response.GetRawResponse()); diff --git a/sdk/resourcemanager/Proto.Client/network/VirtualNetworkContainer.cs b/sdk/resourcemanager/Proto.Client/network/VirtualNetworkContainer.cs index 2d479a75a5e8c..6f9ed7464f941 100644 --- a/sdk/resourcemanager/Proto.Client/network/VirtualNetworkContainer.cs +++ b/sdk/resourcemanager/Proto.Client/network/VirtualNetworkContainer.cs @@ -184,14 +184,14 @@ public AsyncPageable ListAsGenericResourceAsync(string nameFilt } /// - public override Response Get(string virtualNetworkName, CancellationToken cancellationToken = default) + public Response Get(string virtualNetworkName, CancellationToken cancellationToken = default) { var response = Operations.Get(Id.ResourceGroupName, virtualNetworkName, cancellationToken: cancellationToken); return Response.FromValue(new VirtualNetwork(Parent, new VirtualNetworkData(response.Value)), response.GetRawResponse()); } /// - public override async Task> GetAsync(string virtualNetworkName, CancellationToken cancellationToken = default) + public async Task> GetAsync(string virtualNetworkName, CancellationToken cancellationToken = default) { var response = await Operations.GetAsync(Id.ResourceGroupName, virtualNetworkName, null, cancellationToken).ConfigureAwait(false); return Response.FromValue(new VirtualNetwork(Parent, new VirtualNetworkData(response.Value)), response.GetRawResponse());