Interface PartnerRegistrations
public interface PartnerRegistrations
Resource collection API of PartnerRegistrations.
-
Method Summary
Modifier and TypeMethodDescriptionBegins definition for a new PartnerRegistration resource.void
delete
(String resourceGroupName, String partnerRegistrationName, com.azure.core.util.Context context) Deletes a partner registration with the specified parameters.void
deleteById
(String id) Deletes a partner registration with the specified parameters.void
deleteByIdWithResponse
(String id, com.azure.core.util.Context context) Deletes a partner registration with the specified parameters.void
deleteByResourceGroup
(String resourceGroupName, String partnerRegistrationName) Deletes a partner registration with the specified parameters.Gets a partner registration with the specified parameters.com.azure.core.http.rest.Response<PartnerRegistration>
getByIdWithResponse
(String id, com.azure.core.util.Context context) Gets a partner registration with the specified parameters.getByResourceGroup
(String resourceGroupName, String partnerRegistrationName) Gets a partner registration with the specified parameters.com.azure.core.http.rest.Response<PartnerRegistration>
getByResourceGroupWithResponse
(String resourceGroupName, String partnerRegistrationName, com.azure.core.util.Context context) Gets a partner registration with the specified parameters.com.azure.core.http.rest.PagedIterable<PartnerRegistration>
list()
List all the partner registrations under an Azure subscription.com.azure.core.http.rest.PagedIterable<PartnerRegistration>
List all the partner registrations under an Azure subscription.com.azure.core.http.rest.PagedIterable<PartnerRegistration>
listByResourceGroup
(String resourceGroupName) List all the partner registrations under a resource group.com.azure.core.http.rest.PagedIterable<PartnerRegistration>
listByResourceGroup
(String resourceGroupName, String filter, Integer top, com.azure.core.util.Context context) List all the partner registrations under a resource group.
-
Method Details
-
getByResourceGroup
Gets a partner registration with the specified parameters.- Parameters:
resourceGroupName
- The name of the resource group within the user's subscription.partnerRegistrationName
- Name of the partner registration.- Returns:
- a partner registration with the specified parameters.
- 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<PartnerRegistration> getByResourceGroupWithResponse(String resourceGroupName, String partnerRegistrationName, com.azure.core.util.Context context) Gets a partner registration with the specified parameters.- Parameters:
resourceGroupName
- The name of the resource group within the user's subscription.partnerRegistrationName
- Name of the partner registration.context
- The context to associate with this operation.- Returns:
- a partner registration with the specified parameters 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
Deletes a partner registration with the specified parameters.- Parameters:
resourceGroupName
- The name of the resource group within the user's subscription.partnerRegistrationName
- Name of the partner registration.- 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 partnerRegistrationName, com.azure.core.util.Context context) Deletes a partner registration with the specified parameters.- Parameters:
resourceGroupName
- The name of the resource group within the user's subscription.partnerRegistrationName
- Name of the partner registration.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<PartnerRegistration> list()List all the partner registrations under an Azure subscription.- Returns:
- result of the List Partner Registrations 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<PartnerRegistration> list(String filter, Integer top, com.azure.core.util.Context context) List all the partner registrations 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 Registrations 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<PartnerRegistration> listByResourceGroup(String resourceGroupName) List all the partner registrations under a resource group.- Parameters:
resourceGroupName
- The name of the resource group within the user's subscription.- Returns:
- result of the List Partner Registrations 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<PartnerRegistration> listByResourceGroup(String resourceGroupName, String filter, Integer top, com.azure.core.util.Context context) List all the partner registrations 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 Registrations 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
Gets a partner registration with the specified parameters.- Parameters:
id
- the resource ID.- Returns:
- a partner registration with the specified parameters 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<PartnerRegistration> getByIdWithResponse(String id, com.azure.core.util.Context context) Gets a partner registration with the specified parameters.- Parameters:
id
- the resource ID.context
- The context to associate with this operation.- Returns:
- a partner registration with the specified parameters 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 a partner registration with the specified parameters.- 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
Deletes a partner registration with the specified parameters.- 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 PartnerRegistration resource.- Parameters:
name
- resource name.- Returns:
- the first stage of the new PartnerRegistration definition.
-