Поделиться через


AgricultureServiceCollection Class

Definition

A class representing a collection of AgricultureServiceResource and their operations. Each AgricultureServiceResource in the collection will belong to the same instance of ResourceGroupResource. To get an AgricultureServiceCollection instance call the GetAgricultureServices method from an instance of ResourceGroupResource.

public class AgricultureServiceCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable<Azure.ResourceManager.AgriculturePlatform.AgricultureServiceResource>, System.Collections.Generic.IEnumerable<Azure.ResourceManager.AgriculturePlatform.AgricultureServiceResource>
type AgricultureServiceCollection = class
    inherit ArmCollection
    interface seq<AgricultureServiceResource>
    interface IEnumerable
    interface IAsyncEnumerable<AgricultureServiceResource>
Public Class AgricultureServiceCollection
Inherits ArmCollection
Implements IAsyncEnumerable(Of AgricultureServiceResource), IEnumerable(Of AgricultureServiceResource)
Inheritance
AgricultureServiceCollection
Implements

Constructors

AgricultureServiceCollection()

Initializes a new instance of the AgricultureServiceCollection class for mocking.

Properties

Client

Gets the ArmClient this resource client was created from.

(Inherited from ArmCollection)
Diagnostics

Gets the diagnostic options for this resource client.

(Inherited from ArmCollection)
Endpoint

Gets the base uri for this resource client.

(Inherited from ArmCollection)
Id

Gets the resource identifier.

(Inherited from ArmCollection)
Pipeline

Gets the pipeline for this resource client.

(Inherited from ArmCollection)

Methods

CreateOrUpdate(WaitUntil, String, AgricultureServiceData, CancellationToken)

Create a AgriServiceResource

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AgriculturePlatform/agriServices/{agriServiceResourceName}
  • Operation Id: AgriServiceResource_CreateOrUpdate
  • Default Api Version: 2024-06-01-preview
  • Resource: AgricultureServiceResource
CreateOrUpdateAsync(WaitUntil, String, AgricultureServiceData, CancellationToken)

Create a AgriServiceResource

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AgriculturePlatform/agriServices/{agriServiceResourceName}
  • Operation Id: AgriServiceResource_CreateOrUpdate
  • Default Api Version: 2024-06-01-preview
  • Resource: AgricultureServiceResource
Exists(String, CancellationToken)

Checks to see if the resource exists in azure.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AgriculturePlatform/agriServices/{agriServiceResourceName}
  • Operation Id: AgriServiceResource_Get
  • Default Api Version: 2024-06-01-preview
  • Resource: AgricultureServiceResource
ExistsAsync(String, CancellationToken)

Checks to see if the resource exists in azure.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AgriculturePlatform/agriServices/{agriServiceResourceName}
  • Operation Id: AgriServiceResource_Get
  • Default Api Version: 2024-06-01-preview
  • Resource: AgricultureServiceResource
Get(String, CancellationToken)

Get a AgriServiceResource

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AgriculturePlatform/agriServices/{agriServiceResourceName}
  • Operation Id: AgriServiceResource_Get
  • Default Api Version: 2024-06-01-preview
  • Resource: AgricultureServiceResource
GetAll(CancellationToken)

List AgriServiceResource resources by resource group

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AgriculturePlatform/agriServices
  • Operation Id: AgriServiceResource_ListByResourceGroup
  • Default Api Version: 2024-06-01-preview
  • Resource: AgricultureServiceResource
GetAllAsync(CancellationToken)

List AgriServiceResource resources by resource group

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AgriculturePlatform/agriServices
  • Operation Id: AgriServiceResource_ListByResourceGroup
  • Default Api Version: 2024-06-01-preview
  • Resource: AgricultureServiceResource
GetAsync(String, CancellationToken)

Get a AgriServiceResource

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AgriculturePlatform/agriServices/{agriServiceResourceName}
  • Operation Id: AgriServiceResource_Get
  • Default Api Version: 2024-06-01-preview
  • Resource: AgricultureServiceResource
GetIfExists(String, CancellationToken)

Tries to get details for this resource from the service.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AgriculturePlatform/agriServices/{agriServiceResourceName}
  • Operation Id: AgriServiceResource_Get
  • Default Api Version: 2024-06-01-preview
  • Resource: AgricultureServiceResource
GetIfExistsAsync(String, CancellationToken)

Tries to get details for this resource from the service.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AgriculturePlatform/agriServices/{agriServiceResourceName}
  • Operation Id: AgriServiceResource_Get
  • Default Api Version: 2024-06-01-preview
  • Resource: AgricultureServiceResource
TryGetApiVersion(ResourceType, String)

Gets the api version override if it has been set for the current client options.

(Inherited from ArmCollection)

Explicit Interface Implementations

IAsyncEnumerable<AgricultureServiceResource>.GetAsyncEnumerator(CancellationToken)

Returns an enumerator that iterates asynchronously through the collection.

IEnumerable.GetEnumerator()

Returns an enumerator that iterates through a collection.

IEnumerable<AgricultureServiceResource>.GetEnumerator()

Returns an enumerator that iterates through the collection.

Applies to