Class Oauth2PermissionGrantsRequestBuilder

java.lang.Object
com.microsoft.kiota.BaseRequestBuilder
com.microsoft.graph.serviceprincipals.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.servicePrincipal entity.
  • 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
    • byOAuth2PermissionGrantId

      @Nonnull public OAuth2PermissionGrantItemRequestBuilder byOAuth2PermissionGrantId(@Nonnull String oAuth2PermissionGrantId)
      Provides operations to manage the oauth2PermissionGrants property of the microsoft.graph.servicePrincipal entity.
      Parameters:
      oAuth2PermissionGrantId - The unique identifier of oAuth2PermissionGrant
      Returns:
      a OAuth2PermissionGrantItemRequestBuilder
    • get

      Retrieve a list of oAuth2PermissionGrant entities, representing delegated permissions granted to the service principal (representing the client application) to access an API on behalf of a user.
      Returns:
      a OAuth2PermissionGrantCollectionResponse
      Throws:
      ODataError - When receiving a 4XX or 5XX status code
      See Also:
    • get

      Retrieve a list of oAuth2PermissionGrant entities, representing delegated permissions granted to the service principal (representing the client application) to access an API on behalf of a 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, representing delegated permissions granted to the service principal (representing the client application) to access an API on behalf of a user.
      Returns:
      a RequestInformation
    • toGetRequestInformation

      @Nonnull public com.microsoft.kiota.RequestInformation toGetRequestInformation(@Nullable Consumer<Oauth2PermissionGrantsRequestBuilder.GetRequestConfiguration> requestConfiguration)
      Retrieve a list of oAuth2PermissionGrant entities, representing delegated permissions granted to the service principal (representing the client application) to access an API on behalf of a user.
      Parameters:
      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