Class OAuth2PermissionGrantItemRequestBuilder
java.lang.Object
com.microsoft.kiota.BaseRequestBuilder
com.microsoft.graph.oauth2permissiongrants.item.OAuth2PermissionGrantItemRequestBuilder
@Generated("com.microsoft.kiota")
public class OAuth2PermissionGrantItemRequestBuilder
extends com.microsoft.kiota.BaseRequestBuilder
Provides operations to manage the collection of oAuth2PermissionGrant entities.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclassConfiguration for the request such as headers, query parameters, and middleware options.classRetrieve the properties of a single delegated permission grant represented by an oAuth2PermissionGrant object.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
ConstructorsConstructorDescriptionOAuth2PermissionGrantItemRequestBuilder(String rawUrl, com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newOAuth2PermissionGrantItemRequestBuilderand sets the default values.OAuth2PermissionGrantItemRequestBuilder(HashMap<String, Object> pathParameters, com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newOAuth2PermissionGrantItemRequestBuilderand sets the default values. -
Method Summary
Modifier and TypeMethodDescriptionvoiddelete()Delete a delegated permission grant, represented by an oAuth2PermissionGrant object.voiddelete(Consumer<OAuth2PermissionGrantItemRequestBuilder.DeleteRequestConfiguration> requestConfiguration) Delete a delegated permission grant, represented by an oAuth2PermissionGrant object.get()Retrieve the properties of a single delegated permission grant represented by an oAuth2PermissionGrant object.get(Consumer<OAuth2PermissionGrantItemRequestBuilder.GetRequestConfiguration> requestConfiguration) Retrieve the properties of a single delegated permission grant represented by an oAuth2PermissionGrant object.patch(OAuth2PermissionGrant body) Update the properties of oAuth2PermissionGrant object, representing a delegated permission grant.patch(OAuth2PermissionGrant body, Consumer<OAuth2PermissionGrantItemRequestBuilder.PatchRequestConfiguration> requestConfiguration) Update the properties of oAuth2PermissionGrant object, representing a delegated permission grant.com.microsoft.kiota.RequestInformationDelete a delegated permission grant, represented by an oAuth2PermissionGrant object.com.microsoft.kiota.RequestInformationtoDeleteRequestInformation(Consumer<OAuth2PermissionGrantItemRequestBuilder.DeleteRequestConfiguration> requestConfiguration) Delete a delegated permission grant, represented by an oAuth2PermissionGrant object.com.microsoft.kiota.RequestInformationRetrieve the properties of a single delegated permission grant represented by an oAuth2PermissionGrant object.com.microsoft.kiota.RequestInformationtoGetRequestInformation(Consumer<OAuth2PermissionGrantItemRequestBuilder.GetRequestConfiguration> requestConfiguration) Retrieve the properties of a single delegated permission grant represented by an oAuth2PermissionGrant object.com.microsoft.kiota.RequestInformationUpdate the properties of oAuth2PermissionGrant object, representing a delegated permission grant.com.microsoft.kiota.RequestInformationtoPatchRequestInformation(OAuth2PermissionGrant body, Consumer<OAuth2PermissionGrantItemRequestBuilder.PatchRequestConfiguration> requestConfiguration) Update the properties of oAuth2PermissionGrant object, representing a delegated permission grant.Returns a request builder with the provided arbitrary URL.
-
Constructor Details
-
OAuth2PermissionGrantItemRequestBuilder
public OAuth2PermissionGrantItemRequestBuilder(@Nonnull HashMap<String, Object> pathParameters, @Nonnull com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newOAuth2PermissionGrantItemRequestBuilderand sets the default values.- Parameters:
pathParameters- Path parameters for the requestrequestAdapter- The request adapter to use to execute the requests.
-
OAuth2PermissionGrantItemRequestBuilder
public OAuth2PermissionGrantItemRequestBuilder(@Nonnull String rawUrl, @Nonnull com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newOAuth2PermissionGrantItemRequestBuilderand 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
-
delete
public void delete()Delete a delegated permission grant, represented by an oAuth2PermissionGrant object. When a delegated permission grant is deleted, the access it granted is revoked. Existing access tokens will continue to be valid for their lifetime, but new access tokens will not be granted for the delegated permissions identified in the deleted oAuth2PermissionGrant.- Throws:
ODataError- When receiving a 4XX or 5XX status code- See Also:
-
delete
public void delete(@Nullable Consumer<OAuth2PermissionGrantItemRequestBuilder.DeleteRequestConfiguration> requestConfiguration) Delete a delegated permission grant, represented by an oAuth2PermissionGrant object. When a delegated permission grant is deleted, the access it granted is revoked. Existing access tokens will continue to be valid for their lifetime, but new access tokens will not be granted for the delegated permissions identified in the deleted oAuth2PermissionGrant.- Parameters:
requestConfiguration- Configuration for the request such as headers, query parameters, and middleware options.- Throws:
ODataError- When receiving a 4XX or 5XX status code- See Also:
-
get
Retrieve the properties of a single delegated permission grant represented by an oAuth2PermissionGrant object. An oAuth2PermissionGrant represents delegated permissions which have been granted for a client application to access an API on behalf of a signed-in user.- Returns:
- a
OAuth2PermissionGrant - Throws:
ODataError- When receiving a 4XX or 5XX status code- See Also:
-
get
@Nullable public OAuth2PermissionGrant get(@Nullable Consumer<OAuth2PermissionGrantItemRequestBuilder.GetRequestConfiguration> requestConfiguration) Retrieve the properties of a single delegated permission grant represented by an oAuth2PermissionGrant object. An oAuth2PermissionGrant represents delegated permissions which have been granted for a client application to access an API on behalf of a signed-in user.- Parameters:
requestConfiguration- Configuration for the request such as headers, query parameters, and middleware options.- Returns:
- a
OAuth2PermissionGrant - Throws:
ODataError- When receiving a 4XX or 5XX status code- See Also:
-
patch
Update the properties of oAuth2PermissionGrant object, representing a delegated permission grant. An oAuth2PermissionGrant can be updated to change which delegated permissions are granted, by adding or removing items from the list in scopes.- Parameters:
body- The request body- Returns:
- a
OAuth2PermissionGrant - Throws:
ODataError- When receiving a 4XX or 5XX status code- See Also:
-
patch
@Nullable public OAuth2PermissionGrant patch(@Nonnull OAuth2PermissionGrant body, @Nullable Consumer<OAuth2PermissionGrantItemRequestBuilder.PatchRequestConfiguration> requestConfiguration) Update the properties of oAuth2PermissionGrant object, representing a delegated permission grant. An oAuth2PermissionGrant can be updated to change which delegated permissions are granted, by adding or removing items from the list in scopes.- Parameters:
body- The request bodyrequestConfiguration- Configuration for the request such as headers, query parameters, and middleware options.- Returns:
- a
OAuth2PermissionGrant - Throws:
ODataError- When receiving a 4XX or 5XX status code- See Also:
-
toDeleteRequestInformation
@Nonnull public com.microsoft.kiota.RequestInformation toDeleteRequestInformation()Delete a delegated permission grant, represented by an oAuth2PermissionGrant object. When a delegated permission grant is deleted, the access it granted is revoked. Existing access tokens will continue to be valid for their lifetime, but new access tokens will not be granted for the delegated permissions identified in the deleted oAuth2PermissionGrant.- Returns:
- a
RequestInformation
-
toDeleteRequestInformation
@Nonnull public com.microsoft.kiota.RequestInformation toDeleteRequestInformation(@Nullable Consumer<OAuth2PermissionGrantItemRequestBuilder.DeleteRequestConfiguration> requestConfiguration) Delete a delegated permission grant, represented by an oAuth2PermissionGrant object. When a delegated permission grant is deleted, the access it granted is revoked. Existing access tokens will continue to be valid for their lifetime, but new access tokens will not be granted for the delegated permissions identified in the deleted oAuth2PermissionGrant.- Parameters:
requestConfiguration- Configuration for the request such as headers, query parameters, and middleware options.- Returns:
- a
RequestInformation
-
toGetRequestInformation
@Nonnull public com.microsoft.kiota.RequestInformation toGetRequestInformation()Retrieve the properties of a single delegated permission grant represented by an oAuth2PermissionGrant object. An oAuth2PermissionGrant represents delegated permissions which have been granted for a client application to access an API on behalf of a signed-in user.- Returns:
- a
RequestInformation
-
toGetRequestInformation
@Nonnull public com.microsoft.kiota.RequestInformation toGetRequestInformation(@Nullable Consumer<OAuth2PermissionGrantItemRequestBuilder.GetRequestConfiguration> requestConfiguration) Retrieve the properties of a single delegated permission grant represented by an oAuth2PermissionGrant object. An oAuth2PermissionGrant represents delegated permissions which have been granted for a client application to access an API on behalf of a signed-in user.- Parameters:
requestConfiguration- Configuration for the request such as headers, query parameters, and middleware options.- Returns:
- a
RequestInformation
-
toPatchRequestInformation
@Nonnull public com.microsoft.kiota.RequestInformation toPatchRequestInformation(@Nonnull OAuth2PermissionGrant body) Update the properties of oAuth2PermissionGrant object, representing a delegated permission grant. An oAuth2PermissionGrant can be updated to change which delegated permissions are granted, by adding or removing items from the list in scopes.- Parameters:
body- The request body- Returns:
- a
RequestInformation
-
toPatchRequestInformation
@Nonnull public com.microsoft.kiota.RequestInformation toPatchRequestInformation(@Nonnull OAuth2PermissionGrant body, @Nullable Consumer<OAuth2PermissionGrantItemRequestBuilder.PatchRequestConfiguration> requestConfiguration) Update the properties of oAuth2PermissionGrant object, representing a delegated permission grant. An oAuth2PermissionGrant can be updated to change which delegated permissions are granted, by adding or removing items from the list in scopes.- 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
OAuth2PermissionGrantItemRequestBuilder
-