Class SharedWithChannelTeamInfoItemRequestBuilder
java.lang.Object
com.microsoft.kiota.BaseRequestBuilder
com.microsoft.graph.teams.item.channels.item.sharedwithteams.item.SharedWithChannelTeamInfoItemRequestBuilder
@Generated("com.microsoft.kiota")
public class SharedWithChannelTeamInfoItemRequestBuilder
extends com.microsoft.kiota.BaseRequestBuilder
Provides operations to manage the sharedWithTeams property of the microsoft.graph.channel entity.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclassConfiguration for the request such as headers, query parameters, and middleware options.classGet a team that has been shared with a specified channel.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
ConstructorsConstructorDescriptionSharedWithChannelTeamInfoItemRequestBuilder(String rawUrl, com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newSharedWithChannelTeamInfoItemRequestBuilderand sets the default values.SharedWithChannelTeamInfoItemRequestBuilder(HashMap<String, Object> pathParameters, com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newSharedWithChannelTeamInfoItemRequestBuilderand sets the default values. -
Method Summary
Modifier and TypeMethodDescriptionProvides operations to manage the allowedMembers property of the microsoft.graph.sharedWithChannelTeamInfo entity.voiddelete()Unshare a channel with a team by deleting the corresponding sharedWithChannelTeamInfo resource.voiddelete(Consumer<SharedWithChannelTeamInfoItemRequestBuilder.DeleteRequestConfiguration> requestConfiguration) Unshare a channel with a team by deleting the corresponding sharedWithChannelTeamInfo resource.get()Get a team that has been shared with a specified channel.get(Consumer<SharedWithChannelTeamInfoItemRequestBuilder.GetRequestConfiguration> requestConfiguration) Get a team that has been shared with a specified channel.Update the navigation property sharedWithTeams in teamspatch(SharedWithChannelTeamInfo body, Consumer<SharedWithChannelTeamInfoItemRequestBuilder.PatchRequestConfiguration> requestConfiguration) Update the navigation property sharedWithTeams in teamsteam()Provides operations to manage the team property of the microsoft.graph.teamInfo entity.com.microsoft.kiota.RequestInformationUnshare a channel with a team by deleting the corresponding sharedWithChannelTeamInfo resource.com.microsoft.kiota.RequestInformationtoDeleteRequestInformation(Consumer<SharedWithChannelTeamInfoItemRequestBuilder.DeleteRequestConfiguration> requestConfiguration) Unshare a channel with a team by deleting the corresponding sharedWithChannelTeamInfo resource.com.microsoft.kiota.RequestInformationGet a team that has been shared with a specified channel.com.microsoft.kiota.RequestInformationtoGetRequestInformation(Consumer<SharedWithChannelTeamInfoItemRequestBuilder.GetRequestConfiguration> requestConfiguration) Get a team that has been shared with a specified channel.com.microsoft.kiota.RequestInformationUpdate the navigation property sharedWithTeams in teamscom.microsoft.kiota.RequestInformationtoPatchRequestInformation(SharedWithChannelTeamInfo body, Consumer<SharedWithChannelTeamInfoItemRequestBuilder.PatchRequestConfiguration> requestConfiguration) Update the navigation property sharedWithTeams in teamsReturns a request builder with the provided arbitrary URL.
-
Constructor Details
-
SharedWithChannelTeamInfoItemRequestBuilder
public SharedWithChannelTeamInfoItemRequestBuilder(@Nonnull HashMap<String, Object> pathParameters, @Nonnull com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newSharedWithChannelTeamInfoItemRequestBuilderand sets the default values.- Parameters:
pathParameters- Path parameters for the requestrequestAdapter- The request adapter to use to execute the requests.
-
SharedWithChannelTeamInfoItemRequestBuilder
public SharedWithChannelTeamInfoItemRequestBuilder(@Nonnull String rawUrl, @Nonnull com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newSharedWithChannelTeamInfoItemRequestBuilderand 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
-
allowedMembers
Provides operations to manage the allowedMembers property of the microsoft.graph.sharedWithChannelTeamInfo entity.- Returns:
- a
AllowedMembersRequestBuilder
-
team
Provides operations to manage the team property of the microsoft.graph.teamInfo entity.- Returns:
- a
TeamRequestBuilder
-
delete
public void delete()Unshare a channel with a team by deleting the corresponding sharedWithChannelTeamInfo resource. This operation is allowed only for channels with a membershipType value of shared.- Throws:
ODataError- When receiving a 4XX or 5XX status code- See Also:
-
delete
public void delete(@Nullable Consumer<SharedWithChannelTeamInfoItemRequestBuilder.DeleteRequestConfiguration> requestConfiguration) Unshare a channel with a team by deleting the corresponding sharedWithChannelTeamInfo resource. This operation is allowed only for channels with a membershipType value of shared.- 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 a team that has been shared with a specified channel. This operation is allowed only for channels with a membershipType value of shared.- Returns:
- a
SharedWithChannelTeamInfo - Throws:
ODataError- When receiving a 4XX or 5XX status code- See Also:
-
get
@Nullable public SharedWithChannelTeamInfo get(@Nullable Consumer<SharedWithChannelTeamInfoItemRequestBuilder.GetRequestConfiguration> requestConfiguration) Get a team that has been shared with a specified channel. This operation is allowed only for channels with a membershipType value of shared.- Parameters:
requestConfiguration- Configuration for the request such as headers, query parameters, and middleware options.- Returns:
- a
SharedWithChannelTeamInfo - Throws:
ODataError- When receiving a 4XX or 5XX status code- See Also:
-
toDeleteRequestInformation
@Nonnull public com.microsoft.kiota.RequestInformation toDeleteRequestInformation()Unshare a channel with a team by deleting the corresponding sharedWithChannelTeamInfo resource. This operation is allowed only for channels with a membershipType value of shared.- Returns:
- a
RequestInformation
-
toDeleteRequestInformation
@Nonnull public com.microsoft.kiota.RequestInformation toDeleteRequestInformation(@Nullable Consumer<SharedWithChannelTeamInfoItemRequestBuilder.DeleteRequestConfiguration> requestConfiguration) Unshare a channel with a team by deleting the corresponding sharedWithChannelTeamInfo resource. This operation is allowed only for channels with a membershipType value of shared.- 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 a team that has been shared with a specified channel. This operation is allowed only for channels with a membershipType value of shared.- Returns:
- a
RequestInformation
-
toGetRequestInformation
@Nonnull public com.microsoft.kiota.RequestInformation toGetRequestInformation(@Nullable Consumer<SharedWithChannelTeamInfoItemRequestBuilder.GetRequestConfiguration> requestConfiguration) Get a team that has been shared with a specified channel. This operation is allowed only for channels with a membershipType value of shared.- Parameters:
requestConfiguration- 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
SharedWithChannelTeamInfoItemRequestBuilder
-