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.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclassConfiguration for the request such as headers, query parameters, and middleware options.classGet teamsApps from appCatalogsclassConfiguration for the request such as headers, query parameters, and middleware options.classConfiguration for the request such as headers, query parameters, and middleware options. -
Field Summary
Fields inherited from class com.microsoft.kiota.BaseRequestBuilder
pathParameters, requestAdapter, urlTemplate -
Constructor Summary
ConstructorsConstructorDescriptionTeamsAppItemRequestBuilder(String rawUrl, com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newTeamsAppItemRequestBuilderand sets the default values.TeamsAppItemRequestBuilder(HashMap<String, Object> pathParameters, com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newTeamsAppItemRequestBuilderand sets the default values. -
Method Summary
Modifier and TypeMethodDescriptionProvides operations to manage the appDefinitions property of the microsoft.graph.teamsApp entity.voiddelete()Delete an app from an organization's app catalog (the tenant app catalog).voiddelete(Consumer<TeamsAppItemRequestBuilder.DeleteRequestConfiguration> requestConfiguration) Delete an app from an organization's app catalog (the tenant app catalog).get()Get teamsApps from appCatalogsget(Consumer<TeamsAppItemRequestBuilder.GetRequestConfiguration> requestConfiguration) Get teamsApps from appCatalogsUpdate the navigation property teamsApps in appCatalogspatch(TeamsApp body, Consumer<TeamsAppItemRequestBuilder.PatchRequestConfiguration> requestConfiguration) Update the navigation property teamsApps in appCatalogscom.microsoft.kiota.RequestInformationDelete an app from an organization's app catalog (the tenant app catalog).com.microsoft.kiota.RequestInformationtoDeleteRequestInformation(Consumer<TeamsAppItemRequestBuilder.DeleteRequestConfiguration> requestConfiguration) Delete an app from an organization's app catalog (the tenant app catalog).com.microsoft.kiota.RequestInformationGet teamsApps from appCatalogscom.microsoft.kiota.RequestInformationtoGetRequestInformation(Consumer<TeamsAppItemRequestBuilder.GetRequestConfiguration> requestConfiguration) Get teamsApps from appCatalogscom.microsoft.kiota.RequestInformationUpdate the navigation property teamsApps in appCatalogscom.microsoft.kiota.RequestInformationtoPatchRequestInformation(TeamsApp body, Consumer<TeamsAppItemRequestBuilder.PatchRequestConfiguration> requestConfiguration) Update the navigation property teamsApps in appCatalogsReturns a request builder with the provided arbitrary URL.
-
Constructor Details
-
TeamsAppItemRequestBuilder
public TeamsAppItemRequestBuilder(@Nonnull HashMap<String, Object> pathParameters, @Nonnull com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newTeamsAppItemRequestBuilderand sets the default values.- Parameters:
pathParameters- Path parameters for the requestrequestAdapter- The request adapter to use to execute the requests.
-
TeamsAppItemRequestBuilder
public TeamsAppItemRequestBuilder(@Nonnull String rawUrl, @Nonnull com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newTeamsAppItemRequestBuilderand 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
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
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
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 bodyrequestConfiguration- 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 bodyrequestConfiguration- Configuration for the request such as headers, query parameters, and middleware options.- Returns:
- a
RequestInformation
-
withUrl
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
-