Interface FarmBeatsModels
public interface FarmBeatsModels
Resource collection API of FarmBeatsModels.
-
Method Summary
Modifier and TypeMethodDescriptionBegins definition for a new FarmBeats resource.voiddeleteById(String id) Delete a FarmBeats resource.com.azure.core.http.rest.Response<Void> deleteByIdWithResponse(String id, com.azure.core.util.Context context) Delete a FarmBeats resource.voiddeleteByResourceGroup(String resourceGroupName, String farmBeatsResourceName) Delete a FarmBeats resource.com.azure.core.http.rest.Response<Void> deleteByResourceGroupWithResponse(String resourceGroupName, String farmBeatsResourceName, com.azure.core.util.Context context) Delete a FarmBeats resource.Get FarmBeats resource.com.azure.core.http.rest.Response<FarmBeats> getByIdWithResponse(String id, com.azure.core.util.Context context) Get FarmBeats resource.getByResourceGroup(String resourceGroupName, String farmBeatsResourceName) Get FarmBeats resource.com.azure.core.http.rest.Response<FarmBeats> getByResourceGroupWithResponse(String resourceGroupName, String farmBeatsResourceName, com.azure.core.util.Context context) Get FarmBeats resource.com.azure.core.http.rest.PagedIterable<FarmBeats> list()Lists the FarmBeats instances for a subscription.com.azure.core.http.rest.PagedIterable<FarmBeats> Lists the FarmBeats instances for a subscription.com.azure.core.http.rest.PagedIterable<FarmBeats> listByResourceGroup(String resourceGroupName) Lists the FarmBeats instances for a resource group.com.azure.core.http.rest.PagedIterable<FarmBeats> listByResourceGroup(String resourceGroupName, Integer maxPageSize, String skipToken, com.azure.core.util.Context context) Lists the FarmBeats instances for a resource group.
-
Method Details
-
getByResourceGroupWithResponse
com.azure.core.http.rest.Response<FarmBeats> getByResourceGroupWithResponse(String resourceGroupName, String farmBeatsResourceName, com.azure.core.util.Context context) Get FarmBeats resource.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.farmBeatsResourceName- FarmBeats resource name.context- The context to associate with this operation.- Returns:
- farmBeats resource along with
Response. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
getByResourceGroup
Get FarmBeats resource.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.farmBeatsResourceName- FarmBeats resource name.- Returns:
- farmBeats resource.
- Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
deleteByResourceGroupWithResponse
com.azure.core.http.rest.Response<Void> deleteByResourceGroupWithResponse(String resourceGroupName, String farmBeatsResourceName, com.azure.core.util.Context context) Delete a FarmBeats resource.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.farmBeatsResourceName- FarmBeats resource name.context- The context to associate with this operation.- Returns:
- the
Response. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
deleteByResourceGroup
Delete a FarmBeats resource.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.farmBeatsResourceName- FarmBeats resource name.- Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
list
com.azure.core.http.rest.PagedIterable<FarmBeats> list()Lists the FarmBeats instances for a subscription.- Returns:
- paged response contains list of requested objects and a URL link to get the next set of results as
paginated response with
PagedIterable. - Throws:
com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
list
com.azure.core.http.rest.PagedIterable<FarmBeats> list(Integer maxPageSize, String skipToken, com.azure.core.util.Context context) Lists the FarmBeats instances for a subscription.- Parameters:
maxPageSize- Maximum number of items needed (inclusive). Minimum = 10, Maximum = 1000, Default value = 50.skipToken- Skip token for getting next set of results.context- The context to associate with this operation.- Returns:
- paged response contains list of requested objects and a URL link to get the next set of results as
paginated response with
PagedIterable. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
listByResourceGroup
Lists the FarmBeats instances for a resource group.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.- Returns:
- paged response contains list of requested objects and a URL link to get the next set of results as
paginated response with
PagedIterable. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
listByResourceGroup
com.azure.core.http.rest.PagedIterable<FarmBeats> listByResourceGroup(String resourceGroupName, Integer maxPageSize, String skipToken, com.azure.core.util.Context context) Lists the FarmBeats instances for a resource group.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.maxPageSize- Maximum number of items needed (inclusive). Minimum = 10, Maximum = 1000, Default value = 50.skipToken- Continuation token for getting next set of results.context- The context to associate with this operation.- Returns:
- paged response contains list of requested objects and a URL link to get the next set of results as
paginated response with
PagedIterable. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
getById
Get FarmBeats resource.- Parameters:
id- the resource ID.- Returns:
- farmBeats resource along with
Response. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
getByIdWithResponse
com.azure.core.http.rest.Response<FarmBeats> getByIdWithResponse(String id, com.azure.core.util.Context context) Get FarmBeats resource.- Parameters:
id- the resource ID.context- The context to associate with this operation.- Returns:
- farmBeats resource along with
Response. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
deleteById
Delete a FarmBeats resource.- Parameters:
id- the resource ID.- Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
deleteByIdWithResponse
com.azure.core.http.rest.Response<Void> deleteByIdWithResponse(String id, com.azure.core.util.Context context) Delete a FarmBeats resource.- Parameters:
id- the resource ID.context- The context to associate with this operation.- Returns:
- the
Response. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
define
Begins definition for a new FarmBeats resource.- Parameters:
name- resource name.- Returns:
- the first stage of the new FarmBeats definition.
-