Interface PartnerNamespaces
public interface PartnerNamespaces
Resource collection API of PartnerNamespaces.
-
Method Summary
Modifier and TypeMethodDescriptionBegins definition for a new PartnerNamespace resource.void
Delete existing partner namespace.void
deleteById
(String id) Delete existing partner namespace.void
deleteByIdWithResponse
(String id, com.azure.core.util.Context context) Delete existing partner namespace.void
deleteByResourceGroup
(String resourceGroupName, String partnerNamespaceName) Delete existing partner namespace.Get properties of a partner namespace.com.azure.core.http.rest.Response<PartnerNamespace>
getByIdWithResponse
(String id, com.azure.core.util.Context context) Get properties of a partner namespace.getByResourceGroup
(String resourceGroupName, String partnerNamespaceName) Get properties of a partner namespace.com.azure.core.http.rest.Response<PartnerNamespace>
getByResourceGroupWithResponse
(String resourceGroupName, String partnerNamespaceName, com.azure.core.util.Context context) Get properties of a partner namespace.com.azure.core.http.rest.PagedIterable<PartnerNamespace>
list()
List all the partner namespaces under an Azure subscription.com.azure.core.http.rest.PagedIterable<PartnerNamespace>
List all the partner namespaces under an Azure subscription.com.azure.core.http.rest.PagedIterable<PartnerNamespace>
listByResourceGroup
(String resourceGroupName) List all the partner namespaces under a resource group.com.azure.core.http.rest.PagedIterable<PartnerNamespace>
listByResourceGroup
(String resourceGroupName, String filter, Integer top, com.azure.core.util.Context context) List all the partner namespaces under a resource group.listSharedAccessKeys
(String resourceGroupName, String partnerNamespaceName) List the two keys used to publish to a partner namespace.com.azure.core.http.rest.Response<PartnerNamespaceSharedAccessKeys>
listSharedAccessKeysWithResponse
(String resourceGroupName, String partnerNamespaceName, com.azure.core.util.Context context) List the two keys used to publish to a partner namespace.regenerateKey
(String resourceGroupName, String partnerNamespaceName, PartnerNamespaceRegenerateKeyRequest regenerateKeyRequest) Regenerate a shared access key for a partner namespace.com.azure.core.http.rest.Response<PartnerNamespaceSharedAccessKeys>
regenerateKeyWithResponse
(String resourceGroupName, String partnerNamespaceName, PartnerNamespaceRegenerateKeyRequest regenerateKeyRequest, com.azure.core.util.Context context) Regenerate a shared access key for a partner namespace.
-
Method Details
-
getByResourceGroup
Get properties of a partner namespace.- Parameters:
resourceGroupName
- The name of the resource group within the user's subscription.partnerNamespaceName
- Name of the partner namespace.- Returns:
- properties of a partner namespace.
- 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<PartnerNamespace> getByResourceGroupWithResponse(String resourceGroupName, String partnerNamespaceName, com.azure.core.util.Context context) Get properties of a partner namespace.- Parameters:
resourceGroupName
- The name of the resource group within the user's subscription.partnerNamespaceName
- Name of the partner namespace.context
- The context to associate with this operation.- Returns:
- properties of a partner namespace 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.
-
deleteByResourceGroup
Delete existing partner namespace.- Parameters:
resourceGroupName
- The name of the resource group within the user's subscription.partnerNamespaceName
- Name of the partner namespace.- 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 partnerNamespaceName, com.azure.core.util.Context context) Delete existing partner namespace.- Parameters:
resourceGroupName
- The name of the resource group within the user's subscription.partnerNamespaceName
- Name of the partner namespace.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.
-
list
com.azure.core.http.rest.PagedIterable<PartnerNamespace> list()List all the partner namespaces under an Azure subscription.- Returns:
- result of the List Partner Namespaces 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<PartnerNamespace> list(String filter, Integer top, com.azure.core.util.Context context) List all the partner namespaces under an Azure subscription.- Parameters:
filter
- The query used to filter the search results using OData syntax. Filtering is permitted on the 'name' property only and with limited number of OData operations. These operations are: the 'contains' function as well as the following logical operations: not, and, or, eq (for equal), and ne (for not equal). No arithmetic operations are supported. The following is a valid filter example: $filter=contains(namE, 'PATTERN') and name ne 'PATTERN-1'. The following is not a valid filter example: $filter=location eq 'westus'.top
- The number of results to return per page for the list operation. Valid range for top parameter is 1 to 100. If not specified, the default number of results to be returned is 20 items per page.context
- The context to associate with this operation.- Returns:
- result of the List Partner Namespaces 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<PartnerNamespace> listByResourceGroup(String resourceGroupName) List all the partner namespaces under a resource group.- Parameters:
resourceGroupName
- The name of the resource group within the user's subscription.- Returns:
- result of the List Partner Namespaces 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<PartnerNamespace> listByResourceGroup(String resourceGroupName, String filter, Integer top, com.azure.core.util.Context context) List all the partner namespaces under a resource group.- Parameters:
resourceGroupName
- The name of the resource group within the user's subscription.filter
- The query used to filter the search results using OData syntax. Filtering is permitted on the 'name' property only and with limited number of OData operations. These operations are: the 'contains' function as well as the following logical operations: not, and, or, eq (for equal), and ne (for not equal). No arithmetic operations are supported. The following is a valid filter example: $filter=contains(namE, 'PATTERN') and name ne 'PATTERN-1'. The following is not a valid filter example: $filter=location eq 'westus'.top
- The number of results to return per page for the list operation. Valid range for top parameter is 1 to 100. If not specified, the default number of results to be returned is 20 items per page.context
- The context to associate with this operation.- Returns:
- result of the List Partner Namespaces 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.
-
regenerateKey
PartnerNamespaceSharedAccessKeys regenerateKey(String resourceGroupName, String partnerNamespaceName, PartnerNamespaceRegenerateKeyRequest regenerateKeyRequest) Regenerate a shared access key for a partner namespace.- Parameters:
resourceGroupName
- The name of the resource group within the user's subscription.partnerNamespaceName
- Name of the partner namespace.regenerateKeyRequest
- Request body to regenerate key.- Returns:
- shared access keys of the partner namespace.
- 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.
-
regenerateKeyWithResponse
com.azure.core.http.rest.Response<PartnerNamespaceSharedAccessKeys> regenerateKeyWithResponse(String resourceGroupName, String partnerNamespaceName, PartnerNamespaceRegenerateKeyRequest regenerateKeyRequest, com.azure.core.util.Context context) Regenerate a shared access key for a partner namespace.- Parameters:
resourceGroupName
- The name of the resource group within the user's subscription.partnerNamespaceName
- Name of the partner namespace.regenerateKeyRequest
- Request body to regenerate key.context
- The context to associate with this operation.- Returns:
- shared access keys of the partner namespace 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.
-
getById
Get properties of a partner namespace.- Parameters:
id
- the resource ID.- Returns:
- properties of a partner namespace 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<PartnerNamespace> getByIdWithResponse(String id, com.azure.core.util.Context context) Get properties of a partner namespace.- Parameters:
id
- the resource ID.context
- The context to associate with this operation.- Returns:
- properties of a partner namespace 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 existing partner namespace.- 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 existing partner namespace.- 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 PartnerNamespace resource.- Parameters:
name
- resource name.- Returns:
- the first stage of the new PartnerNamespace definition.
-