Class SubscribedSkusRequestBuilder
java.lang.Object
com.microsoft.kiota.BaseRequestBuilder
com.microsoft.graph.subscribedskus.SubscribedSkusRequestBuilder
@Generated("com.microsoft.kiota")
public class SubscribedSkusRequestBuilder
extends com.microsoft.kiota.BaseRequestBuilder
Provides operations to manage the collection of subscribedSku entities.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclassGet the list of commercial subscriptions that an organization has acquired.classConfiguration for the request such as headers, query parameters, and middleware options.classConfiguration for the request such as headers, query parameters, and middleware options. -
Field Summary
Fields inherited from class com.microsoft.kiota.BaseRequestBuilder
pathParameters, requestAdapter, urlTemplate -
Constructor Summary
ConstructorsConstructorDescriptionSubscribedSkusRequestBuilder(String rawUrl, com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newSubscribedSkusRequestBuilderand sets the default values.SubscribedSkusRequestBuilder(HashMap<String, Object> pathParameters, com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newSubscribedSkusRequestBuilderand sets the default values. -
Method Summary
Modifier and TypeMethodDescriptionbySubscribedSkuId(String subscribedSkuId) Provides operations to manage the collection of subscribedSku entities.get()Get the list of commercial subscriptions that an organization has acquired.get(Consumer<SubscribedSkusRequestBuilder.GetRequestConfiguration> requestConfiguration) Get the list of commercial subscriptions that an organization has acquired.post(SubscribedSku body) Add new entity to subscribedSkuspost(SubscribedSku body, Consumer<SubscribedSkusRequestBuilder.PostRequestConfiguration> requestConfiguration) Add new entity to subscribedSkuscom.microsoft.kiota.RequestInformationGet the list of commercial subscriptions that an organization has acquired.com.microsoft.kiota.RequestInformationtoGetRequestInformation(Consumer<SubscribedSkusRequestBuilder.GetRequestConfiguration> requestConfiguration) Get the list of commercial subscriptions that an organization has acquired.com.microsoft.kiota.RequestInformationAdd new entity to subscribedSkuscom.microsoft.kiota.RequestInformationtoPostRequestInformation(SubscribedSku body, Consumer<SubscribedSkusRequestBuilder.PostRequestConfiguration> requestConfiguration) Add new entity to subscribedSkusReturns a request builder with the provided arbitrary URL.
-
Constructor Details
-
SubscribedSkusRequestBuilder
public SubscribedSkusRequestBuilder(@Nonnull HashMap<String, Object> pathParameters, @Nonnull com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newSubscribedSkusRequestBuilderand sets the default values.- Parameters:
pathParameters- Path parameters for the requestrequestAdapter- The request adapter to use to execute the requests.
-
SubscribedSkusRequestBuilder
public SubscribedSkusRequestBuilder(@Nonnull String rawUrl, @Nonnull com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newSubscribedSkusRequestBuilderand sets the default values.- Parameters:
rawUrl- The raw URL to use for the request builder.requestAdapter- The request adapter to use to execute the requests.
-
-
Method Details
-
bySubscribedSkuId
Provides operations to manage the collection of subscribedSku entities.- Parameters:
subscribedSkuId- The unique identifier of subscribedSku- Returns:
- a
SubscribedSkuItemRequestBuilder
-
get
Get the list of commercial subscriptions that an organization has acquired. For the mapping of license names as displayed on the Microsoft Entra admin center or the Microsoft 365 admin center against their Microsoft Graph skuId and skuPartNumber properties, see Product names and service plan identifiers for licensing.- Returns:
- a
SubscribedSkuCollectionResponse - Throws:
ODataError- When receiving a 4XX or 5XX status code- See Also:
-
get
@Nullable public SubscribedSkuCollectionResponse get(@Nullable Consumer<SubscribedSkusRequestBuilder.GetRequestConfiguration> requestConfiguration) Get the list of commercial subscriptions that an organization has acquired. For the mapping of license names as displayed on the Microsoft Entra admin center or the Microsoft 365 admin center against their Microsoft Graph skuId and skuPartNumber properties, see Product names and service plan identifiers for licensing.- Parameters:
requestConfiguration- Configuration for the request such as headers, query parameters, and middleware options.- Returns:
- a
SubscribedSkuCollectionResponse - Throws:
ODataError- When receiving a 4XX or 5XX status code- See Also:
-
post
Add new entity to subscribedSkus- Parameters:
body- The request body- Returns:
- a
SubscribedSku - Throws:
ODataError- When receiving a 4XX or 5XX status code
-
post
@Nullable public SubscribedSku post(@Nonnull SubscribedSku body, @Nullable Consumer<SubscribedSkusRequestBuilder.PostRequestConfiguration> requestConfiguration) Add new entity to subscribedSkus- Parameters:
body- The request bodyrequestConfiguration- Configuration for the request such as headers, query parameters, and middleware options.- Returns:
- a
SubscribedSku - Throws:
ODataError- When receiving a 4XX or 5XX status code
-
toGetRequestInformation
@Nonnull public com.microsoft.kiota.RequestInformation toGetRequestInformation()Get the list of commercial subscriptions that an organization has acquired. For the mapping of license names as displayed on the Microsoft Entra admin center or the Microsoft 365 admin center against their Microsoft Graph skuId and skuPartNumber properties, see Product names and service plan identifiers for licensing.- Returns:
- a
RequestInformation
-
toGetRequestInformation
@Nonnull public com.microsoft.kiota.RequestInformation toGetRequestInformation(@Nullable Consumer<SubscribedSkusRequestBuilder.GetRequestConfiguration> requestConfiguration) Get the list of commercial subscriptions that an organization has acquired. For the mapping of license names as displayed on the Microsoft Entra admin center or the Microsoft 365 admin center against their Microsoft Graph skuId and skuPartNumber properties, see Product names and service plan identifiers for licensing.- Parameters:
requestConfiguration- Configuration for the request such as headers, query parameters, and middleware options.- Returns:
- a
RequestInformation
-
toPostRequestInformation
@Nonnull public com.microsoft.kiota.RequestInformation toPostRequestInformation(@Nonnull SubscribedSku body) Add new entity to subscribedSkus- Parameters:
body- The request body- Returns:
- a
RequestInformation
-
toPostRequestInformation
@Nonnull public com.microsoft.kiota.RequestInformation toPostRequestInformation(@Nonnull SubscribedSku body, @Nullable Consumer<SubscribedSkusRequestBuilder.PostRequestConfiguration> requestConfiguration) Add new entity to subscribedSkus- Parameters:
body- The request bodyrequestConfiguration- Configuration for the request such as headers, query parameters, and middleware options.- Returns:
- a
RequestInformation
-
withUrl
Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.- Parameters:
rawUrl- The raw URL to use for the request builder.- Returns:
- a
SubscribedSkusRequestBuilder
-