java.lang.Object
com.microsoft.kiota.BaseRequestBuilder
com.microsoft.graph.identitygovernance.entitlementmanagement.resourcerolescopes.item.scope.ScopeRequestBuilder

@Generated("com.microsoft.kiota") public class ScopeRequestBuilder extends com.microsoft.kiota.BaseRequestBuilder
Provides operations to manage the scope property of the microsoft.graph.accessPackageResourceRoleScope entity.
  • Constructor Details

    • ScopeRequestBuilder

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

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

    • resource

      @Nonnull public ResourceRequestBuilder resource()
      Provides operations to manage the resource property of the microsoft.graph.accessPackageResourceScope entity.
      Returns:
      a ResourceRequestBuilder
    • delete

      public void delete()
      Delete navigation property scope for identityGovernance
      Throws:
      ODataError - When receiving a 4XX or 5XX status code
    • delete

      public void delete(@Nullable Consumer<ScopeRequestBuilder.DeleteRequestConfiguration> requestConfiguration)
      Delete navigation property scope for identityGovernance
      Parameters:
      requestConfiguration - Configuration for the request such as headers, query parameters, and middleware options.
      Throws:
      ODataError - When receiving a 4XX or 5XX status code
    • get

      @Nullable public AccessPackageResourceScope get()
      Get scope from identityGovernance
      Returns:
      a AccessPackageResourceScope
      Throws:
      ODataError - When receiving a 4XX or 5XX status code
    • get

      @Nullable public AccessPackageResourceScope get(@Nullable Consumer<ScopeRequestBuilder.GetRequestConfiguration> requestConfiguration)
      Get scope from identityGovernance
      Parameters:
      requestConfiguration - Configuration for the request such as headers, query parameters, and middleware options.
      Returns:
      a AccessPackageResourceScope
      Throws:
      ODataError - When receiving a 4XX or 5XX status code
    • patch

      @Nullable public AccessPackageResourceScope patch(@Nonnull AccessPackageResourceScope body)
      Update the navigation property scope in identityGovernance
      Parameters:
      body - The request body
      Returns:
      a AccessPackageResourceScope
      Throws:
      ODataError - When receiving a 4XX or 5XX status code
    • patch

      @Nullable public AccessPackageResourceScope patch(@Nonnull AccessPackageResourceScope body, @Nullable Consumer<ScopeRequestBuilder.PatchRequestConfiguration> requestConfiguration)
      Update the navigation property scope in identityGovernance
      Parameters:
      body - The request body
      requestConfiguration - Configuration for the request such as headers, query parameters, and middleware options.
      Returns:
      a AccessPackageResourceScope
      Throws:
      ODataError - When receiving a 4XX or 5XX status code
    • toDeleteRequestInformation

      @Nonnull public com.microsoft.kiota.RequestInformation toDeleteRequestInformation()
      Delete navigation property scope for identityGovernance
      Returns:
      a RequestInformation
    • toDeleteRequestInformation

      @Nonnull public com.microsoft.kiota.RequestInformation toDeleteRequestInformation(@Nullable Consumer<ScopeRequestBuilder.DeleteRequestConfiguration> requestConfiguration)
      Delete navigation property scope for identityGovernance
      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()
      Get scope from identityGovernance
      Returns:
      a RequestInformation
    • toGetRequestInformation

      @Nonnull public com.microsoft.kiota.RequestInformation toGetRequestInformation(@Nullable Consumer<ScopeRequestBuilder.GetRequestConfiguration> requestConfiguration)
      Get scope from identityGovernance
      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 AccessPackageResourceScope body)
      Update the navigation property scope in identityGovernance
      Parameters:
      body - The request body
      Returns:
      a RequestInformation
    • toPatchRequestInformation

      @Nonnull public com.microsoft.kiota.RequestInformation toPatchRequestInformation(@Nonnull AccessPackageResourceScope body, @Nullable Consumer<ScopeRequestBuilder.PatchRequestConfiguration> requestConfiguration)
      Update the navigation property scope in identityGovernance
      Parameters:
      body - The request body
      requestConfiguration - Configuration for the request such as headers, query parameters, and middleware options.
      Returns:
      a RequestInformation
    • withUrl

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