Class AppDefinitionsRequestBuilder
java.lang.Object
com.microsoft.kiota.BaseRequestBuilder
com.microsoft.graph.appcatalogs.teamsapps.item.appdefinitions.AppDefinitionsRequestBuilder
@Generated("com.microsoft.kiota")
public class AppDefinitionsRequestBuilder
extends com.microsoft.kiota.BaseRequestBuilder
Provides operations to manage the appDefinitions property of the microsoft.graph.teamsApp entity.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclassThe details for each version of the app.classConfiguration 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
ConstructorsConstructorDescriptionAppDefinitionsRequestBuilder(String rawUrl, com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newAppDefinitionsRequestBuilderand sets the default values.AppDefinitionsRequestBuilder(HashMap<String, Object> pathParameters, com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newAppDefinitionsRequestBuilderand sets the default values. -
Method Summary
Modifier and TypeMethodDescriptionbyTeamsAppDefinitionId(String teamsAppDefinitionId) Provides operations to manage the appDefinitions property of the microsoft.graph.teamsApp entity.count()Provides operations to count the resources in the collection.get()The details for each version of the app.get(Consumer<AppDefinitionsRequestBuilder.GetRequestConfiguration> requestConfiguration) The details for each version of the app.post(TeamsAppDefinition body) Update an app previously published to the Microsoft Teams app catalog.post(TeamsAppDefinition body, Consumer<AppDefinitionsRequestBuilder.PostRequestConfiguration> requestConfiguration) Update an app previously published to the Microsoft Teams app catalog.com.microsoft.kiota.RequestInformationThe details for each version of the app.com.microsoft.kiota.RequestInformationtoGetRequestInformation(Consumer<AppDefinitionsRequestBuilder.GetRequestConfiguration> requestConfiguration) The details for each version of the app.com.microsoft.kiota.RequestInformationUpdate an app previously published to the Microsoft Teams app catalog.com.microsoft.kiota.RequestInformationtoPostRequestInformation(TeamsAppDefinition body, Consumer<AppDefinitionsRequestBuilder.PostRequestConfiguration> requestConfiguration) Update an app previously published to the Microsoft Teams app catalog.Returns a request builder with the provided arbitrary URL.
-
Constructor Details
-
AppDefinitionsRequestBuilder
public AppDefinitionsRequestBuilder(@Nonnull HashMap<String, Object> pathParameters, @Nonnull com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newAppDefinitionsRequestBuilderand sets the default values.- Parameters:
pathParameters- Path parameters for the requestrequestAdapter- The request adapter to use to execute the requests.
-
AppDefinitionsRequestBuilder
public AppDefinitionsRequestBuilder(@Nonnull String rawUrl, @Nonnull com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newAppDefinitionsRequestBuilderand 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
-
count
Provides operations to count the resources in the collection.- Returns:
- a
CountRequestBuilder
-
byTeamsAppDefinitionId
@Nonnull public TeamsAppDefinitionItemRequestBuilder byTeamsAppDefinitionId(@Nonnull String teamsAppDefinitionId) Provides operations to manage the appDefinitions property of the microsoft.graph.teamsApp entity.- Parameters:
teamsAppDefinitionId- The unique identifier of teamsAppDefinition- Returns:
- a
TeamsAppDefinitionItemRequestBuilder
-
get
The details for each version of the app.- Returns:
- a
TeamsAppDefinitionCollectionResponse - Throws:
ODataError- When receiving a 4XX or 5XX status code
-
get
@Nullable public TeamsAppDefinitionCollectionResponse get(@Nullable Consumer<AppDefinitionsRequestBuilder.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
TeamsAppDefinitionCollectionResponse - Throws:
ODataError- When receiving a 4XX or 5XX status code
-
post
Update an app previously published to the Microsoft Teams app catalog. To update an app, the distributionMethod property for the app must be set to organization. This API specifically updates an app published to your organization's app catalog (the tenant app catalog).- Parameters:
body- The request body- Returns:
- a
TeamsAppDefinition - Throws:
ODataError- When receiving a 4XX or 5XX status code- See Also:
-
post
@Nullable public TeamsAppDefinition post(@Nonnull TeamsAppDefinition body, @Nullable Consumer<AppDefinitionsRequestBuilder.PostRequestConfiguration> requestConfiguration) Update an app previously published to the Microsoft Teams app catalog. To update an app, the distributionMethod property for the app must be set to organization. This API specifically updates an app published to your organization's app catalog (the tenant app catalog).- Parameters:
body- The request bodyrequestConfiguration- 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:
-
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<AppDefinitionsRequestBuilder.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
-
toPostRequestInformation
@Nonnull public com.microsoft.kiota.RequestInformation toPostRequestInformation(@Nonnull TeamsAppDefinition body) Update an app previously published to the Microsoft Teams app catalog. To update an app, the distributionMethod property for the app must be set to organization. This API specifically updates an app published to your organization's app catalog (the tenant app catalog).- Parameters:
body- The request body- Returns:
- a
RequestInformation
-
toPostRequestInformation
@Nonnull public com.microsoft.kiota.RequestInformation toPostRequestInformation(@Nonnull TeamsAppDefinition body, @Nullable Consumer<AppDefinitionsRequestBuilder.PostRequestConfiguration> requestConfiguration) Update an app previously published to the Microsoft Teams app catalog. To update an app, the distributionMethod property for the app must be set to organization. This API specifically updates an app published to your organization's app catalog (the tenant app catalog).- 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
AppDefinitionsRequestBuilder
-