Interface AssetsClient
public interface AssetsClient
An instance of this class provides access to all the operations defined in AssetsClient.
-
Method Summary
Modifier and TypeMethodDescriptioncom.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<AssetInner>,
AssetInner> beginCreateOrReplace
(String resourceGroupName, String assetName, AssetInner resource) Create a Asset.com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<AssetInner>,
AssetInner> beginCreateOrReplace
(String resourceGroupName, String assetName, AssetInner resource, com.azure.core.util.Context context) Create a Asset.beginDelete
(String resourceGroupName, String assetName) Delete a Asset.beginDelete
(String resourceGroupName, String assetName, com.azure.core.util.Context context) Delete a Asset.com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<AssetInner>,
AssetInner> beginUpdate
(String resourceGroupName, String assetName, AssetUpdate properties) Update a Asset.com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<AssetInner>,
AssetInner> beginUpdate
(String resourceGroupName, String assetName, AssetUpdate properties, com.azure.core.util.Context context) Update a Asset.createOrReplace
(String resourceGroupName, String assetName, AssetInner resource) Create a Asset.createOrReplace
(String resourceGroupName, String assetName, AssetInner resource, com.azure.core.util.Context context) Create a Asset.void
Delete a Asset.void
Delete a Asset.getByResourceGroup
(String resourceGroupName, String assetName) Get a Asset.com.azure.core.http.rest.Response<AssetInner>
getByResourceGroupWithResponse
(String resourceGroupName, String assetName, com.azure.core.util.Context context) Get a Asset.com.azure.core.http.rest.PagedIterable<AssetInner>
list()
List Asset resources by subscription ID.com.azure.core.http.rest.PagedIterable<AssetInner>
list
(com.azure.core.util.Context context) List Asset resources by subscription ID.com.azure.core.http.rest.PagedIterable<AssetInner>
listByResourceGroup
(String resourceGroupName) List Asset resources by resource group.com.azure.core.http.rest.PagedIterable<AssetInner>
listByResourceGroup
(String resourceGroupName, com.azure.core.util.Context context) List Asset resources by resource group.update
(String resourceGroupName, String assetName, AssetUpdate properties) Update a Asset.update
(String resourceGroupName, String assetName, AssetUpdate properties, com.azure.core.util.Context context) Update a Asset.
-
Method Details
-
getByResourceGroupWithResponse
com.azure.core.http.rest.Response<AssetInner> getByResourceGroupWithResponse(String resourceGroupName, String assetName, com.azure.core.util.Context context) Get a Asset.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.assetName
- Asset name parameter.context
- The context to associate with this operation.- Returns:
- a Asset 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 a Asset.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.assetName
- Asset name parameter.- Returns:
- a Asset.
- 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.
-
beginCreateOrReplace
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<AssetInner>,AssetInner> beginCreateOrReplace(String resourceGroupName, String assetName, AssetInner resource) Create a Asset.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.assetName
- Asset name parameter.resource
- Resource create parameters.- Returns:
- the
SyncPoller
for polling of asset definition. - 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.
-
beginCreateOrReplace
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<AssetInner>,AssetInner> beginCreateOrReplace(String resourceGroupName, String assetName, AssetInner resource, com.azure.core.util.Context context) Create a Asset.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.assetName
- Asset name parameter.resource
- Resource create parameters.context
- The context to associate with this operation.- Returns:
- the
SyncPoller
for polling of asset definition. - 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.
-
createOrReplace
Create a Asset.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.assetName
- Asset name parameter.resource
- Resource create parameters.- Returns:
- asset definition.
- 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.
-
createOrReplace
AssetInner createOrReplace(String resourceGroupName, String assetName, AssetInner resource, com.azure.core.util.Context context) Create a Asset.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.assetName
- Asset name parameter.resource
- Resource create parameters.context
- The context to associate with this operation.- Returns:
- asset definition.
- 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.
-
beginUpdate
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<AssetInner>,AssetInner> beginUpdate(String resourceGroupName, String assetName, AssetUpdate properties) Update a Asset.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.assetName
- Asset name parameter.properties
- The resource properties to be updated.- Returns:
- the
SyncPoller
for polling of asset definition. - 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.
-
beginUpdate
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<AssetInner>,AssetInner> beginUpdate(String resourceGroupName, String assetName, AssetUpdate properties, com.azure.core.util.Context context) Update a Asset.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.assetName
- Asset name parameter.properties
- The resource properties to be updated.context
- The context to associate with this operation.- Returns:
- the
SyncPoller
for polling of asset definition. - 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
Update a Asset.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.assetName
- Asset name parameter.properties
- The resource properties to be updated.- Returns:
- asset definition.
- 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
AssetInner update(String resourceGroupName, String assetName, AssetUpdate properties, com.azure.core.util.Context context) Update a Asset.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.assetName
- Asset name parameter.properties
- The resource properties to be updated.context
- The context to associate with this operation.- Returns:
- asset definition.
- 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 assetName) Delete a Asset.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.assetName
- Asset name parameter.- Returns:
- the
SyncPoller
for polling of long-running 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.
-
beginDelete
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void> beginDelete(String resourceGroupName, String assetName, com.azure.core.util.Context context) Delete a Asset.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.assetName
- Asset name parameter.context
- The context to associate with this operation.- Returns:
- the
SyncPoller
for polling of long-running 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.
-
delete
Delete a Asset.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.assetName
- Asset name parameter.- 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
Delete a Asset.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.assetName
- Asset name parameter.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.
-
listByResourceGroup
List Asset resources by resource group.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.- Returns:
- the response of a Asset list operation 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<AssetInner> listByResourceGroup(String resourceGroupName, com.azure.core.util.Context context) List Asset resources by resource group.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.context
- The context to associate with this operation.- Returns:
- the response of a Asset list operation 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.
-
list
com.azure.core.http.rest.PagedIterable<AssetInner> list()List Asset resources by subscription ID.- Returns:
- the response of a Asset list operation 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
List Asset resources by subscription ID.- Parameters:
context
- The context to associate with this operation.- Returns:
- the response of a Asset list operation 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.
-