Interface EnergyServicesClient
-
public interface EnergyServicesClient
An instance of this class provides access to all the operations defined in EnergyServicesClient.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<EnergyServiceInner>,EnergyServiceInner>
beginCreate(String resourceGroupName, String resourceName, EnergyServiceInner body)
Method that gets called if subscribed for ResourceCreationBegin trigger.com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<EnergyServiceInner>,EnergyServiceInner>
beginCreate(String resourceGroupName, String resourceName, EnergyServiceInner body, com.azure.core.util.Context context)
Method that gets called if subscribed for ResourceCreationBegin trigger.com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void>
beginDelete(String resourceGroupName, String resourceName)
Deletes oep resource.com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void>
beginDelete(String resourceGroupName, String resourceName, com.azure.core.util.Context context)
Deletes oep resource.EnergyServiceInner
create(String resourceGroupName, String resourceName)
Method that gets called if subscribed for ResourceCreationBegin trigger.EnergyServiceInner
create(String resourceGroupName, String resourceName, EnergyServiceInner body)
Method that gets called if subscribed for ResourceCreationBegin trigger.EnergyServiceInner
create(String resourceGroupName, String resourceName, EnergyServiceInner body, com.azure.core.util.Context context)
Method that gets called if subscribed for ResourceCreationBegin trigger.void
delete(String resourceGroupName, String resourceName)
Deletes oep resource.void
delete(String resourceGroupName, String resourceName, com.azure.core.util.Context context)
Deletes oep resource.EnergyServiceInner
getByResourceGroup(String resourceGroupName, String resourceName)
Returns oep resource for a given name.com.azure.core.http.rest.Response<EnergyServiceInner>
getByResourceGroupWithResponse(String resourceGroupName, String resourceName, com.azure.core.util.Context context)
Returns oep resource for a given name.com.azure.core.http.rest.PagedIterable<EnergyServiceInner>
list()
Lists a collection of oep resources under the given Azure Subscription ID.com.azure.core.http.rest.PagedIterable<EnergyServiceInner>
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<EnergyServiceInner>
listByResourceGroup(String resourceGroupName)
Returns list of oep resources..com.azure.core.http.rest.PagedIterable<EnergyServiceInner>
listByResourceGroup(String resourceGroupName, com.azure.core.util.Context context)
Returns list of oep resources..EnergyServiceInner
update(String resourceGroupName, String resourceName)
com.azure.core.http.rest.Response<EnergyServiceInner>
updateWithResponse(String resourceGroupName, String resourceName, EnergyResourceUpdate body, com.azure.core.util.Context context)
-
-
-
Method Detail
-
listByResourceGroup
com.azure.core.http.rest.PagedIterable<EnergyServiceInner> 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<EnergyServiceInner> 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<EnergyServiceInner> 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<EnergyServiceInner> 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
EnergyServiceInner 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<EnergyServiceInner> 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.
-
beginCreate
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<EnergyServiceInner>,EnergyServiceInner> beginCreate(String resourceGroupName, String resourceName, EnergyServiceInner body)
Method that gets called if subscribed for ResourceCreationBegin trigger.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.resourceName
- The resource name.body
- Request body.- Returns:
- the response body along with
Response
on successful completion ofMono
. - 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.
-
beginCreate
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<EnergyServiceInner>,EnergyServiceInner> beginCreate(String resourceGroupName, String resourceName, EnergyServiceInner body, com.azure.core.util.Context context)
Method that gets called if subscribed for ResourceCreationBegin trigger.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.resourceName
- The resource name.body
- Request body.context
- The context to associate with this operation.- Returns:
- the response body along with
Response
on successful completion ofMono
. - 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.
-
create
EnergyServiceInner create(String resourceGroupName, String resourceName, EnergyServiceInner body)
Method that gets called if subscribed for ResourceCreationBegin trigger.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.resourceName
- The resource name.body
- Request body.- 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.
-
create
EnergyServiceInner create(String resourceGroupName, String resourceName)
Method that gets called if subscribed for ResourceCreationBegin trigger.- 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.
-
create
EnergyServiceInner create(String resourceGroupName, String resourceName, EnergyServiceInner body, com.azure.core.util.Context context)
Method that gets called if subscribed for ResourceCreationBegin trigger.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.resourceName
- The resource name.body
- Request body.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.
-
update
EnergyServiceInner update(String resourceGroupName, String resourceName)
- 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.
-
updateWithResponse
com.azure.core.http.rest.Response<EnergyServiceInner> updateWithResponse(String resourceGroupName, String resourceName, EnergyResourceUpdate body, com.azure.core.util.Context context)
- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.resourceName
- The resource name.body
- The resource model definition used for updating a tracked ARM resource.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.
-
beginDelete
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void> beginDelete(String resourceGroupName, String resourceName)
Deletes oep resource.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.resourceName
- The resource name.- Returns:
- the
Response
on successful completion ofMono
. - 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.
-
beginDelete
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void> beginDelete(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.- Returns:
- the
Response
on successful completion ofMono
. - 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)
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.
-
-