Interface EnvironmentTypes
public interface EnvironmentTypes
Resource collection API of EnvironmentTypes.
-
Method Summary
Modifier and TypeMethodDescriptionBegins definition for a new EnvironmentType resource.void
Deletes an environment type.void
deleteById
(String id) Deletes an environment type.com.azure.core.http.rest.Response<Void>
deleteByIdWithResponse
(String id, com.azure.core.util.Context context) Deletes an environment type.com.azure.core.http.rest.Response<Void>
deleteWithResponse
(String resourceGroupName, String devCenterName, String environmentTypeName, com.azure.core.util.Context context) Deletes an environment type.Gets an environment type.Gets an environment type.com.azure.core.http.rest.Response<EnvironmentType>
getByIdWithResponse
(String id, com.azure.core.util.Context context) Gets an environment type.com.azure.core.http.rest.Response<EnvironmentType>
getWithResponse
(String resourceGroupName, String devCenterName, String environmentTypeName, com.azure.core.util.Context context) Gets an environment type.com.azure.core.http.rest.PagedIterable<EnvironmentType>
listByDevCenter
(String resourceGroupName, String devCenterName) Lists environment types for the devcenter.com.azure.core.http.rest.PagedIterable<EnvironmentType>
listByDevCenter
(String resourceGroupName, String devCenterName, Integer top, com.azure.core.util.Context context) Lists environment types for the devcenter.
-
Method Details
-
listByDevCenter
com.azure.core.http.rest.PagedIterable<EnvironmentType> listByDevCenter(String resourceGroupName, String devCenterName) Lists environment types for the devcenter.- Parameters:
resourceGroupName
- Name of the resource group within the Azure subscription.devCenterName
- The name of the devcenter.- Returns:
- result of the environment type 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.
-
listByDevCenter
com.azure.core.http.rest.PagedIterable<EnvironmentType> listByDevCenter(String resourceGroupName, String devCenterName, Integer top, com.azure.core.util.Context context) Lists environment types for the devcenter.- Parameters:
resourceGroupName
- Name of the resource group within the Azure subscription.devCenterName
- The name of the devcenter.top
- The maximum number of resources to return from the operation. Example: '$top=10'.context
- The context to associate with this operation.- Returns:
- result of the environment type 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.
-
get
Gets an environment type.- Parameters:
resourceGroupName
- Name of the resource group within the Azure subscription.devCenterName
- The name of the devcenter.environmentTypeName
- The name of the environment type.- Returns:
- an environment type.
- 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.
-
getWithResponse
com.azure.core.http.rest.Response<EnvironmentType> getWithResponse(String resourceGroupName, String devCenterName, String environmentTypeName, com.azure.core.util.Context context) Gets an environment type.- Parameters:
resourceGroupName
- Name of the resource group within the Azure subscription.devCenterName
- The name of the devcenter.environmentTypeName
- The name of the environment type.context
- The context to associate with this operation.- Returns:
- an environment type 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.
-
delete
Deletes an environment type.- Parameters:
resourceGroupName
- Name of the resource group within the Azure subscription.devCenterName
- The name of the devcenter.environmentTypeName
- The name of the environment type.- 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.
-
deleteWithResponse
com.azure.core.http.rest.Response<Void> deleteWithResponse(String resourceGroupName, String devCenterName, String environmentTypeName, com.azure.core.util.Context context) Deletes an environment type.- Parameters:
resourceGroupName
- Name of the resource group within the Azure subscription.devCenterName
- The name of the devcenter.environmentTypeName
- The name of the environment type.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.
-
getById
Gets an environment type.- Parameters:
id
- the resource ID.- Returns:
- an environment type 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<EnvironmentType> getByIdWithResponse(String id, com.azure.core.util.Context context) Gets an environment type.- Parameters:
id
- the resource ID.context
- The context to associate with this operation.- Returns:
- an environment type 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
Deletes an environment type.- 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) Deletes an environment type.- 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 EnvironmentType resource.- Parameters:
name
- resource name.- Returns:
- the first stage of the new EnvironmentType definition.
-