Share via


AgFoodPlatformExtensions.GetFarmBeats Method

Definition

Overloads

GetFarmBeats(ResourceGroupResource)

Gets a collection of FarmBeatResources in the ResourceGroupResource. MockingTo mock this method, please mock GetFarmBeats() instead.

GetFarmBeats(SubscriptionResource, Nullable<Int32>, String, CancellationToken)

Lists the FarmBeats instances for a subscription.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.AgFoodPlatform/farmBeats
  • Operation Id: FarmBeatsModels_ListBySubscription

GetFarmBeats(ResourceGroupResource)

Source:
AgFoodPlatformExtensions.cs

Gets a collection of FarmBeatResources in the ResourceGroupResource. MockingTo mock this method, please mock GetFarmBeats() instead.

public static Azure.ResourceManager.AgFoodPlatform.FarmBeatCollection GetFarmBeats (this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource);
static member GetFarmBeats : Azure.ResourceManager.Resources.ResourceGroupResource -> Azure.ResourceManager.AgFoodPlatform.FarmBeatCollection
<Extension()>
Public Function GetFarmBeats (resourceGroupResource As ResourceGroupResource) As FarmBeatCollection

Parameters

resourceGroupResource
ResourceGroupResource

The ResourceGroupResource instance the method will execute against.

Returns

An object representing collection of FarmBeatResources and their operations over a FarmBeatResource.

Exceptions

resourceGroupResource is null.

Applies to

GetFarmBeats(SubscriptionResource, Nullable<Int32>, String, CancellationToken)

Source:
AgFoodPlatformExtensions.cs

Lists the FarmBeats instances for a subscription.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.AgFoodPlatform/farmBeats
  • Operation Id: FarmBeatsModels_ListBySubscription
public static Azure.Pageable<Azure.ResourceManager.AgFoodPlatform.FarmBeatResource> GetFarmBeats (this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, int? maxPageSize = default, string skipToken = default, System.Threading.CancellationToken cancellationToken = default);
static member GetFarmBeats : Azure.ResourceManager.Resources.SubscriptionResource * Nullable<int> * string * System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.AgFoodPlatform.FarmBeatResource>
<Extension()>
Public Function GetFarmBeats (subscriptionResource As SubscriptionResource, Optional maxPageSize As Nullable(Of Integer) = Nothing, Optional skipToken As String = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Pageable(Of FarmBeatResource)

Parameters

subscriptionResource
SubscriptionResource

The SubscriptionResource instance the method will execute against.

maxPageSize
Nullable<Int32>

Maximum number of items needed (inclusive). Minimum = 10, Maximum = 1000, Default value = 50.

skipToken
String

Skip token for getting next set of results.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

A collection of FarmBeatResource that may take multiple service requests to iterate over.

Exceptions

subscriptionResource is null.

Applies to