Class TeamsAppDefinitionItemRequestBuilder

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

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

    • TeamsAppDefinitionItemRequestBuilder

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

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

    • bot

      @Nonnull public BotRequestBuilder bot()
      Provides operations to manage the bot property of the microsoft.graph.teamsAppDefinition entity.
      Returns:
      a BotRequestBuilder
    • delete

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

      public void delete(@Nullable Consumer<TeamsAppDefinitionItemRequestBuilder.DeleteRequestConfiguration> requestConfiguration)
      Delete navigation property appDefinitions for appCatalogs
      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 TeamsAppDefinition get()
      The details for each version of the app.
      Returns:
      a TeamsAppDefinition
      Throws:
      ODataError - When receiving a 4XX or 5XX status code
    • get

      @Nullable public TeamsAppDefinition get(@Nullable Consumer<TeamsAppDefinitionItemRequestBuilder.GetRequestConfiguration> requestConfiguration)
      The details for each version of the app.
      Parameters:
      requestConfiguration - Configuration for the request such as headers, query parameters, and middleware options.
      Returns:
      a TeamsAppDefinition
      Throws:
      ODataError - When receiving a 4XX or 5XX status code
    • patch

      @Nullable public TeamsAppDefinition patch(@Nonnull TeamsAppDefinition body)
      Publish an app to the Microsoft Teams app catalog.Specifically, this API publishes the app to your organization's catalog (the tenant app catalog);the created resource has a distributionMethod property value of organization. The requiresReview property allows any user to submit an app for review by an administrator. Admins can approve or reject these apps via this API or the Microsoft Teams admin center.
      Parameters:
      body - The request body
      Returns:
      a TeamsAppDefinition
      Throws:
      ODataError - When receiving a 4XX or 5XX status code
      See Also:
    • patch

      @Nullable public TeamsAppDefinition patch(@Nonnull TeamsAppDefinition body, @Nullable Consumer<TeamsAppDefinitionItemRequestBuilder.PatchRequestConfiguration> requestConfiguration)
      Publish an app to the Microsoft Teams app catalog.Specifically, this API publishes the app to your organization's catalog (the tenant app catalog);the created resource has a distributionMethod property value of organization. The requiresReview property allows any user to submit an app for review by an administrator. Admins can approve or reject these apps via this API or the Microsoft Teams admin center.
      Parameters:
      body - The request body
      requestConfiguration - Configuration for the request such as headers, query parameters, and middleware options.
      Returns:
      a TeamsAppDefinition
      Throws:
      ODataError - When receiving a 4XX or 5XX status code
      See Also:
    • toDeleteRequestInformation

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

      @Nonnull public com.microsoft.kiota.RequestInformation toDeleteRequestInformation(@Nullable Consumer<TeamsAppDefinitionItemRequestBuilder.DeleteRequestConfiguration> requestConfiguration)
      Delete navigation property appDefinitions for appCatalogs
      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()
      The details for each version of the app.
      Returns:
      a RequestInformation
    • toGetRequestInformation

      @Nonnull public com.microsoft.kiota.RequestInformation toGetRequestInformation(@Nullable Consumer<TeamsAppDefinitionItemRequestBuilder.GetRequestConfiguration> requestConfiguration)
      The details for each version of the app.
      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 TeamsAppDefinition body)
      Publish an app to the Microsoft Teams app catalog.Specifically, this API publishes the app to your organization's catalog (the tenant app catalog);the created resource has a distributionMethod property value of organization. The requiresReview property allows any user to submit an app for review by an administrator. Admins can approve or reject these apps via this API or the Microsoft Teams admin center.
      Parameters:
      body - The request body
      Returns:
      a RequestInformation
    • toPatchRequestInformation

      @Nonnull public com.microsoft.kiota.RequestInformation toPatchRequestInformation(@Nonnull TeamsAppDefinition body, @Nullable Consumer<TeamsAppDefinitionItemRequestBuilder.PatchRequestConfiguration> requestConfiguration)
      Publish an app to the Microsoft Teams app catalog.Specifically, this API publishes the app to your organization's catalog (the tenant app catalog);the created resource has a distributionMethod property value of organization. The requiresReview property allows any user to submit an app for review by an administrator. Admins can approve or reject these apps via this API or the Microsoft Teams admin center.
      Parameters:
      body - The request body
      requestConfiguration - Configuration for the request such as headers, query parameters, and middleware options.
      Returns:
      a RequestInformation
    • withUrl

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