Class Oauth2PermissionGrantsRequestBuilder
java.lang.Object
com.microsoft.kiota.BaseRequestBuilder
com.microsoft.graph.users.item.oauth2permissiongrants.Oauth2PermissionGrantsRequestBuilder
@Generated("com.microsoft.kiota")
public class Oauth2PermissionGrantsRequestBuilder
extends com.microsoft.kiota.BaseRequestBuilder
Provides operations to manage the oauth2PermissionGrants property of the microsoft.graph.user entity.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclassRetrieve a list of oAuth2PermissionGrant entities, which represent delegated permissions granted to enable a client application to access an API on behalf of the user.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
ConstructorsConstructorDescriptionOauth2PermissionGrantsRequestBuilder(String rawUrl, com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newOauth2PermissionGrantsRequestBuilderand sets the default values.Oauth2PermissionGrantsRequestBuilder(HashMap<String, Object> pathParameters, com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newOauth2PermissionGrantsRequestBuilderand sets the default values. -
Method Summary
Modifier and TypeMethodDescriptionbyOAuth2PermissionGrantId(String oAuth2PermissionGrantId) Provides operations to manage the oauth2PermissionGrants property of the microsoft.graph.user entity.count()Provides operations to count the resources in the collection.get()Retrieve a list of oAuth2PermissionGrant entities, which represent delegated permissions granted to enable a client application to access an API on behalf of the user.get(Consumer<Oauth2PermissionGrantsRequestBuilder.GetRequestConfiguration> requestConfiguration) Retrieve a list of oAuth2PermissionGrant entities, which represent delegated permissions granted to enable a client application to access an API on behalf of the user.com.microsoft.kiota.RequestInformationRetrieve a list of oAuth2PermissionGrant entities, which represent delegated permissions granted to enable a client application to access an API on behalf of the user.com.microsoft.kiota.RequestInformationtoGetRequestInformation(Consumer<Oauth2PermissionGrantsRequestBuilder.GetRequestConfiguration> requestConfiguration) Retrieve a list of oAuth2PermissionGrant entities, which represent delegated permissions granted to enable a client application to access an API on behalf of the user.Returns a request builder with the provided arbitrary URL.
-
Constructor Details
-
Oauth2PermissionGrantsRequestBuilder
public Oauth2PermissionGrantsRequestBuilder(@Nonnull HashMap<String, Object> pathParameters, @Nonnull com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newOauth2PermissionGrantsRequestBuilderand sets the default values.- Parameters:
pathParameters- Path parameters for the requestrequestAdapter- The request adapter to use to execute the requests.
-
Oauth2PermissionGrantsRequestBuilder
public Oauth2PermissionGrantsRequestBuilder(@Nonnull String rawUrl, @Nonnull com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newOauth2PermissionGrantsRequestBuilderand 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
-
count
Provides operations to count the resources in the collection.- Returns:
- a
CountRequestBuilder
-
byOAuth2PermissionGrantId
@Nonnull public OAuth2PermissionGrantItemRequestBuilder byOAuth2PermissionGrantId(@Nonnull String oAuth2PermissionGrantId) Provides operations to manage the oauth2PermissionGrants property of the microsoft.graph.user entity.- Parameters:
oAuth2PermissionGrantId- The unique identifier of oAuth2PermissionGrant- Returns:
- a
OAuth2PermissionGrantItemRequestBuilder
-
get
Retrieve a list of oAuth2PermissionGrant entities, which represent delegated permissions granted to enable a client application to access an API on behalf of the user.- Returns:
- a
OAuth2PermissionGrantCollectionResponse - Throws:
ODataError- When receiving a 4XX or 5XX status code- See Also:
-
get
@Nullable public OAuth2PermissionGrantCollectionResponse get(@Nullable Consumer<Oauth2PermissionGrantsRequestBuilder.GetRequestConfiguration> requestConfiguration) Retrieve a list of oAuth2PermissionGrant entities, which represent delegated permissions granted to enable a client application to access an API on behalf of the user.- Parameters:
requestConfiguration- Configuration for the request such as headers, query parameters, and middleware options.- Returns:
- a
OAuth2PermissionGrantCollectionResponse - Throws:
ODataError- When receiving a 4XX or 5XX status code- See Also:
-
toGetRequestInformation
@Nonnull public com.microsoft.kiota.RequestInformation toGetRequestInformation()Retrieve a list of oAuth2PermissionGrant entities, which represent delegated permissions granted to enable a client application to access an API on behalf of the user.- Returns:
- a
RequestInformation
-
toGetRequestInformation
@Nonnull public com.microsoft.kiota.RequestInformation toGetRequestInformation(@Nullable Consumer<Oauth2PermissionGrantsRequestBuilder.GetRequestConfiguration> requestConfiguration) Retrieve a list of oAuth2PermissionGrant entities, which represent delegated permissions granted to enable a client application to access an API on behalf of the user.- Parameters:
requestConfiguration- 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
Oauth2PermissionGrantsRequestBuilder
-