Class LabelsRequestBuilder
java.lang.Object
com.microsoft.kiota.BaseRequestBuilder
com.microsoft.graph.security.labels.LabelsRequestBuilder
@Generated("com.microsoft.kiota")
public class LabelsRequestBuilder
extends com.microsoft.kiota.BaseRequestBuilder
Provides operations to manage the labels property of the microsoft.graph.security entity.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclassConfiguration for the request such as headers, query parameters, and middleware options.classGet labels from securityclassConfiguration 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
ConstructorsConstructorDescriptionLabelsRequestBuilder(String rawUrl, com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newLabelsRequestBuilderand sets the default values.LabelsRequestBuilder(HashMap<String, Object> pathParameters, com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newLabelsRequestBuilderand sets the default values. -
Method Summary
Modifier and TypeMethodDescriptionProvides operations to manage the authorities property of the microsoft.graph.security.labelsRoot entity.Provides operations to manage the categories property of the microsoft.graph.security.labelsRoot entity.Provides operations to manage the citations property of the microsoft.graph.security.labelsRoot entity.voiddelete()Delete navigation property labels for securityvoiddelete(Consumer<LabelsRequestBuilder.DeleteRequestConfiguration> requestConfiguration) Delete navigation property labels for securityProvides operations to manage the departments property of the microsoft.graph.security.labelsRoot entity.Provides operations to manage the filePlanReferences property of the microsoft.graph.security.labelsRoot entity.get()Get labels from securityget(Consumer<LabelsRequestBuilder.GetRequestConfiguration> requestConfiguration) Get labels from securitypatch(LabelsRoot body) Update the navigation property labels in securitypatch(LabelsRoot body, Consumer<LabelsRequestBuilder.PatchRequestConfiguration> requestConfiguration) Update the navigation property labels in securityProvides operations to manage the retentionLabels property of the microsoft.graph.security.labelsRoot entity.com.microsoft.kiota.RequestInformationDelete navigation property labels for securitycom.microsoft.kiota.RequestInformationtoDeleteRequestInformation(Consumer<LabelsRequestBuilder.DeleteRequestConfiguration> requestConfiguration) Delete navigation property labels for securitycom.microsoft.kiota.RequestInformationGet labels from securitycom.microsoft.kiota.RequestInformationtoGetRequestInformation(Consumer<LabelsRequestBuilder.GetRequestConfiguration> requestConfiguration) Get labels from securitycom.microsoft.kiota.RequestInformationUpdate the navigation property labels in securitycom.microsoft.kiota.RequestInformationtoPatchRequestInformation(LabelsRoot body, Consumer<LabelsRequestBuilder.PatchRequestConfiguration> requestConfiguration) Update the navigation property labels in securityReturns a request builder with the provided arbitrary URL.
-
Constructor Details
-
LabelsRequestBuilder
public LabelsRequestBuilder(@Nonnull HashMap<String, Object> pathParameters, @Nonnull com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newLabelsRequestBuilderand sets the default values.- Parameters:
pathParameters- Path parameters for the requestrequestAdapter- The request adapter to use to execute the requests.
-
LabelsRequestBuilder
public LabelsRequestBuilder(@Nonnull String rawUrl, @Nonnull com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newLabelsRequestBuilderand 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
-
authorities
Provides operations to manage the authorities property of the microsoft.graph.security.labelsRoot entity.- Returns:
- a
AuthoritiesRequestBuilder
-
categories
Provides operations to manage the categories property of the microsoft.graph.security.labelsRoot entity.- Returns:
- a
CategoriesRequestBuilder
-
citations
Provides operations to manage the citations property of the microsoft.graph.security.labelsRoot entity.- Returns:
- a
CitationsRequestBuilder
-
departments
Provides operations to manage the departments property of the microsoft.graph.security.labelsRoot entity.- Returns:
- a
DepartmentsRequestBuilder
-
filePlanReferences
Provides operations to manage the filePlanReferences property of the microsoft.graph.security.labelsRoot entity.- Returns:
- a
FilePlanReferencesRequestBuilder
-
retentionLabels
Provides operations to manage the retentionLabels property of the microsoft.graph.security.labelsRoot entity.- Returns:
- a
RetentionLabelsRequestBuilder
-
delete
public void delete()Delete navigation property labels for security- Throws:
ODataError- When receiving a 4XX or 5XX status code
-
delete
public void delete(@Nullable Consumer<LabelsRequestBuilder.DeleteRequestConfiguration> requestConfiguration) Delete navigation property labels for security- 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
Get labels from security- Returns:
- a
LabelsRoot - Throws:
ODataError- When receiving a 4XX or 5XX status code
-
get
@Nullable public LabelsRoot get(@Nullable Consumer<LabelsRequestBuilder.GetRequestConfiguration> requestConfiguration) Get labels from security- Parameters:
requestConfiguration- Configuration for the request such as headers, query parameters, and middleware options.- Returns:
- a
LabelsRoot - Throws:
ODataError- When receiving a 4XX or 5XX status code
-
patch
Update the navigation property labels in security- Parameters:
body- The request body- Returns:
- a
LabelsRoot - Throws:
ODataError- When receiving a 4XX or 5XX status code
-
patch
@Nullable public LabelsRoot patch(@Nonnull LabelsRoot body, @Nullable Consumer<LabelsRequestBuilder.PatchRequestConfiguration> requestConfiguration) Update the navigation property labels in security- Parameters:
body- The request bodyrequestConfiguration- Configuration for the request such as headers, query parameters, and middleware options.- Returns:
- a
LabelsRoot - Throws:
ODataError- When receiving a 4XX or 5XX status code
-
toDeleteRequestInformation
@Nonnull public com.microsoft.kiota.RequestInformation toDeleteRequestInformation()Delete navigation property labels for security- Returns:
- a
RequestInformation
-
toDeleteRequestInformation
@Nonnull public com.microsoft.kiota.RequestInformation toDeleteRequestInformation(@Nullable Consumer<LabelsRequestBuilder.DeleteRequestConfiguration> requestConfiguration) Delete navigation property labels for security- 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 labels from security- Returns:
- a
RequestInformation
-
toGetRequestInformation
@Nonnull public com.microsoft.kiota.RequestInformation toGetRequestInformation(@Nullable Consumer<LabelsRequestBuilder.GetRequestConfiguration> requestConfiguration) Get labels from security- 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 LabelsRoot body) Update the navigation property labels in security- Parameters:
body- The request body- Returns:
- a
RequestInformation
-
toPatchRequestInformation
@Nonnull public com.microsoft.kiota.RequestInformation toPatchRequestInformation(@Nonnull LabelsRoot body, @Nullable Consumer<LabelsRequestBuilder.PatchRequestConfiguration> requestConfiguration) Update the navigation property labels in security- 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
LabelsRequestBuilder
-