Class WorkbookRequestBuilder

java.lang.Object
com.microsoft.kiota.BaseRequestBuilder
com.microsoft.graph.drives.item.items.item.workbook.WorkbookRequestBuilder

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

    • WorkbookRequestBuilder

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

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

    • application

      @Nonnull public ApplicationRequestBuilder application()
      Provides operations to manage the application property of the microsoft.graph.workbook entity.
      Returns:
      a ApplicationRequestBuilder
    • closeSession

      @Nonnull public CloseSessionRequestBuilder closeSession()
      Provides operations to call the closeSession method.
      Returns:
      a CloseSessionRequestBuilder
    • comments

      @Nonnull public CommentsRequestBuilder comments()
      Provides operations to manage the comments property of the microsoft.graph.workbook entity.
      Returns:
      a CommentsRequestBuilder
    • createSession

      @Nonnull public CreateSessionRequestBuilder createSession()
      Provides operations to call the createSession method.
      Returns:
      a CreateSessionRequestBuilder
    • functions

      @Nonnull public FunctionsRequestBuilder functions()
      Provides operations to manage the functions property of the microsoft.graph.workbook entity.
      Returns:
      a FunctionsRequestBuilder
    • names

      @Nonnull public NamesRequestBuilder names()
      Provides operations to manage the names property of the microsoft.graph.workbook entity.
      Returns:
      a NamesRequestBuilder
    • operations

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

      @Nonnull public RefreshSessionRequestBuilder refreshSession()
      Provides operations to call the refreshSession method.
      Returns:
      a RefreshSessionRequestBuilder
    • tables

      @Nonnull public TablesRequestBuilder tables()
      Provides operations to manage the tables property of the microsoft.graph.workbook entity.
      Returns:
      a TablesRequestBuilder
    • worksheets

      @Nonnull public WorksheetsRequestBuilder worksheets()
      Provides operations to manage the worksheets property of the microsoft.graph.workbook entity.
      Returns:
      a WorksheetsRequestBuilder
    • delete

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

      public void delete(@Nullable Consumer<WorkbookRequestBuilder.DeleteRequestConfiguration> requestConfiguration)
      Delete navigation property workbook for drives
      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 Workbook get()
      For files that are Excel spreadsheets, access to the workbook API to work with the spreadsheet's contents. Nullable.
      Returns:
      a Workbook
      Throws:
      ODataError - When receiving a 4XX or 5XX status code
    • get

      @Nullable public Workbook get(@Nullable Consumer<WorkbookRequestBuilder.GetRequestConfiguration> requestConfiguration)
      For files that are Excel spreadsheets, access to the workbook API to work with the spreadsheet's contents. Nullable.
      Parameters:
      requestConfiguration - Configuration for the request such as headers, query parameters, and middleware options.
      Returns:
      a Workbook
      Throws:
      ODataError - When receiving a 4XX or 5XX status code
    • patch

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

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

      @Nonnull public SessionInfoResourceWithKeyRequestBuilder sessionInfoResourceWithKey(@Nonnull String key)
      Provides operations to call the sessionInfoResource method.
      Parameters:
      key - Usage: key='{key}'
      Returns:
      a SessionInfoResourceWithKeyRequestBuilder
    • tableRowOperationResultWithKey

      @Nonnull public TableRowOperationResultWithKeyRequestBuilder tableRowOperationResultWithKey(@Nonnull String key)
      Provides operations to call the tableRowOperationResult method.
      Parameters:
      key - Usage: key='{key}'
      Returns:
      a TableRowOperationResultWithKeyRequestBuilder
    • toDeleteRequestInformation

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

      @Nonnull public com.microsoft.kiota.RequestInformation toDeleteRequestInformation(@Nullable Consumer<WorkbookRequestBuilder.DeleteRequestConfiguration> requestConfiguration)
      Delete navigation property workbook for drives
      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()
      For files that are Excel spreadsheets, access to the workbook API to work with the spreadsheet's contents. Nullable.
      Returns:
      a RequestInformation
    • toGetRequestInformation

      @Nonnull public com.microsoft.kiota.RequestInformation toGetRequestInformation(@Nullable Consumer<WorkbookRequestBuilder.GetRequestConfiguration> requestConfiguration)
      For files that are Excel spreadsheets, access to the workbook API to work with the spreadsheet's contents. Nullable.
      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 Workbook body)
      Update the navigation property workbook in drives
      Parameters:
      body - The request body
      Returns:
      a RequestInformation
    • toPatchRequestInformation

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

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