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.
  • Constructor Details

    • Oauth2PermissionGrantsRequestBuilder

      public Oauth2PermissionGrantsRequestBuilder(@Nonnull HashMap<String,Object> pathParameters, @Nonnull com.microsoft.kiota.RequestAdapter requestAdapter)
      Instantiates a new Oauth2PermissionGrantsRequestBuilder and sets the default values.
      Parameters:
      pathParameters - Path parameters for the request
      requestAdapter - The request adapter to use to execute the requests.
    • Oauth2PermissionGrantsRequestBuilder

      public Oauth2PermissionGrantsRequestBuilder(@Nonnull String rawUrl, @Nonnull com.microsoft.kiota.RequestAdapter requestAdapter)
      Instantiates a new Oauth2PermissionGrantsRequestBuilder and 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

      @Nonnull public CountRequestBuilder count()
      Provides operations to count the resources in the collection.
      Returns:
      a CountRequestBuilder
    • delta

      @Nonnull public DeltaRequestBuilder 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

      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

      @Nullable public OAuth2PermissionGrant post(@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 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 body
      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:
    • 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 body
      requestConfiguration - Configuration for the request such as headers, query parameters, and middleware options.
      Returns:
      a RequestInformation
    • withUrl

      @Nonnull public Oauth2PermissionGrantsRequestBuilder withUrl(@Nonnull String rawUrl)
      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