Interface OrganizationsClient
-
public interface OrganizationsClient
An instance of this class provides access to all the operations defined in OrganizationsClient.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<OrganizationResourceInner>,OrganizationResourceInner>
beginCreate(String resourceGroupName, String organizationName, OrganizationResourceInner body)
Create Organization resource.com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<OrganizationResourceInner>,OrganizationResourceInner>
beginCreate(String resourceGroupName, String organizationName, OrganizationResourceInner body, com.azure.core.util.Context context)
Create Organization resource.com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void>
beginDelete(String resourceGroupName, String organizationName)
Delete Organization resource.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 Organization resource.OrganizationResourceInner
create(String resourceGroupName, String organizationName)
Create Organization resource.OrganizationResourceInner
create(String resourceGroupName, String organizationName, OrganizationResourceInner body)
Create Organization resource.OrganizationResourceInner
create(String resourceGroupName, String organizationName, OrganizationResourceInner body, com.azure.core.util.Context context)
Create Organization resource.void
delete(String resourceGroupName, String organizationName)
Delete Organization resource.void
delete(String resourceGroupName, String organizationName, com.azure.core.util.Context context)
Delete Organization resource.OrganizationResourceInner
getByResourceGroup(String resourceGroupName, String organizationName)
Get the properties of a specific Organization resource.com.azure.core.http.rest.Response<OrganizationResourceInner>
getByResourceGroupWithResponse(String resourceGroupName, String organizationName, com.azure.core.util.Context context)
Get the properties of a specific Organization resource.com.azure.core.http.rest.PagedIterable<OrganizationResourceInner>
list()
List all organizations under the specified subscription.com.azure.core.http.rest.PagedIterable<OrganizationResourceInner>
list(com.azure.core.util.Context context)
List all organizations under the specified subscription.com.azure.core.http.rest.PagedIterable<OrganizationResourceInner>
listByResourceGroup(String resourceGroupName)
List all Organizations under the specified resource group.com.azure.core.http.rest.PagedIterable<OrganizationResourceInner>
listByResourceGroup(String resourceGroupName, com.azure.core.util.Context context)
List all Organizations under the specified resource group.OrganizationResourceInner
update(String resourceGroupName, String organizationName)
Update Organization resource.com.azure.core.http.rest.Response<OrganizationResourceInner>
updateWithResponse(String resourceGroupName, String organizationName, OrganizationResourceUpdate body, com.azure.core.util.Context context)
Update Organization resource.
-
-
-
Method Detail
-
list
com.azure.core.http.rest.PagedIterable<OrganizationResourceInner> list()
List all organizations under the specified subscription.- Returns:
- the response of a list operation.
- 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 all organizations under the specified subscription.- Parameters:
context
- The context to associate with this operation.- Returns:
- the response of a list 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 all Organizations under the specified resource group.- Parameters:
resourceGroupName
- Resource group name.- Returns:
- the response of a list 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, com.azure.core.util.Context context)
List all Organizations under the specified resource group.- Parameters:
resourceGroupName
- Resource group name.context
- The context to associate with this operation.- Returns:
- the response of a list 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.
-
getByResourceGroup
OrganizationResourceInner getByResourceGroup(String resourceGroupName, String organizationName)
Get the properties of a specific Organization resource.- Parameters:
resourceGroupName
- Resource group name.organizationName
- Organization resource name.- Returns:
- the properties of a specific 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.
-
getByResourceGroupWithResponse
com.azure.core.http.rest.Response<OrganizationResourceInner> getByResourceGroupWithResponse(String resourceGroupName, String organizationName, com.azure.core.util.Context context)
Get the properties of a specific Organization resource.- Parameters:
resourceGroupName
- Resource group name.organizationName
- Organization resource name.context
- The context to associate with this operation.- Returns:
- the properties of a specific 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.
-
beginCreate
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<OrganizationResourceInner>,OrganizationResourceInner> beginCreate(String resourceGroupName, String organizationName, OrganizationResourceInner body)
Create Organization resource.- Parameters:
resourceGroupName
- Resource group name.organizationName
- Organization resource name.body
- Organization resource model.- Returns:
- 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.
-
beginCreate
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<OrganizationResourceInner>,OrganizationResourceInner> beginCreate(String resourceGroupName, String organizationName, OrganizationResourceInner body, com.azure.core.util.Context context)
Create Organization resource.- Parameters:
resourceGroupName
- Resource group name.organizationName
- Organization resource name.body
- Organization resource model.context
- The context to associate with this operation.- Returns:
- 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.
-
create
OrganizationResourceInner create(String resourceGroupName, String organizationName, OrganizationResourceInner body)
Create Organization resource.- Parameters:
resourceGroupName
- Resource group name.organizationName
- Organization resource name.body
- Organization resource model.- Returns:
- 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.
-
create
OrganizationResourceInner create(String resourceGroupName, String organizationName)
Create Organization resource.- Parameters:
resourceGroupName
- Resource group name.organizationName
- Organization resource name.- Returns:
- 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.
-
create
OrganizationResourceInner create(String resourceGroupName, String organizationName, OrganizationResourceInner body, com.azure.core.util.Context context)
Create Organization resource.- Parameters:
resourceGroupName
- Resource group name.organizationName
- Organization resource name.body
- Organization resource model.context
- The context to associate with this operation.- Returns:
- 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.
-
update
OrganizationResourceInner update(String resourceGroupName, String organizationName)
Update Organization resource.- Parameters:
resourceGroupName
- Resource group name.organizationName
- Organization resource name.- Returns:
- 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.
-
updateWithResponse
com.azure.core.http.rest.Response<OrganizationResourceInner> updateWithResponse(String resourceGroupName, String organizationName, OrganizationResourceUpdate body, com.azure.core.util.Context context)
Update Organization resource.- Parameters:
resourceGroupName
- Resource group name.organizationName
- Organization resource name.body
- Updated Organization resource.context
- The context to associate with this operation.- Returns:
- 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.
-
beginDelete
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void> beginDelete(String resourceGroupName, String organizationName)
Delete Organization resource.- Parameters:
resourceGroupName
- Resource group name.organizationName
- Organization resource name.- Returns:
- the completion.
- 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 Organization resource.- Parameters:
resourceGroupName
- Resource group name.organizationName
- Organization resource name.context
- The context to associate with this operation.- Returns:
- the completion.
- 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
void delete(String resourceGroupName, String organizationName)
Delete Organization resource.- Parameters:
resourceGroupName
- Resource group name.organizationName
- Organization resource name.- 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
void delete(String resourceGroupName, String organizationName, com.azure.core.util.Context context)
Delete Organization resource.- Parameters:
resourceGroupName
- Resource group name.organizationName
- Organization resource name.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.
-
-