Interface Organizations
public interface Organizations
Resource collection API of Organizations.
-
Method Summary
Modifier and TypeMethodDescriptionBegins definition for a new OrganizationResource resource.voidDelete a OrganizationResource.voiddeleteById(String id) Delete a OrganizationResource.voiddeleteByIdWithResponse(String id, com.azure.core.util.Context context) Delete a OrganizationResource.voiddeleteByResourceGroup(String resourceGroupName, String organizationname) Delete a OrganizationResource.Get a OrganizationResource.com.azure.core.http.rest.Response<OrganizationResource> getByIdWithResponse(String id, com.azure.core.util.Context context) Get a OrganizationResource.getByResourceGroup(String resourceGroupName, String organizationname) Get a OrganizationResource.com.azure.core.http.rest.Response<OrganizationResource> getByResourceGroupWithResponse(String resourceGroupName, String organizationname, com.azure.core.util.Context context) Get a OrganizationResource.com.azure.core.http.rest.PagedIterable<OrganizationResource> list()List OrganizationResource resources by subscription ID.com.azure.core.http.rest.PagedIterable<OrganizationResource> list(com.azure.core.util.Context context) List OrganizationResource resources by subscription ID.com.azure.core.http.rest.PagedIterable<OrganizationResource> listByResourceGroup(String resourceGroupName) List OrganizationResource resources by resource group.com.azure.core.http.rest.PagedIterable<OrganizationResource> listByResourceGroup(String resourceGroupName, com.azure.core.util.Context context) List OrganizationResource resources by resource group.
-
Method Details
-
getByResourceGroupWithResponse
com.azure.core.http.rest.Response<OrganizationResource> getByResourceGroupWithResponse(String resourceGroupName, String organizationname, com.azure.core.util.Context context) Get a OrganizationResource.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.organizationname- Name of the Organization resource.context- The context to associate with this operation.- Returns:
- a OrganizationResource 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 OrganizationResource.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.organizationname- Name of the Organization resource.- Returns:
- a OrganizationResource.
- 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
Delete a OrganizationResource.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.organizationname- Name of the Organization resource.- 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 OrganizationResource.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.organizationname- Name of the Organization resource.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
com.azure.core.http.rest.PagedIterable<OrganizationResource> listByResourceGroup(String resourceGroupName) List OrganizationResource resources by resource group.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.- Returns:
- the response of a OrganizationResource 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<OrganizationResource> listByResourceGroup(String resourceGroupName, com.azure.core.util.Context context) List OrganizationResource 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 OrganizationResource 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<OrganizationResource> list()List OrganizationResource resources by subscription ID.- Returns:
- the response of a OrganizationResource 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
com.azure.core.http.rest.PagedIterable<OrganizationResource> list(com.azure.core.util.Context context) List OrganizationResource resources by subscription ID.- Parameters:
context- The context to associate with this operation.- Returns:
- the response of a OrganizationResource 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.
-
getById
Get a OrganizationResource.- Parameters:
id- the resource ID.- Returns:
- a OrganizationResource 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<OrganizationResource> getByIdWithResponse(String id, com.azure.core.util.Context context) Get a OrganizationResource.- Parameters:
id- the resource ID.context- The context to associate with this operation.- Returns:
- a OrganizationResource 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
Delete a OrganizationResource.- 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
Delete a OrganizationResource.- 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
Begins definition for a new OrganizationResource resource.- Parameters:
name- resource name.- Returns:
- the first stage of the new OrganizationResource definition.
-