Package com.microsoft.graph.groups.item.sites.item.lists.item.contenttypes.getcompatiblehubcontenttypes
Class GetCompatibleHubContentTypesRequestBuilder
java.lang.Object
com.microsoft.kiota.BaseRequestBuilder
com.microsoft.graph.groups.item.sites.item.lists.item.contenttypes.getcompatiblehubcontenttypes.GetCompatibleHubContentTypesRequestBuilder
@Generated("com.microsoft.kiota")
public class GetCompatibleHubContentTypesRequestBuilder
extends com.microsoft.kiota.BaseRequestBuilder
Provides operations to call the getCompatibleHubContentTypes method.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclassGet a list of compatible content types from the content type hub that can be added to a target site or a list.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
ConstructorsConstructorDescriptionGetCompatibleHubContentTypesRequestBuilder(String rawUrl, com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newGetCompatibleHubContentTypesRequestBuilderand sets the default values.GetCompatibleHubContentTypesRequestBuilder(HashMap<String, Object> pathParameters, com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newGetCompatibleHubContentTypesRequestBuilderand sets the default values. -
Method Summary
Modifier and TypeMethodDescriptionget()Get a list of compatible content types from the content type hub that can be added to a target site or a list.get(Consumer<GetCompatibleHubContentTypesRequestBuilder.GetRequestConfiguration> requestConfiguration) Get a list of compatible content types from the content type hub that can be added to a target site or a list.com.microsoft.kiota.RequestInformationGet a list of compatible content types from the content type hub that can be added to a target site or a list.com.microsoft.kiota.RequestInformationtoGetRequestInformation(Consumer<GetCompatibleHubContentTypesRequestBuilder.GetRequestConfiguration> requestConfiguration) Get a list of compatible content types from the content type hub that can be added to a target site or a list.Returns a request builder with the provided arbitrary URL.
-
Constructor Details
-
GetCompatibleHubContentTypesRequestBuilder
public GetCompatibleHubContentTypesRequestBuilder(@Nonnull HashMap<String, Object> pathParameters, @Nonnull com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newGetCompatibleHubContentTypesRequestBuilderand sets the default values.- Parameters:
pathParameters- Path parameters for the requestrequestAdapter- The request adapter to use to execute the requests.
-
GetCompatibleHubContentTypesRequestBuilder
public GetCompatibleHubContentTypesRequestBuilder(@Nonnull String rawUrl, @Nonnull com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newGetCompatibleHubContentTypesRequestBuilderand 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
-
get
Get a list of compatible content types from the content type hub that can be added to a target site or a list. This method is part of the content type publishing changes to optimize the syncing of published content types to sites and lists, effectively switching from a 'push everywhere' to 'pull as needed' approach. The method allows users to pull content types directly from the content type hub to a site or list. For more information, see contentType: addCopyFromContentTypeHub and the blog post Syntex Product Updates August 2021.- Returns:
- a
GetCompatibleHubContentTypesGetResponse - Throws:
ODataError- When receiving a 4XX or 5XX status code- See Also:
-
get
@Nullable public GetCompatibleHubContentTypesGetResponse get(@Nullable Consumer<GetCompatibleHubContentTypesRequestBuilder.GetRequestConfiguration> requestConfiguration) Get a list of compatible content types from the content type hub that can be added to a target site or a list. This method is part of the content type publishing changes to optimize the syncing of published content types to sites and lists, effectively switching from a 'push everywhere' to 'pull as needed' approach. The method allows users to pull content types directly from the content type hub to a site or list. For more information, see contentType: addCopyFromContentTypeHub and the blog post Syntex Product Updates August 2021.- Parameters:
requestConfiguration- Configuration for the request such as headers, query parameters, and middleware options.- Returns:
- a
GetCompatibleHubContentTypesGetResponse - Throws:
ODataError- When receiving a 4XX or 5XX status code- See Also:
-
toGetRequestInformation
@Nonnull public com.microsoft.kiota.RequestInformation toGetRequestInformation()Get a list of compatible content types from the content type hub that can be added to a target site or a list. This method is part of the content type publishing changes to optimize the syncing of published content types to sites and lists, effectively switching from a 'push everywhere' to 'pull as needed' approach. The method allows users to pull content types directly from the content type hub to a site or list. For more information, see contentType: addCopyFromContentTypeHub and the blog post Syntex Product Updates August 2021.- Returns:
- a
RequestInformation
-
toGetRequestInformation
@Nonnull public com.microsoft.kiota.RequestInformation toGetRequestInformation(@Nullable Consumer<GetCompatibleHubContentTypesRequestBuilder.GetRequestConfiguration> requestConfiguration) Get a list of compatible content types from the content type hub that can be added to a target site or a list. This method is part of the content type publishing changes to optimize the syncing of published content types to sites and lists, effectively switching from a 'push everywhere' to 'pull as needed' approach. The method allows users to pull content types directly from the content type hub to a site or list. For more information, see contentType: addCopyFromContentTypeHub and the blog post Syntex Product Updates August 2021.- 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
GetCompatibleHubContentTypesRequestBuilder
-