Class TeamsAppItemRequestBuilder

java.lang.Object
com.microsoft.kiota.BaseRequestBuilder
com.microsoft.graph.appcatalogs.teamsapps.item.TeamsAppItemRequestBuilder

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

    • TeamsAppItemRequestBuilder

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

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

    • appDefinitions

      @Nonnull public AppDefinitionsRequestBuilder appDefinitions()
      Provides operations to manage the appDefinitions property of the microsoft.graph.teamsApp entity.
      Returns:
      a AppDefinitionsRequestBuilder
    • delete

      public void delete()
      Delete an app from an organization's app catalog (the tenant app catalog). To delete an app, the distributionMethod property for the app must be set to organization. You can also use this API to remove a submitted app from the review process.
      Throws:
      ODataError - When receiving a 4XX or 5XX status code
      See Also:
    • delete

      public void delete(@Nullable Consumer<TeamsAppItemRequestBuilder.DeleteRequestConfiguration> requestConfiguration)
      Delete an app from an organization's app catalog (the tenant app catalog). To delete an app, the distributionMethod property for the app must be set to organization. You can also use this API to remove a submitted app from the review process.
      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 TeamsApp get()
      Get teamsApps from appCatalogs
      Returns:
      a TeamsApp
      Throws:
      ODataError - When receiving a 4XX or 5XX status code
    • get

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

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

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

      @Nonnull public com.microsoft.kiota.RequestInformation toDeleteRequestInformation()
      Delete an app from an organization's app catalog (the tenant app catalog). To delete an app, the distributionMethod property for the app must be set to organization. You can also use this API to remove a submitted app from the review process.
      Returns:
      a RequestInformation
    • toDeleteRequestInformation

      @Nonnull public com.microsoft.kiota.RequestInformation toDeleteRequestInformation(@Nullable Consumer<TeamsAppItemRequestBuilder.DeleteRequestConfiguration> requestConfiguration)
      Delete an app from an organization's app catalog (the tenant app catalog). To delete an app, the distributionMethod property for the app must be set to organization. You can also use this API to remove a submitted app from the review process.
      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 teamsApps from appCatalogs
      Returns:
      a RequestInformation
    • toGetRequestInformation

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

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

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