Interface OrganizationsClient
public interface OrganizationsClient
An instance of this class provides access to all the operations defined in OrganizationsClient.
-
Method Summary
Modifier and TypeMethodDescriptioncom.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<OrganizationResourceInner>, OrganizationResourceInner> beginCreateOrUpdate(String resourceGroupName, String organizationname, OrganizationResourceInner resource) Create a OrganizationResource.com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<OrganizationResourceInner>, OrganizationResourceInner> beginCreateOrUpdate(String resourceGroupName, String organizationname, OrganizationResourceInner resource, com.azure.core.util.Context context) Create a OrganizationResource.beginDelete(String resourceGroupName, String organizationname) Delete a OrganizationResource.beginDelete(String resourceGroupName, String organizationname, com.azure.core.util.Context context) Delete a OrganizationResource.createOrUpdate(String resourceGroupName, String organizationname, OrganizationResourceInner resource) Create a OrganizationResource.createOrUpdate(String resourceGroupName, String organizationname, OrganizationResourceInner resource, com.azure.core.util.Context context) Create a OrganizationResource.voidDelete a OrganizationResource.voidDelete a OrganizationResource.getByResourceGroup(String resourceGroupName, String organizationname) Get a OrganizationResource.com.azure.core.http.rest.Response<OrganizationResourceInner> getByResourceGroupWithResponse(String resourceGroupName, String organizationname, com.azure.core.util.Context context) Get a OrganizationResource.com.azure.core.http.rest.PagedIterable<OrganizationResourceInner> list()List OrganizationResource resources by subscription ID.com.azure.core.http.rest.PagedIterable<OrganizationResourceInner> list(com.azure.core.util.Context context) List OrganizationResource resources by subscription ID.com.azure.core.http.rest.PagedIterable<OrganizationResourceInner> listByResourceGroup(String resourceGroupName) List OrganizationResource resources by resource group.com.azure.core.http.rest.PagedIterable<OrganizationResourceInner> listByResourceGroup(String resourceGroupName, com.azure.core.util.Context context) List OrganizationResource resources by resource group.update(String resourceGroupName, String organizationname, OrganizationResourceUpdate properties) Update a OrganizationResource.com.azure.core.http.rest.Response<OrganizationResourceInner> updateWithResponse(String resourceGroupName, String organizationname, OrganizationResourceUpdate properties, com.azure.core.util.Context context) Update a OrganizationResource.
-
Method Details
-
getByResourceGroupWithResponse
com.azure.core.http.rest.Response<OrganizationResourceInner> 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.
-
beginCreateOrUpdate
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<OrganizationResourceInner>,OrganizationResourceInner> beginCreateOrUpdate(String resourceGroupName, String organizationname, OrganizationResourceInner resource) Create a OrganizationResource.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.organizationname- Name of the Organization resource.resource- Resource create parameters.- Returns:
- the
SyncPollerfor polling of concrete tracked resource types can be created by aliasing this type using a specific property 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.
-
beginCreateOrUpdate
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<OrganizationResourceInner>,OrganizationResourceInner> beginCreateOrUpdate(String resourceGroupName, String organizationname, OrganizationResourceInner resource, com.azure.core.util.Context context) Create a OrganizationResource.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.organizationname- Name of the Organization resource.resource- Resource create parameters.context- The context to associate with this operation.- Returns:
- the
SyncPollerfor polling of concrete tracked resource types can be created by aliasing this type using a specific property 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.
-
createOrUpdate
OrganizationResourceInner createOrUpdate(String resourceGroupName, String organizationname, OrganizationResourceInner resource) Create a OrganizationResource.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.organizationname- Name of the Organization resource.resource- Resource create parameters.- Returns:
- concrete tracked resource types can be created by aliasing this type using a specific property 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.
-
createOrUpdate
OrganizationResourceInner createOrUpdate(String resourceGroupName, String organizationname, OrganizationResourceInner resource, com.azure.core.util.Context context) Create a OrganizationResource.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.organizationname- Name of the Organization resource.resource- Resource create parameters.context- The context to associate with this operation.- Returns:
- concrete tracked resource types can be created by aliasing this type using a specific property 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.
-
updateWithResponse
com.azure.core.http.rest.Response<OrganizationResourceInner> updateWithResponse(String resourceGroupName, String organizationname, OrganizationResourceUpdate properties, com.azure.core.util.Context context) Update a OrganizationResource.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.organizationname- Name of the Organization resource.properties- The resource properties to be updated.context- The context to associate with this operation.- Returns:
- concrete tracked resource types can be created by aliasing this type using a specific property 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.
-
update
OrganizationResourceInner update(String resourceGroupName, String organizationname, OrganizationResourceUpdate properties) Update a OrganizationResource.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.organizationname- Name of the Organization resource.properties- The resource properties to be updated.- Returns:
- concrete tracked resource types can be created by aliasing this type using a specific property 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.
-
beginDelete
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void> beginDelete(String resourceGroupName, String organizationname) Delete a OrganizationResource.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.organizationname- Name of the Organization resource.- Returns:
- the
SyncPollerfor 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 organizationname, com.azure.core.util.Context context) 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.- Returns:
- the
SyncPollerfor 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 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<OrganizationResourceInner> 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<OrganizationResourceInner> 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<OrganizationResourceInner> 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<OrganizationResourceInner> 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.
-