Interface ManagedEnvironmentsClient
public interface ManagedEnvironmentsClient
An instance of this class provides access to all the operations defined in ManagedEnvironmentsClient.
-
Method Summary
Modifier and TypeMethodDescriptioncom.azure.core.util.polling.SyncPoller
<com.azure.core.management.polling.PollResult<ManagedEnvironmentInner>, ManagedEnvironmentInner> beginCreateOrUpdate
(String resourceGroupName, String environmentName, ManagedEnvironmentInner environmentEnvelope) Creates or updates a Managed Environment.com.azure.core.util.polling.SyncPoller
<com.azure.core.management.polling.PollResult<ManagedEnvironmentInner>, ManagedEnvironmentInner> beginCreateOrUpdate
(String resourceGroupName, String environmentName, ManagedEnvironmentInner environmentEnvelope, com.azure.core.util.Context context) Creates or updates a Managed Environment.beginDelete
(String resourceGroupName, String environmentName) Delete a Managed Environment.beginDelete
(String resourceGroupName, String environmentName, com.azure.core.util.Context context) Delete a Managed Environment.com.azure.core.util.polling.SyncPoller
<com.azure.core.management.polling.PollResult<ManagedEnvironmentInner>, ManagedEnvironmentInner> beginUpdate
(String resourceGroupName, String environmentName, ManagedEnvironmentInner environmentEnvelope) Update Managed Environment's properties.com.azure.core.util.polling.SyncPoller
<com.azure.core.management.polling.PollResult<ManagedEnvironmentInner>, ManagedEnvironmentInner> beginUpdate
(String resourceGroupName, String environmentName, ManagedEnvironmentInner environmentEnvelope, com.azure.core.util.Context context) Update Managed Environment's properties.createOrUpdate
(String resourceGroupName, String environmentName, ManagedEnvironmentInner environmentEnvelope) Creates or updates a Managed Environment.createOrUpdate
(String resourceGroupName, String environmentName, ManagedEnvironmentInner environmentEnvelope, com.azure.core.util.Context context) Creates or updates a Managed Environment.void
Delete a Managed Environment.void
Delete a Managed Environment.getAuthToken
(String resourceGroupName, String environmentName) Get auth token for a managed environment Checks if resource name is available.com.azure.core.http.rest.Response
<EnvironmentAuthTokenInner> getAuthTokenWithResponse
(String resourceGroupName, String environmentName, com.azure.core.util.Context context) Get auth token for a managed environment Checks if resource name is available.getByResourceGroup
(String resourceGroupName, String environmentName) Get the properties of a Managed Environment.com.azure.core.http.rest.Response
<ManagedEnvironmentInner> getByResourceGroupWithResponse
(String resourceGroupName, String environmentName, com.azure.core.util.Context context) Get the properties of a Managed Environment.com.azure.core.http.rest.PagedIterable
<ManagedEnvironmentInner> list()
Get all Environments for a subscription.com.azure.core.http.rest.PagedIterable
<ManagedEnvironmentInner> list
(com.azure.core.util.Context context) Get all Environments for a subscription.com.azure.core.http.rest.PagedIterable
<ManagedEnvironmentInner> listByResourceGroup
(String resourceGroupName) Get all the Environments in a resource group.com.azure.core.http.rest.PagedIterable
<ManagedEnvironmentInner> listByResourceGroup
(String resourceGroupName, com.azure.core.util.Context context) Get all the Environments in a resource group.com.azure.core.http.rest.PagedIterable
<WorkloadProfileStatesInner> listWorkloadProfileStates
(String resourceGroupName, String environmentName) Get all workload Profile States for a Managed Environment..com.azure.core.http.rest.PagedIterable
<WorkloadProfileStatesInner> listWorkloadProfileStates
(String resourceGroupName, String environmentName, com.azure.core.util.Context context) Get all workload Profile States for a Managed Environment..update
(String resourceGroupName, String environmentName, ManagedEnvironmentInner environmentEnvelope) Update Managed Environment's properties.update
(String resourceGroupName, String environmentName, ManagedEnvironmentInner environmentEnvelope, com.azure.core.util.Context context) Update Managed Environment's properties.
-
Method Details
-
list
com.azure.core.http.rest.PagedIterable<ManagedEnvironmentInner> list()Get all Environments for a subscription. Get all Managed Environments for a subscription.- Returns:
- all Managed Environments for a subscription as paginated response with
PagedIterable
. - Throws:
DefaultErrorResponseErrorException
- 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<ManagedEnvironmentInner> list(com.azure.core.util.Context context) Get all Environments for a subscription. Get all Managed Environments for a subscription.- Parameters:
context
- The context to associate with this operation.- Returns:
- all Managed Environments for a subscription as paginated response with
PagedIterable
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.DefaultErrorResponseErrorException
- 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<ManagedEnvironmentInner> listByResourceGroup(String resourceGroupName) Get all the Environments in a resource group. Get all the Managed Environments in a resource group.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.- Returns:
- all the Managed Environments in a resource group as paginated response with
PagedIterable
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.DefaultErrorResponseErrorException
- 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<ManagedEnvironmentInner> listByResourceGroup(String resourceGroupName, com.azure.core.util.Context context) Get all the Environments in a resource group. Get all the Managed Environments in a resource group.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.context
- The context to associate with this operation.- Returns:
- all the Managed Environments in a resource group as paginated response with
PagedIterable
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.DefaultErrorResponseErrorException
- 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<ManagedEnvironmentInner> getByResourceGroupWithResponse(String resourceGroupName, String environmentName, com.azure.core.util.Context context) Get the properties of a Managed Environment. Get the properties of a Managed Environment used to host container apps.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.environmentName
- Name of the Environment.context
- The context to associate with this operation.- Returns:
- the properties of a Managed Environment used to host container apps along with
Response
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.DefaultErrorResponseErrorException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
getByResourceGroup
Get the properties of a Managed Environment. Get the properties of a Managed Environment used to host container apps.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.environmentName
- Name of the Environment.- Returns:
- the properties of a Managed Environment used to host container apps.
- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.DefaultErrorResponseErrorException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
beginCreateOrUpdate
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<ManagedEnvironmentInner>,ManagedEnvironmentInner> beginCreateOrUpdate(String resourceGroupName, String environmentName, ManagedEnvironmentInner environmentEnvelope) Creates or updates a Managed Environment. Creates or updates a Managed Environment used to host container apps.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.environmentName
- Name of the Environment.environmentEnvelope
- Configuration details of the Environment.- Returns:
- the
SyncPoller
for polling of an environment for hosting container apps. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.DefaultErrorResponseErrorException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
beginCreateOrUpdate
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<ManagedEnvironmentInner>,ManagedEnvironmentInner> beginCreateOrUpdate(String resourceGroupName, String environmentName, ManagedEnvironmentInner environmentEnvelope, com.azure.core.util.Context context) Creates or updates a Managed Environment. Creates or updates a Managed Environment used to host container apps.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.environmentName
- Name of the Environment.environmentEnvelope
- Configuration details of the Environment.context
- The context to associate with this operation.- Returns:
- the
SyncPoller
for polling of an environment for hosting container apps. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.DefaultErrorResponseErrorException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
createOrUpdate
ManagedEnvironmentInner createOrUpdate(String resourceGroupName, String environmentName, ManagedEnvironmentInner environmentEnvelope) Creates or updates a Managed Environment. Creates or updates a Managed Environment used to host container apps.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.environmentName
- Name of the Environment.environmentEnvelope
- Configuration details of the Environment.- Returns:
- an environment for hosting container apps.
- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.DefaultErrorResponseErrorException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
createOrUpdate
ManagedEnvironmentInner createOrUpdate(String resourceGroupName, String environmentName, ManagedEnvironmentInner environmentEnvelope, com.azure.core.util.Context context) Creates or updates a Managed Environment. Creates or updates a Managed Environment used to host container apps.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.environmentName
- Name of the Environment.environmentEnvelope
- Configuration details of the Environment.context
- The context to associate with this operation.- Returns:
- an environment for hosting container apps.
- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.DefaultErrorResponseErrorException
- 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 environmentName) Delete a Managed Environment. Delete a Managed Environment if it does not have any container apps.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.environmentName
- Name of the Environment.- Returns:
- the
SyncPoller
for polling of long-running operation. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.DefaultErrorResponseErrorException
- 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 environmentName, com.azure.core.util.Context context) Delete a Managed Environment. Delete a Managed Environment if it does not have any container apps.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.environmentName
- Name of the Environment.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.DefaultErrorResponseErrorException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
delete
Delete a Managed Environment. Delete a Managed Environment if it does not have any container apps.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.environmentName
- Name of the Environment.- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.DefaultErrorResponseErrorException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
delete
Delete a Managed Environment. Delete a Managed Environment if it does not have any container apps.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.environmentName
- Name of the Environment.context
- The context to associate with this operation.- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.DefaultErrorResponseErrorException
- 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<ManagedEnvironmentInner>,ManagedEnvironmentInner> beginUpdate(String resourceGroupName, String environmentName, ManagedEnvironmentInner environmentEnvelope) Update Managed Environment's properties. Patches a Managed Environment using JSON Merge Patch.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.environmentName
- Name of the Environment.environmentEnvelope
- Configuration details of the Environment.- Returns:
- the
SyncPoller
for polling of an environment for hosting container apps. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.DefaultErrorResponseErrorException
- 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<ManagedEnvironmentInner>,ManagedEnvironmentInner> beginUpdate(String resourceGroupName, String environmentName, ManagedEnvironmentInner environmentEnvelope, com.azure.core.util.Context context) Update Managed Environment's properties. Patches a Managed Environment using JSON Merge Patch.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.environmentName
- Name of the Environment.environmentEnvelope
- Configuration details of the Environment.context
- The context to associate with this operation.- Returns:
- the
SyncPoller
for polling of an environment for hosting container apps. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.DefaultErrorResponseErrorException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
update
ManagedEnvironmentInner update(String resourceGroupName, String environmentName, ManagedEnvironmentInner environmentEnvelope) Update Managed Environment's properties. Patches a Managed Environment using JSON Merge Patch.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.environmentName
- Name of the Environment.environmentEnvelope
- Configuration details of the Environment.- Returns:
- an environment for hosting container apps.
- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.DefaultErrorResponseErrorException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
update
ManagedEnvironmentInner update(String resourceGroupName, String environmentName, ManagedEnvironmentInner environmentEnvelope, com.azure.core.util.Context context) Update Managed Environment's properties. Patches a Managed Environment using JSON Merge Patch.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.environmentName
- Name of the Environment.environmentEnvelope
- Configuration details of the Environment.context
- The context to associate with this operation.- Returns:
- an environment for hosting container apps.
- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.DefaultErrorResponseErrorException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
getAuthTokenWithResponse
com.azure.core.http.rest.Response<EnvironmentAuthTokenInner> getAuthTokenWithResponse(String resourceGroupName, String environmentName, com.azure.core.util.Context context) Get auth token for a managed environment Checks if resource name is available.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.environmentName
- Name of the Managed Environment.context
- The context to associate with this operation.- Returns:
- environment Auth Token along with
Response
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.DefaultErrorResponseErrorException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
getAuthToken
Get auth token for a managed environment Checks if resource name is available.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.environmentName
- Name of the Managed Environment.- Returns:
- environment Auth Token.
- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.DefaultErrorResponseErrorException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
listWorkloadProfileStates
com.azure.core.http.rest.PagedIterable<WorkloadProfileStatesInner> listWorkloadProfileStates(String resourceGroupName, String environmentName) Get all workload Profile States for a Managed Environment.. Get all workload Profile States for a Managed Environment.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.environmentName
- Name of the Managed Environment.- Returns:
- all workload Profile States for a Managed Environment as paginated response with
PagedIterable
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.DefaultErrorResponseErrorException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
listWorkloadProfileStates
com.azure.core.http.rest.PagedIterable<WorkloadProfileStatesInner> listWorkloadProfileStates(String resourceGroupName, String environmentName, com.azure.core.util.Context context) Get all workload Profile States for a Managed Environment.. Get all workload Profile States for a Managed Environment.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.environmentName
- Name of the Managed Environment.context
- The context to associate with this operation.- Returns:
- all workload Profile States for a Managed Environment as paginated response with
PagedIterable
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.DefaultErrorResponseErrorException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-