Class DelegatedAdminRelationshipItemRequestBuilder

java.lang.Object
com.microsoft.kiota.BaseRequestBuilder
com.microsoft.graph.tenantrelationships.delegatedadminrelationships.item.DelegatedAdminRelationshipItemRequestBuilder

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

    • DelegatedAdminRelationshipItemRequestBuilder

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

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

    • accessAssignments

      @Nonnull public AccessAssignmentsRequestBuilder accessAssignments()
      Provides operations to manage the accessAssignments property of the microsoft.graph.delegatedAdminRelationship entity.
      Returns:
      a AccessAssignmentsRequestBuilder
    • operations

      @Nonnull public OperationsRequestBuilder operations()
      Provides operations to manage the operations property of the microsoft.graph.delegatedAdminRelationship entity.
      Returns:
      a OperationsRequestBuilder
    • requests

      @Nonnull public RequestsRequestBuilder requests()
      Provides operations to manage the requests property of the microsoft.graph.delegatedAdminRelationship entity.
      Returns:
      a RequestsRequestBuilder
    • delete

      public void delete()
      Delete a delegatedAdminRelationship object. A relationship can only be deleted if it's in the 'created' status.
      Throws:
      ODataError - When receiving a 4XX or 5XX status code
      See Also:
    • delete

      public void delete(@Nullable Consumer<DelegatedAdminRelationshipItemRequestBuilder.DeleteRequestConfiguration> requestConfiguration)
      Delete a delegatedAdminRelationship object. A relationship can only be deleted if it's in the 'created' status.
      Parameters:
      requestConfiguration - Configuration for the request such as headers, query parameters, and middleware options.
      Throws:
      ODataError - When receiving a 4XX or 5XX status code
      See Also:
    • get

      @Nullable public DelegatedAdminRelationship get()
      Read the properties of a delegatedAdminRelationship object.
      Returns:
      a DelegatedAdminRelationship
      Throws:
      ODataError - When receiving a 4XX or 5XX status code
      See Also:
    • get

      Read the properties of a delegatedAdminRelationship object.
      Parameters:
      requestConfiguration - Configuration for the request such as headers, query parameters, and middleware options.
      Returns:
      a DelegatedAdminRelationship
      Throws:
      ODataError - When receiving a 4XX or 5XX status code
      See Also:
    • patch

      @Nullable public DelegatedAdminRelationship patch(@Nonnull DelegatedAdminRelationship body)
      Update the properties of a delegatedAdminRelationship object. The following restrictions apply:- You can update this relationship when its status property is created.- You can update the autoExtendDuration property when status is either created or active.- You can only remove the Microsoft Entra Global Administrator role when the status property is active, which indicates a long-running operation.
      Parameters:
      body - The request body
      Returns:
      a DelegatedAdminRelationship
      Throws:
      ODataError - When receiving a 4XX or 5XX status code
      See Also:
    • patch

      Update the properties of a delegatedAdminRelationship object. The following restrictions apply:- You can update this relationship when its status property is created.- You can update the autoExtendDuration property when status is either created or active.- You can only remove the Microsoft Entra Global Administrator role when the status property is active, which indicates a long-running operation.
      Parameters:
      body - The request body
      requestConfiguration - Configuration for the request such as headers, query parameters, and middleware options.
      Returns:
      a DelegatedAdminRelationship
      Throws:
      ODataError - When receiving a 4XX or 5XX status code
      See Also:
    • toDeleteRequestInformation

      @Nonnull public com.microsoft.kiota.RequestInformation toDeleteRequestInformation()
      Delete a delegatedAdminRelationship object. A relationship can only be deleted if it's in the 'created' status.
      Returns:
      a RequestInformation
    • toDeleteRequestInformation

      @Nonnull public com.microsoft.kiota.RequestInformation toDeleteRequestInformation(@Nullable Consumer<DelegatedAdminRelationshipItemRequestBuilder.DeleteRequestConfiguration> requestConfiguration)
      Delete a delegatedAdminRelationship object. A relationship can only be deleted if it's in the 'created' status.
      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()
      Read the properties of a delegatedAdminRelationship object.
      Returns:
      a RequestInformation
    • toGetRequestInformation

      @Nonnull public com.microsoft.kiota.RequestInformation toGetRequestInformation(@Nullable Consumer<DelegatedAdminRelationshipItemRequestBuilder.GetRequestConfiguration> requestConfiguration)
      Read the properties of a delegatedAdminRelationship object.
      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 DelegatedAdminRelationship body)
      Update the properties of a delegatedAdminRelationship object. The following restrictions apply:- You can update this relationship when its status property is created.- You can update the autoExtendDuration property when status is either created or active.- You can only remove the Microsoft Entra Global Administrator role when the status property is active, which indicates a long-running operation.
      Parameters:
      body - The request body
      Returns:
      a RequestInformation
    • toPatchRequestInformation

      @Nonnull public com.microsoft.kiota.RequestInformation toPatchRequestInformation(@Nonnull DelegatedAdminRelationship body, @Nullable Consumer<DelegatedAdminRelationshipItemRequestBuilder.PatchRequestConfiguration> requestConfiguration)
      Update the properties of a delegatedAdminRelationship object. The following restrictions apply:- You can update this relationship when its status property is created.- You can update the autoExtendDuration property when status is either created or active.- You can only remove the Microsoft Entra Global Administrator role when the status property is active, which indicates a long-running operation.
      Parameters:
      body - The request body
      requestConfiguration - Configuration for the request such as headers, query parameters, and middleware options.
      Returns:
      a RequestInformation
    • withUrl

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