Interface EnergyServices
-
public interface EnergyServices
Resource collection API of EnergyServices.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description EnergyService.DefinitionStages.Blank
define(String name)
Begins definition for a new EnergyService resource.void
delete(String resourceGroupName, String resourceName, com.azure.core.util.Context context)
Deletes oep resource.void
deleteById(String id)
Deletes oep resource.void
deleteByIdWithResponse(String id, com.azure.core.util.Context context)
Deletes oep resource.void
deleteByResourceGroup(String resourceGroupName, String resourceName)
Deletes oep resource.EnergyService
getById(String id)
Returns oep resource for a given name.com.azure.core.http.rest.Response<EnergyService>
getByIdWithResponse(String id, com.azure.core.util.Context context)
Returns oep resource for a given name.EnergyService
getByResourceGroup(String resourceGroupName, String resourceName)
Returns oep resource for a given name.com.azure.core.http.rest.Response<EnergyService>
getByResourceGroupWithResponse(String resourceGroupName, String resourceName, com.azure.core.util.Context context)
Returns oep resource for a given name.com.azure.core.http.rest.PagedIterable<EnergyService>
list()
Lists a collection of oep resources under the given Azure Subscription ID.com.azure.core.http.rest.PagedIterable<EnergyService>
list(com.azure.core.util.Context context)
Lists a collection of oep resources under the given Azure Subscription ID.com.azure.core.http.rest.PagedIterable<EnergyService>
listByResourceGroup(String resourceGroupName)
Returns list of oep resources..com.azure.core.http.rest.PagedIterable<EnergyService>
listByResourceGroup(String resourceGroupName, com.azure.core.util.Context context)
Returns list of oep resources..
-
-
-
Method Detail
-
listByResourceGroup
com.azure.core.http.rest.PagedIterable<EnergyService> listByResourceGroup(String resourceGroupName)
Returns list of oep resources..- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.- Returns:
- the list of oep resources.
- 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<EnergyService> listByResourceGroup(String resourceGroupName, com.azure.core.util.Context context)
Returns list of oep resources..- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.context
- The context to associate with this operation.- Returns:
- the list of oep resources.
- 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<EnergyService> list()
Lists a collection of oep resources under the given Azure Subscription ID.- Returns:
- the list of oep resources.
- 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<EnergyService> list(com.azure.core.util.Context context)
Lists a collection of oep resources under the given Azure Subscription ID.- Parameters:
context
- The context to associate with this operation.- Returns:
- the list of oep resources.
- 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
EnergyService getByResourceGroup(String resourceGroupName, String resourceName)
Returns oep resource for a given name.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.resourceName
- The resource name.- 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.
-
getByResourceGroupWithResponse
com.azure.core.http.rest.Response<EnergyService> getByResourceGroupWithResponse(String resourceGroupName, String resourceName, com.azure.core.util.Context context)
Returns oep resource for a given name.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.resourceName
- The resource name.context
- The context to associate with this operation.- Returns:
- the response body 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.
-
deleteByResourceGroup
void deleteByResourceGroup(String resourceGroupName, String resourceName)
Deletes oep resource.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.resourceName
- The 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.
-
delete
void delete(String resourceGroupName, String resourceName, com.azure.core.util.Context context)
Deletes oep resource.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.resourceName
- The resource name.context
- The context to associate with this operation.- 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
EnergyService getById(String id)
Returns oep resource for a given name.- Parameters:
id
- the resource ID.- Returns:
- the response body 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<EnergyService> getByIdWithResponse(String id, com.azure.core.util.Context context)
Returns oep resource for a given name.- Parameters:
id
- the resource ID.context
- The context to associate with this operation.- Returns:
- the response body 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
void deleteById(String id)
Deletes oep 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
void deleteByIdWithResponse(String id, com.azure.core.util.Context context)
Deletes oep resource.- Parameters:
id
- the resource ID.context
- The context to associate with this operation.- 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
EnergyService.DefinitionStages.Blank define(String name)
Begins definition for a new EnergyService resource.- Parameters:
name
- resource name.- Returns:
- the first stage of the new EnergyService definition.
-
-