Class Oauth2PermissionGrantsRequestBuilder
java.lang.Object
com.microsoft.kiota.BaseRequestBuilder
com.microsoft.graph.oauth2permissiongrants.Oauth2PermissionGrantsRequestBuilder
@Generated("com.microsoft.kiota")
public class Oauth2PermissionGrantsRequestBuilder
extends com.microsoft.kiota.BaseRequestBuilder
Provides operations to manage the collection of oAuth2PermissionGrant entities.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclassRetrieve a list of oAuth2PermissionGrant objects, representing delegated permissions which have been granted for client applications to access APIs on behalf of signed-in users.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
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 collection of oAuth2PermissionGrant entities.count()Provides operations to count the resources in the collection.delta()Provides operations to call the delta method.get()Retrieve a list of oAuth2PermissionGrant objects, representing delegated permissions which have been granted for client applications to access APIs on behalf of signed-in users.get(Consumer<Oauth2PermissionGrantsRequestBuilder.GetRequestConfiguration> requestConfiguration) Retrieve a list of oAuth2PermissionGrant objects, representing delegated permissions which have been granted for client applications to access APIs on behalf of signed-in users.post(OAuth2PermissionGrant body) Create a delegated permission grant represented by an oAuth2PermissionGrant object.post(OAuth2PermissionGrant body, Consumer<Oauth2PermissionGrantsRequestBuilder.PostRequestConfiguration> requestConfiguration) Create a delegated permission grant represented by an oAuth2PermissionGrant object.com.microsoft.kiota.RequestInformationRetrieve a list of oAuth2PermissionGrant objects, representing delegated permissions which have been granted for client applications to access APIs on behalf of signed-in users.com.microsoft.kiota.RequestInformationtoGetRequestInformation(Consumer<Oauth2PermissionGrantsRequestBuilder.GetRequestConfiguration> requestConfiguration) Retrieve a list of oAuth2PermissionGrant objects, representing delegated permissions which have been granted for client applications to access APIs on behalf of signed-in users.com.microsoft.kiota.RequestInformationCreate a delegated permission grant represented by an oAuth2PermissionGrant object.com.microsoft.kiota.RequestInformationtoPostRequestInformation(OAuth2PermissionGrant body, Consumer<Oauth2PermissionGrantsRequestBuilder.PostRequestConfiguration> requestConfiguration) Create a delegated permission grant represented by an oAuth2PermissionGrant object.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
-
delta
Provides operations to call the delta method.- Returns:
- a
DeltaRequestBuilder
-
byOAuth2PermissionGrantId
@Nonnull public OAuth2PermissionGrantItemRequestBuilder byOAuth2PermissionGrantId(@Nonnull String oAuth2PermissionGrantId) Provides operations to manage the collection of oAuth2PermissionGrant entities.- Parameters:
oAuth2PermissionGrantId- The unique identifier of oAuth2PermissionGrant- Returns:
- a
OAuth2PermissionGrantItemRequestBuilder
-
get
Retrieve a list of oAuth2PermissionGrant objects, representing delegated permissions which have been granted for client applications to access APIs on behalf of signed-in users.- 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 objects, representing delegated permissions which have been granted for client applications to access APIs on behalf of signed-in users.- 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:
-
post
Create a delegated permission grant represented by an oAuth2PermissionGrant object. A delegated permission grant authorizes a client service principal (representing a client application) to access a resource service principal (representing an API), on behalf of a signed-in user, for the level of access limited by the delegated permissions which were granted.- Parameters:
body- The request body- Returns:
- a
OAuth2PermissionGrant - Throws:
ODataError- When receiving a 4XX or 5XX status code- See Also:
-
post
@Nullable public OAuth2PermissionGrant post(@Nonnull OAuth2PermissionGrant body, @Nullable Consumer<Oauth2PermissionGrantsRequestBuilder.PostRequestConfiguration> requestConfiguration) Create a delegated permission grant represented by an oAuth2PermissionGrant object. A delegated permission grant authorizes a client service principal (representing a client application) to access a resource service principal (representing an API), on behalf of a signed-in user, for the level of access limited by the delegated permissions which were granted.- 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:
-
toGetRequestInformation
@Nonnull public com.microsoft.kiota.RequestInformation toGetRequestInformation()Retrieve a list of oAuth2PermissionGrant objects, representing delegated permissions which have been granted for client applications to access APIs on behalf of signed-in users.- Returns:
- a
RequestInformation
-
toGetRequestInformation
@Nonnull public com.microsoft.kiota.RequestInformation toGetRequestInformation(@Nullable Consumer<Oauth2PermissionGrantsRequestBuilder.GetRequestConfiguration> requestConfiguration) Retrieve a list of oAuth2PermissionGrant objects, representing delegated permissions which have been granted for client applications to access APIs on behalf of signed-in users.- 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 OAuth2PermissionGrant body) Create a delegated permission grant represented by an oAuth2PermissionGrant object. A delegated permission grant authorizes a client service principal (representing a client application) to access a resource service principal (representing an API), on behalf of a signed-in user, for the level of access limited by the delegated permissions which were granted.- Parameters:
body- The request body- Returns:
- a
RequestInformation
-
toPostRequestInformation
@Nonnull public com.microsoft.kiota.RequestInformation toPostRequestInformation(@Nonnull OAuth2PermissionGrant body, @Nullable Consumer<Oauth2PermissionGrantsRequestBuilder.PostRequestConfiguration> requestConfiguration) Create a delegated permission grant represented by an oAuth2PermissionGrant object. A delegated permission grant authorizes a client service principal (representing a client application) to access a resource service principal (representing an API), on behalf of a signed-in user, for the level of access limited by the delegated permissions which were granted.- 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
Oauth2PermissionGrantsRequestBuilder
-