Interface ResourceProviders
-
public interface ResourceProviders
Resource collection API of ResourceProviders.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
cancelOrderItem(String orderItemName, String resourceGroupName, CancellationReason cancellationReason)
Cancel order item.com.azure.core.http.rest.Response<Void>
cancelOrderItemWithResponse(String orderItemName, String resourceGroupName, CancellationReason cancellationReason, com.azure.core.util.Context context)
Cancel order item.AddressResource.DefinitionStages.Blank
defineAddress(String name)
Begins definition for a new AddressResource resource.OrderItemResource.DefinitionStages.Blank
defineOrderItem(String name)
Begins definition for a new OrderItemResource resource.void
delete(String resourceGroupName, String addressName, com.azure.core.util.Context context)
Deletes an address.void
deleteById(String id)
Deletes an address.void
deleteByIdWithResponse(String id, com.azure.core.util.Context context)
Deletes an address.void
deleteByResourceGroup(String resourceGroupName, String addressName)
Deletes an address.void
deleteOrderItemById(String id)
Deletes an order item.void
deleteOrderItemByIdWithResponse(String id, com.azure.core.util.Context context)
Deletes an order item.void
deleteOrderItemByName(String orderItemName, String resourceGroupName)
Deletes an order item.void
deleteOrderItemByName(String orderItemName, String resourceGroupName, com.azure.core.util.Context context)
Deletes an order item.AddressResource
getById(String id)
Gets information about the specified address.com.azure.core.http.rest.Response<AddressResource>
getByIdWithResponse(String id, com.azure.core.util.Context context)
Gets information about the specified address.AddressResource
getByResourceGroup(String resourceGroupName, String addressName)
Gets information about the specified address.com.azure.core.http.rest.Response<AddressResource>
getByResourceGroupWithResponse(String resourceGroupName, String addressName, com.azure.core.util.Context context)
Gets information about the specified address.OrderResource
getOrderByName(String orderName, String resourceGroupName, String location)
Gets an order.com.azure.core.http.rest.Response<OrderResource>
getOrderByNameWithResponse(String orderName, String resourceGroupName, String location, com.azure.core.util.Context context)
Gets an order.OrderItemResource
getOrderItemById(String id)
Gets an order item.com.azure.core.http.rest.Response<OrderItemResource>
getOrderItemByIdWithResponse(String id, String expand, com.azure.core.util.Context context)
Gets an order item.OrderItemResource
getOrderItemByName(String orderItemName, String resourceGroupName)
Gets an order item.com.azure.core.http.rest.Response<OrderItemResource>
getOrderItemByNameWithResponse(String orderItemName, String resourceGroupName, String expand, com.azure.core.util.Context context)
Gets an order item.com.azure.core.http.rest.PagedIterable<AddressResource>
list()
Lists all the addresses available under the subscription.com.azure.core.http.rest.PagedIterable<AddressResource>
list(String filter, String skipToken, com.azure.core.util.Context context)
Lists all the addresses available under the subscription.com.azure.core.http.rest.PagedIterable<AddressResource>
listByResourceGroup(String resourceGroupName)
Lists all the addresses available under the given resource group.com.azure.core.http.rest.PagedIterable<AddressResource>
listByResourceGroup(String resourceGroupName, String filter, String skipToken, com.azure.core.util.Context context)
Lists all the addresses available under the given resource group.com.azure.core.http.rest.PagedIterable<Configuration>
listConfigurations(ConfigurationsRequest configurationsRequest)
This method provides the list of configurations for the given product family, product line and product under subscription.com.azure.core.http.rest.PagedIterable<Configuration>
listConfigurations(ConfigurationsRequest configurationsRequest, String skipToken, com.azure.core.util.Context context)
This method provides the list of configurations for the given product family, product line and product under subscription.com.azure.core.http.rest.PagedIterable<Operation>
listOperations()
This method gets all the operations that are exposed for customer.com.azure.core.http.rest.PagedIterable<Operation>
listOperations(com.azure.core.util.Context context)
This method gets all the operations that are exposed for customer.com.azure.core.http.rest.PagedIterable<OrderResource>
listOrderAtResourceGroupLevel(String resourceGroupName)
Lists order at resource group level.com.azure.core.http.rest.PagedIterable<OrderResource>
listOrderAtResourceGroupLevel(String resourceGroupName, String skipToken, com.azure.core.util.Context context)
Lists order at resource group level.com.azure.core.http.rest.PagedIterable<OrderResource>
listOrderAtSubscriptionLevel()
Lists order at subscription level.com.azure.core.http.rest.PagedIterable<OrderResource>
listOrderAtSubscriptionLevel(String skipToken, com.azure.core.util.Context context)
Lists order at subscription level.com.azure.core.http.rest.PagedIterable<OrderItemResource>
listOrderItemsAtResourceGroupLevel(String resourceGroupName)
Lists order item at resource group level.com.azure.core.http.rest.PagedIterable<OrderItemResource>
listOrderItemsAtResourceGroupLevel(String resourceGroupName, String filter, String expand, String skipToken, com.azure.core.util.Context context)
Lists order item at resource group level.com.azure.core.http.rest.PagedIterable<OrderItemResource>
listOrderItemsAtSubscriptionLevel()
Lists order item at subscription level.com.azure.core.http.rest.PagedIterable<OrderItemResource>
listOrderItemsAtSubscriptionLevel(String filter, String expand, String skipToken, com.azure.core.util.Context context)
Lists order item at subscription level.com.azure.core.http.rest.PagedIterable<ProductFamily>
listProductFamilies(ProductFamiliesRequest productFamiliesRequest)
This method provides the list of product families for the given subscription.com.azure.core.http.rest.PagedIterable<ProductFamily>
listProductFamilies(ProductFamiliesRequest productFamiliesRequest, String expand, String skipToken, com.azure.core.util.Context context)
This method provides the list of product families for the given subscription.com.azure.core.http.rest.PagedIterable<ProductFamiliesMetadataDetails>
listProductFamiliesMetadata()
This method provides the list of product families metadata for the given subscription.com.azure.core.http.rest.PagedIterable<ProductFamiliesMetadataDetails>
listProductFamiliesMetadata(String skipToken, com.azure.core.util.Context context)
This method provides the list of product families metadata for the given subscription.void
returnOrderItem(String orderItemName, String resourceGroupName, ReturnOrderItemDetails returnOrderItemDetails)
Return order item.void
returnOrderItem(String orderItemName, String resourceGroupName, ReturnOrderItemDetails returnOrderItemDetails, com.azure.core.util.Context context)
Return order item.
-
-
-
Method Detail
-
listOperations
com.azure.core.http.rest.PagedIterable<Operation> listOperations()
This method gets all the operations that are exposed for customer.- Returns:
- a list of REST API operations supported by an Azure Resource Provider.
- 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.
-
listOperations
com.azure.core.http.rest.PagedIterable<Operation> listOperations(com.azure.core.util.Context context)
This method gets all the operations that are exposed for customer.- Parameters:
context
- The context to associate with this operation.- Returns:
- a list of REST API operations supported by an Azure Resource Provider.
- 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<AddressResource> list()
Lists all the addresses available under the subscription.- Returns:
- address Resource Collection.
- 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<AddressResource> list(String filter, String skipToken, com.azure.core.util.Context context)
Lists all the addresses available under the subscription.- Parameters:
filter
- $filter is supported to filter based on shipping address properties. Filter supports only equals operation.skipToken
- $skipToken is supported on Get list of addresses, which provides the next page in the list of addresses.context
- The context to associate with this operation.- Returns:
- address Resource Collection.
- 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.
-
listProductFamilies
com.azure.core.http.rest.PagedIterable<ProductFamily> listProductFamilies(ProductFamiliesRequest productFamiliesRequest)
This method provides the list of product families for the given subscription.- Parameters:
productFamiliesRequest
- Filters for showing the product families.- Returns:
- the list of product families.
- 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.
-
listProductFamilies
com.azure.core.http.rest.PagedIterable<ProductFamily> listProductFamilies(ProductFamiliesRequest productFamiliesRequest, String expand, String skipToken, com.azure.core.util.Context context)
This method provides the list of product families for the given subscription.- Parameters:
productFamiliesRequest
- Filters for showing the product families.expand
- $expand is supported on configurations parameter for product, which provides details on the configurations for the product.skipToken
- $skipToken is supported on list of product families, which provides the next page in the list of product families.context
- The context to associate with this operation.- Returns:
- the list of product families.
- 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.
-
listConfigurations
com.azure.core.http.rest.PagedIterable<Configuration> listConfigurations(ConfigurationsRequest configurationsRequest)
This method provides the list of configurations for the given product family, product line and product under subscription.- Parameters:
configurationsRequest
- Filters for showing the configurations.- Returns:
- the list of configurations.
- 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.
-
listConfigurations
com.azure.core.http.rest.PagedIterable<Configuration> listConfigurations(ConfigurationsRequest configurationsRequest, String skipToken, com.azure.core.util.Context context)
This method provides the list of configurations for the given product family, product line and product under subscription.- Parameters:
configurationsRequest
- Filters for showing the configurations.skipToken
- $skipToken is supported on list of configurations, which provides the next page in the list of configurations.context
- The context to associate with this operation.- Returns:
- the list of configurations.
- 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.
-
listProductFamiliesMetadata
com.azure.core.http.rest.PagedIterable<ProductFamiliesMetadataDetails> listProductFamiliesMetadata()
This method provides the list of product families metadata for the given subscription.- Returns:
- holds details about product family metadata.
- 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.
-
listProductFamiliesMetadata
com.azure.core.http.rest.PagedIterable<ProductFamiliesMetadataDetails> listProductFamiliesMetadata(String skipToken, com.azure.core.util.Context context)
This method provides the list of product families metadata for the given subscription.- Parameters:
skipToken
- $skipToken is supported on list of product families metadata, which provides the next page in the list of product families metadata.context
- The context to associate with this operation.- Returns:
- holds details about product family metadata.
- 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.
-
listOrderAtSubscriptionLevel
com.azure.core.http.rest.PagedIterable<OrderResource> listOrderAtSubscriptionLevel()
Lists order at subscription level.- Returns:
- list of orders.
- 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.
-
listOrderAtSubscriptionLevel
com.azure.core.http.rest.PagedIterable<OrderResource> listOrderAtSubscriptionLevel(String skipToken, com.azure.core.util.Context context)
Lists order at subscription level.- Parameters:
skipToken
- $skipToken is supported on Get list of order, which provides the next page in the list of order.context
- The context to associate with this operation.- Returns:
- list of orders.
- 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.
-
listOrderItemsAtSubscriptionLevel
com.azure.core.http.rest.PagedIterable<OrderItemResource> listOrderItemsAtSubscriptionLevel()
Lists order item at subscription level.- Returns:
- list of orderItems.
- 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.
-
listOrderItemsAtSubscriptionLevel
com.azure.core.http.rest.PagedIterable<OrderItemResource> listOrderItemsAtSubscriptionLevel(String filter, String expand, String skipToken, com.azure.core.util.Context context)
Lists order item at subscription level.- Parameters:
filter
- $filter is supported to filter based on order id. Filter supports only equals operation.expand
- $expand is supported on device details, forward shipping details and reverse shipping details parameters. Each of these can be provided as a comma separated list. Device Details for order item provides details on the devices of the product, Forward and Reverse Shipping details provide forward and reverse shipping details respectively.skipToken
- $skipToken is supported on Get list of order items, which provides the next page in the list of order items.context
- The context to associate with this operation.- Returns:
- list of orderItems.
- 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<AddressResource> listByResourceGroup(String resourceGroupName)
Lists all the addresses available under the given resource group.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.- Returns:
- address Resource Collection.
- 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<AddressResource> listByResourceGroup(String resourceGroupName, String filter, String skipToken, com.azure.core.util.Context context)
Lists all the addresses available under the given resource group.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.filter
- $filter is supported to filter based on shipping address properties. Filter supports only equals operation.skipToken
- $skipToken is supported on Get list of addresses, which provides the next page in the list of address.context
- The context to associate with this operation.- Returns:
- address Resource Collection.
- 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
AddressResource getByResourceGroup(String resourceGroupName, String addressName)
Gets information about the specified address.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.addressName
- The name of the address Resource within the specified resource group. address names must be between 3 and 24 characters in length and use any alphanumeric and underscore only.- Returns:
- information about the specified address.
- 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<AddressResource> getByResourceGroupWithResponse(String resourceGroupName, String addressName, com.azure.core.util.Context context)
Gets information about the specified address.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.addressName
- The name of the address Resource within the specified resource group. address names must be between 3 and 24 characters in length and use any alphanumeric and underscore only.context
- The context to associate with this operation.- Returns:
- information about the specified address.
- 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
void deleteByResourceGroup(String resourceGroupName, String addressName)
Deletes an address.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.addressName
- The name of the address Resource within the specified resource group. address names must be between 3 and 24 characters in length and use any alphanumeric and underscore only.- 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 addressName, com.azure.core.util.Context context)
Deletes an address.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.addressName
- The name of the address Resource within the specified resource group. address names must be between 3 and 24 characters in length and use any alphanumeric and underscore only.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.
-
listOrderAtResourceGroupLevel
com.azure.core.http.rest.PagedIterable<OrderResource> listOrderAtResourceGroupLevel(String resourceGroupName)
Lists order at resource group level.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.- Returns:
- list of orders.
- 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.
-
listOrderAtResourceGroupLevel
com.azure.core.http.rest.PagedIterable<OrderResource> listOrderAtResourceGroupLevel(String resourceGroupName, String skipToken, com.azure.core.util.Context context)
Lists order at resource group level.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.skipToken
- $skipToken is supported on Get list of order, which provides the next page in the list of order.context
- The context to associate with this operation.- Returns:
- list of orders.
- 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.
-
getOrderByName
OrderResource getOrderByName(String orderName, String resourceGroupName, String location)
Gets an order.- Parameters:
orderName
- The name of the order.resourceGroupName
- The name of the resource group. The name is case insensitive.location
- The name of Azure region.- Returns:
- an order.
- 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.
-
getOrderByNameWithResponse
com.azure.core.http.rest.Response<OrderResource> getOrderByNameWithResponse(String orderName, String resourceGroupName, String location, com.azure.core.util.Context context)
Gets an order.- Parameters:
orderName
- The name of the order.resourceGroupName
- The name of the resource group. The name is case insensitive.location
- The name of Azure region.context
- The context to associate with this operation.- Returns:
- an order.
- 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.
-
listOrderItemsAtResourceGroupLevel
com.azure.core.http.rest.PagedIterable<OrderItemResource> listOrderItemsAtResourceGroupLevel(String resourceGroupName)
Lists order item at resource group level.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.- Returns:
- list of orderItems.
- 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.
-
listOrderItemsAtResourceGroupLevel
com.azure.core.http.rest.PagedIterable<OrderItemResource> listOrderItemsAtResourceGroupLevel(String resourceGroupName, String filter, String expand, String skipToken, com.azure.core.util.Context context)
Lists order item at resource group level.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.filter
- $filter is supported to filter based on order id. Filter supports only equals operation.expand
- $expand is supported on device details, forward shipping details and reverse shipping details parameters. Each of these can be provided as a comma separated list. Device Details for order item provides details on the devices of the product, Forward and Reverse Shipping details provide forward and reverse shipping details respectively.skipToken
- $skipToken is supported on Get list of order items, which provides the next page in the list of order items.context
- The context to associate with this operation.- Returns:
- list of orderItems.
- 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.
-
getOrderItemByName
OrderItemResource getOrderItemByName(String orderItemName, String resourceGroupName)
Gets an order item.- Parameters:
orderItemName
- The name of the order item.resourceGroupName
- The name of the resource group. The name is case insensitive.- Returns:
- an order item.
- 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.
-
getOrderItemByNameWithResponse
com.azure.core.http.rest.Response<OrderItemResource> getOrderItemByNameWithResponse(String orderItemName, String resourceGroupName, String expand, com.azure.core.util.Context context)
Gets an order item.- Parameters:
orderItemName
- The name of the order item.resourceGroupName
- The name of the resource group. The name is case insensitive.expand
- $expand is supported on device details, forward shipping details and reverse shipping details parameters. Each of these can be provided as a comma separated list. Device Details for order item provides details on the devices of the product, Forward and Reverse Shipping details provide forward and reverse shipping details respectively.context
- The context to associate with this operation.- Returns:
- an order item.
- 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.
-
deleteOrderItemByName
void deleteOrderItemByName(String orderItemName, String resourceGroupName)
Deletes an order item.- Parameters:
orderItemName
- The name of the order item.resourceGroupName
- The name of the resource group. The name is case insensitive.- 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.
-
deleteOrderItemByName
void deleteOrderItemByName(String orderItemName, String resourceGroupName, com.azure.core.util.Context context)
Deletes an order item.- Parameters:
orderItemName
- The name of the order item.resourceGroupName
- The name of the resource group. The name is case insensitive.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.
-
cancelOrderItem
void cancelOrderItem(String orderItemName, String resourceGroupName, CancellationReason cancellationReason)
Cancel order item.- Parameters:
orderItemName
- The name of the order item.resourceGroupName
- The name of the resource group. The name is case insensitive.cancellationReason
- Reason for cancellation.- 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.
-
cancelOrderItemWithResponse
com.azure.core.http.rest.Response<Void> cancelOrderItemWithResponse(String orderItemName, String resourceGroupName, CancellationReason cancellationReason, com.azure.core.util.Context context)
Cancel order item.- Parameters:
orderItemName
- The name of the order item.resourceGroupName
- The name of the resource group. The name is case insensitive.cancellationReason
- Reason for cancellation.context
- The context to associate with this operation.- Returns:
- the 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.
-
returnOrderItem
void returnOrderItem(String orderItemName, String resourceGroupName, ReturnOrderItemDetails returnOrderItemDetails)
Return order item.- Parameters:
orderItemName
- The name of the order item.resourceGroupName
- The name of the resource group. The name is case insensitive.returnOrderItemDetails
- Return order item CurrentStatus.- 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.
-
returnOrderItem
void returnOrderItem(String orderItemName, String resourceGroupName, ReturnOrderItemDetails returnOrderItemDetails, com.azure.core.util.Context context)
Return order item.- Parameters:
orderItemName
- The name of the order item.resourceGroupName
- The name of the resource group. The name is case insensitive.returnOrderItemDetails
- Return order item CurrentStatus.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.
-
getById
AddressResource getById(String id)
Gets information about the specified address.- Parameters:
id
- the resource ID.- Returns:
- information about the specified address.
- 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<AddressResource> getByIdWithResponse(String id, com.azure.core.util.Context context)
Gets information about the specified address.- Parameters:
id
- the resource ID.context
- The context to associate with this operation.- Returns:
- information about the specified address.
- 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.
-
getOrderItemById
OrderItemResource getOrderItemById(String id)
Gets an order item.- Parameters:
id
- the resource ID.- Returns:
- an order item.
- 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.
-
getOrderItemByIdWithResponse
com.azure.core.http.rest.Response<OrderItemResource> getOrderItemByIdWithResponse(String id, String expand, com.azure.core.util.Context context)
Gets an order item.- Parameters:
id
- the resource ID.expand
- $expand is supported on device details, forward shipping details and reverse shipping details parameters. Each of these can be provided as a comma separated list. Device Details for order item provides details on the devices of the product, Forward and Reverse Shipping details provide forward and reverse shipping details respectively.context
- The context to associate with this operation.- Returns:
- an order item.
- 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
void deleteById(String id)
Deletes an address.- 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
void deleteByIdWithResponse(String id, com.azure.core.util.Context context)
Deletes an address.- 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.
-
deleteOrderItemById
void deleteOrderItemById(String id)
Deletes an order item.- 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.
-
deleteOrderItemByIdWithResponse
void deleteOrderItemByIdWithResponse(String id, com.azure.core.util.Context context)
Deletes an order item.- 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.
-
defineAddress
AddressResource.DefinitionStages.Blank defineAddress(String name)
Begins definition for a new AddressResource resource.- Parameters:
name
- resource name.- Returns:
- the first stage of the new AddressResource definition.
-
defineOrderItem
OrderItemResource.DefinitionStages.Blank defineOrderItem(String name)
Begins definition for a new OrderItemResource resource.- Parameters:
name
- resource name.- Returns:
- the first stage of the new OrderItemResource definition.
-
-